Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
| 14 | |
| 15 | |
| 16 | #include "sdxpoorwills.dtsi" |
| 17 | #include "sdxpoorwills-pinctrl.dtsi" |
| 18 | |
| 19 | / { |
| 20 | model = "Qualcomm Technologies, Inc. SDXPOORWILLS MTP"; |
| 21 | compatible = "qcom,sdxpoorwills-mtp", |
| 22 | "qcom,sdxpoorwills", "qcom,mtp"; |
Jeevan Shriram | cd9c9dd | 2017-12-07 16:38:31 -0800 | [diff] [blame] | 23 | qcom,board-id = <8 0x0>, <8 0x100>, <8 0x2>, <8 0x102>; |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 24 | }; |
| 25 | |
Jeevan Shriram | a99fb5b | 2017-11-28 08:13:04 -0800 | [diff] [blame] | 26 | &serial_uart { |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 27 | pinctrl-names = "default"; |
Jeevan Shriram | a99fb5b | 2017-11-28 08:13:04 -0800 | [diff] [blame] | 28 | pinctrl-0 = <&uart3_console_active>; |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 29 | status = "ok"; |
| 30 | }; |
| 31 | |
Sahitya Tummala | 61f1d32 | 2017-06-06 13:49:19 +0530 | [diff] [blame] | 32 | &qnand_1 { |
| 33 | status = "ok"; |
| 34 | }; |
Siddartha Mohanadoss | 2be47fe | 2017-10-20 11:09:41 -0700 | [diff] [blame] | 35 | |
Umang Agrawal | 5151381 | 2017-11-02 18:18:54 +0530 | [diff] [blame] | 36 | &sdhc_1 { |
| 37 | vdd-supply = <&vreg_sd_mmc>; |
| 38 | |
| 39 | vdd-io-supply = <&pmxpoorwills_l7>; |
| 40 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 41 | qcom,vdd-io-current-level = <200 10000>; |
| 42 | |
| 43 | pinctrl-names = "active", "sleep"; |
| 44 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_cd_on>; |
| 45 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_cd_off>; |
| 46 | |
| 47 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 48 | 200000000>; |
| 49 | qcom,devfreq,freq-table = <50000000 200000000>; |
| 50 | |
| 51 | cd-gpios = <&tlmm 93 0x1>; |
| 52 | |
| 53 | status = "ok"; |
| 54 | }; |
| 55 | |
Siddartha Mohanadoss | 2be47fe | 2017-10-20 11:09:41 -0700 | [diff] [blame] | 56 | &pmxpoorwills_vadc { |
| 57 | chan@83 { |
| 58 | label = "vph_pwr"; |
| 59 | reg = <0x83>; |
| 60 | qcom,decimation = <2>; |
| 61 | qcom,pre-div-channel-scaling = <1>; |
| 62 | qcom,calibration-type = "absolute"; |
| 63 | qcom,scale-function = <0>; |
| 64 | qcom,hw-settle-time = <0>; |
| 65 | qcom,fast-avg-setup = <0>; |
| 66 | }; |
| 67 | |
| 68 | chan@4c { |
| 69 | label = "xo_therm"; |
| 70 | reg = <0x4c>; |
| 71 | qcom,decimation = <2>; |
| 72 | qcom,pre-div-channel-scaling = <0>; |
| 73 | qcom,calibration-type = "ratiometric"; |
| 74 | qcom,scale-function = <4>; |
| 75 | qcom,hw-settle-time = <2>; |
| 76 | qcom,fast-avg-setup = <0>; |
| 77 | qcom,vadc-thermal-node; |
| 78 | }; |
| 79 | |
| 80 | chan@4d { |
| 81 | label = "pa_therm1"; |
| 82 | reg = <0x4d>; |
| 83 | qcom,decimation = <2>; |
| 84 | qcom,pre-div-channel-scaling = <0>; |
| 85 | qcom,calibration-type = "ratiometric"; |
| 86 | qcom,scale-function = <2>; |
| 87 | qcom,hw-settle-time = <2>; |
| 88 | qcom,fast-avg-setup = <0>; |
| 89 | qcom,vadc-thermal-node; |
| 90 | }; |
| 91 | |
| 92 | chan@4e { |
| 93 | label = "pa_therm2"; |
| 94 | reg = <0x4e>; |
| 95 | qcom,decimation = <2>; |
| 96 | qcom,pre-div-channel-scaling = <0>; |
| 97 | qcom,calibration-type = "ratiometric"; |
| 98 | qcom,scale-function = <2>; |
| 99 | qcom,hw-settle-time = <2>; |
| 100 | qcom,fast-avg-setup = <0>; |
| 101 | qcom,vadc-thermal-node; |
| 102 | }; |
| 103 | |
| 104 | chan@4f { |
| 105 | label = "mdm_case_therm"; |
| 106 | reg = <0x4f>; |
| 107 | qcom,decimation = <2>; |
| 108 | qcom,pre-div-channel-scaling = <0>; |
| 109 | qcom,calibration-type = "ratiometric"; |
| 110 | qcom,scale-function = <2>; |
| 111 | qcom,hw-settle-time = <2>; |
| 112 | qcom,fast-avg-setup = <0>; |
| 113 | qcom,vadc-thermal-node; |
| 114 | }; |
| 115 | |
| 116 | chan@52 { |
| 117 | label = "ambient_therm"; |
| 118 | reg = <0x52>; |
| 119 | qcom,decimation = <2>; |
| 120 | qcom,pre-div-channel-scaling = <0>; |
| 121 | qcom,calibration-type = "ratiometric"; |
| 122 | qcom,scale-function = <2>; |
| 123 | qcom,hw-settle-time = <2>; |
| 124 | qcom,fast-avg-setup = <0>; |
| 125 | qcom,vadc-thermal-node; |
| 126 | }; |
| 127 | }; |
Anirudh Ghayal | bbe9ff7 | 2017-11-10 15:46:34 +0530 | [diff] [blame] | 128 | |
| 129 | &i2c_3 { |
| 130 | status = "okay"; |
| 131 | #include "smb138x.dtsi" |
| 132 | }; |
| 133 | |
| 134 | &smb138x { |
| 135 | pinctrl-names = "default"; |
| 136 | pinctrl-0 = <&smb_int_default>; |
| 137 | interrupt-parent = <&tlmm>; |
| 138 | interrupts = <42 IRQ_TYPE_LEVEL_LOW>; |
| 139 | |
| 140 | smb1381_charger: qcom,smb1381-charger@1000 { |
| 141 | compatible = "qcom,smb138x-charger"; |
| 142 | qcom,use-extcon; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | &smb138x_vbus { |
| 147 | status = "okay"; |
| 148 | }; |
Hemant Kumar | 42849cf | 2017-12-06 17:30:20 -0800 | [diff] [blame] | 149 | |
| 150 | &usb { |
| 151 | status = "okay"; |
| 152 | extcon = <&smb1381_charger>; |
| 153 | }; |