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