Channagoud Kadabi | 44da495 | 2017-03-20 20:35:56 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 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 | */ |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 12 | |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 13 | #include "sdm845-pmic-overlay.dtsi" |
| 14 | #include "sdm845-pinctrl-overlay.dtsi" |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 15 | #include "smb1355.dtsi" |
Kyle Yan | 1686053 | 2017-05-05 15:38:47 -0700 | [diff] [blame] | 16 | #include <dt-bindings/gpio/gpio.h> |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 17 | |
Kyle Yan | db9fe12 | 2017-07-06 14:58:09 -0700 | [diff] [blame] | 18 | &vendor { |
Sungjun Park | bd0446d | 2017-05-17 14:07: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 | |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 40 | qrd_batterydata: qcom,battery-data { |
| 41 | qcom,batt-id-range-pct = <15>; |
Fenglin Wu | 4c07702 | 2017-08-15 07:32:10 +0800 | [diff] [blame] | 42 | #include "fg-gen3-batterydata-gt3746a6-2900mah.dtsi" |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 43 | }; |
Girish Mahadevan | b8f9deb | 2017-05-08 14:14:46 -0600 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | &qupv3_se9_2uart { |
| 47 | status = "ok"; |
| 48 | }; |
| 49 | |
| 50 | &qupv3_se8_spi { |
| 51 | status = "ok"; |
| 52 | }; |
| 53 | |
| 54 | &qupv3_se3_i2c { |
| 55 | status = "ok"; |
Gaurav Singhal | f6d253d | 2017-05-11 08:24:40 +0530 | [diff] [blame] | 56 | nq@28 { |
| 57 | compatible = "qcom,nq-nci"; |
| 58 | reg = <0x28>; |
| 59 | qcom,nq-irq = <&tlmm 63 0x00>; |
| 60 | qcom,nq-ven = <&tlmm 12 0x00>; |
| 61 | qcom,nq-firm = <&tlmm 62 0x00>; |
| 62 | qcom,nq-clkreq = <&pm8998_gpios 21 0x00>; |
| 63 | qcom,nq-esepwr = <&tlmm 116 0x00>; |
| 64 | interrupt-parent = <&tlmm>; |
| 65 | qcom,clk-src = "BBCLK3"; |
| 66 | interrupts = <63 0>; |
| 67 | interrupt-names = "nfc_irq"; |
| 68 | pinctrl-names = "nfc_active", "nfc_suspend"; |
Gaurav Singhal | 243b94b | 2017-06-20 14:16:59 +0530 | [diff] [blame] | 69 | pinctrl-0 = <&nfc_int_active |
| 70 | &nfc_enable_active |
| 71 | &nfc_clk_default>; |
Gaurav Singhal | f6d253d | 2017-05-11 08:24:40 +0530 | [diff] [blame] | 72 | pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; |
| 73 | clocks = <&clock_rpmh RPMH_LN_BB_CLK3>; |
| 74 | clock-names = "ref_clk"; |
| 75 | }; |
Girish Mahadevan | b8f9deb | 2017-05-08 14:14:46 -0600 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | &qupv3_se10_i2c { |
| 79 | status = "ok"; |
| 80 | }; |
| 81 | |
| 82 | &qupv3_se6_4uart { |
| 83 | status = "ok"; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | &pmi8998_fg { |
| 87 | qcom,battery-data = <&qrd_batterydata>; |
Fenglin Wu | da34a90 | 2017-08-10 16:03:24 +0800 | [diff] [blame] | 88 | qcom,fg-bmd-en-delay-ms = <300>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 89 | }; |
Xiaoyu Ye | 7370212 | 2017-04-07 17:55:01 -0700 | [diff] [blame] | 90 | |
Harry Yang | f599932 | 2017-09-12 15:31:16 -0700 | [diff] [blame] | 91 | &smb1355_charger_0 { |
| 92 | status = "ok"; |
| 93 | }; |
| 94 | |
| 95 | &smb1355_charger_1 { |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 96 | status = "ok"; |
| 97 | }; |
| 98 | |
Ram Chandrasekar | 316c393 | 2017-04-25 12:48:55 -0600 | [diff] [blame] | 99 | &mdss_mdp { |
| 100 | #cooling-cells = <2>; |
| 101 | }; |
| 102 | |
Kyle Yan | 1686053 | 2017-05-05 15:38:47 -0700 | [diff] [blame] | 103 | &ufsphy_mem { |
| 104 | compatible = "qcom,ufs-phy-qmp-v3"; |
| 105 | |
| 106 | vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| 107 | vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
| 108 | vdda-phy-max-microamp = <62900>; |
| 109 | vdda-pll-max-microamp = <18300>; |
| 110 | |
| 111 | status = "ok"; |
| 112 | }; |
| 113 | |
| 114 | &ufshc_mem { |
| 115 | vdd-hba-supply = <&ufs_phy_gdsc>; |
| 116 | vdd-hba-fixed-regulator; |
| 117 | vcc-supply = <&pm8998_l20>; |
Bao D. Nguyen | 61e7a1a | 2017-09-11 12:30:01 -0700 | [diff] [blame] | 118 | vcc-voltage-level = <2950000 2960000>; |
Kyle Yan | 1686053 | 2017-05-05 15:38:47 -0700 | [diff] [blame] | 119 | vccq2-supply = <&pm8998_s4>; |
| 120 | vcc-max-microamp = <600000>; |
| 121 | vccq2-max-microamp = <600000>; |
| 122 | |
| 123 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 124 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 125 | |
| 126 | status = "ok"; |
| 127 | }; |
| 128 | |
Subhash Jadavani | e6e1252 | 2017-06-07 14:23:55 -0700 | [diff] [blame] | 129 | &sdhc_2 { |
| 130 | vdd-supply = <&pm8998_l21>; |
| 131 | qcom,vdd-voltage-level = <2950000 2960000>; |
| 132 | qcom,vdd-current-level = <200 800000>; |
| 133 | |
| 134 | vdd-io-supply = <&pm8998_l13>; |
| 135 | qcom,vdd-io-voltage-level = <1808000 2960000>; |
| 136 | qcom,vdd-io-current-level = <200 22000>; |
| 137 | |
| 138 | pinctrl-names = "active", "sleep"; |
Subhash Jadavani | 0a97523 | 2017-09-27 11:43:28 -0700 | [diff] [blame] | 139 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &storage_cd>; |
| 140 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>; |
Subhash Jadavani | e6e1252 | 2017-06-07 14:23:55 -0700 | [diff] [blame] | 141 | |
Subhash Jadavani | 0a97523 | 2017-09-27 11:43:28 -0700 | [diff] [blame] | 142 | cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; |
Subhash Jadavani | e6e1252 | 2017-06-07 14:23:55 -0700 | [diff] [blame] | 143 | |
| 144 | status = "ok"; |
| 145 | }; |
| 146 | |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 147 | &labibb { |
| 148 | status = "ok"; |
| 149 | qcom,qpnp-labibb-mode = "lcd"; |
| 150 | }; |
| 151 | |
| 152 | &pmi8998_wled { |
| 153 | status = "okay"; |
| 154 | qcom,led-strings-list = [01 02]; |
| 155 | }; |
| 156 | |
Subbaraman Narayanamurthy | 3c2b7b3 | 2017-07-21 13:45:55 -0700 | [diff] [blame] | 157 | &pmi8998_haptics { |
| 158 | qcom,vmax-mv = <1800>; |
| 159 | qcom,wave-play-rate-us = <4347>; |
| 160 | qcom,lra-auto-mode; |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 164 | &mdss_mdp { |
Yuan Zhao | 25ac70a | 2017-12-05 18:52:03 +0800 | [diff] [blame] | 165 | connectors = <&sde_rscc &sde_wb &sde_dp>; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 166 | }; |
| 167 | |
Narendra Muppalla | 48a2724 | 2017-08-01 16:07:46 -0700 | [diff] [blame] | 168 | &dsi_nt35597_truly_dsc_cmd { |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 169 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 170 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 171 | qcom,mdss-dsi-bl-min-level = <1>; |
| 172 | qcom,mdss-dsi-bl-max-level = <4095>; |
Narendra Muppalla | 48a2724 | 2017-08-01 16:07:46 -0700 | [diff] [blame] | 173 | qcom,mdss-dsi-mode-sel-gpio-state = "single_port"; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 174 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 175 | qcom,platform-te-gpio = <&tlmm 10 0>; |
| 176 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
Dhaval Patel | 3d43fc4 | 2017-05-17 17:52:05 -0700 | [diff] [blame] | 177 | qcom,mdss-dsi-panel-orientation = "180"; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 178 | }; |
| 179 | |
Narendra Muppalla | 48a2724 | 2017-08-01 16:07:46 -0700 | [diff] [blame] | 180 | &dsi_nt35597_truly_dsc_video { |
Vara Reddy | 07f4136 | 2017-06-20 19:54:06 -0700 | [diff] [blame] | 181 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 182 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 183 | qcom,mdss-dsi-bl-min-level = <1>; |
| 184 | qcom,mdss-dsi-bl-max-level = <4095>; |
Narendra Muppalla | 48a2724 | 2017-08-01 16:07:46 -0700 | [diff] [blame] | 185 | qcom,mdss-dsi-mode-sel-gpio-state = "single_port"; |
Vara Reddy | 07f4136 | 2017-06-20 19:54:06 -0700 | [diff] [blame] | 186 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 187 | qcom,platform-te-gpio = <&tlmm 10 0>; |
| 188 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
| 189 | qcom,mdss-dsi-panel-orientation = "180"; |
| 190 | }; |
| 191 | |
Narendra Muppalla | 48a2724 | 2017-08-01 16:07:46 -0700 | [diff] [blame] | 192 | &dsi_nt35597_truly_dsc_cmd_display { |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 193 | qcom,dsi-display-active; |
| 194 | }; |
Maya Erez | 6e14acb | 2017-05-16 09:59:02 +0300 | [diff] [blame] | 195 | |
| 196 | &wil6210 { |
| 197 | status = "ok"; |
| 198 | }; |
Harry Yang | 4c05d3e4 | 2017-05-09 16:18:17 -0700 | [diff] [blame] | 199 | |
| 200 | &ext_5v_boost { |
| 201 | status = "ok"; |
| 202 | }; |
Siddartha Mohanadoss | 9a3bf9a | 2017-06-20 13:08:40 -0700 | [diff] [blame] | 203 | |
| 204 | &pm8998_vadc { |
| 205 | chan@83 { |
| 206 | label = "vph_pwr"; |
| 207 | reg = <0x83>; |
| 208 | qcom,decimation = <2>; |
| 209 | qcom,pre-div-channel-scaling = <1>; |
| 210 | qcom,calibration-type = "absolute"; |
| 211 | qcom,scale-function = <0>; |
| 212 | qcom,hw-settle-time = <0>; |
| 213 | qcom,fast-avg-setup = <0>; |
| 214 | }; |
| 215 | |
| 216 | chan@85 { |
| 217 | label = "vcoin"; |
| 218 | reg = <0x85>; |
| 219 | qcom,decimation = <2>; |
| 220 | qcom,pre-div-channel-scaling = <1>; |
| 221 | qcom,calibration-type = "absolute"; |
| 222 | qcom,scale-function = <0>; |
| 223 | qcom,hw-settle-time = <0>; |
| 224 | qcom,fast-avg-setup = <0>; |
| 225 | }; |
| 226 | |
| 227 | chan@4c { |
| 228 | label = "xo_therm"; |
| 229 | reg = <0x4c>; |
| 230 | qcom,decimation = <2>; |
| 231 | qcom,pre-div-channel-scaling = <0>; |
| 232 | qcom,calibration-type = "ratiometric"; |
| 233 | qcom,scale-function = <4>; |
| 234 | qcom,hw-settle-time = <2>; |
| 235 | qcom,fast-avg-setup = <0>; |
| 236 | }; |
| 237 | |
| 238 | chan@4d { |
| 239 | label = "msm_therm"; |
| 240 | reg = <0x4d>; |
| 241 | qcom,decimation = <2>; |
| 242 | qcom,pre-div-channel-scaling = <0>; |
| 243 | qcom,calibration-type = "ratiometric"; |
| 244 | qcom,scale-function = <2>; |
| 245 | qcom,hw-settle-time = <2>; |
| 246 | qcom,fast-avg-setup = <0>; |
| 247 | }; |
| 248 | |
| 249 | chan@4f { |
| 250 | label = "pa_therm1"; |
| 251 | reg = <0x4f>; |
| 252 | qcom,decimation = <2>; |
| 253 | qcom,pre-div-channel-scaling = <0>; |
| 254 | qcom,calibration-type = "ratiometric"; |
| 255 | qcom,scale-function = <2>; |
| 256 | qcom,hw-settle-time = <2>; |
| 257 | qcom,fast-avg-setup = <0>; |
| 258 | }; |
| 259 | |
| 260 | chan@51 { |
| 261 | label = "quiet_therm"; |
| 262 | reg = <0x51>; |
| 263 | qcom,decimation = <2>; |
| 264 | qcom,pre-div-channel-scaling = <0>; |
| 265 | qcom,calibration-type = "ratiometric"; |
| 266 | qcom,scale-function = <2>; |
| 267 | qcom,hw-settle-time = <2>; |
| 268 | qcom,fast-avg-setup = <0>; |
| 269 | }; |
| 270 | }; |
| 271 | |
| 272 | &pm8998_adc_tm { |
| 273 | chan@83 { |
| 274 | label = "vph_pwr"; |
| 275 | reg = <0x83>; |
| 276 | qcom,pre-div-channel-scaling = <1>; |
| 277 | qcom,calibration-type = "absolute"; |
| 278 | qcom,scale-function = <0>; |
| 279 | qcom,hw-settle-time = <0>; |
| 280 | qcom,btm-channel-number = <0x60>; |
| 281 | }; |
| 282 | |
| 283 | chan@4c { |
| 284 | label = "xo_therm"; |
| 285 | reg = <0x4c>; |
| 286 | qcom,pre-div-channel-scaling = <0>; |
| 287 | qcom,calibration-type = "ratiometric"; |
| 288 | qcom,scale-function = <4>; |
| 289 | qcom,hw-settle-time = <2>; |
| 290 | qcom,btm-channel-number = <0x68>; |
| 291 | qcom,thermal-node; |
| 292 | }; |
| 293 | |
| 294 | chan@4d { |
| 295 | label = "msm_therm"; |
| 296 | reg = <0x4d>; |
| 297 | qcom,pre-div-channel-scaling = <0>; |
| 298 | qcom,calibration-type = "ratiometric"; |
| 299 | qcom,scale-function = <2>; |
| 300 | qcom,hw-settle-time = <2>; |
| 301 | qcom,btm-channel-number = <0x70>; |
| 302 | qcom,thermal-node; |
| 303 | }; |
| 304 | |
| 305 | chan@4f { |
| 306 | label = "pa_therm1"; |
| 307 | reg = <0x4f>; |
| 308 | qcom,pre-div-channel-scaling = <0>; |
| 309 | qcom,calibration-type = "ratiometric"; |
| 310 | qcom,scale-function = <2>; |
| 311 | qcom,hw-settle-time = <2>; |
| 312 | qcom,btm-channel-number = <0x78>; |
| 313 | qcom,thermal-node; |
| 314 | }; |
| 315 | |
| 316 | chan@51 { |
| 317 | label = "quiet_therm"; |
| 318 | reg = <0x51>; |
| 319 | qcom,pre-div-channel-scaling = <0>; |
| 320 | qcom,calibration-type = "ratiometric"; |
| 321 | qcom,scale-function = <2>; |
| 322 | qcom,hw-settle-time = <2>; |
| 323 | qcom,btm-channel-number = <0x80>; |
| 324 | qcom,thermal-node; |
| 325 | }; |
| 326 | }; |
| 327 | |
| 328 | &thermal_zones { |
| 329 | xo-therm-adc { |
| 330 | polling-delay-passive = <0>; |
| 331 | polling-delay = <0>; |
| 332 | thermal-sensors = <&pm8998_adc_tm 0x4c>; |
| 333 | thermal-governor = "user_space"; |
| 334 | |
| 335 | trips { |
| 336 | active-config0 { |
| 337 | temperature = <65000>; |
| 338 | hysteresis = <1000>; |
| 339 | type = "passive"; |
| 340 | }; |
| 341 | }; |
| 342 | }; |
| 343 | |
| 344 | msm-therm-adc { |
| 345 | polling-delay-passive = <0>; |
| 346 | polling-delay = <0>; |
| 347 | thermal-sensors = <&pm8998_adc_tm 0x4d>; |
| 348 | thermal-governor = "user_space"; |
| 349 | |
| 350 | trips { |
| 351 | active-config0 { |
| 352 | temperature = <65000>; |
| 353 | hysteresis = <1000>; |
| 354 | type = "passive"; |
| 355 | }; |
| 356 | }; |
| 357 | }; |
| 358 | |
| 359 | pa-therm1-adc { |
| 360 | polling-delay-passive = <0>; |
| 361 | polling-delay = <0>; |
| 362 | thermal-sensors = <&pm8998_adc_tm 0x4f>; |
| 363 | thermal-governor = "user_space"; |
| 364 | |
| 365 | trips { |
| 366 | active-config0 { |
| 367 | temperature = <65000>; |
| 368 | hysteresis = <1000>; |
| 369 | type = "passive"; |
| 370 | }; |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | quiet-therm-adc { |
| 375 | polling-delay-passive = <0>; |
| 376 | polling-delay = <0>; |
| 377 | thermal-sensors = <&pm8998_adc_tm 0x51>; |
| 378 | thermal-governor = "user_space"; |
| 379 | |
| 380 | trips { |
| 381 | active-config0 { |
| 382 | temperature = <65000>; |
| 383 | hysteresis = <1000>; |
| 384 | type = "passive"; |
| 385 | }; |
| 386 | }; |
| 387 | }; |
| 388 | }; |