Swetha Chikkaboraiah | da05f3b | 2018-05-09 11:14:36 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | |
| 16 | #include "apq8017.dtsi" |
| 17 | #include "msm8917-mtp.dtsi" |
| 18 | #include "msm8917-pmi8937.dtsi" |
| 19 | |
| 20 | / { |
| 21 | model = "Qualcomm Technologies, Inc. APQ8017-PMI8937 MTP"; |
| 22 | compatible = "qcom,apq8017-mtp", "qcom,apq8017", "qcom,mtp"; |
| 23 | qcom,board-id= <8 0>; |
| 24 | qcom,pmic-id = <0x10019 0x020037 0x0 0x0>; |
| 25 | }; |
| 26 | |
| 27 | &blsp1_uart1 { |
| 28 | status = "ok"; |
| 29 | }; |
| 30 | |
| 31 | &vendor { |
| 32 | mtp_batterydata: qcom,battery-data { |
| 33 | qcom,batt-id-range-pct = <15>; |
| 34 | #include "batterydata-itech-3000mah.dtsi" |
| 35 | #include "batterydata-ascent-3450mAh.dtsi" |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &qpnp_fg { |
| 40 | qcom,battery-data = <&mtp_batterydata>; |
| 41 | }; |
| 42 | |
| 43 | &qpnp_smbcharger { |
| 44 | qcom,battery-data = <&mtp_batterydata>; |
| 45 | }; |