Banajit Goswami | 7885c69 | 2017-03-16 16:00:34 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
Channagoud Kadabi | 6d4bb83 | 2016-06-30 23:40:05 -0700 | [diff] [blame] | 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 | */ |
Kyle Yan | 6a20fae | 2017-02-14 13:34:41 -0800 | [diff] [blame] | 12 | |
David Collins | c668625 | 2017-03-31 14:23:09 -0700 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
Jigarkumar Zala | 86123115 | 2017-02-28 14:05:11 -0800 | [diff] [blame] | 14 | #include "sdm845-camera-sensor-cdp.dtsi" |
Sungjun Park | c9f9c06 | 2017-03-21 16:45:18 -0700 | [diff] [blame] | 15 | |
Kyle Yan | db9fe12 | 2017-07-06 14:58:09 -0700 | [diff] [blame] | 16 | &vendor { |
Sungjun Park | c9f9c06 | 2017-03-21 16:45:18 -0700 | [diff] [blame] | 17 | bluetooth: bt_wcn3990 { |
| 18 | compatible = "qca,wcn3990"; |
| 19 | qca,bt-vdd-io-supply = <&pm8998_s3>; |
| 20 | qca,bt-vdd-xtal-supply = <&pm8998_s5>; |
| 21 | qca,bt-vdd-core-supply = <&pm8998_l7>; |
| 22 | qca,bt-vdd-pa-supply = <&pm8998_l17>; |
| 23 | qca,bt-vdd-ldo-supply = <&pm8998_l25>; |
| 24 | |
| 25 | qca,bt-vdd-io-voltage-level = <1352000 1352000>; |
| 26 | qca,bt-vdd-xtal-voltage-level = <2040000 2040000>; |
| 27 | qca,bt-vdd-core-voltage-level = <1800000 1800000>; |
| 28 | qca,bt-vdd-pa-voltage-level = <1304000 1304000>; |
| 29 | qca,bt-vdd-ldo-voltage-level = <3312000 3312000>; |
| 30 | |
| 31 | qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */ |
| 32 | qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */ |
| 33 | qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */ |
| 34 | qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */ |
| 35 | qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */ |
| 36 | }; |
| 37 | }; |
| 38 | |
Banajit Goswami | c0b7581 | 2017-03-16 16:14:17 -0700 | [diff] [blame] | 39 | &soc { |
David Collins | c668625 | 2017-03-31 14:23:09 -0700 | [diff] [blame] | 40 | gpio_keys { |
| 41 | compatible = "gpio-keys"; |
| 42 | label = "gpio-keys"; |
| 43 | |
| 44 | pinctrl-names = "default"; |
| 45 | pinctrl-0 = <&key_home_default |
| 46 | &key_vol_up_default |
| 47 | &key_cam_snapshot_default |
| 48 | &key_cam_focus_default>; |
| 49 | |
| 50 | home { |
| 51 | label = "home"; |
| 52 | gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; |
| 53 | linux,input-type = <1>; |
| 54 | linux,code = <102>; |
| 55 | gpio-key,wakeup; |
| 56 | debounce-interval = <15>; |
| 57 | linux,can-disable; |
| 58 | }; |
| 59 | |
| 60 | vol_up { |
| 61 | label = "volume_up"; |
| 62 | gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; |
| 63 | linux,input-type = <1>; |
| 64 | linux,code = <115>; |
| 65 | gpio-key,wakeup; |
| 66 | debounce-interval = <15>; |
| 67 | linux,can-disable; |
| 68 | }; |
| 69 | |
| 70 | cam_snapshot { |
| 71 | label = "cam_snapshot"; |
| 72 | gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>; |
| 73 | linux,input-type = <1>; |
| 74 | linux,code = <766>; |
| 75 | gpio-key,wakeup; |
| 76 | debounce-interval = <15>; |
| 77 | linux,can-disable; |
| 78 | }; |
| 79 | |
| 80 | cam_focus { |
| 81 | label = "cam_focus"; |
| 82 | gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>; |
| 83 | linux,input-type = <1>; |
| 84 | linux,code = <528>; |
| 85 | gpio-key,wakeup; |
| 86 | debounce-interval = <15>; |
| 87 | linux,can-disable; |
| 88 | }; |
| 89 | }; |
Banajit Goswami | c0b7581 | 2017-03-16 16:14:17 -0700 | [diff] [blame] | 90 | }; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 91 | |
Ram Chandrasekar | 316c393 | 2017-04-25 12:48:55 -0600 | [diff] [blame] | 92 | &mdss_mdp { |
| 93 | #cooling-cells = <2>; |
| 94 | }; |
| 95 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 96 | &ufsphy_mem { |
| 97 | compatible = "qcom,ufs-phy-qmp-v3"; |
| 98 | |
| 99 | vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| 100 | vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 101 | vdda-phy-max-microamp = <62900>; |
| 102 | vdda-pll-max-microamp = <18300>; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 103 | |
| 104 | status = "ok"; |
| 105 | }; |
| 106 | |
| 107 | &ufshc_mem { |
| 108 | vdd-hba-supply = <&ufs_phy_gdsc>; |
| 109 | vdd-hba-fixed-regulator; |
| 110 | vcc-supply = <&pm8998_l20>; |
| 111 | vccq2-supply = <&pm8998_s4>; |
| 112 | vcc-max-microamp = <600000>; |
| 113 | vccq2-max-microamp = <600000>; |
| 114 | |
Subhash Jadavani | 0548017 | 2017-04-01 15:51:52 -0700 | [diff] [blame] | 115 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 116 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 117 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 118 | status = "ok"; |
| 119 | }; |
| 120 | |
Subhash Jadavani | dd416c4 | 2017-05-15 11:54:10 -0700 | [diff] [blame] | 121 | &extcon_storage_cd { |
| 122 | gpio = <&tlmm 126 GPIO_ACTIVE_LOW>; |
| 123 | debounce-ms = <200>; |
| 124 | irq-flags = <IRQ_TYPE_EDGE_BOTH>; |
| 125 | |
| 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&storage_cd>; |
| 128 | |
| 129 | status = "ok"; |
| 130 | }; |
| 131 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 132 | &ufsphy_card { |
| 133 | compatible = "qcom,ufs-phy-qmp-v3"; |
| 134 | |
| 135 | vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| 136 | vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 137 | vdda-phy-max-microamp = <62900>; |
| 138 | vdda-pll-max-microamp = <18300>; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 139 | |
| 140 | status = "ok"; |
| 141 | }; |
| 142 | |
| 143 | &ufshc_card { |
| 144 | vdd-hba-supply = <&ufs_card_gdsc>; |
| 145 | vdd-hba-fixed-regulator; |
| 146 | vcc-supply = <&pm8998_l21>; |
| 147 | vccq2-supply = <&pm8998_s4>; |
| 148 | vcc-max-microamp = <300000>; |
| 149 | vccq2-max-microamp = <300000>; |
| 150 | |
Subhash Jadavani | 0548017 | 2017-04-01 15:51:52 -0700 | [diff] [blame] | 151 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 152 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 153 | |
Subhash Jadavani | 10e7bde | 2017-05-05 10:29:53 -0700 | [diff] [blame] | 154 | extcon = <&extcon_storage_cd>; |
| 155 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 156 | status = "ok"; |
| 157 | }; |
Subbaraman Narayanamurthy | cd21c81 | 2017-03-30 18:36:49 -0700 | [diff] [blame] | 158 | |
Xiaonian Wang | e5dedbb | 2017-04-08 06:48:59 +0800 | [diff] [blame] | 159 | &sdhc_2 { |
| 160 | vdd-supply = <&pm8998_l21>; |
| 161 | qcom,vdd-voltage-level = <2950000 2960000>; |
| 162 | qcom,vdd-current-level = <200 800000>; |
| 163 | |
| 164 | vdd-io-supply = <&pm8998_l13>; |
| 165 | qcom,vdd-io-voltage-level = <1808000 2960000>; |
| 166 | qcom,vdd-io-current-level = <200 22000>; |
| 167 | |
| 168 | pinctrl-names = "active", "sleep"; |
| 169 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; |
| 170 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 171 | |
Subhash Jadavani | dd416c4 | 2017-05-15 11:54:10 -0700 | [diff] [blame] | 172 | extcon = <&extcon_storage_cd>; |
| 173 | |
Xiaonian Wang | e5dedbb | 2017-04-08 06:48:59 +0800 | [diff] [blame] | 174 | status = "ok"; |
| 175 | }; |
| 176 | |
Subbaraman Narayanamurthy | 58377f0 | 2017-03-21 20:38:43 -0700 | [diff] [blame] | 177 | &pmi8998_switch1 { |
Subbaraman Narayanamurthy | cd21c81 | 2017-03-30 18:36:49 -0700 | [diff] [blame] | 178 | pinctrl-names = "led_enable", "led_disable"; |
| 179 | pinctrl-0 = <&flash_led3_front_en>; |
| 180 | pinctrl-1 = <&flash_led3_front_dis>; |
| 181 | }; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 182 | |
| 183 | &pmi8998_charger { |
| 184 | qcom,batteryless-platform; |
| 185 | }; |
Girish Mahadevan | 11bc2ff | 2017-04-08 08:26:35 -0600 | [diff] [blame] | 186 | |
Kyle Yan | db9fe12 | 2017-07-06 14:58:09 -0700 | [diff] [blame] | 187 | &vendor { |
Jack Pham | c2160c84 | 2017-04-05 09:48:59 -0700 | [diff] [blame] | 188 | extcon_usb1: extcon_usb1 { |
| 189 | compatible = "linux,extcon-usb-gpio"; |
| 190 | id-gpio = <&pmi8998_gpios 9 GPIO_ACTIVE_HIGH>; |
| 191 | vbus-gpio = <&pmi8998_gpios 8 GPIO_ACTIVE_HIGH>; |
| 192 | |
| 193 | pinctrl-names = "default"; |
| 194 | pinctrl-0 = <&usb2_vbus_det_default |
| 195 | &usb2_id_det_default>; |
| 196 | }; |
| 197 | |
| 198 | usb1_vbus_vreg: usb1_vbus_vreg { |
| 199 | compatible = "regulator-fixed"; |
| 200 | regulator-name = "usb_vbus_vreg"; |
| 201 | gpio = <&pmi8998_gpios 2 GPIO_ACTIVE_HIGH>; |
| 202 | enable-active-high; |
| 203 | |
| 204 | /* Typical EN-to-VBUS turn on time for NX5P1100 */ |
| 205 | regulator-enable-ramp-delay = <630>; |
| 206 | |
| 207 | pinctrl-names = "default"; |
| 208 | pinctrl-0 = <&usb2_vbus_boost_default>; |
| 209 | }; |
Girish Mahadevan | 11bc2ff | 2017-04-08 08:26:35 -0600 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | &qupv3_se9_2uart { |
| 213 | status = "ok"; |
| 214 | }; |
| 215 | |
Shashank Babu Chinta Venkata | 59e305f | 2017-04-05 12:14:18 -0700 | [diff] [blame] | 216 | &labibb { |
| 217 | status = "ok"; |
| 218 | qcom,qpnp-labibb-mode = "lcd"; |
| 219 | }; |
| 220 | |
| 221 | &dsi_dual_nt35597_truly_video { |
| 222 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 223 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 224 | qcom,mdss-dsi-bl-min-level = <1>; |
| 225 | qcom,mdss-dsi-bl-max-level = <4095>; |
Vara Reddy | 199c282 | 2017-05-19 10:14:44 -0700 | [diff] [blame] | 226 | qcom,mdss-dsi-mode-sel-gpio-state = "dual_port"; |
Shashank Babu Chinta Venkata | 59e305f | 2017-04-05 12:14:18 -0700 | [diff] [blame] | 227 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 228 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 229 | }; |
| 230 | |
Shashank Babu Chinta Venkata | c5ab019 | 2017-05-15 09:57:19 -0700 | [diff] [blame] | 231 | &dsi_dual_nt35597_truly_cmd { |
| 232 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 233 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 234 | qcom,mdss-dsi-bl-min-level = <1>; |
| 235 | qcom,mdss-dsi-bl-max-level = <4095>; |
Vara Reddy | 199c282 | 2017-05-19 10:14:44 -0700 | [diff] [blame] | 236 | qcom,mdss-dsi-mode-sel-gpio-state = "dual_port"; |
| 237 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 238 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 239 | qcom,platform-te-gpio = <&tlmm 10 0>; |
| 240 | }; |
| 241 | |
| 242 | &dsi_nt35597_truly_dsc_cmd { |
| 243 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 244 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 245 | qcom,mdss-dsi-bl-min-level = <1>; |
| 246 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 247 | qcom,mdss-dsi-mode-sel-gpio-state = "single_port"; |
| 248 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 249 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 250 | qcom,platform-te-gpio = <&tlmm 10 0>; |
| 251 | }; |
| 252 | |
| 253 | &dsi_nt35597_truly_dsc_video { |
| 254 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 255 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 256 | qcom,mdss-dsi-bl-min-level = <1>; |
| 257 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 258 | qcom,mdss-dsi-mode-sel-gpio-state = "single_port"; |
Shashank Babu Chinta Venkata | c5ab019 | 2017-05-15 09:57:19 -0700 | [diff] [blame] | 259 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 260 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 261 | }; |
| 262 | |
Lloyd Atkinson | 24f743f | 2017-05-12 11:48:51 -0400 | [diff] [blame] | 263 | &dsi_sharp_1080_cmd { |
| 264 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 265 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 266 | qcom,mdss-dsi-bl-min-level = <1>; |
| 267 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 268 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 269 | }; |
| 270 | |
Narendra Muppalla | e8c25c8 | 2017-04-02 19:20:57 -0700 | [diff] [blame] | 271 | &dsi_sim_vid { |
| 272 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 273 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 274 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 275 | }; |
| 276 | |
| 277 | &dsi_dual_sim_vid { |
| 278 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 279 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 280 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 281 | }; |
| 282 | |
Narendra Muppalla | a1a5546 | 2017-04-04 18:07:27 -0700 | [diff] [blame] | 283 | &dsi_sim_cmd { |
| 284 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 285 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 286 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 287 | }; |
| 288 | |
| 289 | &dsi_dual_sim_cmd { |
| 290 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 291 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 292 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 293 | }; |
| 294 | |
Rajkumar Subbiah | 01671a4 | 2017-07-14 16:41:01 -0400 | [diff] [blame^] | 295 | &dsi_sim_dsc_375_cmd { |
| 296 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 297 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 298 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 299 | }; |
| 300 | |
| 301 | &dsi_dual_sim_dsc_375_cmd { |
| 302 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 303 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 304 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 305 | }; |
| 306 | |
Vara Reddy | 9f484ac | 2017-06-14 15:20:43 -0700 | [diff] [blame] | 307 | &dsi_nt35597_truly_dsc_cmd_display { |
Shashank Babu Chinta Venkata | 59e305f | 2017-04-05 12:14:18 -0700 | [diff] [blame] | 308 | qcom,dsi-display-active; |
| 309 | }; |
| 310 | |
| 311 | &pmi8998_wled { |
| 312 | status = "okay"; |
| 313 | qcom,led-strings-list = [01 02]; |
| 314 | }; |
| 315 | |
Subbaraman Narayanamurthy | b634048 | 2017-05-15 20:08:15 -0700 | [diff] [blame] | 316 | &pmi8998_haptics { |
| 317 | qcom,vmax-mv = <2400>; |
| 318 | qcom,lra-auto-mode; |
| 319 | status = "okay"; |
| 320 | }; |
| 321 | |
Girish Mahadevan | 11bc2ff | 2017-04-08 08:26:35 -0600 | [diff] [blame] | 322 | &qupv3_se8_spi { |
| 323 | status = "ok"; |
| 324 | }; |
| 325 | |
| 326 | &qupv3_se3_i2c { |
| 327 | status = "ok"; |
Gaurav Singhal | f6d253d | 2017-05-11 08:24:40 +0530 | [diff] [blame] | 328 | nq@28 { |
| 329 | compatible = "qcom,nq-nci"; |
| 330 | reg = <0x28>; |
| 331 | qcom,nq-irq = <&tlmm 63 0x00>; |
| 332 | qcom,nq-ven = <&tlmm 12 0x00>; |
| 333 | qcom,nq-firm = <&tlmm 62 0x00>; |
| 334 | qcom,nq-clkreq = <&pm8998_gpios 21 0x00>; |
| 335 | qcom,nq-esepwr = <&tlmm 116 0x00>; |
| 336 | interrupt-parent = <&tlmm>; |
| 337 | qcom,clk-src = "BBCLK3"; |
| 338 | interrupts = <63 0>; |
| 339 | interrupt-names = "nfc_irq"; |
| 340 | pinctrl-names = "nfc_active", "nfc_suspend"; |
Gaurav Singhal | 243b94b | 2017-06-20 14:16:59 +0530 | [diff] [blame] | 341 | pinctrl-0 = <&nfc_int_active |
| 342 | &nfc_enable_active |
| 343 | &nfc_clk_default>; |
Gaurav Singhal | f6d253d | 2017-05-11 08:24:40 +0530 | [diff] [blame] | 344 | pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; |
| 345 | clocks = <&clock_rpmh RPMH_LN_BB_CLK3>; |
| 346 | clock-names = "ref_clk"; |
| 347 | }; |
Girish Mahadevan | 11bc2ff | 2017-04-08 08:26:35 -0600 | [diff] [blame] | 348 | }; |
| 349 | |
| 350 | &qupv3_se10_i2c { |
| 351 | status = "ok"; |
| 352 | }; |
Jack Pham | c2160c84 | 2017-04-05 09:48:59 -0700 | [diff] [blame] | 353 | |
Girish Mahadevan | 1d38bd3 | 2017-04-11 17:59:47 -0600 | [diff] [blame] | 354 | &qupv3_se6_4uart { |
| 355 | status = "ok"; |
| 356 | }; |
| 357 | |
Jack Pham | c2160c84 | 2017-04-05 09:48:59 -0700 | [diff] [blame] | 358 | &usb1 { |
| 359 | status = "okay"; |
| 360 | extcon = <&extcon_usb1>; |
| 361 | vbus_dwc3-supply = <&usb1_vbus_vreg>; |
| 362 | }; |
| 363 | |
| 364 | &qusb_phy1 { |
| 365 | status = "okay"; |
| 366 | }; |
| 367 | |
| 368 | &usb_qmp_phy { |
| 369 | status = "okay"; |
| 370 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 371 | |
| 372 | &pm8998_vadc { |
| 373 | chan@83 { |
| 374 | label = "vph_pwr"; |
| 375 | reg = <0x83>; |
| 376 | qcom,decimation = <2>; |
| 377 | qcom,pre-div-channel-scaling = <1>; |
| 378 | qcom,calibration-type = "absolute"; |
| 379 | qcom,scale-function = <0>; |
| 380 | qcom,hw-settle-time = <0>; |
| 381 | qcom,fast-avg-setup = <0>; |
| 382 | }; |
| 383 | |
| 384 | chan@85 { |
| 385 | label = "vcoin"; |
| 386 | reg = <0x85>; |
| 387 | qcom,decimation = <2>; |
| 388 | qcom,pre-div-channel-scaling = <1>; |
| 389 | qcom,calibration-type = "absolute"; |
| 390 | qcom,scale-function = <0>; |
| 391 | qcom,hw-settle-time = <0>; |
| 392 | qcom,fast-avg-setup = <0>; |
| 393 | }; |
| 394 | |
| 395 | chan@4c { |
| 396 | label = "xo_therm"; |
| 397 | reg = <0x4c>; |
| 398 | qcom,decimation = <2>; |
| 399 | qcom,pre-div-channel-scaling = <0>; |
| 400 | qcom,calibration-type = "ratiometric"; |
| 401 | qcom,scale-function = <4>; |
| 402 | qcom,hw-settle-time = <2>; |
| 403 | qcom,fast-avg-setup = <0>; |
| 404 | }; |
| 405 | |
| 406 | chan@4d { |
| 407 | label = "msm_therm"; |
| 408 | reg = <0x4d>; |
| 409 | qcom,decimation = <2>; |
| 410 | qcom,pre-div-channel-scaling = <0>; |
| 411 | qcom,calibration-type = "ratiometric"; |
| 412 | qcom,scale-function = <2>; |
| 413 | qcom,hw-settle-time = <2>; |
| 414 | qcom,fast-avg-setup = <0>; |
| 415 | }; |
| 416 | |
| 417 | chan@4f { |
| 418 | label = "pa_therm1"; |
| 419 | reg = <0x4f>; |
| 420 | qcom,decimation = <2>; |
| 421 | qcom,pre-div-channel-scaling = <0>; |
| 422 | qcom,calibration-type = "ratiometric"; |
| 423 | qcom,scale-function = <2>; |
| 424 | qcom,hw-settle-time = <2>; |
| 425 | qcom,fast-avg-setup = <0>; |
| 426 | }; |
| 427 | |
| 428 | chan@51 { |
| 429 | label = "quiet_therm"; |
| 430 | reg = <0x51>; |
| 431 | qcom,decimation = <2>; |
| 432 | qcom,pre-div-channel-scaling = <0>; |
| 433 | qcom,calibration-type = "ratiometric"; |
| 434 | qcom,scale-function = <2>; |
| 435 | qcom,hw-settle-time = <2>; |
| 436 | qcom,fast-avg-setup = <0>; |
| 437 | }; |
| 438 | }; |
| 439 | |
| 440 | &pm8998_adc_tm { |
| 441 | chan@83 { |
| 442 | label = "vph_pwr"; |
| 443 | reg = <0x83>; |
| 444 | qcom,pre-div-channel-scaling = <1>; |
| 445 | qcom,calibration-type = "absolute"; |
| 446 | qcom,scale-function = <0>; |
| 447 | qcom,hw-settle-time = <0>; |
| 448 | qcom,btm-channel-number = <0x60>; |
| 449 | }; |
Siddartha Mohanadoss | d550ea4 | 2017-05-12 10:03:17 -0700 | [diff] [blame] | 450 | |
| 451 | chan@4c { |
| 452 | label = "xo_therm"; |
| 453 | reg = <0x4c>; |
| 454 | qcom,pre-div-channel-scaling = <0>; |
| 455 | qcom,calibration-type = "ratiometric"; |
| 456 | qcom,scale-function = <4>; |
| 457 | qcom,hw-settle-time = <2>; |
| 458 | qcom,btm-channel-number = <0x68>; |
| 459 | qcom,thermal-node; |
| 460 | }; |
| 461 | |
| 462 | chan@4d { |
| 463 | label = "msm_therm"; |
| 464 | reg = <0x4d>; |
| 465 | qcom,pre-div-channel-scaling = <0>; |
| 466 | qcom,calibration-type = "ratiometric"; |
| 467 | qcom,scale-function = <2>; |
| 468 | qcom,hw-settle-time = <2>; |
| 469 | qcom,btm-channel-number = <0x70>; |
| 470 | qcom,thermal-node; |
| 471 | }; |
| 472 | |
| 473 | chan@4f { |
| 474 | label = "pa_therm1"; |
| 475 | reg = <0x4f>; |
| 476 | qcom,pre-div-channel-scaling = <0>; |
| 477 | qcom,calibration-type = "ratiometric"; |
| 478 | qcom,scale-function = <2>; |
| 479 | qcom,hw-settle-time = <2>; |
| 480 | qcom,btm-channel-number = <0x78>; |
| 481 | qcom,thermal-node; |
| 482 | }; |
| 483 | |
| 484 | chan@51 { |
| 485 | label = "quiet_therm"; |
| 486 | reg = <0x51>; |
| 487 | qcom,pre-div-channel-scaling = <0>; |
| 488 | qcom,calibration-type = "ratiometric"; |
| 489 | qcom,scale-function = <2>; |
| 490 | qcom,hw-settle-time = <2>; |
| 491 | qcom,btm-channel-number = <0x80>; |
| 492 | qcom,thermal-node; |
| 493 | }; |
Siddartha Mohanadoss | 0fbfc82 | 2017-04-21 11:41:32 -0700 | [diff] [blame] | 494 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 495 | |
Siddartha Mohanadoss | 0fbfc82 | 2017-04-21 11:41:32 -0700 | [diff] [blame] | 496 | &thermal_zones { |
| 497 | xo-therm-adc { |
| 498 | polling-delay-passive = <0>; |
| 499 | polling-delay = <0>; |
Siddartha Mohanadoss | d550ea4 | 2017-05-12 10:03:17 -0700 | [diff] [blame] | 500 | thermal-sensors = <&pm8998_adc_tm 0x4c>; |
| 501 | thermal-governor = "user_space"; |
| 502 | |
| 503 | trips { |
| 504 | active-config0 { |
| 505 | temperature = <65000>; |
| 506 | hysteresis = <1000>; |
| 507 | type = "passive"; |
| 508 | }; |
| 509 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 510 | }; |
| 511 | |
Siddartha Mohanadoss | 0fbfc82 | 2017-04-21 11:41:32 -0700 | [diff] [blame] | 512 | msm-therm-adc { |
| 513 | polling-delay-passive = <0>; |
| 514 | polling-delay = <0>; |
Siddartha Mohanadoss | d550ea4 | 2017-05-12 10:03:17 -0700 | [diff] [blame] | 515 | thermal-sensors = <&pm8998_adc_tm 0x4d>; |
| 516 | thermal-governor = "user_space"; |
| 517 | |
| 518 | trips { |
| 519 | active-config0 { |
| 520 | temperature = <65000>; |
| 521 | hysteresis = <1000>; |
| 522 | type = "passive"; |
| 523 | }; |
| 524 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 525 | }; |
| 526 | |
Siddartha Mohanadoss | 0fbfc82 | 2017-04-21 11:41:32 -0700 | [diff] [blame] | 527 | pa-therm1-adc { |
| 528 | polling-delay-passive = <0>; |
| 529 | polling-delay = <0>; |
Siddartha Mohanadoss | d550ea4 | 2017-05-12 10:03:17 -0700 | [diff] [blame] | 530 | thermal-sensors = <&pm8998_adc_tm 0x4f>; |
| 531 | thermal-governor = "user_space"; |
| 532 | |
| 533 | trips { |
| 534 | active-config0 { |
| 535 | temperature = <65000>; |
| 536 | hysteresis = <1000>; |
| 537 | type = "passive"; |
| 538 | }; |
| 539 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 540 | }; |
| 541 | |
Siddartha Mohanadoss | 0fbfc82 | 2017-04-21 11:41:32 -0700 | [diff] [blame] | 542 | quiet-therm-adc { |
| 543 | polling-delay-passive = <0>; |
| 544 | polling-delay = <0>; |
Siddartha Mohanadoss | d550ea4 | 2017-05-12 10:03:17 -0700 | [diff] [blame] | 545 | thermal-sensors = <&pm8998_adc_tm 0x51>; |
| 546 | thermal-governor = "user_space"; |
| 547 | |
| 548 | trips { |
| 549 | active-config0 { |
| 550 | temperature = <65000>; |
| 551 | hysteresis = <1000>; |
| 552 | type = "passive"; |
| 553 | }; |
| 554 | }; |
Siddartha Mohanadoss | 8102196 | 2017-04-12 11:31:00 -0700 | [diff] [blame] | 555 | }; |
| 556 | }; |
Maya Erez | 6e14acb | 2017-05-16 09:59:02 +0300 | [diff] [blame] | 557 | |
| 558 | &wil6210 { |
| 559 | status = "ok"; |
| 560 | }; |
Harry Yang | 4c05d3e4 | 2017-05-09 16:18:17 -0700 | [diff] [blame] | 561 | |
| 562 | &ext_5v_boost { |
| 563 | status = "ok"; |
| 564 | }; |