Swetha Chikkaboraiah | e5ab536 | 2018-03-05 15:03:25 +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 | #include "pmi8950.dtsi" |
| 15 | #include "msm8917-mtp.dtsi" |
| 16 | |
| 17 | &soc { |
| 18 | led_flash0: qcom,camera-flash { |
| 19 | cell-index = <0>; |
| 20 | compatible = "qcom,camera-flash"; |
| 21 | qcom,flash-type = <1>; |
| 22 | qcom,flash-source = <&pmi8950_flash0 &pmi8950_flash1>; |
| 23 | qcom,torch-source = <&pmi8950_torch0 &pmi8950_torch1>; |
| 24 | qcom,switch-source = <&pmi8950_switch>; |
| 25 | }; |
| 26 | |
| 27 | bluetooth: bt_qca6174 { |
| 28 | compatible = "qca,qca6174"; |
| 29 | qca,bt-reset-gpio = <&tlmm 129 0>; /* BT_EN */ |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | &vendor{ |
| 34 | mtp_batterydata: qcom,battery-data { |
| 35 | qcom,batt-id-range-pct = <15>; |
| 36 | #include "batterydata-itech-3000mah.dtsi" |
| 37 | #include "batterydata-ascent-3450mAh.dtsi" |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | &pm8937_gpios { |
| 42 | gpio@c400 { |
| 43 | qcom,mode = <0>; |
| 44 | qcom,output-type = <0>; |
| 45 | qcom,pull = <0>; |
| 46 | qcom,vin-sel = <2>; |
| 47 | qcom,out-strength = <3>; |
| 48 | qcom,src-sel = <0>; |
| 49 | qcom,master-en = <1>; |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | }; |
| 53 | |
Swetha Chikkaboraiah | 5916226 | 2018-03-12 11:25:36 +0530 | [diff] [blame] | 54 | &qpnp_fg { |
Swetha Chikkaboraiah | e5ab536 | 2018-03-05 15:03:25 +0530 | [diff] [blame] | 55 | qcom,battery-data = <&mtp_batterydata>; |
| 56 | }; |
| 57 | |
Swetha Chikkaboraiah | 5916226 | 2018-03-12 11:25:36 +0530 | [diff] [blame] | 58 | &qpnp_smbcharger { |
Swetha Chikkaboraiah | e5ab536 | 2018-03-05 15:03:25 +0530 | [diff] [blame] | 59 | qcom,battery-data = <&mtp_batterydata>; |
| 60 | qcom,chg-led-sw-controls; |
| 61 | qcom,chg-led-support; |
Anirudh Ghayal | 42e1de3 | 2018-06-22 15:55:57 +0530 | [diff] [blame] | 62 | dpdm-supply = <&usb_otg>; |
Swetha Chikkaboraiah | e5ab536 | 2018-03-05 15:03:25 +0530 | [diff] [blame] | 63 | }; |
| 64 | |
Swetha Chikkaboraiah | 5916226 | 2018-03-12 11:25:36 +0530 | [diff] [blame] | 65 | &usb_otg { |
| 66 | extcon = <&qpnp_smbcharger>; |
| 67 | }; |
| 68 | |
Swetha Chikkaboraiah | e5ab536 | 2018-03-05 15:03:25 +0530 | [diff] [blame] | 69 | &labibb { |
| 70 | status = "ok"; |
| 71 | qpnp,qpnp-labibb-mode = "lcd"; |
| 72 | }; |
| 73 | |
| 74 | &ibb_regulator { |
| 75 | qcom,qpnp-ibb-discharge-resistor = <32>; |
| 76 | }; |
raghavendra ambadas | 6d5ccc5 | 2018-03-13 15:36:14 +0530 | [diff] [blame] | 77 | |
| 78 | &mdss_dsi0 { |
| 79 | lab-supply = <&lab_regulator>; |
| 80 | ibb-supply = <&ibb_regulator>; |
| 81 | }; |