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