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