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