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