Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2016, 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 | #include "pmi8950.dtsi" |
| 15 | #include "msm8937-mtp.dtsi" |
| 16 | |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 17 | &vendor { |
| 18 | mtp_batterydata: qcom,battery-data { |
| 19 | qcom,batt-id-range-pct = <15>; |
| 20 | #include "batterydata-itech-3000mah.dtsi" |
| 21 | #include "batterydata-ascent-3450mAh.dtsi" |
| 22 | }; |
| 23 | }; |
| 24 | |
Tirupathi Reddy | 766b0f3 | 2018-01-30 11:19:22 +0530 | [diff] [blame] | 25 | &qpnp_fg { |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 26 | qcom,battery-data = <&mtp_batterydata>; |
| 27 | }; |
| 28 | |
Tirupathi Reddy | 766b0f3 | 2018-01-30 11:19:22 +0530 | [diff] [blame] | 29 | &qpnp_smbcharger { |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 30 | qcom,battery-data = <&mtp_batterydata>; |
| 31 | qcom,chg-led-sw-controls; |
| 32 | qcom,chg-led-support; |
| 33 | /delete-property/ dpdm-supply; |
| 34 | }; |
| 35 | |
Ajay Agarwal | 508f440 | 2018-02-12 18:47:43 +0530 | [diff] [blame] | 36 | &usb_otg { |
| 37 | extcon = <&qpnp_smbcharger>; |
| 38 | }; |
| 39 | |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 40 | &labibb { |
| 41 | status = "ok"; |
| 42 | qpnp,qpnp-labibb-mode = "lcd"; |
| 43 | }; |
| 44 | |
| 45 | &ibb_regulator { |
| 46 | qcom,qpnp-ibb-discharge-resistor = <32>; |
| 47 | }; |
Sachin Bhayare | a4210c3 | 2018-02-14 15:16:45 +0530 | [diff] [blame^] | 48 | |
| 49 | &mdss_dsi0 { |
| 50 | lab-supply = <&lab_regulator>; |
| 51 | ibb-supply = <&ibb_regulator>; |
| 52 | }; |
| 53 | |
| 54 | &mdss_dsi1 { |
| 55 | lab-supply = <&lab_regulator>; |
| 56 | ibb-supply = <&ibb_regulator>; |
| 57 | }; |