1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2023 Qualcomm Innovation Cent 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/gpio-keys.h> << 10 #include <dt-bindings/input/input.h> << 11 #include <dt-bindings/regulator/qcom,rpmh-regu 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 10 13 #include "x1e80100.dtsi" 11 #include "x1e80100.dtsi" 14 #include "x1e80100-pmics.dtsi" << 15 12 16 / { 13 / { 17 model = "Qualcomm Technologies, Inc. X 14 model = "Qualcomm Technologies, Inc. X1E80100 CRD"; 18 compatible = "qcom,x1e80100-crd", "qco 15 compatible = "qcom,x1e80100-crd", "qcom,x1e80100"; 19 16 20 aliases { 17 aliases { 21 serial0 = &uart21; 18 serial0 = &uart21; 22 }; 19 }; 23 20 24 wcd938x: audio-codec { 21 wcd938x: audio-codec { 25 compatible = "qcom,wcd9385-cod 22 compatible = "qcom,wcd9385-codec"; 26 23 27 pinctrl-names = "default"; 24 pinctrl-names = "default"; 28 pinctrl-0 = <&wcd_default>; 25 pinctrl-0 = <&wcd_default>; 29 26 30 qcom,micbias1-microvolt = <180 27 qcom,micbias1-microvolt = <1800000>; 31 qcom,micbias2-microvolt = <180 28 qcom,micbias2-microvolt = <1800000>; 32 qcom,micbias3-microvolt = <180 29 qcom,micbias3-microvolt = <1800000>; 33 qcom,micbias4-microvolt = <180 30 qcom,micbias4-microvolt = <1800000>; 34 qcom,mbhc-buttons-vthreshold-m 31 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 35 qcom,mbhc-headset-vthreshold-m 32 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 36 qcom,mbhc-headphone-vthreshold 33 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 37 qcom,rx-device = <&wcd_rx>; 34 qcom,rx-device = <&wcd_rx>; 38 qcom,tx-device = <&wcd_tx>; 35 qcom,tx-device = <&wcd_tx>; 39 36 40 reset-gpios = <&tlmm 191 GPIO_ 37 reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>; 41 38 42 vdd-buck-supply = <&vreg_l15b_ 39 vdd-buck-supply = <&vreg_l15b_1p8>; 43 vdd-rxtx-supply = <&vreg_l15b_ 40 vdd-rxtx-supply = <&vreg_l15b_1p8>; 44 vdd-io-supply = <&vreg_l15b_1p 41 vdd-io-supply = <&vreg_l15b_1p8>; 45 vdd-mic-bias-supply = <&vreg_b 42 vdd-mic-bias-supply = <&vreg_bob1>; 46 43 47 #sound-dai-cells = <1>; 44 #sound-dai-cells = <1>; 48 }; 45 }; 49 46 50 chosen { 47 chosen { 51 stdout-path = "serial0:115200n 48 stdout-path = "serial0:115200n8"; 52 }; 49 }; 53 50 54 gpio-keys { << 55 compatible = "gpio-keys"; << 56 << 57 pinctrl-0 = <&hall_int_n_defau << 58 pinctrl-names = "default"; << 59 << 60 switch-lid { << 61 gpios = <&tlmm 92 GPIO << 62 linux,input-type = <EV << 63 linux,code = <SW_LID>; << 64 wakeup-source; << 65 wakeup-event-action = << 66 }; << 67 }; << 68 << 69 pmic-glink { << 70 compatible = "qcom,x1e80100-pm << 71 "qcom,sm8550-pmic << 72 "qcom,pmic-glink" << 73 #address-cells = <1>; << 74 #size-cells = <0>; << 75 orientation-gpios = <&tlmm 121 << 76 <&tlmm 123 << 77 <&tlmm 125 << 78 << 79 /* Left-side rear port */ << 80 connector@0 { << 81 compatible = "usb-c-co << 82 reg = <0>; << 83 power-role = "dual"; << 84 data-role = "dual"; << 85 << 86 ports { << 87 #address-cells << 88 #size-cells = << 89 << 90 port@0 { << 91 reg = << 92 << 93 pmic_g << 94 << 95 }; << 96 }; << 97 << 98 port@1 { << 99 reg = << 100 << 101 pmic_g << 102 << 103 }; << 104 }; << 105 }; << 106 }; << 107 << 108 /* Left-side front port */ << 109 connector@1 { << 110 compatible = "usb-c-co << 111 reg = <1>; << 112 power-role = "dual"; << 113 data-role = "dual"; << 114 << 115 ports { << 116 #address-cells << 117 #size-cells = << 118 << 119 port@0 { << 120 reg = << 121 << 122 pmic_g << 123 << 124 }; << 125 }; << 126 << 127 port@1 { << 128 reg = << 129 << 130 pmic_g << 131 << 132 }; << 133 }; << 134 }; << 135 }; << 136 << 137 /* Right-side port */ << 138 connector@2 { << 139 compatible = "usb-c-co << 140 reg = <2>; << 141 power-role = "dual"; << 142 data-role = "dual"; << 143 << 144 ports { << 145 #address-cells << 146 #size-cells = << 147 << 148 port@0 { << 149 reg = << 150 << 151 pmic_g << 152 << 153 }; << 154 }; << 155 << 156 port@1 { << 157 reg = << 158 << 159 pmic_g << 160 << 161 }; << 162 }; << 163 }; << 164 }; << 165 }; << 166 << 167 reserved-memory { 51 reserved-memory { 168 linux,cma { 52 linux,cma { 169 compatible = "shared-d 53 compatible = "shared-dma-pool"; 170 size = <0x0 0x8000000> 54 size = <0x0 0x8000000>; 171 reusable; 55 reusable; 172 linux,cma-default; 56 linux,cma-default; 173 }; 57 }; 174 }; 58 }; 175 59 176 sound { 60 sound { 177 compatible = "qcom,x1e80100-sn 61 compatible = "qcom,x1e80100-sndcard"; 178 model = "X1E80100-CRD"; 62 model = "X1E80100-CRD"; 179 audio-routing = "WooferLeft IN 63 audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", 180 "TweeterLeft I !! 64 "TwitterLeft IN", "WSA WSA_SPK2 OUT", 181 "WooferRight I 65 "WooferRight IN", "WSA2 WSA_SPK2 OUT", 182 "TweeterRight !! 66 "TwitterRight IN", "WSA2 WSA_SPK2 OUT", 183 "IN1_HPHL", "H 67 "IN1_HPHL", "HPHL_OUT", 184 "IN2_HPHR", "H 68 "IN2_HPHR", "HPHR_OUT", 185 "AMIC2", "MIC 69 "AMIC2", "MIC BIAS2", 186 "VA DMIC0", "M 70 "VA DMIC0", "MIC BIAS3", 187 "VA DMIC1", "M 71 "VA DMIC1", "MIC BIAS3", 188 "VA DMIC2", "M 72 "VA DMIC2", "MIC BIAS1", 189 "VA DMIC3", "M 73 "VA DMIC3", "MIC BIAS1", 190 "VA DMIC0", "V 74 "VA DMIC0", "VA MIC BIAS3", 191 "VA DMIC1", "V 75 "VA DMIC1", "VA MIC BIAS3", 192 "VA DMIC2", "V 76 "VA DMIC2", "VA MIC BIAS1", 193 "VA DMIC3", "V 77 "VA DMIC3", "VA MIC BIAS1", 194 "TX SWR_INPUT1 78 "TX SWR_INPUT1", "ADC2_OUTPUT"; 195 79 196 wcd-playback-dai-link { 80 wcd-playback-dai-link { 197 link-name = "WCD Playb 81 link-name = "WCD Playback"; 198 82 199 cpu { 83 cpu { 200 sound-dai = <& 84 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 201 }; 85 }; 202 86 203 codec { 87 codec { 204 sound-dai = <& 88 sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 205 }; 89 }; 206 90 207 platform { 91 platform { 208 sound-dai = <& 92 sound-dai = <&q6apm>; 209 }; 93 }; 210 }; 94 }; 211 95 212 wcd-capture-dai-link { 96 wcd-capture-dai-link { 213 link-name = "WCD Captu 97 link-name = "WCD Capture"; 214 98 215 cpu { 99 cpu { 216 sound-dai = <& 100 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 217 }; 101 }; 218 102 219 codec { 103 codec { 220 sound-dai = <& 104 sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>; 221 }; 105 }; 222 106 223 platform { 107 platform { 224 sound-dai = <& 108 sound-dai = <&q6apm>; 225 }; 109 }; 226 }; 110 }; 227 111 228 wsa-dai-link { 112 wsa-dai-link { 229 link-name = "WSA Playb 113 link-name = "WSA Playback"; 230 114 231 cpu { 115 cpu { 232 sound-dai = <& 116 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 233 }; 117 }; 234 118 235 codec { 119 codec { 236 sound-dai = <& 120 sound-dai = <&left_woofer>, <&left_tweeter>, 237 <& 121 <&swr0 0>, <&lpass_wsamacro 0>, 238 <& 122 <&right_woofer>, <&right_tweeter>, 239 <& 123 <&swr3 0>, <&lpass_wsa2macro 0>; 240 }; 124 }; 241 125 242 platform { 126 platform { 243 sound-dai = <& 127 sound-dai = <&q6apm>; 244 }; 128 }; 245 }; 129 }; 246 130 247 va-dai-link { 131 va-dai-link { 248 link-name = "VA Captur 132 link-name = "VA Capture"; 249 133 250 cpu { 134 cpu { 251 sound-dai = <& 135 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; 252 }; 136 }; 253 137 254 codec { 138 codec { 255 sound-dai = <& 139 sound-dai = <&lpass_vamacro 0>; 256 }; 140 }; 257 141 258 platform { 142 platform { 259 sound-dai = <& 143 sound-dai = <&q6apm>; 260 }; 144 }; 261 }; 145 }; 262 }; 146 }; 263 147 264 vph_pwr: vph-pwr-regulator { 148 vph_pwr: vph-pwr-regulator { 265 compatible = "regulator-fixed" 149 compatible = "regulator-fixed"; 266 150 267 regulator-name = "vph_pwr"; 151 regulator-name = "vph_pwr"; 268 regulator-min-microvolt = <370 152 regulator-min-microvolt = <3700000>; 269 regulator-max-microvolt = <370 153 regulator-max-microvolt = <3700000>; 270 154 271 regulator-always-on; 155 regulator-always-on; 272 regulator-boot-on; 156 regulator-boot-on; 273 }; 157 }; 274 158 275 vreg_edp_3p3: regulator-edp-3p3 { 159 vreg_edp_3p3: regulator-edp-3p3 { 276 compatible = "regulator-fixed" 160 compatible = "regulator-fixed"; 277 161 278 regulator-name = "VREG_EDP_3P3 162 regulator-name = "VREG_EDP_3P3"; 279 regulator-min-microvolt = <330 163 regulator-min-microvolt = <3300000>; 280 regulator-max-microvolt = <330 164 regulator-max-microvolt = <3300000>; 281 165 282 gpio = <&tlmm 70 GPIO_ACTIVE_H 166 gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; 283 enable-active-high; 167 enable-active-high; 284 168 285 pinctrl-0 = <&edp_reg_en>; 169 pinctrl-0 = <&edp_reg_en>; 286 pinctrl-names = "default"; 170 pinctrl-names = "default"; 287 171 288 regulator-boot-on; !! 172 regulator-always-on; 289 }; << 290 << 291 vreg_nvme: regulator-nvme { << 292 compatible = "regulator-fixed" << 293 << 294 regulator-name = "VREG_NVME_3P << 295 regulator-min-microvolt = <330 << 296 regulator-max-microvolt = <330 << 297 << 298 gpio = <&tlmm 18 GPIO_ACTIVE_H << 299 enable-active-high; << 300 << 301 pinctrl-names = "default"; << 302 pinctrl-0 = <&nvme_reg_en>; << 303 << 304 regulator-boot-on; << 305 }; << 306 << 307 vreg_wwan: regulator-wwan { << 308 compatible = "regulator-fixed" << 309 << 310 regulator-name = "SDX_VPH_PWR" << 311 regulator-min-microvolt = <330 << 312 regulator-max-microvolt = <330 << 313 << 314 gpio = <&tlmm 221 GPIO_ACTIVE_ << 315 enable-active-high; << 316 << 317 pinctrl-0 = <&wwan_sw_en>; << 318 pinctrl-names = "default"; << 319 << 320 regulator-boot-on; 173 regulator-boot-on; 321 }; 174 }; 322 }; 175 }; 323 176 324 &apps_rsc { 177 &apps_rsc { 325 regulators-0 { 178 regulators-0 { 326 compatible = "qcom,pm8550-rpmh 179 compatible = "qcom,pm8550-rpmh-regulators"; 327 qcom,pmic-id = "b"; 180 qcom,pmic-id = "b"; 328 181 329 vdd-bob1-supply = <&vph_pwr>; 182 vdd-bob1-supply = <&vph_pwr>; 330 vdd-bob2-supply = <&vph_pwr>; 183 vdd-bob2-supply = <&vph_pwr>; 331 vdd-l1-l4-l10-supply = <&vreg_ 184 vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>; 332 vdd-l2-l13-l14-supply = <&vreg 185 vdd-l2-l13-l14-supply = <&vreg_bob1>; 333 vdd-l5-l16-supply = <&vreg_bob 186 vdd-l5-l16-supply = <&vreg_bob1>; 334 vdd-l6-l7-supply = <&vreg_bob2 187 vdd-l6-l7-supply = <&vreg_bob2>; 335 vdd-l8-l9-supply = <&vreg_bob1 188 vdd-l8-l9-supply = <&vreg_bob1>; 336 vdd-l12-supply = <&vreg_s5j_1p 189 vdd-l12-supply = <&vreg_s5j_1p2>; 337 vdd-l15-supply = <&vreg_s4c_1p 190 vdd-l15-supply = <&vreg_s4c_1p8>; 338 vdd-l17-supply = <&vreg_bob2>; 191 vdd-l17-supply = <&vreg_bob2>; 339 192 340 vreg_bob1: bob1 { 193 vreg_bob1: bob1 { 341 regulator-name = "vreg 194 regulator-name = "vreg_bob1"; 342 regulator-min-microvol 195 regulator-min-microvolt = <3008000>; 343 regulator-max-microvol 196 regulator-max-microvolt = <3960000>; 344 regulator-initial-mode 197 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 345 }; 198 }; 346 199 347 vreg_bob2: bob2 { 200 vreg_bob2: bob2 { 348 regulator-name = "vreg 201 regulator-name = "vreg_bob2"; 349 regulator-min-microvol 202 regulator-min-microvolt = <2504000>; 350 regulator-max-microvol 203 regulator-max-microvolt = <3008000>; 351 regulator-initial-mode 204 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 352 }; 205 }; 353 206 354 vreg_l1b_1p8: ldo1 { 207 vreg_l1b_1p8: ldo1 { 355 regulator-name = "vreg 208 regulator-name = "vreg_l1b_1p8"; 356 regulator-min-microvol 209 regulator-min-microvolt = <1800000>; 357 regulator-max-microvol 210 regulator-max-microvolt = <1800000>; 358 regulator-initial-mode 211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 359 }; 212 }; 360 213 361 vreg_l2b_3p0: ldo2 { 214 vreg_l2b_3p0: ldo2 { 362 regulator-name = "vreg 215 regulator-name = "vreg_l2b_3p0"; 363 regulator-min-microvol 216 regulator-min-microvolt = <3072000>; 364 regulator-max-microvol 217 regulator-max-microvolt = <3100000>; 365 regulator-initial-mode 218 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 366 }; 219 }; 367 220 368 vreg_l4b_1p8: ldo4 { 221 vreg_l4b_1p8: ldo4 { 369 regulator-name = "vreg 222 regulator-name = "vreg_l4b_1p8"; 370 regulator-min-microvol 223 regulator-min-microvolt = <1800000>; 371 regulator-max-microvol 224 regulator-max-microvolt = <1800000>; 372 regulator-initial-mode 225 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 373 }; 226 }; 374 227 375 vreg_l5b_3p0: ldo5 { 228 vreg_l5b_3p0: ldo5 { 376 regulator-name = "vreg 229 regulator-name = "vreg_l5b_3p0"; 377 regulator-min-microvol 230 regulator-min-microvolt = <3000000>; 378 regulator-max-microvol 231 regulator-max-microvolt = <3000000>; 379 regulator-initial-mode 232 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 380 }; 233 }; 381 234 382 vreg_l6b_1p8: ldo6 { 235 vreg_l6b_1p8: ldo6 { 383 regulator-name = "vreg 236 regulator-name = "vreg_l6b_1p8"; 384 regulator-min-microvol 237 regulator-min-microvolt = <1800000>; 385 regulator-max-microvol 238 regulator-max-microvolt = <2960000>; 386 regulator-initial-mode 239 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 387 }; 240 }; 388 241 389 vreg_l7b_2p8: ldo7 { 242 vreg_l7b_2p8: ldo7 { 390 regulator-name = "vreg 243 regulator-name = "vreg_l7b_2p8"; 391 regulator-min-microvol 244 regulator-min-microvolt = <2800000>; 392 regulator-max-microvol 245 regulator-max-microvolt = <2800000>; 393 regulator-initial-mode 246 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 394 }; 247 }; 395 248 396 vreg_l8b_3p0: ldo8 { 249 vreg_l8b_3p0: ldo8 { 397 regulator-name = "vreg 250 regulator-name = "vreg_l8b_3p0"; 398 regulator-min-microvol 251 regulator-min-microvolt = <3072000>; 399 regulator-max-microvol 252 regulator-max-microvolt = <3072000>; 400 regulator-initial-mode 253 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 401 }; 254 }; 402 255 403 vreg_l9b_2p9: ldo9 { 256 vreg_l9b_2p9: ldo9 { 404 regulator-name = "vreg 257 regulator-name = "vreg_l9b_2p9"; 405 regulator-min-microvol 258 regulator-min-microvolt = <2960000>; 406 regulator-max-microvol 259 regulator-max-microvolt = <2960000>; 407 regulator-initial-mode 260 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 408 }; 261 }; 409 262 410 vreg_l10b_1p8: ldo10 { 263 vreg_l10b_1p8: ldo10 { 411 regulator-name = "vreg 264 regulator-name = "vreg_l10b_1p8"; 412 regulator-min-microvol 265 regulator-min-microvolt = <1800000>; 413 regulator-max-microvol 266 regulator-max-microvolt = <1800000>; 414 regulator-initial-mode 267 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 415 }; 268 }; 416 269 417 vreg_l12b_1p2: ldo12 { 270 vreg_l12b_1p2: ldo12 { 418 regulator-name = "vreg 271 regulator-name = "vreg_l12b_1p2"; 419 regulator-min-microvol 272 regulator-min-microvolt = <1200000>; 420 regulator-max-microvol 273 regulator-max-microvolt = <1200000>; 421 regulator-initial-mode 274 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 422 }; 275 }; 423 276 424 vreg_l13b_3p0: ldo13 { 277 vreg_l13b_3p0: ldo13 { 425 regulator-name = "vreg 278 regulator-name = "vreg_l13b_3p0"; 426 regulator-min-microvol 279 regulator-min-microvolt = <3072000>; 427 regulator-max-microvol 280 regulator-max-microvolt = <3100000>; 428 regulator-initial-mode 281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 429 }; 282 }; 430 283 431 vreg_l14b_3p0: ldo14 { 284 vreg_l14b_3p0: ldo14 { 432 regulator-name = "vreg 285 regulator-name = "vreg_l14b_3p0"; 433 regulator-min-microvol 286 regulator-min-microvolt = <3072000>; 434 regulator-max-microvol 287 regulator-max-microvolt = <3072000>; 435 regulator-initial-mode 288 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 436 }; 289 }; 437 290 438 vreg_l15b_1p8: ldo15 { 291 vreg_l15b_1p8: ldo15 { 439 regulator-name = "vreg 292 regulator-name = "vreg_l15b_1p8"; 440 regulator-min-microvol 293 regulator-min-microvolt = <1800000>; 441 regulator-max-microvol 294 regulator-max-microvolt = <1800000>; 442 regulator-initial-mode 295 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 443 }; 296 }; 444 297 445 vreg_l16b_2p9: ldo16 { 298 vreg_l16b_2p9: ldo16 { 446 regulator-name = "vreg 299 regulator-name = "vreg_l16b_2p9"; 447 regulator-min-microvol 300 regulator-min-microvolt = <2912000>; 448 regulator-max-microvol 301 regulator-max-microvolt = <2912000>; 449 regulator-initial-mode 302 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 450 }; 303 }; 451 304 452 vreg_l17b_2p5: ldo17 { 305 vreg_l17b_2p5: ldo17 { 453 regulator-name = "vreg 306 regulator-name = "vreg_l17b_2p5"; 454 regulator-min-microvol 307 regulator-min-microvolt = <2504000>; 455 regulator-max-microvol 308 regulator-max-microvolt = <2504000>; 456 regulator-initial-mode 309 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 457 }; 310 }; 458 }; 311 }; 459 312 460 regulators-1 { 313 regulators-1 { 461 compatible = "qcom,pm8550ve-rp 314 compatible = "qcom,pm8550ve-rpmh-regulators"; 462 qcom,pmic-id = "c"; 315 qcom,pmic-id = "c"; 463 316 464 vdd-l1-supply = <&vreg_s5j_1p2 317 vdd-l1-supply = <&vreg_s5j_1p2>; 465 vdd-l2-supply = <&vreg_s1f_0p7 318 vdd-l2-supply = <&vreg_s1f_0p7>; 466 vdd-l3-supply = <&vreg_s1f_0p7 319 vdd-l3-supply = <&vreg_s1f_0p7>; 467 vdd-s4-supply = <&vph_pwr>; 320 vdd-s4-supply = <&vph_pwr>; 468 321 469 vreg_s4c_1p8: smps4 { 322 vreg_s4c_1p8: smps4 { 470 regulator-name = "vreg 323 regulator-name = "vreg_s4c_1p8"; 471 regulator-min-microvol 324 regulator-min-microvolt = <1856000>; 472 regulator-max-microvol 325 regulator-max-microvolt = <2000000>; 473 regulator-initial-mode 326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 474 }; 327 }; 475 328 476 vreg_l1c_1p2: ldo1 { 329 vreg_l1c_1p2: ldo1 { 477 regulator-name = "vreg 330 regulator-name = "vreg_l1c_1p2"; 478 regulator-min-microvol 331 regulator-min-microvolt = <1200000>; 479 regulator-max-microvol 332 regulator-max-microvolt = <1200000>; 480 regulator-initial-mode 333 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 481 }; 334 }; 482 335 483 vreg_l2c_0p8: ldo2 { 336 vreg_l2c_0p8: ldo2 { 484 regulator-name = "vreg 337 regulator-name = "vreg_l2c_0p8"; 485 regulator-min-microvol 338 regulator-min-microvolt = <880000>; 486 regulator-max-microvol 339 regulator-max-microvolt = <920000>; 487 regulator-initial-mode 340 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 488 }; 341 }; 489 342 490 vreg_l3c_0p8: ldo3 { 343 vreg_l3c_0p8: ldo3 { 491 regulator-name = "vreg 344 regulator-name = "vreg_l3c_0p8"; 492 regulator-min-microvol 345 regulator-min-microvolt = <880000>; 493 regulator-max-microvol 346 regulator-max-microvolt = <920000>; 494 regulator-initial-mode 347 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 495 }; 348 }; 496 }; 349 }; 497 350 498 regulators-2 { 351 regulators-2 { 499 compatible = "qcom,pmc8380-rpm 352 compatible = "qcom,pmc8380-rpmh-regulators"; 500 qcom,pmic-id = "d"; 353 qcom,pmic-id = "d"; 501 354 502 vdd-l1-supply = <&vreg_s1f_0p7 355 vdd-l1-supply = <&vreg_s1f_0p7>; 503 vdd-l2-supply = <&vreg_s1f_0p7 356 vdd-l2-supply = <&vreg_s1f_0p7>; 504 vdd-l3-supply = <&vreg_s4c_1p8 357 vdd-l3-supply = <&vreg_s4c_1p8>; 505 vdd-s1-supply = <&vph_pwr>; 358 vdd-s1-supply = <&vph_pwr>; 506 359 507 vreg_l1d_0p8: ldo1 { 360 vreg_l1d_0p8: ldo1 { 508 regulator-name = "vreg 361 regulator-name = "vreg_l1d_0p8"; 509 regulator-min-microvol 362 regulator-min-microvolt = <880000>; 510 regulator-max-microvol 363 regulator-max-microvolt = <920000>; 511 regulator-initial-mode 364 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 512 }; 365 }; 513 366 514 vreg_l2d_0p9: ldo2 { 367 vreg_l2d_0p9: ldo2 { 515 regulator-name = "vreg 368 regulator-name = "vreg_l2d_0p9"; 516 regulator-min-microvol 369 regulator-min-microvolt = <912000>; 517 regulator-max-microvol 370 regulator-max-microvolt = <920000>; 518 regulator-initial-mode 371 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 519 }; 372 }; 520 373 521 vreg_l3d_1p8: ldo3 { 374 vreg_l3d_1p8: ldo3 { 522 regulator-name = "vreg 375 regulator-name = "vreg_l3d_1p8"; 523 regulator-min-microvol 376 regulator-min-microvolt = <1800000>; 524 regulator-max-microvol 377 regulator-max-microvolt = <1800000>; 525 regulator-initial-mode 378 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 526 }; 379 }; 527 }; 380 }; 528 381 529 regulators-3 { 382 regulators-3 { 530 compatible = "qcom,pmc8380-rpm 383 compatible = "qcom,pmc8380-rpmh-regulators"; 531 qcom,pmic-id = "e"; 384 qcom,pmic-id = "e"; 532 385 533 vdd-l2-supply = <&vreg_s1f_0p7 386 vdd-l2-supply = <&vreg_s1f_0p7>; 534 vdd-l3-supply = <&vreg_s5j_1p2 387 vdd-l3-supply = <&vreg_s5j_1p2>; 535 388 536 vreg_l2e_0p8: ldo2 { 389 vreg_l2e_0p8: ldo2 { 537 regulator-name = "vreg 390 regulator-name = "vreg_l2e_0p8"; 538 regulator-min-microvol 391 regulator-min-microvolt = <880000>; 539 regulator-max-microvol 392 regulator-max-microvolt = <920000>; 540 regulator-initial-mode 393 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 541 }; 394 }; 542 395 543 vreg_l3e_1p2: ldo3 { 396 vreg_l3e_1p2: ldo3 { 544 regulator-name = "vreg 397 regulator-name = "vreg_l3e_1p2"; 545 regulator-min-microvol 398 regulator-min-microvolt = <1200000>; 546 regulator-max-microvol 399 regulator-max-microvolt = <1200000>; 547 regulator-initial-mode 400 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 548 }; 401 }; 549 }; 402 }; 550 403 551 regulators-4 { 404 regulators-4 { 552 compatible = "qcom,pmc8380-rpm 405 compatible = "qcom,pmc8380-rpmh-regulators"; 553 qcom,pmic-id = "f"; 406 qcom,pmic-id = "f"; 554 407 555 vdd-l1-supply = <&vreg_s5j_1p2 408 vdd-l1-supply = <&vreg_s5j_1p2>; 556 vdd-l2-supply = <&vreg_s5j_1p2 409 vdd-l2-supply = <&vreg_s5j_1p2>; 557 vdd-l3-supply = <&vreg_s5j_1p2 410 vdd-l3-supply = <&vreg_s5j_1p2>; 558 vdd-s1-supply = <&vph_pwr>; 411 vdd-s1-supply = <&vph_pwr>; 559 412 560 vreg_s1f_0p7: smps1 { 413 vreg_s1f_0p7: smps1 { 561 regulator-name = "vreg 414 regulator-name = "vreg_s1f_0p7"; 562 regulator-min-microvol 415 regulator-min-microvolt = <700000>; 563 regulator-max-microvol 416 regulator-max-microvolt = <1100000>; 564 regulator-initial-mode 417 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 565 }; 418 }; 566 419 567 vreg_l1f_1p0: ldo1 { 420 vreg_l1f_1p0: ldo1 { 568 regulator-name = "vreg 421 regulator-name = "vreg_l1f_1p0"; 569 regulator-min-microvol 422 regulator-min-microvolt = <1024000>; 570 regulator-max-microvol 423 regulator-max-microvolt = <1024000>; 571 regulator-initial-mode 424 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 572 }; 425 }; 573 426 574 vreg_l2f_1p0: ldo2 { 427 vreg_l2f_1p0: ldo2 { 575 regulator-name = "vreg 428 regulator-name = "vreg_l2f_1p0"; 576 regulator-min-microvol 429 regulator-min-microvolt = <1024000>; 577 regulator-max-microvol 430 regulator-max-microvolt = <1024000>; 578 regulator-initial-mode 431 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 579 }; 432 }; 580 433 581 vreg_l3f_1p0: ldo3 { 434 vreg_l3f_1p0: ldo3 { 582 regulator-name = "vreg 435 regulator-name = "vreg_l3f_1p0"; 583 regulator-min-microvol 436 regulator-min-microvolt = <1024000>; 584 regulator-max-microvol 437 regulator-max-microvolt = <1024000>; 585 regulator-initial-mode 438 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 586 }; 439 }; 587 }; 440 }; 588 441 589 regulators-6 { 442 regulators-6 { 590 compatible = "qcom,pm8550ve-rp 443 compatible = "qcom,pm8550ve-rpmh-regulators"; 591 qcom,pmic-id = "i"; 444 qcom,pmic-id = "i"; 592 445 593 vdd-l1-supply = <&vreg_s4c_1p8 446 vdd-l1-supply = <&vreg_s4c_1p8>; 594 vdd-l2-supply = <&vreg_s5j_1p2 447 vdd-l2-supply = <&vreg_s5j_1p2>; 595 vdd-l3-supply = <&vreg_s1f_0p7 448 vdd-l3-supply = <&vreg_s1f_0p7>; 596 vdd-s1-supply = <&vph_pwr>; 449 vdd-s1-supply = <&vph_pwr>; 597 vdd-s2-supply = <&vph_pwr>; 450 vdd-s2-supply = <&vph_pwr>; 598 451 599 vreg_s1i_0p9: smps1 { 452 vreg_s1i_0p9: smps1 { 600 regulator-name = "vreg 453 regulator-name = "vreg_s1i_0p9"; 601 regulator-min-microvol 454 regulator-min-microvolt = <900000>; 602 regulator-max-microvol 455 regulator-max-microvolt = <920000>; 603 regulator-initial-mode 456 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 604 }; 457 }; 605 458 606 vreg_s2i_1p0: smps2 { 459 vreg_s2i_1p0: smps2 { 607 regulator-name = "vreg 460 regulator-name = "vreg_s2i_1p0"; 608 regulator-min-microvol 461 regulator-min-microvolt = <1000000>; 609 regulator-max-microvol 462 regulator-max-microvolt = <1100000>; 610 regulator-initial-mode 463 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 611 }; 464 }; 612 465 613 vreg_l1i_1p8: ldo1 { 466 vreg_l1i_1p8: ldo1 { 614 regulator-name = "vreg 467 regulator-name = "vreg_l1i_1p8"; 615 regulator-min-microvol 468 regulator-min-microvolt = <1800000>; 616 regulator-max-microvol 469 regulator-max-microvolt = <1800000>; 617 regulator-initial-mode 470 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 618 }; 471 }; 619 472 620 vreg_l2i_1p2: ldo2 { 473 vreg_l2i_1p2: ldo2 { 621 regulator-name = "vreg 474 regulator-name = "vreg_l2i_1p2"; 622 regulator-min-microvol 475 regulator-min-microvolt = <1200000>; 623 regulator-max-microvol 476 regulator-max-microvolt = <1200000>; 624 regulator-initial-mode 477 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 625 }; 478 }; 626 479 627 vreg_l3i_0p8: ldo3 { 480 vreg_l3i_0p8: ldo3 { 628 regulator-name = "vreg 481 regulator-name = "vreg_l3i_0p8"; 629 regulator-min-microvol 482 regulator-min-microvolt = <880000>; 630 regulator-max-microvol 483 regulator-max-microvolt = <920000>; 631 regulator-initial-mode 484 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 632 }; 485 }; 633 }; 486 }; 634 487 635 regulators-7 { 488 regulators-7 { 636 compatible = "qcom,pm8550ve-rp 489 compatible = "qcom,pm8550ve-rpmh-regulators"; 637 qcom,pmic-id = "j"; 490 qcom,pmic-id = "j"; 638 491 639 vdd-l1-supply = <&vreg_s1f_0p7 492 vdd-l1-supply = <&vreg_s1f_0p7>; 640 vdd-l2-supply = <&vreg_s5j_1p2 493 vdd-l2-supply = <&vreg_s5j_1p2>; 641 vdd-l3-supply = <&vreg_s1f_0p7 494 vdd-l3-supply = <&vreg_s1f_0p7>; 642 vdd-s5-supply = <&vph_pwr>; 495 vdd-s5-supply = <&vph_pwr>; 643 496 644 vreg_s5j_1p2: smps5 { 497 vreg_s5j_1p2: smps5 { 645 regulator-name = "vreg 498 regulator-name = "vreg_s5j_1p2"; 646 regulator-min-microvol 499 regulator-min-microvolt = <1256000>; 647 regulator-max-microvol 500 regulator-max-microvolt = <1304000>; 648 regulator-initial-mode 501 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 649 }; 502 }; 650 503 651 vreg_l1j_0p8: ldo1 { 504 vreg_l1j_0p8: ldo1 { 652 regulator-name = "vreg 505 regulator-name = "vreg_l1j_0p8"; 653 regulator-min-microvol 506 regulator-min-microvolt = <880000>; 654 regulator-max-microvol 507 regulator-max-microvolt = <920000>; 655 regulator-initial-mode 508 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 656 }; 509 }; 657 510 658 vreg_l2j_1p2: ldo2 { 511 vreg_l2j_1p2: ldo2 { 659 regulator-name = "vreg 512 regulator-name = "vreg_l2j_1p2"; 660 regulator-min-microvol 513 regulator-min-microvolt = <1200000>; 661 regulator-max-microvol 514 regulator-max-microvolt = <1200000>; 662 regulator-initial-mode 515 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 663 }; 516 }; 664 517 665 vreg_l3j_0p8: ldo3 { 518 vreg_l3j_0p8: ldo3 { 666 regulator-name = "vreg 519 regulator-name = "vreg_l3j_0p8"; 667 regulator-min-microvol 520 regulator-min-microvolt = <880000>; 668 regulator-max-microvol 521 regulator-max-microvolt = <920000>; 669 regulator-initial-mode 522 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 670 }; 523 }; 671 }; 524 }; 672 }; 525 }; 673 526 674 &gpu { << 675 status = "okay"; << 676 << 677 zap-shader { << 678 firmware-name = "qcom/x1e80100 << 679 }; << 680 }; << 681 << 682 &i2c0 { 527 &i2c0 { 683 clock-frequency = <400000>; 528 clock-frequency = <400000>; 684 529 685 status = "okay"; 530 status = "okay"; 686 531 687 touchpad@15 { 532 touchpad@15 { 688 compatible = "hid-over-i2c"; 533 compatible = "hid-over-i2c"; 689 reg = <0x15>; 534 reg = <0x15>; 690 535 691 hid-descr-addr = <0x1>; 536 hid-descr-addr = <0x1>; 692 interrupts-extended = <&tlmm 3 537 interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>; 693 538 694 pinctrl-0 = <&tpad_default>; 539 pinctrl-0 = <&tpad_default>; 695 pinctrl-names = "default"; 540 pinctrl-names = "default"; 696 541 697 wakeup-source; 542 wakeup-source; 698 }; 543 }; 699 544 700 keyboard@3a { 545 keyboard@3a { 701 compatible = "hid-over-i2c"; 546 compatible = "hid-over-i2c"; 702 reg = <0x3a>; 547 reg = <0x3a>; 703 548 704 hid-descr-addr = <0x1>; 549 hid-descr-addr = <0x1>; 705 interrupts-extended = <&tlmm 6 550 interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>; 706 551 707 pinctrl-0 = <&kybd_default>; 552 pinctrl-0 = <&kybd_default>; 708 pinctrl-names = "default"; 553 pinctrl-names = "default"; 709 554 710 wakeup-source; 555 wakeup-source; 711 }; 556 }; 712 }; 557 }; 713 558 714 &i2c8 { 559 &i2c8 { 715 clock-frequency = <400000>; 560 clock-frequency = <400000>; 716 561 717 status = "okay"; 562 status = "okay"; 718 563 719 touchscreen@10 { 564 touchscreen@10 { 720 compatible = "hid-over-i2c"; 565 compatible = "hid-over-i2c"; 721 reg = <0x10>; 566 reg = <0x10>; 722 567 723 hid-descr-addr = <0x1>; 568 hid-descr-addr = <0x1>; 724 interrupts-extended = <&tlmm 5 569 interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>; 725 570 726 pinctrl-0 = <&ts0_default>; 571 pinctrl-0 = <&ts0_default>; 727 pinctrl-names = "default"; 572 pinctrl-names = "default"; 728 }; 573 }; 729 }; 574 }; 730 575 731 &lpass_tlmm { 576 &lpass_tlmm { 732 spkr_01_sd_n_active: spkr-01-sd-n-acti 577 spkr_01_sd_n_active: spkr-01-sd-n-active-state { 733 pins = "gpio12"; 578 pins = "gpio12"; 734 function = "gpio"; 579 function = "gpio"; 735 drive-strength = <16>; 580 drive-strength = <16>; 736 bias-disable; 581 bias-disable; 737 output-low; 582 output-low; 738 }; 583 }; 739 584 740 spkr_23_sd_n_active: spkr-23-sd-n-acti 585 spkr_23_sd_n_active: spkr-23-sd-n-active-state { 741 pins = "gpio13"; 586 pins = "gpio13"; 742 function = "gpio"; 587 function = "gpio"; 743 drive-strength = <16>; 588 drive-strength = <16>; 744 bias-disable; 589 bias-disable; 745 output-low; 590 output-low; 746 }; 591 }; 747 }; 592 }; 748 593 749 &lpass_vamacro { 594 &lpass_vamacro { 750 pinctrl-0 = <&dmic01_default>, <&dmic2 595 pinctrl-0 = <&dmic01_default>, <&dmic23_default>; 751 pinctrl-names = "default"; 596 pinctrl-names = "default"; 752 597 753 vdd-micb-supply = <&vreg_l1b_1p8>; 598 vdd-micb-supply = <&vreg_l1b_1p8>; 754 qcom,dmic-sample-rate = <4800000>; 599 qcom,dmic-sample-rate = <4800000>; 755 }; 600 }; 756 601 757 &mdss { 602 &mdss { 758 status = "okay"; 603 status = "okay"; 759 }; 604 }; 760 605 761 &mdss_dp3 { 606 &mdss_dp3 { 762 compatible = "qcom,x1e80100-dp"; 607 compatible = "qcom,x1e80100-dp"; 763 /delete-property/ #sound-dai-cells; 608 /delete-property/ #sound-dai-cells; 764 609 >> 610 data-lanes = <0 1 2 3>; >> 611 765 status = "okay"; 612 status = "okay"; 766 613 767 aux-bus { 614 aux-bus { 768 panel { 615 panel { 769 compatible = "samsung, !! 616 compatible = "edp-panel"; 770 enable-gpios = <&pmc83 << 771 power-supply = <&vreg_ 617 power-supply = <&vreg_edp_3p3>; 772 618 773 pinctrl-0 = <&edp_bl_e << 774 pinctrl-names = "defau << 775 << 776 port { 619 port { 777 edp_panel_in: 620 edp_panel_in: endpoint { 778 remote 621 remote-endpoint = <&mdss_dp3_out>; 779 }; 622 }; 780 }; 623 }; 781 }; 624 }; 782 }; 625 }; 783 626 784 ports { 627 ports { 785 port@1 { 628 port@1 { 786 reg = <1>; 629 reg = <1>; 787 mdss_dp3_out: endpoint 630 mdss_dp3_out: endpoint { 788 data-lanes = < << 789 link-frequenci << 790 << 791 remote-endpoin 631 remote-endpoint = <&edp_panel_in>; 792 }; 632 }; 793 }; 633 }; 794 }; 634 }; 795 }; 635 }; 796 636 797 &mdss_dp3_phy { 637 &mdss_dp3_phy { 798 vdda-phy-supply = <&vreg_l3j_0p8>; 638 vdda-phy-supply = <&vreg_l3j_0p8>; 799 vdda-pll-supply = <&vreg_l2j_1p2>; 639 vdda-pll-supply = <&vreg_l2j_1p2>; 800 640 801 status = "okay"; 641 status = "okay"; 802 }; 642 }; 803 643 804 &pcie4 { 644 &pcie4 { 805 perst-gpios = <&tlmm 146 GPIO_ACTIVE_L << 806 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LO << 807 << 808 pinctrl-0 = <&pcie4_default>; << 809 pinctrl-names = "default"; << 810 << 811 status = "okay"; 645 status = "okay"; 812 }; 646 }; 813 647 814 &pcie4_phy { 648 &pcie4_phy { 815 vdda-phy-supply = <&vreg_l3i_0p8>; !! 649 vdda-phy-supply = <&vreg_l3j_0p8>; 816 vdda-pll-supply = <&vreg_l3e_1p2>; << 817 << 818 status = "okay"; << 819 }; << 820 << 821 &pcie5 { << 822 perst-gpios = <&tlmm 149 GPIO_ACTIVE_L << 823 wake-gpios = <&tlmm 151 GPIO_ACTIVE_LO << 824 << 825 vddpe-3v3-supply = <&vreg_wwan>; << 826 << 827 pinctrl-0 = <&pcie5_default>; << 828 pinctrl-names = "default"; << 829 << 830 status = "okay"; << 831 }; << 832 << 833 &pcie5_phy { << 834 vdda-phy-supply = <&vreg_l3i_0p8>; << 835 vdda-pll-supply = <&vreg_l3e_1p2>; 650 vdda-pll-supply = <&vreg_l3e_1p2>; 836 651 837 status = "okay"; 652 status = "okay"; 838 }; 653 }; 839 654 840 &pcie6a { 655 &pcie6a { 841 perst-gpios = <&tlmm 152 GPIO_ACTIVE_L << 842 wake-gpios = <&tlmm 154 GPIO_ACTIVE_LO << 843 << 844 vddpe-3v3-supply = <&vreg_nvme>; << 845 << 846 pinctrl-names = "default"; << 847 pinctrl-0 = <&pcie6a_default>; << 848 << 849 status = "okay"; 656 status = "okay"; 850 }; 657 }; 851 658 852 &pcie6a_phy { 659 &pcie6a_phy { 853 vdda-phy-supply = <&vreg_l1d_0p8>; 660 vdda-phy-supply = <&vreg_l1d_0p8>; 854 vdda-pll-supply = <&vreg_l2j_1p2>; 661 vdda-pll-supply = <&vreg_l2j_1p2>; 855 662 856 status = "okay"; 663 status = "okay"; 857 }; 664 }; 858 665 859 &pmc8380_3_gpios { << 860 edp_bl_en: edp-bl-en-state { << 861 pins = "gpio4"; << 862 function = "normal"; << 863 power-source = <1>; /* 1.8V */ << 864 input-disable; << 865 output-enable; << 866 }; << 867 }; << 868 << 869 &qupv3_0 { 666 &qupv3_0 { 870 status = "okay"; 667 status = "okay"; 871 }; 668 }; 872 669 873 &qupv3_1 { 670 &qupv3_1 { 874 status = "okay"; 671 status = "okay"; 875 }; 672 }; 876 673 877 &qupv3_2 { 674 &qupv3_2 { 878 status = "okay"; 675 status = "okay"; 879 }; 676 }; 880 677 881 &remoteproc_adsp { 678 &remoteproc_adsp { 882 firmware-name = "qcom/x1e80100/adsp.mb 679 firmware-name = "qcom/x1e80100/adsp.mbn", 883 "qcom/x1e80100/adsp_dt 680 "qcom/x1e80100/adsp_dtb.mbn"; 884 681 885 status = "okay"; 682 status = "okay"; 886 }; 683 }; 887 684 888 &remoteproc_cdsp { 685 &remoteproc_cdsp { 889 firmware-name = "qcom/x1e80100/cdsp.mb 686 firmware-name = "qcom/x1e80100/cdsp.mbn", 890 "qcom/x1e80100/cdsp_dt 687 "qcom/x1e80100/cdsp_dtb.mbn"; 891 688 892 status = "okay"; 689 status = "okay"; 893 }; 690 }; 894 691 895 &smb2360_0_eusb2_repeater { << 896 vdd18-supply = <&vreg_l3d_1p8>; << 897 vdd3-supply = <&vreg_l2b_3p0>; << 898 }; << 899 << 900 &smb2360_1_eusb2_repeater { << 901 vdd18-supply = <&vreg_l3d_1p8>; << 902 vdd3-supply = <&vreg_l14b_3p0>; << 903 }; << 904 << 905 &smb2360_2 { << 906 status = "okay"; << 907 }; << 908 << 909 &smb2360_2_eusb2_repeater { << 910 vdd18-supply = <&vreg_l3d_1p8>; << 911 vdd3-supply = <&vreg_l8b_3p0>; << 912 }; << 913 << 914 &swr0 { 692 &swr0 { 915 status = "okay"; 693 status = "okay"; 916 694 917 pinctrl-0 = <&wsa_swr_active>, <&spkr_ << 918 pinctrl-names = "default"; << 919 << 920 /* WSA8845, Left Woofer */ 695 /* WSA8845, Left Woofer */ 921 left_woofer: speaker@0,0 { 696 left_woofer: speaker@0,0 { 922 compatible = "sdw20217020400"; 697 compatible = "sdw20217020400"; 923 reg = <0 0>; 698 reg = <0 0>; 924 reset-gpios = <&lpass_tlmm 12 !! 699 pinctrl-0 = <&spkr_01_sd_n_active>; >> 700 pinctrl-names = "default"; >> 701 powerdown-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 925 #sound-dai-cells = <0>; 702 #sound-dai-cells = <0>; 926 sound-name-prefix = "WooferLef 703 sound-name-prefix = "WooferLeft"; 927 vdd-1p8-supply = <&vreg_l15b_1 704 vdd-1p8-supply = <&vreg_l15b_1p8>; 928 vdd-io-supply = <&vreg_l12b_1p 705 vdd-io-supply = <&vreg_l12b_1p2>; 929 qcom,port-mapping = <1 2 3 7 1 << 930 }; 706 }; 931 707 932 /* WSA8845, Left Tweeter */ 708 /* WSA8845, Left Tweeter */ 933 left_tweeter: speaker@0,1 { 709 left_tweeter: speaker@0,1 { 934 compatible = "sdw20217020400"; 710 compatible = "sdw20217020400"; 935 reg = <0 1>; 711 reg = <0 1>; 936 reset-gpios = <&lpass_tlmm 12 !! 712 /* pinctrl in left_woofer node because of sharing the GPIO*/ >> 713 powerdown-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 937 #sound-dai-cells = <0>; 714 #sound-dai-cells = <0>; 938 sound-name-prefix = "TweeterLe !! 715 sound-name-prefix = "TwitterLeft"; 939 vdd-1p8-supply = <&vreg_l15b_1 716 vdd-1p8-supply = <&vreg_l15b_1p8>; 940 vdd-io-supply = <&vreg_l12b_1p 717 vdd-io-supply = <&vreg_l12b_1p2>; 941 qcom,port-mapping = <4 5 6 7 1 << 942 }; 718 }; 943 }; 719 }; 944 720 945 &swr1 { 721 &swr1 { 946 status = "okay"; 722 status = "okay"; 947 723 948 /* WCD9385 RX */ 724 /* WCD9385 RX */ 949 wcd_rx: codec@0,4 { 725 wcd_rx: codec@0,4 { 950 compatible = "sdw20217010d00"; 726 compatible = "sdw20217010d00"; 951 reg = <0 4>; 727 reg = <0 4>; 952 qcom,rx-port-mapping = <1 2 3 728 qcom,rx-port-mapping = <1 2 3 4 5>; 953 }; 729 }; 954 }; 730 }; 955 731 956 &swr2 { 732 &swr2 { 957 status = "okay"; 733 status = "okay"; 958 734 959 /* WCD9385 TX */ 735 /* WCD9385 TX */ 960 wcd_tx: codec@0,3 { 736 wcd_tx: codec@0,3 { 961 compatible = "sdw20217010d00"; 737 compatible = "sdw20217010d00"; 962 reg = <0 3>; 738 reg = <0 3>; 963 qcom,tx-port-mapping = <2 2 3 739 qcom,tx-port-mapping = <2 2 3 4>; 964 }; 740 }; 965 }; 741 }; 966 742 967 &swr3 { 743 &swr3 { 968 status = "okay"; 744 status = "okay"; 969 745 970 pinctrl-0 = <&wsa2_swr_active>, <&spkr << 971 pinctrl-names = "default"; << 972 << 973 /* WSA8845, Right Woofer */ 746 /* WSA8845, Right Woofer */ 974 right_woofer: speaker@0,0 { 747 right_woofer: speaker@0,0 { 975 compatible = "sdw20217020400"; 748 compatible = "sdw20217020400"; 976 reg = <0 0>; 749 reg = <0 0>; 977 reset-gpios = <&lpass_tlmm 13 !! 750 pinctrl-0 = <&spkr_23_sd_n_active>; >> 751 pinctrl-names = "default"; >> 752 powerdown-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 978 #sound-dai-cells = <0>; 753 #sound-dai-cells = <0>; 979 sound-name-prefix = "WooferRig 754 sound-name-prefix = "WooferRight"; 980 vdd-1p8-supply = <&vreg_l15b_1 755 vdd-1p8-supply = <&vreg_l15b_1p8>; 981 vdd-io-supply = <&vreg_l12b_1p 756 vdd-io-supply = <&vreg_l12b_1p2>; 982 qcom,port-mapping = <1 2 3 7 1 << 983 }; 757 }; 984 758 985 /* WSA8845, Right Tweeter */ 759 /* WSA8845, Right Tweeter */ 986 right_tweeter: speaker@0,1 { 760 right_tweeter: speaker@0,1 { 987 compatible = "sdw20217020400"; 761 compatible = "sdw20217020400"; 988 reg = <0 1>; 762 reg = <0 1>; 989 reset-gpios = <&lpass_tlmm 13 !! 763 /* pinctrl in right_woofer node because of sharing the GPIO*/ >> 764 powerdown-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 990 #sound-dai-cells = <0>; 765 #sound-dai-cells = <0>; 991 sound-name-prefix = "TweeterRi !! 766 sound-name-prefix = "TwitterRight"; 992 vdd-1p8-supply = <&vreg_l15b_1 767 vdd-1p8-supply = <&vreg_l15b_1p8>; 993 vdd-io-supply = <&vreg_l12b_1p 768 vdd-io-supply = <&vreg_l12b_1p2>; 994 qcom,port-mapping = <4 5 6 7 1 << 995 }; 769 }; 996 }; 770 }; 997 771 998 &tlmm { 772 &tlmm { 999 gpio-reserved-ranges = <34 2>, /* Unus 773 gpio-reserved-ranges = <34 2>, /* Unused */ 1000 <44 4>, /* SPI 774 <44 4>, /* SPI (TPM) */ 1001 <238 1>; /* UF 775 <238 1>; /* UFS Reset */ 1002 776 1003 edp_reg_en: edp-reg-en-state { 777 edp_reg_en: edp-reg-en-state { 1004 pins = "gpio70"; 778 pins = "gpio70"; 1005 function = "gpio"; 779 function = "gpio"; 1006 drive-strength = <16>; 780 drive-strength = <16>; 1007 bias-disable; 781 bias-disable; 1008 }; 782 }; 1009 783 1010 hall_int_n_default: hall-int-n-state << 1011 pins = "gpio92"; << 1012 function = "gpio"; << 1013 bias-disable; << 1014 }; << 1015 << 1016 kybd_default: kybd-default-state { 784 kybd_default: kybd-default-state { 1017 pins = "gpio67"; 785 pins = "gpio67"; 1018 function = "gpio"; 786 function = "gpio"; 1019 bias-disable; 787 bias-disable; 1020 }; 788 }; 1021 789 1022 nvme_reg_en: nvme-reg-en-state { << 1023 pins = "gpio18"; << 1024 function = "gpio"; << 1025 drive-strength = <2>; << 1026 bias-disable; << 1027 }; << 1028 << 1029 pcie4_default: pcie4-default-state { << 1030 clkreq-n-pins { << 1031 pins = "gpio147"; << 1032 function = "pcie4_clk << 1033 drive-strength = <2>; << 1034 bias-pull-up; << 1035 }; << 1036 << 1037 perst-n-pins { << 1038 pins = "gpio146"; << 1039 function = "gpio"; << 1040 drive-strength = <2>; << 1041 bias-disable; << 1042 }; << 1043 << 1044 wake-n-pins { << 1045 pins = "gpio148"; << 1046 function = "gpio"; << 1047 drive-strength = <2>; << 1048 bias-pull-up; << 1049 }; << 1050 }; << 1051 << 1052 pcie5_default: pcie5-default-state { << 1053 clkreq-n-pins { << 1054 pins = "gpio150"; << 1055 function = "pcie5_clk << 1056 drive-strength = <2>; << 1057 bias-pull-up; << 1058 }; << 1059 << 1060 perst-n-pins { << 1061 pins = "gpio149"; << 1062 function = "gpio"; << 1063 drive-strength = <2>; << 1064 bias-disable; << 1065 }; << 1066 << 1067 wake-n-pins { << 1068 pins = "gpio151"; << 1069 function = "gpio"; << 1070 drive-strength = <2>; << 1071 bias-pull-up; << 1072 }; << 1073 }; << 1074 << 1075 pcie6a_default: pcie6a-default-state << 1076 clkreq-n-pins { << 1077 pins = "gpio153"; << 1078 function = "pcie6a_cl << 1079 drive-strength = <2>; << 1080 bias-pull-up; << 1081 }; << 1082 << 1083 perst-n-pins { << 1084 pins = "gpio152"; << 1085 function = "gpio"; << 1086 drive-strength = <2>; << 1087 bias-disable; << 1088 }; << 1089 << 1090 wake-n-pins { << 1091 pins = "gpio154"; << 1092 function = "gpio"; << 1093 drive-strength = <2>; << 1094 bias-pull-up; << 1095 }; << 1096 }; << 1097 << 1098 tpad_default: tpad-default-state { 790 tpad_default: tpad-default-state { 1099 pins = "gpio3"; 791 pins = "gpio3"; 1100 function = "gpio"; 792 function = "gpio"; 1101 bias-disable; 793 bias-disable; 1102 }; 794 }; 1103 795 1104 ts0_default: ts0-default-state { 796 ts0_default: ts0-default-state { 1105 int-n-pins { 797 int-n-pins { 1106 pins = "gpio51"; 798 pins = "gpio51"; 1107 function = "gpio"; 799 function = "gpio"; 1108 bias-disable; 800 bias-disable; 1109 }; 801 }; 1110 802 1111 reset-n-pins { 803 reset-n-pins { 1112 pins = "gpio48"; 804 pins = "gpio48"; 1113 function = "gpio"; 805 function = "gpio"; 1114 output-high; 806 output-high; 1115 drive-strength = <16> 807 drive-strength = <16>; 1116 }; 808 }; 1117 }; 809 }; 1118 810 1119 wcd_default: wcd-reset-n-active-state 811 wcd_default: wcd-reset-n-active-state { 1120 pins = "gpio191"; 812 pins = "gpio191"; 1121 function = "gpio"; 813 function = "gpio"; 1122 drive-strength = <16>; 814 drive-strength = <16>; 1123 bias-disable; 815 bias-disable; 1124 output-low; 816 output-low; 1125 }; 817 }; 1126 << 1127 wwan_sw_en: wwan-sw-en-state { << 1128 pins = "gpio221"; << 1129 function = "gpio"; << 1130 drive-strength = <4>; << 1131 bias-disable; << 1132 }; << 1133 }; 818 }; 1134 819 1135 &uart21 { 820 &uart21 { 1136 compatible = "qcom,geni-debug-uart"; 821 compatible = "qcom,geni-debug-uart"; 1137 status = "okay"; 822 status = "okay"; 1138 }; 823 }; 1139 824 1140 &usb_1_ss0_hsphy { 825 &usb_1_ss0_hsphy { 1141 vdd-supply = <&vreg_l3j_0p8>; !! 826 vdd-supply = <&vreg_l2e_0p8>; 1142 vdda12-supply = <&vreg_l2j_1p2>; 827 vdda12-supply = <&vreg_l2j_1p2>; 1143 828 1144 phys = <&smb2360_0_eusb2_repeater>; << 1145 << 1146 status = "okay"; 829 status = "okay"; 1147 }; 830 }; 1148 831 1149 &usb_1_ss0_qmpphy { 832 &usb_1_ss0_qmpphy { 1150 vdda-phy-supply = <&vreg_l3e_1p2>; 833 vdda-phy-supply = <&vreg_l3e_1p2>; 1151 vdda-pll-supply = <&vreg_l1j_0p8>; 834 vdda-pll-supply = <&vreg_l1j_0p8>; 1152 835 1153 status = "okay"; 836 status = "okay"; 1154 }; 837 }; 1155 838 1156 &usb_1_ss0 { 839 &usb_1_ss0 { 1157 status = "okay"; 840 status = "okay"; 1158 }; 841 }; 1159 842 1160 &usb_1_ss0_dwc3 { 843 &usb_1_ss0_dwc3 { 1161 dr_mode = "host"; 844 dr_mode = "host"; 1162 }; !! 845 usb-role-switch; 1163 << 1164 &usb_1_ss0_dwc3_hs { << 1165 remote-endpoint = <&pmic_glink_ss0_hs << 1166 }; << 1167 << 1168 &usb_1_ss0_qmpphy_out { << 1169 remote-endpoint = <&pmic_glink_ss0_ss << 1170 }; 846 }; 1171 847 1172 &usb_1_ss1_hsphy { 848 &usb_1_ss1_hsphy { 1173 vdd-supply = <&vreg_l3j_0p8>; !! 849 vdd-supply = <&vreg_l2e_0p8>; 1174 vdda12-supply = <&vreg_l2j_1p2>; 850 vdda12-supply = <&vreg_l2j_1p2>; 1175 851 1176 phys = <&smb2360_1_eusb2_repeater>; << 1177 << 1178 status = "okay"; 852 status = "okay"; 1179 }; 853 }; 1180 854 1181 &usb_1_ss1_qmpphy { 855 &usb_1_ss1_qmpphy { 1182 vdda-phy-supply = <&vreg_l3e_1p2>; 856 vdda-phy-supply = <&vreg_l3e_1p2>; 1183 vdda-pll-supply = <&vreg_l2d_0p9>; 857 vdda-pll-supply = <&vreg_l2d_0p9>; 1184 858 1185 status = "okay"; 859 status = "okay"; 1186 }; 860 }; 1187 861 1188 &usb_1_ss1 { 862 &usb_1_ss1 { 1189 status = "okay"; 863 status = "okay"; 1190 }; 864 }; 1191 865 1192 &usb_1_ss1_dwc3 { 866 &usb_1_ss1_dwc3 { 1193 dr_mode = "host"; 867 dr_mode = "host"; 1194 }; !! 868 usb-role-switch; 1195 << 1196 &usb_1_ss1_dwc3_hs { << 1197 remote-endpoint = <&pmic_glink_ss1_hs << 1198 }; << 1199 << 1200 &usb_1_ss1_qmpphy_out { << 1201 remote-endpoint = <&pmic_glink_ss1_ss << 1202 }; 869 }; 1203 870 1204 &usb_1_ss2_hsphy { 871 &usb_1_ss2_hsphy { 1205 vdd-supply = <&vreg_l3j_0p8>; !! 872 vdd-supply = <&vreg_l2e_0p8>; 1206 vdda12-supply = <&vreg_l2j_1p2>; 873 vdda12-supply = <&vreg_l2j_1p2>; 1207 874 1208 phys = <&smb2360_2_eusb2_repeater>; << 1209 << 1210 status = "okay"; 875 status = "okay"; 1211 }; 876 }; 1212 877 1213 &usb_1_ss2_qmpphy { 878 &usb_1_ss2_qmpphy { 1214 vdda-phy-supply = <&vreg_l3e_1p2>; 879 vdda-phy-supply = <&vreg_l3e_1p2>; 1215 vdda-pll-supply = <&vreg_l2d_0p9>; 880 vdda-pll-supply = <&vreg_l2d_0p9>; 1216 881 1217 status = "okay"; 882 status = "okay"; 1218 }; 883 }; 1219 884 1220 &usb_1_ss2 { 885 &usb_1_ss2 { 1221 status = "okay"; 886 status = "okay"; 1222 }; 887 }; 1223 888 1224 &usb_1_ss2_dwc3 { 889 &usb_1_ss2_dwc3 { 1225 dr_mode = "host"; 890 dr_mode = "host"; 1226 }; !! 891 usb-role-switch; 1227 << 1228 &usb_1_ss2_dwc3_hs { << 1229 remote-endpoint = <&pmic_glink_ss2_hs << 1230 }; << 1231 << 1232 &usb_1_ss2_qmpphy_out { << 1233 remote-endpoint = <&pmic_glink_ss2_ss << 1234 }; 892 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.