1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * sc7280 IDP board device tree source (common 3 * sc7280 IDP board device tree source (common between SKU1 and SKU2) 4 * 4 * 5 * Copyright (c) 2021, The Linux Foundation. A 5 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 6 */ 6 */ 7 7 8 #include <dt-bindings/iio/qcom,spmi-adc7-pmk83 8 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 9 #include <dt-bindings/input/linux-event-codes. 9 #include <dt-bindings/input/linux-event-codes.h> 10 #include "sc7280.dtsi" 10 #include "sc7280.dtsi" 11 #include "pm7325.dtsi" 11 #include "pm7325.dtsi" 12 #include "pm8350c.dtsi" 12 #include "pm8350c.dtsi" 13 #include "pmk8350.dtsi" 13 #include "pmk8350.dtsi" 14 14 15 #include "sc7280-chrome-common.dtsi" 15 #include "sc7280-chrome-common.dtsi" 16 #include "sc7280-herobrine-lte-sku.dtsi" << 17 16 18 / { 17 / { 19 aliases { 18 aliases { 20 bluetooth0 = &bluetooth; 19 bluetooth0 = &bluetooth; 21 serial1 = &uart7; 20 serial1 = &uart7; 22 wifi0 = &wifi; << 23 }; << 24 << 25 max98360a: audio-codec-0 { << 26 compatible = "maxim,max98360a" << 27 pinctrl-names = "default"; << 28 pinctrl-0 = <&_en>; << 29 sdmode-gpios = <&tlmm 63 GPIO_ << 30 #sound-dai-cells = <0>; << 31 }; << 32 << 33 wcd9385: audio-codec-1 { << 34 compatible = "qcom,wcd9385-cod << 35 pinctrl-names = "default", "sl << 36 pinctrl-0 = <&wcd_reset_n>; << 37 pinctrl-1 = <&wcd_reset_n_slee << 38 << 39 reset-gpios = <&tlmm 83 GPIO_A << 40 << 41 qcom,rx-device = <&wcd_rx>; << 42 qcom,tx-device = <&wcd_tx>; << 43 << 44 vdd-rxtx-supply = <&vreg_l18b_ << 45 vdd-io-supply = <&vreg_l18b_1p << 46 vdd-buck-supply = <&vreg_l17b_ << 47 vdd-mic-bias-supply = <&vreg_b << 48 << 49 qcom,micbias1-microvolt = <180 << 50 qcom,micbias2-microvolt = <180 << 51 qcom,micbias3-microvolt = <180 << 52 qcom,micbias4-microvolt = <180 << 53 << 54 qcom,mbhc-buttons-vthreshold-m << 55 << 56 qcom,mbhc-headset-vthreshold-m << 57 qcom,mbhc-headphone-vthreshold << 58 #sound-dai-cells = <1>; << 59 }; 21 }; 60 22 61 gpio-keys { 23 gpio-keys { 62 compatible = "gpio-keys"; 24 compatible = "gpio-keys"; 63 label = "gpio-keys"; 25 label = "gpio-keys"; 64 26 65 pinctrl-names = "default"; 27 pinctrl-names = "default"; 66 pinctrl-0 = <&key_vol_up_defau 28 pinctrl-0 = <&key_vol_up_default>; 67 29 68 key-volume-up { !! 30 volume-up { 69 label = "volume_up"; 31 label = "volume_up"; 70 gpios = <&pm7325_gpios 32 gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; 71 linux,input-type = <1> 33 linux,input-type = <1>; 72 linux,code = <KEY_VOLU 34 linux,code = <KEY_VOLUMEUP>; 73 wakeup-source; !! 35 gpio-key,wakeup; 74 debounce-interval = <1 36 debounce-interval = <15>; 75 linux,can-disable; 37 linux,can-disable; 76 }; 38 }; 77 }; 39 }; 78 40 79 nvme_3v3_regulator: nvme-3v3-regulator 41 nvme_3v3_regulator: nvme-3v3-regulator { 80 compatible = "regulator-fixed" 42 compatible = "regulator-fixed"; 81 regulator-name = "VLDO_3V3"; 43 regulator-name = "VLDO_3V3"; 82 44 83 regulator-min-microvolt = <330 45 regulator-min-microvolt = <3300000>; 84 regulator-max-microvolt = <330 46 regulator-max-microvolt = <3300000>; 85 47 86 enable-active-high; 48 enable-active-high; 87 pinctrl-names = "default"; 49 pinctrl-names = "default"; 88 pinctrl-0 = <&nvme_pwren>; 50 pinctrl-0 = <&nvme_pwren>; 89 }; 51 }; 90 << 91 sound: sound { << 92 compatible = "google,sc7280-he << 93 model = "sc7280-wcd938x-max983 << 94 << 95 audio-routing = << 96 "IN1_HPHL", "HPHL_OUT" << 97 "IN2_HPHR", "HPHR_OUT" << 98 "AMIC1", "MIC BIAS1", << 99 "AMIC2", "MIC BIAS2", << 100 "VA DMIC0", "MIC BIAS3 << 101 "VA DMIC1", "MIC BIAS3 << 102 "VA DMIC2", "MIC BIAS1 << 103 "VA DMIC3", "MIC BIAS1 << 104 "TX SWR_ADC0", "ADC1_O << 105 "TX SWR_ADC1", "ADC2_O << 106 "TX SWR_ADC2", "ADC3_O << 107 "TX SWR_DMIC0", "DMIC1 << 108 "TX SWR_DMIC1", "DMIC2 << 109 "TX SWR_DMIC2", "DMIC3 << 110 "TX SWR_DMIC3", "DMIC4 << 111 "TX SWR_DMIC4", "DMIC5 << 112 "TX SWR_DMIC5", "DMIC6 << 113 "TX SWR_DMIC6", "DMIC7 << 114 "TX SWR_DMIC7", "DMIC8 << 115 << 116 #address-cells = <1>; << 117 #size-cells = <0>; << 118 << 119 dai-link@0 { << 120 link-name = "MAX98360A << 121 reg = <0>; << 122 << 123 cpu { << 124 sound-dai = <& << 125 }; << 126 << 127 codec { << 128 sound-dai = <& << 129 }; << 130 }; << 131 << 132 dai-link@1 { << 133 link-name = "DisplayPo << 134 reg = <1>; << 135 << 136 cpu { << 137 sound-dai = <& << 138 }; << 139 << 140 codec { << 141 sound-dai = <& << 142 }; << 143 }; << 144 << 145 dai-link@2 { << 146 link-name = "WCD9385 P << 147 reg = <2>; << 148 << 149 cpu { << 150 sound-dai = <& << 151 }; << 152 << 153 codec { << 154 sound-dai = <& << 155 }; << 156 }; << 157 << 158 dai-link@3 { << 159 link-name = "WCD9385 C << 160 reg = <3>; << 161 << 162 cpu { << 163 sound-dai = <& << 164 }; << 165 << 166 codec { << 167 sound-dai = <& << 168 }; << 169 }; << 170 << 171 dai-link@4 { << 172 link-name = "DMIC"; << 173 reg = <4>; << 174 << 175 cpu { << 176 sound-dai = <& << 177 }; << 178 << 179 codec { << 180 sound-dai = <& << 181 }; << 182 }; << 183 }; << 184 }; 52 }; 185 53 186 &apps_rsc { 54 &apps_rsc { 187 regulators-0 { !! 55 pm7325-regulators { 188 compatible = "qcom,pm7325-rpmh 56 compatible = "qcom,pm7325-rpmh-regulators"; 189 qcom,pmic-id = "b"; 57 qcom,pmic-id = "b"; 190 58 191 vreg_s1b_1p8: smps1 { 59 vreg_s1b_1p8: smps1 { 192 regulator-min-microvol 60 regulator-min-microvolt = <1856000>; 193 regulator-max-microvol 61 regulator-max-microvolt = <2040000>; 194 }; 62 }; 195 63 196 vreg_s7b_0p9: smps7 { 64 vreg_s7b_0p9: smps7 { 197 regulator-min-microvol 65 regulator-min-microvolt = <535000>; 198 regulator-max-microvol 66 regulator-max-microvolt = <1120000>; 199 }; 67 }; 200 68 201 vreg_s8b_1p2: smps8 { 69 vreg_s8b_1p2: smps8 { 202 regulator-min-microvol 70 regulator-min-microvolt = <1256000>; 203 regulator-max-microvol 71 regulator-max-microvolt = <1500000>; 204 }; 72 }; 205 73 206 vreg_l1b_0p8: ldo1 { 74 vreg_l1b_0p8: ldo1 { 207 regulator-min-microvol 75 regulator-min-microvolt = <825000>; 208 regulator-max-microvol 76 regulator-max-microvolt = <925000>; 209 }; 77 }; 210 78 211 vreg_l2b_3p0: ldo2 { 79 vreg_l2b_3p0: ldo2 { 212 regulator-min-microvol 80 regulator-min-microvolt = <2700000>; 213 regulator-max-microvol 81 regulator-max-microvolt = <3544000>; 214 }; 82 }; 215 83 216 vreg_l6b_1p2: ldo6 { 84 vreg_l6b_1p2: ldo6 { 217 regulator-min-microvol 85 regulator-min-microvolt = <1140000>; 218 regulator-max-microvol 86 regulator-max-microvolt = <1260000>; 219 }; 87 }; 220 88 221 vreg_l7b_2p9: ldo7 { 89 vreg_l7b_2p9: ldo7 { 222 regulator-min-microvol 90 regulator-min-microvolt = <2960000>; 223 regulator-max-microvol 91 regulator-max-microvolt = <2960000>; 224 }; 92 }; 225 93 226 vreg_l8b_0p9: ldo8 { 94 vreg_l8b_0p9: ldo8 { 227 regulator-min-microvol 95 regulator-min-microvolt = <870000>; 228 regulator-max-microvol 96 regulator-max-microvolt = <970000>; 229 }; 97 }; 230 98 231 vreg_l9b_1p2: ldo9 { 99 vreg_l9b_1p2: ldo9 { 232 regulator-min-microvol 100 regulator-min-microvolt = <1080000>; 233 regulator-max-microvol 101 regulator-max-microvolt = <1304000>; 234 }; 102 }; 235 103 236 vreg_l11b_1p7: ldo11 { 104 vreg_l11b_1p7: ldo11 { 237 regulator-min-microvol 105 regulator-min-microvolt = <1504000>; 238 regulator-max-microvol 106 regulator-max-microvolt = <2000000>; 239 }; 107 }; 240 108 241 vreg_l12b_0p8: ldo12 { 109 vreg_l12b_0p8: ldo12 { 242 regulator-min-microvol 110 regulator-min-microvolt = <751000>; 243 regulator-max-microvol 111 regulator-max-microvolt = <824000>; 244 }; 112 }; 245 113 246 vreg_l13b_0p8: ldo13 { 114 vreg_l13b_0p8: ldo13 { 247 regulator-min-microvol 115 regulator-min-microvolt = <530000>; 248 regulator-max-microvol 116 regulator-max-microvolt = <824000>; 249 }; 117 }; 250 118 251 vreg_l14b_1p2: ldo14 { 119 vreg_l14b_1p2: ldo14 { 252 regulator-min-microvol 120 regulator-min-microvolt = <1080000>; 253 regulator-max-microvol 121 regulator-max-microvolt = <1304000>; 254 }; 122 }; 255 123 256 vreg_l15b_0p8: ldo15 { 124 vreg_l15b_0p8: ldo15 { 257 regulator-min-microvol 125 regulator-min-microvolt = <765000>; 258 regulator-max-microvol 126 regulator-max-microvolt = <1020000>; 259 }; 127 }; 260 128 261 vreg_l16b_1p2: ldo16 { 129 vreg_l16b_1p2: ldo16 { 262 regulator-min-microvol 130 regulator-min-microvolt = <1100000>; 263 regulator-max-microvol 131 regulator-max-microvolt = <1300000>; 264 }; 132 }; 265 133 266 vreg_l17b_1p8: ldo17 { 134 vreg_l17b_1p8: ldo17 { 267 regulator-min-microvol 135 regulator-min-microvolt = <1700000>; 268 regulator-max-microvol 136 regulator-max-microvolt = <1900000>; 269 }; 137 }; 270 138 271 vreg_l18b_1p8: ldo18 { 139 vreg_l18b_1p8: ldo18 { 272 regulator-min-microvol 140 regulator-min-microvolt = <1800000>; 273 regulator-max-microvol 141 regulator-max-microvolt = <2000000>; 274 }; 142 }; 275 143 276 vreg_l19b_1p8: ldo19 { 144 vreg_l19b_1p8: ldo19 { 277 regulator-min-microvol 145 regulator-min-microvolt = <1800000>; 278 regulator-max-microvol 146 regulator-max-microvolt = <1800000>; 279 }; 147 }; 280 }; 148 }; 281 149 282 regulators-1 { !! 150 pm8350c-regulators { 283 compatible = "qcom,pm8350c-rpm 151 compatible = "qcom,pm8350c-rpmh-regulators"; 284 qcom,pmic-id = "c"; 152 qcom,pmic-id = "c"; 285 153 286 vreg_s1c_2p2: smps1 { 154 vreg_s1c_2p2: smps1 { 287 regulator-min-microvol 155 regulator-min-microvolt = <2190000>; 288 regulator-max-microvol 156 regulator-max-microvolt = <2210000>; 289 }; 157 }; 290 158 291 vreg_s9c_1p0: smps9 { 159 vreg_s9c_1p0: smps9 { 292 regulator-min-microvol 160 regulator-min-microvolt = <1010000>; 293 regulator-max-microvol 161 regulator-max-microvolt = <1170000>; 294 }; 162 }; 295 163 296 vreg_l1c_1p8: ldo1 { 164 vreg_l1c_1p8: ldo1 { 297 regulator-min-microvol 165 regulator-min-microvolt = <1800000>; 298 regulator-max-microvol 166 regulator-max-microvolt = <1980000>; 299 }; 167 }; 300 168 301 vreg_l2c_1p8: ldo2 { 169 vreg_l2c_1p8: ldo2 { 302 regulator-min-microvol 170 regulator-min-microvolt = <1620000>; 303 regulator-max-microvol 171 regulator-max-microvolt = <1980000>; 304 }; 172 }; 305 173 306 vreg_l3c_3p0: ldo3 { 174 vreg_l3c_3p0: ldo3 { 307 regulator-min-microvol 175 regulator-min-microvolt = <2800000>; 308 regulator-max-microvol 176 regulator-max-microvolt = <3540000>; 309 }; 177 }; 310 178 311 vreg_l4c_1p8: ldo4 { 179 vreg_l4c_1p8: ldo4 { 312 regulator-min-microvol 180 regulator-min-microvolt = <1620000>; 313 regulator-max-microvol 181 regulator-max-microvolt = <3300000>; 314 }; 182 }; 315 183 316 vreg_l5c_1p8: ldo5 { 184 vreg_l5c_1p8: ldo5 { 317 regulator-min-microvol 185 regulator-min-microvolt = <1620000>; 318 regulator-max-microvol 186 regulator-max-microvolt = <3300000>; 319 }; 187 }; 320 188 321 vreg_l6c_2p9: ldo6 { 189 vreg_l6c_2p9: ldo6 { 322 regulator-min-microvol 190 regulator-min-microvolt = <1800000>; 323 regulator-max-microvol 191 regulator-max-microvolt = <2950000>; 324 }; 192 }; 325 193 326 vreg_l7c_3p0: ldo7 { 194 vreg_l7c_3p0: ldo7 { 327 regulator-min-microvol 195 regulator-min-microvolt = <3000000>; 328 regulator-max-microvol 196 regulator-max-microvolt = <3544000>; 329 }; 197 }; 330 198 331 vreg_l8c_1p8: ldo8 { 199 vreg_l8c_1p8: ldo8 { 332 regulator-min-microvol 200 regulator-min-microvolt = <1620000>; 333 regulator-max-microvol 201 regulator-max-microvolt = <2000000>; 334 }; 202 }; 335 203 336 vreg_l9c_2p9: ldo9 { 204 vreg_l9c_2p9: ldo9 { 337 regulator-min-microvol 205 regulator-min-microvolt = <2960000>; 338 regulator-max-microvol 206 regulator-max-microvolt = <2960000>; 339 }; 207 }; 340 208 341 vreg_l10c_0p8: ldo10 { 209 vreg_l10c_0p8: ldo10 { 342 regulator-min-microvol 210 regulator-min-microvolt = <720000>; 343 regulator-max-microvol 211 regulator-max-microvolt = <1050000>; 344 }; 212 }; 345 213 346 vreg_l11c_2p8: ldo11 { 214 vreg_l11c_2p8: ldo11 { 347 regulator-min-microvol 215 regulator-min-microvolt = <2800000>; 348 regulator-max-microvol 216 regulator-max-microvolt = <3544000>; 349 }; 217 }; 350 218 351 vreg_l12c_1p8: ldo12 { 219 vreg_l12c_1p8: ldo12 { 352 regulator-min-microvol 220 regulator-min-microvolt = <1650000>; 353 regulator-max-microvol 221 regulator-max-microvolt = <2000000>; 354 }; 222 }; 355 223 356 vreg_l13c_3p0: ldo13 { 224 vreg_l13c_3p0: ldo13 { 357 regulator-min-microvol 225 regulator-min-microvolt = <2700000>; 358 regulator-max-microvol 226 regulator-max-microvolt = <3544000>; 359 }; 227 }; 360 228 361 vreg_bob: bob { 229 vreg_bob: bob { 362 regulator-min-microvol 230 regulator-min-microvolt = <3008000>; 363 regulator-max-microvol 231 regulator-max-microvolt = <3960000>; 364 }; 232 }; 365 }; 233 }; 366 }; 234 }; 367 235 368 &gpi_dma0 { !! 236 &ipa { 369 status = "okay"; << 370 }; << 371 << 372 &gpi_dma1 { << 373 status = "okay"; << 374 }; << 375 << 376 &lpass_cpu { << 377 status = "okay"; << 378 << 379 pinctrl-names = "default"; << 380 pinctrl-0 = <&mi2s1_data0>, <&mi2s1_sc << 381 << 382 dai-link@1 { << 383 reg = <MI2S_SECONDARY>; << 384 qcom,playback-sd-lines = <0>; << 385 }; << 386 << 387 dai-link@5 { << 388 reg = <LPASS_DP_RX>; << 389 }; << 390 << 391 dai-link@6 { << 392 reg = <LPASS_CDC_DMA_RX0>; << 393 }; << 394 << 395 dai-link@19 { << 396 reg = <LPASS_CDC_DMA_TX3>; << 397 }; << 398 << 399 dai-link@25 { << 400 reg = <LPASS_CDC_DMA_VA_TX0>; << 401 }; << 402 }; << 403 << 404 &lpass_rx_macro { << 405 status = "okay"; 237 status = "okay"; 406 }; !! 238 modem-init; 407 << 408 &lpass_tx_macro { << 409 status = "okay"; << 410 }; << 411 << 412 &lpass_va_macro { << 413 status = "okay"; << 414 vdd-micb-supply = <&vreg_bob>; << 415 }; 239 }; 416 240 417 &pcie1 { 241 &pcie1 { 418 status = "okay"; 242 status = "okay"; 419 perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW !! 243 perst-gpio = <&tlmm 2 GPIO_ACTIVE_LOW>; 420 244 421 vddpe-3v3-supply = <&nvme_3v3_regulato 245 vddpe-3v3-supply = <&nvme_3v3_regulator>; 422 246 423 pinctrl-names = "default"; 247 pinctrl-names = "default"; 424 pinctrl-0 = <&pcie1_reset_n>, <&pcie1_ 248 pinctrl-0 = <&pcie1_reset_n>, <&pcie1_wake_n>; 425 }; 249 }; 426 250 427 &pcie1_phy { 251 &pcie1_phy { 428 status = "okay"; 252 status = "okay"; 429 253 430 vdda-phy-supply = <&vreg_l10c_0p8>; 254 vdda-phy-supply = <&vreg_l10c_0p8>; 431 vdda-pll-supply = <&vreg_l6b_1p2>; 255 vdda-pll-supply = <&vreg_l6b_1p2>; 432 }; 256 }; 433 257 434 &pmk8350_vadc { 258 &pmk8350_vadc { 435 channel@3 { !! 259 pmk8350_die_temp { 436 reg = <PMK8350_ADC7_DIE_TEMP>; 260 reg = <PMK8350_ADC7_DIE_TEMP>; 437 label = "pmk8350_die_temp"; 261 label = "pmk8350_die_temp"; 438 qcom,pre-scaling = <1 1>; 262 qcom,pre-scaling = <1 1>; 439 }; 263 }; 440 }; 264 }; 441 265 442 &qfprom { 266 &qfprom { 443 vcc-supply = <&vreg_l1c_1p8>; 267 vcc-supply = <&vreg_l1c_1p8>; 444 }; 268 }; 445 269 446 &qupv3_id_0 { 270 &qupv3_id_0 { 447 status = "okay"; 271 status = "okay"; 448 }; 272 }; 449 273 450 &qupv3_id_1 { 274 &qupv3_id_1 { 451 status = "okay"; 275 status = "okay"; 452 }; 276 }; 453 277 454 &sdhc_1 { 278 &sdhc_1 { 455 status = "okay"; 279 status = "okay"; 456 280 457 non-removable; 281 non-removable; 458 no-sd; 282 no-sd; 459 no-sdio; 283 no-sdio; 460 284 461 vmmc-supply = <&vreg_l7b_2p9>; 285 vmmc-supply = <&vreg_l7b_2p9>; 462 vqmmc-supply = <&vreg_l19b_1p8>; 286 vqmmc-supply = <&vreg_l19b_1p8>; 463 }; 287 }; 464 288 465 &sdhc_2 { 289 &sdhc_2 { 466 status = "okay"; 290 status = "okay"; 467 291 468 pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, 292 pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>, <&sd_cd>; 469 pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_ 293 pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>, <&sd_cd>; 470 294 471 vmmc-supply = <&vreg_l9c_2p9>; 295 vmmc-supply = <&vreg_l9c_2p9>; 472 vqmmc-supply = <&vreg_l6c_2p9>; 296 vqmmc-supply = <&vreg_l6c_2p9>; 473 297 474 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; 298 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; 475 }; 299 }; 476 300 477 &swr0 { << 478 status = "okay"; << 479 << 480 wcd_rx: codec@0,4 { << 481 compatible = "sdw20217010d00"; << 482 reg = <0 4>; << 483 qcom,rx-port-mapping = <1 2 3 << 484 }; << 485 }; << 486 << 487 &swr1 { << 488 status = "okay"; << 489 << 490 wcd_tx: codec@0,3 { << 491 compatible = "sdw20217010d00"; << 492 reg = <0 3>; << 493 qcom,tx-port-mapping = <1 2 3 << 494 }; << 495 }; << 496 << 497 &uart5 { 301 &uart5 { 498 status = "okay"; !! 302 compatible = "qcom,geni-debug-uart"; 499 }; << 500 << 501 &ufs_mem_hc { << 502 reset-gpios = <&tlmm 175 GPIO_ACTIVE_L << 503 vcc-supply = <&vreg_l7b_2p9>; << 504 vcc-max-microamp = <800000>; << 505 vccq-supply = <&vreg_l9b_1p2>; << 506 vccq-max-microamp = <900000>; << 507 vccq2-supply = <&vreg_l9b_1p2>; << 508 vccq2-max-microamp = <900000>; << 509 << 510 status = "okay"; << 511 }; << 512 << 513 &ufs_mem_phy { << 514 vdda-phy-supply = <&vreg_l10c_0p8>; << 515 vdda-pll-supply = <&vreg_l6b_1p2>; << 516 << 517 status = "okay"; 303 status = "okay"; 518 }; 304 }; 519 305 520 &usb_1 { 306 &usb_1 { 521 status = "okay"; 307 status = "okay"; 522 }; 308 }; 523 309 524 &usb_1_dwc3 { 310 &usb_1_dwc3 { 525 dr_mode = "host"; 311 dr_mode = "host"; 526 }; 312 }; 527 313 528 &usb_1_hsphy { 314 &usb_1_hsphy { 529 status = "okay"; 315 status = "okay"; 530 316 531 vdda-pll-supply = <&vreg_l10c_0p8>; 317 vdda-pll-supply = <&vreg_l10c_0p8>; 532 vdda33-supply = <&vreg_l2b_3p0>; 318 vdda33-supply = <&vreg_l2b_3p0>; 533 vdda18-supply = <&vreg_l1c_1p8>; 319 vdda18-supply = <&vreg_l1c_1p8>; 534 qcom,hs-rise-fall-time-bp = <0>; << 535 qcom,squelch-detector-bp = <(-2090)>; << 536 qcom,hs-disconnect-bp = <1743>; << 537 qcom,hs-amplitude-bp = <1780>; << 538 qcom,hs-crossover-voltage-microvolt = << 539 qcom,hs-output-impedance-micro-ohms = << 540 }; 320 }; 541 321 542 &usb_1_qmpphy { 322 &usb_1_qmpphy { 543 status = "okay"; 323 status = "okay"; 544 324 545 vdda-phy-supply = <&vreg_l6b_1p2>; 325 vdda-phy-supply = <&vreg_l6b_1p2>; 546 vdda-pll-supply = <&vreg_l1b_0p8>; 326 vdda-pll-supply = <&vreg_l1b_0p8>; 547 }; 327 }; 548 328 549 &uart7 { 329 &uart7 { 550 status = "okay"; 330 status = "okay"; 551 331 552 /delete-property/interrupts; 332 /delete-property/interrupts; 553 interrupts-extended = <&intc GIC_SPI 6 333 interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, 554 <&tlmm 31 IRQ_ 334 <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; 555 pinctrl-names = "default", "sleep"; 335 pinctrl-names = "default", "sleep"; 556 pinctrl-1 = <&qup_uart7_sleep_cts>, <& 336 pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>; 557 337 558 bluetooth: bluetooth { 338 bluetooth: bluetooth { 559 compatible = "qcom,wcn6750-bt" 339 compatible = "qcom,wcn6750-bt"; 560 pinctrl-names = "default"; 340 pinctrl-names = "default"; 561 pinctrl-0 = <&bt_en>, <&sw_ctr 341 pinctrl-0 = <&bt_en>, <&sw_ctrl>; 562 enable-gpios = <&tlmm 85 GPIO_ 342 enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>; 563 swctrl-gpios = <&tlmm 86 GPIO_ 343 swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>; 564 vddaon-supply = <&vreg_s7b_0p9 344 vddaon-supply = <&vreg_s7b_0p9>; 565 vddbtcxmx-supply = <&vreg_s7b_ 345 vddbtcxmx-supply = <&vreg_s7b_0p9>; 566 vddrfacmn-supply = <&vreg_s7b_ 346 vddrfacmn-supply = <&vreg_s7b_0p9>; 567 vddrfa0p8-supply = <&vreg_s7b_ 347 vddrfa0p8-supply = <&vreg_s7b_0p9>; 568 vddrfa1p7-supply = <&vreg_s1b_ 348 vddrfa1p7-supply = <&vreg_s1b_1p8>; 569 vddrfa1p2-supply = <&vreg_s8b_ 349 vddrfa1p2-supply = <&vreg_s8b_1p2>; 570 vddrfa2p2-supply = <&vreg_s1c_ 350 vddrfa2p2-supply = <&vreg_s1c_2p2>; 571 vddasd-supply = <&vreg_l11c_2p 351 vddasd-supply = <&vreg_l11c_2p8>; 572 max-speed = <3200000>; 352 max-speed = <3200000>; 573 }; 353 }; 574 }; 354 }; 575 355 576 /* PINCTRL - additions to nodes defined in sc7 356 /* PINCTRL - additions to nodes defined in sc7280.dtsi */ 577 357 578 &dp_hot_plug_det { 358 &dp_hot_plug_det { 579 bias-disable; 359 bias-disable; 580 }; 360 }; 581 361 582 &lpass_dmic01_clk { << 583 drive-strength = <8>; << 584 bias-disable; << 585 }; << 586 << 587 &lpass_dmic01_data { << 588 bias-pull-down; << 589 }; << 590 << 591 &lpass_dmic23_clk { << 592 drive-strength = <8>; << 593 bias-disable; << 594 }; << 595 << 596 &lpass_dmic23_data { << 597 bias-pull-down; << 598 }; << 599 << 600 &lpass_rx_swr_clk { << 601 drive-strength = <2>; << 602 slew-rate = <1>; << 603 bias-disable; << 604 }; << 605 << 606 &lpass_rx_swr_data { << 607 drive-strength = <2>; << 608 slew-rate = <1>; << 609 bias-bus-hold; << 610 }; << 611 << 612 &lpass_tx_swr_clk { << 613 drive-strength = <2>; << 614 slew-rate = <1>; << 615 bias-disable; << 616 }; << 617 << 618 &lpass_tx_swr_data { << 619 drive-strength = <2>; << 620 slew-rate = <1>; << 621 bias-bus-hold; << 622 }; << 623 << 624 &mi2s1_data0 { << 625 drive-strength = <6>; << 626 bias-disable; << 627 }; << 628 << 629 &mi2s1_sclk { << 630 drive-strength = <6>; << 631 bias-disable; << 632 }; << 633 << 634 &mi2s1_ws { << 635 drive-strength = <6>; << 636 }; << 637 << 638 &pm7325_gpios { 362 &pm7325_gpios { 639 key_vol_up_default: key-vol-up-state { !! 363 key_vol_up_default: key-vol-up-default { 640 pins = "gpio6"; 364 pins = "gpio6"; 641 function = "normal"; 365 function = "normal"; 642 input-enable; 366 input-enable; 643 bias-pull-up; 367 bias-pull-up; 644 power-source = <0>; 368 power-source = <0>; 645 qcom,drive-strength = <3>; 369 qcom,drive-strength = <3>; 646 }; 370 }; 647 }; 371 }; 648 372 649 &pcie1_clkreq_n { 373 &pcie1_clkreq_n { 650 bias-pull-up; 374 bias-pull-up; 651 drive-strength = <2>; 375 drive-strength = <2>; 652 }; 376 }; 653 377 654 &qspi_cs0 { 378 &qspi_cs0 { 655 bias-disable; /* External pu !! 379 bias-disable; 656 }; 380 }; 657 381 658 &qspi_clk { 382 &qspi_clk { 659 bias-pull-down; /* No external !! 383 bias-disable; 660 }; << 661 << 662 &qspi_data0 { << 663 bias-pull-down; /* No external << 664 }; 384 }; 665 385 666 &qspi_data1 { !! 386 &qspi_data01 { 667 bias-pull-down; /* No external !! 387 /* High-Z when no transfers; nice to park the lines */ >> 388 bias-pull-up; 668 }; 389 }; 669 390 670 &qup_uart5_tx { 391 &qup_uart5_tx { 671 drive-strength = <2>; 392 drive-strength = <2>; 672 bias-disable; 393 bias-disable; 673 }; 394 }; 674 395 675 &qup_uart5_rx { 396 &qup_uart5_rx { 676 drive-strength = <2>; 397 drive-strength = <2>; 677 bias-pull-up; 398 bias-pull-up; 678 }; 399 }; 679 400 680 &qup_uart7_cts { 401 &qup_uart7_cts { 681 /* 402 /* 682 * Configure a bias-bus-hold on CTS to 403 * Configure a bias-bus-hold on CTS to lower power 683 * usage when Bluetooth is turned off. 404 * usage when Bluetooth is turned off. Bus hold will 684 * maintain a low power state regardle 405 * maintain a low power state regardless of whether 685 * the Bluetooth module drives the pin 406 * the Bluetooth module drives the pin in either 686 * direction or leaves the pin fully u 407 * direction or leaves the pin fully unpowered. 687 */ 408 */ 688 bias-bus-hold; 409 bias-bus-hold; 689 }; 410 }; 690 411 691 &qup_uart7_rts { 412 &qup_uart7_rts { 692 /* We'll drive RTS, so no pull */ 413 /* We'll drive RTS, so no pull */ 693 drive-strength = <2>; 414 drive-strength = <2>; 694 bias-disable; 415 bias-disable; 695 }; 416 }; 696 417 697 &qup_uart7_tx { 418 &qup_uart7_tx { 698 /* We'll drive TX, so no pull */ 419 /* We'll drive TX, so no pull */ 699 drive-strength = <2>; 420 drive-strength = <2>; 700 bias-disable; 421 bias-disable; 701 }; 422 }; 702 423 703 &qup_uart7_rx { 424 &qup_uart7_rx { 704 /* 425 /* 705 * Configure a pull-up on RX. This is 426 * Configure a pull-up on RX. This is needed to avoid 706 * garbage data when the TX pin of the 427 * garbage data when the TX pin of the Bluetooth module is 707 * in tri-state (module powered off or 428 * in tri-state (module powered off or not driving the 708 * signal yet). 429 * signal yet). 709 */ 430 */ 710 bias-pull-up; 431 bias-pull-up; 711 }; 432 }; 712 433 713 &sdc1_clk { 434 &sdc1_clk { 714 bias-disable; 435 bias-disable; 715 drive-strength = <16>; 436 drive-strength = <16>; 716 }; 437 }; 717 438 718 &sdc1_cmd { 439 &sdc1_cmd { 719 bias-pull-up; 440 bias-pull-up; 720 drive-strength = <10>; 441 drive-strength = <10>; 721 }; 442 }; 722 443 723 &sdc1_data { 444 &sdc1_data { 724 bias-pull-up; 445 bias-pull-up; 725 drive-strength = <10>; 446 drive-strength = <10>; 726 }; 447 }; 727 448 728 &sdc1_rclk { 449 &sdc1_rclk { 729 bias-pull-down; 450 bias-pull-down; 730 }; 451 }; 731 452 732 &sdc2_clk { 453 &sdc2_clk { 733 bias-disable; 454 bias-disable; 734 drive-strength = <16>; 455 drive-strength = <16>; 735 }; 456 }; 736 457 737 &sdc2_cmd { 458 &sdc2_cmd { 738 bias-pull-up; 459 bias-pull-up; 739 drive-strength = <10>; 460 drive-strength = <10>; 740 }; 461 }; 741 462 742 &sdc2_data { 463 &sdc2_data { 743 bias-pull-up; 464 bias-pull-up; 744 drive-strength = <10>; 465 drive-strength = <10>; 745 }; 466 }; 746 467 747 &tlmm { 468 &tlmm { 748 amp_en: amp-en-state { !! 469 bt_en: bt-en { 749 pins = "gpio63"; << 750 function = "gpio"; << 751 bias-pull-down; << 752 drive-strength = <2>; << 753 }; << 754 << 755 bt_en: bt-en-state { << 756 pins = "gpio85"; 470 pins = "gpio85"; 757 function = "gpio"; 471 function = "gpio"; 758 output-low; 472 output-low; 759 bias-disable; 473 bias-disable; 760 }; 474 }; 761 475 762 nvme_pwren: nvme-pwren-state { !! 476 nvme_pwren: nvme-pwren { 763 function = "gpio"; 477 function = "gpio"; 764 }; 478 }; 765 479 766 pcie1_reset_n: pcie1-reset-n-state { !! 480 pcie1_reset_n: pcie1-reset-n { 767 pins = "gpio2"; 481 pins = "gpio2"; 768 function = "gpio"; 482 function = "gpio"; 769 483 770 drive-strength = <16>; 484 drive-strength = <16>; 771 output-low; 485 output-low; 772 bias-disable; 486 bias-disable; 773 }; 487 }; 774 488 775 pcie1_wake_n: pcie1-wake-n-state { !! 489 pcie1_wake_n: pcie1-wake-n { 776 pins = "gpio3"; 490 pins = "gpio3"; 777 function = "gpio"; 491 function = "gpio"; 778 492 779 drive-strength = <2>; 493 drive-strength = <2>; 780 bias-pull-up; 494 bias-pull-up; 781 }; 495 }; 782 496 783 qup_uart7_sleep_cts: qup-uart7-sleep-c !! 497 qup_uart7_sleep_cts: qup-uart7-sleep-cts { 784 pins = "gpio28"; 498 pins = "gpio28"; 785 function = "gpio"; 499 function = "gpio"; 786 /* 500 /* 787 * Configure a bias-bus-hold o 501 * Configure a bias-bus-hold on CTS to lower power 788 * usage when Bluetooth is tur 502 * usage when Bluetooth is turned off. Bus hold will 789 * maintain a low power state 503 * maintain a low power state regardless of whether 790 * the Bluetooth module drives 504 * the Bluetooth module drives the pin in either 791 * direction or leaves the pin 505 * direction or leaves the pin fully unpowered. 792 */ 506 */ 793 bias-bus-hold; 507 bias-bus-hold; 794 }; 508 }; 795 509 796 qup_uart7_sleep_rts: qup-uart7-sleep-r !! 510 qup_uart7_sleep_rts: qup-uart7-sleep-rts { 797 pins = "gpio29"; 511 pins = "gpio29"; 798 function = "gpio"; 512 function = "gpio"; 799 /* 513 /* 800 * Configure pull-down on RTS. 514 * Configure pull-down on RTS. As RTS is active low 801 * signal, pull it low to indi 515 * signal, pull it low to indicate the BT SoC that it 802 * can wakeup the system anyti 516 * can wakeup the system anytime from suspend state by 803 * pulling RX low (by sending 517 * pulling RX low (by sending wakeup bytes). 804 */ 518 */ 805 bias-pull-down; 519 bias-pull-down; 806 }; 520 }; 807 521 808 qup_uart7_sleep_tx: qup-uart7-sleep-tx !! 522 qup_uart7_sleep_tx: qup-uart7-sleep-tx { 809 pins = "gpio30"; 523 pins = "gpio30"; 810 function = "gpio"; 524 function = "gpio"; 811 /* 525 /* 812 * Configure pull-up on TX whe 526 * Configure pull-up on TX when it isn't actively driven 813 * to prevent BT SoC from rece 527 * to prevent BT SoC from receiving garbage during sleep. 814 */ 528 */ 815 bias-pull-up; 529 bias-pull-up; 816 }; 530 }; 817 531 818 qup_uart7_sleep_rx: qup-uart7-sleep-rx !! 532 qup_uart7_sleep_rx: qup-uart7-sleep-rx { 819 pins = "gpio31"; 533 pins = "gpio31"; 820 function = "gpio"; 534 function = "gpio"; 821 /* 535 /* 822 * Configure a pull-up on RX. 536 * Configure a pull-up on RX. This is needed to avoid 823 * garbage data when the TX pi 537 * garbage data when the TX pin of the Bluetooth module 824 * is floating which may cause 538 * is floating which may cause spurious wakeups. 825 */ 539 */ 826 bias-pull-up; 540 bias-pull-up; 827 }; 541 }; 828 542 829 sd_cd: sd-cd-state { !! 543 sd_cd: sd-cd { 830 pins = "gpio91"; 544 pins = "gpio91"; 831 function = "gpio"; 545 function = "gpio"; 832 bias-pull-up; 546 bias-pull-up; 833 }; 547 }; 834 548 835 sw_ctrl: sw-ctrl-state { !! 549 sw_ctrl: sw-ctrl { 836 pins = "gpio86"; 550 pins = "gpio86"; 837 function = "gpio"; 551 function = "gpio"; 838 bias-pull-down; 552 bias-pull-down; 839 }; 553 }; 840 << 841 wcd_reset_n: wcd-reset-n-state { << 842 pins = "gpio83"; << 843 function = "gpio"; << 844 drive-strength = <8>; << 845 }; << 846 << 847 wcd_reset_n_sleep: wcd-reset-n-sleep-s << 848 pins = "gpio83"; << 849 function = "gpio"; << 850 drive-strength = <8>; << 851 bias-disable; << 852 }; << 853 }; 554 }; >> 555
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.