| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/gpio/gpio.h> |
| 7 |
#include <dt-bindings/input/gpio-keys.h> |
| 8 |
#include <dt-bindings/input/input.h> |
| 9 |
#include <dt-bindings/leds/common.h> |
| 10 |
#include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 11 |
|
| 12 |
#include "hamoa.dtsi" |
| 13 |
#include "hamoa-pmics.dtsi" |
| 14 |
|
| 15 |
/ { |
| 16 |
aliases { |
| 17 |
serial0 = &uart2; |
| 18 |
i2c0 = &i2c0; |
| 19 |
i2c3 = &i2c3; |
| 20 |
i2c4 = &i2c4; |
| 21 |
i2c5 = &i2c5; |
| 22 |
i2c7 = &i2c7; |
| 23 |
}; |
| 24 |
|
| 25 |
wcd938x: audio-codec { |
| 26 |
compatible = "qcom,wcd9385-codec"; |
| 27 |
|
| 28 |
reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>; |
| 29 |
|
| 30 |
qcom,micbias1-microvolt = <1800000>; |
| 31 |
qcom,micbias2-microvolt = <1800000>; |
| 32 |
qcom,micbias3-microvolt = <1800000>; |
| 33 |
qcom,micbias4-microvolt = <1800000>; |
| 34 |
qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; |
| 35 |
qcom,mbhc-headset-vthreshold-microvolt = <1700000>; |
| 36 |
qcom,mbhc-headphone-vthreshold-microvolt = <50000>; |
| 37 |
qcom,rx-device = <&wcd_rx>; |
| 38 |
qcom,tx-device = <&wcd_tx>; |
| 39 |
|
| 40 |
|
| 41 |
vdd-buck-supply = <&vreg_l15b>; |
| 42 |
vdd-rxtx-supply = <&vreg_l15b>; |
| 43 |
vdd-io-supply = <&vreg_l15b>; |
| 44 |
vdd-mic-bias-supply = <&vreg_bob1>; |
| 45 |
|
| 46 |
pinctrl-0 = <&wcd_default>; |
| 47 |
pinctrl-names = "default"; |
| 48 |
|
| 49 |
#sound-dai-cells = <1>; |
| 50 |
}; |
| 51 |
|
| 52 |
backlight: backlight { |
| 53 |
compatible = "pwm-backlight"; |
| 54 |
pwms = <&pmk8550_pwm 0 5000000>; |
| 55 |
enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; |
| 56 |
/* TODO: power-supply? */ |
| 57 |
|
| 58 |
pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; |
| 59 |
pinctrl-names = "default"; |
| 60 |
}; |
| 61 |
|
| 62 |
gpio-keys { |
| 63 |
compatible = "gpio-keys"; |
| 64 |
|
| 65 |
pinctrl-0 = <&hall_int_n_default>; |
| 66 |
pinctrl-names = "default"; |
| 67 |
|
| 68 |
switch-lid { |
| 69 |
gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; |
| 70 |
linux,input-type = <EV_SW>; |
| 71 |
linux,code = <SW_LID>; |
| 72 |
wakeup-source; |
| 73 |
wakeup-event-action = <EV_ACT_DEASSERTED>; |
| 74 |
}; |
| 75 |
}; |
| 76 |
|
| 77 |
leds { |
| 78 |
compatible = "gpio-leds"; |
| 79 |
|
| 80 |
pinctrl-names = "default"; |
| 81 |
pinctrl-0 = <&cam_indicator_en>; |
| 82 |
|
| 83 |
led-camera-indicator { |
| 84 |
label = "white:camera-indicator"; |
| 85 |
function = LED_FUNCTION_INDICATOR; |
| 86 |
color = <LED_COLOR_ID_WHITE>; |
| 87 |
gpios = <&tlmm 225 GPIO_ACTIVE_HIGH>; |
| 88 |
linux,default-trigger = "none"; |
| 89 |
default-state = "off"; |
| 90 |
/* Reuse as a panic indicator until we get a "camera on" trigger */ |
| 91 |
panic-indicator; |
| 92 |
}; |
| 93 |
}; |
| 94 |
|
| 95 |
pmic-glink { |
| 96 |
compatible = "qcom,x1e80100-pmic-glink", |
| 97 |
"qcom,sm8550-pmic-glink", |
| 98 |
"qcom,pmic-glink"; |
| 99 |
#address-cells = <1>; |
| 100 |
#size-cells = <0>; |
| 101 |
orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, |
| 102 |
<&tlmm 123 GPIO_ACTIVE_HIGH>; |
| 103 |
|
| 104 |
/* Left-side rear port */ |
| 105 |
connector@0 { |
| 106 |
compatible = "usb-c-connector"; |
| 107 |
reg = <0>; |
| 108 |
power-role = "dual"; |
| 109 |
data-role = "dual"; |
| 110 |
|
| 111 |
ports { |
| 112 |
#address-cells = <1>; |
| 113 |
#size-cells = <0>; |
| 114 |
|
| 115 |
port@0 { |
| 116 |
reg = <0>; |
| 117 |
|
| 118 |
pmic_glink_ss0_hs_in: endpoint { |
| 119 |
remote-endpoint = <&usb_1_ss0_dwc3_hs>; |
| 120 |
}; |
| 121 |
}; |
| 122 |
|
| 123 |
port@1 { |
| 124 |
reg = <1>; |
| 125 |
|
| 126 |
pmic_glink_ss0_ss_in: endpoint { |
| 127 |
remote-endpoint = <&retimer_ss0_ss_out>; |
| 128 |
}; |
| 129 |
}; |
| 130 |
|
| 131 |
port@2 { |
| 132 |
reg = <2>; |
| 133 |
|
| 134 |
pmic_glink_ss0_con_sbu_in: endpoint { |
| 135 |
remote-endpoint = <&retimer_ss0_con_sbu_out>; |
| 136 |
}; |
| 137 |
}; |
| 138 |
}; |
| 139 |
}; |
| 140 |
|
| 141 |
/* Left-side front port */ |
| 142 |
connector@1 { |
| 143 |
compatible = "usb-c-connector"; |
| 144 |
reg = <1>; |
| 145 |
power-role = "dual"; |
| 146 |
data-role = "dual"; |
| 147 |
|
| 148 |
ports { |
| 149 |
#address-cells = <1>; |
| 150 |
#size-cells = <0>; |
| 151 |
|
| 152 |
port@0 { |
| 153 |
reg = <0>; |
| 154 |
|
| 155 |
pmic_glink_ss1_hs_in: endpoint { |
| 156 |
remote-endpoint = <&usb_1_ss1_dwc3_hs>; |
| 157 |
}; |
| 158 |
}; |
| 159 |
|
| 160 |
port@1 { |
| 161 |
reg = <1>; |
| 162 |
|
| 163 |
pmic_glink_ss1_ss_in: endpoint { |
| 164 |
remote-endpoint = <&retimer_ss1_ss_out>; |
| 165 |
}; |
| 166 |
}; |
| 167 |
|
| 168 |
port@2 { |
| 169 |
reg = <2>; |
| 170 |
|
| 171 |
pmic_glink_ss1_con_sbu_in: endpoint { |
| 172 |
remote-endpoint = <&retimer_ss1_con_sbu_out>; |
| 173 |
}; |
| 174 |
}; |
| 175 |
}; |
| 176 |
}; |
| 177 |
}; |
| 178 |
|
| 179 |
reserved-memory { |
| 180 |
linux,cma { |
| 181 |
compatible = "shared-dma-pool"; |
| 182 |
size = <0x0 0x8000000>; |
| 183 |
reusable; |
| 184 |
linux,cma-default; |
| 185 |
}; |
| 186 |
}; |
| 187 |
|
| 188 |
vreg_edp_3p3: regulator-edp-3p3 { |
| 189 |
compatible = "regulator-fixed"; |
| 190 |
|
| 191 |
regulator-name = "VREG_EDP_3P3"; |
| 192 |
regulator-min-microvolt = <3300000>; |
| 193 |
regulator-max-microvolt = <3300000>; |
| 194 |
|
| 195 |
gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; |
| 196 |
enable-active-high; |
| 197 |
|
| 198 |
pinctrl-0 = <&edp_reg_en>; |
| 199 |
pinctrl-names = "default"; |
| 200 |
|
| 201 |
regulator-boot-on; |
| 202 |
}; |
| 203 |
|
| 204 |
vreg_rtmr0_1p15: regulator-rtmr0-1p15 { |
| 205 |
compatible = "regulator-fixed"; |
| 206 |
|
| 207 |
regulator-name = "VREG_RTMR0_1P15"; |
| 208 |
|
| 209 |
regulator-min-microvolt = <1150000>; |
| 210 |
regulator-max-microvolt = <1150000>; |
| 211 |
|
| 212 |
gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>; |
| 213 |
enable-active-high; |
| 214 |
|
| 215 |
pinctrl-0 = <&rtmr0_1p15_reg_en>; |
| 216 |
pinctrl-names = "default"; |
| 217 |
|
| 218 |
regulator-boot-on; |
| 219 |
}; |
| 220 |
|
| 221 |
vreg_rtmr0_1p8: regulator-rtmr0-1p8 { |
| 222 |
compatible = "regulator-fixed"; |
| 223 |
|
| 224 |
regulator-name = "VREG_RTMR0_1P8"; |
| 225 |
|
| 226 |
regulator-min-microvolt = <1800000>; |
| 227 |
regulator-max-microvolt = <1800000>; |
| 228 |
|
| 229 |
gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>; |
| 230 |
enable-active-high; |
| 231 |
|
| 232 |
pinctrl-0 = <&rtmr0_1p8_reg_en>; |
| 233 |
pinctrl-names = "default"; |
| 234 |
|
| 235 |
regulator-boot-on; |
| 236 |
}; |
| 237 |
|
| 238 |
vreg_rtmr0_3p3: regulator-rtmr0-3p3 { |
| 239 |
compatible = "regulator-fixed"; |
| 240 |
|
| 241 |
regulator-name = "VREG_RTMR0_3P3"; |
| 242 |
|
| 243 |
regulator-min-microvolt = <3300000>; |
| 244 |
regulator-max-microvolt = <3300000>; |
| 245 |
|
| 246 |
gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>; |
| 247 |
enable-active-high; |
| 248 |
|
| 249 |
pinctrl-0 = <&rtmr0_3p3_reg_en>; |
| 250 |
pinctrl-names = "default"; |
| 251 |
|
| 252 |
regulator-boot-on; |
| 253 |
}; |
| 254 |
|
| 255 |
vreg_rtmr1_1p15: regulator-rtmr1-1p15 { |
| 256 |
compatible = "regulator-fixed"; |
| 257 |
|
| 258 |
regulator-name = "VREG_RTMR1_1P15"; |
| 259 |
|
| 260 |
regulator-min-microvolt = <1150000>; |
| 261 |
regulator-max-microvolt = <1150000>; |
| 262 |
|
| 263 |
gpio = <&tlmm 188 GPIO_ACTIVE_HIGH>; |
| 264 |
enable-active-high; |
| 265 |
|
| 266 |
pinctrl-0 = <&rtmr1_1p15_reg_en>; |
| 267 |
pinctrl-names = "default"; |
| 268 |
|
| 269 |
regulator-boot-on; |
| 270 |
}; |
| 271 |
|
| 272 |
vreg_rtmr1_1p8: regulator-rtmr1-1p8 { |
| 273 |
compatible = "regulator-fixed"; |
| 274 |
|
| 275 |
regulator-name = "VREG_RTMR1_1P8"; |
| 276 |
|
| 277 |
regulator-min-microvolt = <1800000>; |
| 278 |
regulator-max-microvolt = <1800000>; |
| 279 |
|
| 280 |
gpio = <&tlmm 175 GPIO_ACTIVE_HIGH>; |
| 281 |
enable-active-high; |
| 282 |
|
| 283 |
pinctrl-0 = <&rtmr1_1p8_reg_en>; |
| 284 |
pinctrl-names = "default"; |
| 285 |
|
| 286 |
regulator-boot-on; |
| 287 |
}; |
| 288 |
|
| 289 |
vreg_rtmr1_3p3: regulator-rtmr1-3p3 { |
| 290 |
compatible = "regulator-fixed"; |
| 291 |
|
| 292 |
regulator-name = "VREG_RTMR1_3P3"; |
| 293 |
|
| 294 |
regulator-min-microvolt = <3300000>; |
| 295 |
regulator-max-microvolt = <3300000>; |
| 296 |
|
| 297 |
gpio = <&tlmm 186 GPIO_ACTIVE_HIGH>; |
| 298 |
enable-active-high; |
| 299 |
|
| 300 |
pinctrl-0 = <&rtmr1_3p3_reg_en>; |
| 301 |
pinctrl-names = "default"; |
| 302 |
|
| 303 |
regulator-boot-on; |
| 304 |
}; |
| 305 |
|
| 306 |
|
| 307 |
vreg_nvme: regulator-nvme { |
| 308 |
compatible = "regulator-fixed"; |
| 309 |
|
| 310 |
regulator-name = "VREG_NVME_3P3"; |
| 311 |
regulator-min-microvolt = <3300000>; |
| 312 |
regulator-max-microvolt = <3300000>; |
| 313 |
|
| 314 |
gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>; |
| 315 |
enable-active-high; |
| 316 |
|
| 317 |
pinctrl-0 = <&nvme_reg_en>; |
| 318 |
pinctrl-names = "default"; |
| 319 |
|
| 320 |
regulator-boot-on; |
| 321 |
}; |
| 322 |
|
| 323 |
vph_pwr: regulator-vph-pwr { |
| 324 |
compatible = "regulator-fixed"; |
| 325 |
|
| 326 |
regulator-name = "vph_pwr"; |
| 327 |
regulator-min-microvolt = <3700000>; |
| 328 |
regulator-max-microvolt = <3700000>; |
| 329 |
|
| 330 |
regulator-always-on; |
| 331 |
regulator-boot-on; |
| 332 |
}; |
| 333 |
|
| 334 |
vreg_wcn_0p95: regulator-wcn-0p95 { |
| 335 |
compatible = "regulator-fixed"; |
| 336 |
|
| 337 |
regulator-name = "VREG_WCN_0P95"; |
| 338 |
regulator-min-microvolt = <950000>; |
| 339 |
regulator-max-microvolt = <950000>; |
| 340 |
|
| 341 |
vin-supply = <&vreg_wcn_3p3>; |
| 342 |
}; |
| 343 |
|
| 344 |
vreg_wcn_1p9: regulator-wcn-1p9 { |
| 345 |
compatible = "regulator-fixed"; |
| 346 |
|
| 347 |
regulator-name = "VREG_WCN_1P9"; |
| 348 |
regulator-min-microvolt = <1900000>; |
| 349 |
regulator-max-microvolt = <1900000>; |
| 350 |
|
| 351 |
vin-supply = <&vreg_wcn_3p3>; |
| 352 |
}; |
| 353 |
|
| 354 |
vreg_wcn_3p3: regulator-wcn-3p3 { |
| 355 |
compatible = "regulator-fixed"; |
| 356 |
|
| 357 |
regulator-name = "VREG_WCN_3P3"; |
| 358 |
regulator-min-microvolt = <3300000>; |
| 359 |
regulator-max-microvolt = <3300000>; |
| 360 |
|
| 361 |
gpio = <&tlmm 214 GPIO_ACTIVE_HIGH>; |
| 362 |
enable-active-high; |
| 363 |
|
| 364 |
pinctrl-0 = <&wcn_sw_en>; |
| 365 |
pinctrl-names = "default"; |
| 366 |
|
| 367 |
regulator-boot-on; |
| 368 |
}; |
| 369 |
|
| 370 |
sound { |
| 371 |
compatible = "qcom,x1e80100-sndcard"; |
| 372 |
model = "X1E80100-Romulus"; |
| 373 |
audio-routing = "SpkrLeft IN", "WSA WSA_SPK1 OUT", |
| 374 |
"SpkrRight IN", "WSA WSA_SPK2 OUT", |
| 375 |
"IN1_HPHL", "HPHL_OUT", |
| 376 |
"IN2_HPHR", "HPHR_OUT", |
| 377 |
"AMIC2", "MIC BIAS2", |
| 378 |
"VA DMIC0", "MIC BIAS3", |
| 379 |
"VA DMIC1", "MIC BIAS3", |
| 380 |
"VA DMIC0", "VA MIC BIAS3", |
| 381 |
"VA DMIC1", "VA MIC BIAS3", |
| 382 |
"TX SWR_INPUT1", "ADC2_OUTPUT"; |
| 383 |
|
| 384 |
va-dai-link { |
| 385 |
link-name = "VA Capture"; |
| 386 |
|
| 387 |
cpu { |
| 388 |
sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; |
| 389 |
}; |
| 390 |
|
| 391 |
codec { |
| 392 |
sound-dai = <&lpass_vamacro 0>; |
| 393 |
}; |
| 394 |
|
| 395 |
platform { |
| 396 |
sound-dai = <&q6apm>; |
| 397 |
}; |
| 398 |
}; |
| 399 |
|
| 400 |
wcd-capture-dai-link { |
| 401 |
link-name = "WCD Capture"; |
| 402 |
|
| 403 |
cpu { |
| 404 |
sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; |
| 405 |
}; |
| 406 |
|
| 407 |
codec { |
| 408 |
sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>; |
| 409 |
}; |
| 410 |
|
| 411 |
platform { |
| 412 |
sound-dai = <&q6apm>; |
| 413 |
}; |
| 414 |
}; |
| 415 |
|
| 416 |
wcd-playback-dai-link { |
| 417 |
link-name = "WCD Playback"; |
| 418 |
|
| 419 |
cpu { |
| 420 |
sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; |
| 421 |
}; |
| 422 |
|
| 423 |
codec { |
| 424 |
sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; |
| 425 |
}; |
| 426 |
|
| 427 |
platform { |
| 428 |
sound-dai = <&q6apm>; |
| 429 |
}; |
| 430 |
}; |
| 431 |
|
| 432 |
wsa-dai-link { |
| 433 |
link-name = "WSA Playback"; |
| 434 |
|
| 435 |
cpu { |
| 436 |
sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; |
| 437 |
}; |
| 438 |
|
| 439 |
codec { |
| 440 |
sound-dai = <&left_spkr>, <&right_spkr>, |
| 441 |
<&swr0 0>, <&lpass_wsamacro 0>; |
| 442 |
}; |
| 443 |
|
| 444 |
platform { |
| 445 |
sound-dai = <&q6apm>; |
| 446 |
}; |
| 447 |
}; |
| 448 |
}; |
| 449 |
|
| 450 |
wcn7850-pmu { |
| 451 |
compatible = "qcom,wcn7850-pmu"; |
| 452 |
|
| 453 |
vdd-supply = <&vreg_wcn_0p95>; |
| 454 |
vddio-supply = <&vreg_l15b>; |
| 455 |
vddaon-supply = <&vreg_wcn_0p95>; |
| 456 |
vdddig-supply = <&vreg_wcn_0p95>; |
| 457 |
vddrfa1p2-supply = <&vreg_wcn_1p9>; |
| 458 |
vddrfa1p8-supply = <&vreg_wcn_1p9>; |
| 459 |
|
| 460 |
wlan-enable-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>; |
| 461 |
bt-enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>; |
| 462 |
|
| 463 |
pinctrl-0 = <&wcn_wlan_bt_en>; |
| 464 |
pinctrl-names = "default"; |
| 465 |
|
| 466 |
regulators { |
| 467 |
vreg_pmu_rfa_cmn: ldo0 { |
| 468 |
regulator-name = "vreg_pmu_rfa_cmn"; |
| 469 |
}; |
| 470 |
|
| 471 |
vreg_pmu_aon_0p59: ldo1 { |
| 472 |
regulator-name = "vreg_pmu_aon_0p59"; |
| 473 |
}; |
| 474 |
|
| 475 |
vreg_pmu_wlcx_0p8: ldo2 { |
| 476 |
regulator-name = "vreg_pmu_wlcx_0p8"; |
| 477 |
}; |
| 478 |
|
| 479 |
vreg_pmu_wlmx_0p85: ldo3 { |
| 480 |
regulator-name = "vreg_pmu_wlmx_0p85"; |
| 481 |
}; |
| 482 |
|
| 483 |
vreg_pmu_btcmx_0p85: ldo4 { |
| 484 |
regulator-name = "vreg_pmu_btcmx_0p85"; |
| 485 |
}; |
| 486 |
|
| 487 |
vreg_pmu_rfa_0p8: ldo5 { |
| 488 |
regulator-name = "vreg_pmu_rfa_0p8"; |
| 489 |
}; |
| 490 |
|
| 491 |
vreg_pmu_rfa_1p2: ldo6 { |
| 492 |
regulator-name = "vreg_pmu_rfa_1p2"; |
| 493 |
}; |
| 494 |
|
| 495 |
vreg_pmu_rfa_1p8: ldo7 { |
| 496 |
regulator-name = "vreg_pmu_rfa_1p8"; |
| 497 |
}; |
| 498 |
|
| 499 |
vreg_pmu_pcie_0p9: ldo8 { |
| 500 |
regulator-name = "vreg_pmu_pcie_0p9"; |
| 501 |
}; |
| 502 |
|
| 503 |
vreg_pmu_pcie_1p8: ldo9 { |
| 504 |
regulator-name = "vreg_pmu_pcie_1p8"; |
| 505 |
}; |
| 506 |
}; |
| 507 |
}; |
| 508 |
}; |
| 509 |
|
| 510 |
&apps_rsc { |
| 511 |
regulators-0 { |
| 512 |
compatible = "qcom,pm8550-rpmh-regulators"; |
| 513 |
qcom,pmic-id = "b"; |
| 514 |
|
| 515 |
vdd-bob1-supply = <&vph_pwr>; |
| 516 |
vdd-bob2-supply = <&vph_pwr>; |
| 517 |
vdd-l1-l4-l10-supply = <&vreg_s4c>; |
| 518 |
vdd-l2-l13-l14-supply = <&vreg_bob1>; |
| 519 |
vdd-l5-l16-supply = <&vreg_bob1>; |
| 520 |
vdd-l6-l7-supply = <&vreg_bob2>; |
| 521 |
vdd-l8-l9-supply = <&vreg_bob1>; |
| 522 |
vdd-l12-supply = <&vreg_s5j>; |
| 523 |
vdd-l15-supply = <&vreg_s4c>; |
| 524 |
vdd-l17-supply = <&vreg_bob2>; |
| 525 |
|
| 526 |
vreg_bob1: bob1 { |
| 527 |
regulator-name = "vreg_bob1"; |
| 528 |
regulator-min-microvolt = <3008000>; |
| 529 |
regulator-max-microvolt = <3960000>; |
| 530 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 531 |
}; |
| 532 |
|
| 533 |
vreg_bob2: bob2 { |
| 534 |
regulator-name = "vreg_bob2"; |
| 535 |
regulator-min-microvolt = <2504000>; |
| 536 |
regulator-max-microvolt = <3008000>; |
| 537 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 538 |
}; |
| 539 |
|
| 540 |
vreg_l1b: ldo1 { |
| 541 |
regulator-name = "vreg_l1b"; |
| 542 |
regulator-min-microvolt = <1800000>; |
| 543 |
regulator-max-microvolt = <1800000>; |
| 544 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 545 |
}; |
| 546 |
|
| 547 |
vreg_l2b: ldo2 { |
| 548 |
regulator-name = "vreg_l2b"; |
| 549 |
regulator-min-microvolt = <3072000>; |
| 550 |
regulator-max-microvolt = <3072000>; |
| 551 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 552 |
}; |
| 553 |
|
| 554 |
vreg_l4b: ldo4 { |
| 555 |
regulator-name = "vreg_l4b"; |
| 556 |
regulator-min-microvolt = <1800000>; |
| 557 |
regulator-max-microvolt = <1800000>; |
| 558 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 559 |
}; |
| 560 |
|
| 561 |
vreg_l5b: ldo5 { |
| 562 |
regulator-name = "vreg_l5b"; |
| 563 |
regulator-min-microvolt = <3000000>; |
| 564 |
regulator-max-microvolt = <3000000>; |
| 565 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 566 |
}; |
| 567 |
|
| 568 |
vreg_l6b: ldo6 { |
| 569 |
regulator-name = "vreg_l6b"; |
| 570 |
regulator-min-microvolt = <1800000>; |
| 571 |
regulator-max-microvolt = <2960000>; |
| 572 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 573 |
}; |
| 574 |
|
| 575 |
vreg_l7b: ldo7 { |
| 576 |
regulator-name = "vreg_l7b"; |
| 577 |
regulator-min-microvolt = <2800000>; |
| 578 |
regulator-max-microvolt = <2800000>; |
| 579 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 580 |
}; |
| 581 |
|
| 582 |
vreg_l8b: ldo8 { |
| 583 |
regulator-name = "vreg_l8b"; |
| 584 |
regulator-min-microvolt = <3072000>; |
| 585 |
regulator-max-microvolt = <3072000>; |
| 586 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 587 |
}; |
| 588 |
|
| 589 |
vreg_l9b: ldo9 { |
| 590 |
regulator-name = "vreg_l9b"; |
| 591 |
regulator-min-microvolt = <2960000>; |
| 592 |
regulator-max-microvolt = <2960000>; |
| 593 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 594 |
}; |
| 595 |
|
| 596 |
vreg_l10b: ldo10 { |
| 597 |
regulator-name = "vreg_l10b"; |
| 598 |
regulator-min-microvolt = <1800000>; |
| 599 |
regulator-max-microvolt = <1800000>; |
| 600 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 601 |
}; |
| 602 |
|
| 603 |
vreg_l12b: ldo12 { |
| 604 |
regulator-name = "vreg_l12b"; |
| 605 |
regulator-min-microvolt = <1200000>; |
| 606 |
regulator-max-microvolt = <1200000>; |
| 607 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 608 |
regulator-always-on; |
| 609 |
}; |
| 610 |
|
| 611 |
vreg_l13b: ldo13 { |
| 612 |
regulator-name = "vreg_l13b"; |
| 613 |
regulator-min-microvolt = <3072000>; |
| 614 |
regulator-max-microvolt = <3072000>; |
| 615 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 616 |
}; |
| 617 |
|
| 618 |
vreg_l14b: ldo14 { |
| 619 |
regulator-name = "vreg_l14b"; |
| 620 |
regulator-min-microvolt = <3072000>; |
| 621 |
regulator-max-microvolt = <3072000>; |
| 622 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 623 |
}; |
| 624 |
|
| 625 |
vreg_l15b: ldo15 { |
| 626 |
regulator-name = "vreg_l15b"; |
| 627 |
regulator-min-microvolt = <1800000>; |
| 628 |
regulator-max-microvolt = <1800000>; |
| 629 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 630 |
regulator-always-on; |
| 631 |
}; |
| 632 |
|
| 633 |
vreg_l16b: ldo16 { |
| 634 |
regulator-name = "vreg_l16b"; |
| 635 |
regulator-min-microvolt = <2912000>; |
| 636 |
regulator-max-microvolt = <2912000>; |
| 637 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 638 |
}; |
| 639 |
|
| 640 |
vreg_l17b: ldo17 { |
| 641 |
regulator-name = "vreg_l17b"; |
| 642 |
regulator-min-microvolt = <2504000>; |
| 643 |
regulator-max-microvolt = <2504000>; |
| 644 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 645 |
}; |
| 646 |
}; |
| 647 |
|
| 648 |
regulators-1 { |
| 649 |
compatible = "qcom,pm8550ve-rpmh-regulators"; |
| 650 |
qcom,pmic-id = "c"; |
| 651 |
|
| 652 |
vdd-l1-supply = <&vreg_s5j>; |
| 653 |
vdd-l2-supply = <&vreg_s1f>; |
| 654 |
vdd-l3-supply = <&vreg_s1f>; |
| 655 |
vdd-s4-supply = <&vph_pwr>; |
| 656 |
|
| 657 |
vreg_s4c: smps4 { |
| 658 |
regulator-name = "vreg_s4c"; |
| 659 |
regulator-min-microvolt = <1856000>; |
| 660 |
regulator-max-microvolt = <2000000>; |
| 661 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 662 |
}; |
| 663 |
|
| 664 |
vreg_l1c: ldo1 { |
| 665 |
regulator-name = "vreg_l1c"; |
| 666 |
regulator-min-microvolt = <1200000>; |
| 667 |
regulator-max-microvolt = <1200000>; |
| 668 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 669 |
}; |
| 670 |
|
| 671 |
vreg_l2c: ldo2 { |
| 672 |
regulator-name = "vreg_l2c"; |
| 673 |
regulator-min-microvolt = <880000>; |
| 674 |
regulator-max-microvolt = <920000>; |
| 675 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 676 |
}; |
| 677 |
|
| 678 |
vreg_l3c: ldo3 { |
| 679 |
regulator-name = "vreg_l3c"; |
| 680 |
regulator-min-microvolt = <912000>; |
| 681 |
regulator-max-microvolt = <920000>; |
| 682 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 683 |
}; |
| 684 |
}; |
| 685 |
|
| 686 |
regulators-2 { |
| 687 |
compatible = "qcom,pmc8380-rpmh-regulators"; |
| 688 |
qcom,pmic-id = "d"; |
| 689 |
|
| 690 |
vdd-l1-supply = <&vreg_s1f>; |
| 691 |
vdd-l2-supply = <&vreg_s1f>; |
| 692 |
vdd-l3-supply = <&vreg_s4c>; |
| 693 |
vdd-s1-supply = <&vph_pwr>; |
| 694 |
|
| 695 |
vreg_l1d: ldo1 { |
| 696 |
regulator-name = "vreg_l1d"; |
| 697 |
regulator-min-microvolt = <880000>; |
| 698 |
regulator-max-microvolt = <920000>; |
| 699 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 700 |
}; |
| 701 |
|
| 702 |
vreg_l2d: ldo2 { |
| 703 |
regulator-name = "vreg_l2d"; |
| 704 |
regulator-min-microvolt = <912000>; |
| 705 |
regulator-max-microvolt = <920000>; |
| 706 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 707 |
}; |
| 708 |
|
| 709 |
vreg_l3d: ldo3 { |
| 710 |
regulator-name = "vreg_l3d"; |
| 711 |
regulator-min-microvolt = <1800000>; |
| 712 |
regulator-max-microvolt = <1800000>; |
| 713 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 714 |
}; |
| 715 |
}; |
| 716 |
|
| 717 |
regulators-3 { |
| 718 |
compatible = "qcom,pmc8380-rpmh-regulators"; |
| 719 |
qcom,pmic-id = "e"; |
| 720 |
|
| 721 |
vdd-l2-supply = <&vreg_s1f>; |
| 722 |
vdd-l3-supply = <&vreg_s5j>; |
| 723 |
|
| 724 |
vreg_l2e: ldo2 { |
| 725 |
regulator-name = "vreg_l2e"; |
| 726 |
regulator-min-microvolt = <880000>; |
| 727 |
regulator-max-microvolt = <920000>; |
| 728 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 729 |
}; |
| 730 |
|
| 731 |
vreg_l3e: ldo3 { |
| 732 |
regulator-name = "vreg_l3e"; |
| 733 |
regulator-min-microvolt = <1200000>; |
| 734 |
regulator-max-microvolt = <1200000>; |
| 735 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 736 |
}; |
| 737 |
}; |
| 738 |
|
| 739 |
regulators-4 { |
| 740 |
compatible = "qcom,pmc8380-rpmh-regulators"; |
| 741 |
qcom,pmic-id = "f"; |
| 742 |
|
| 743 |
vdd-l1-supply = <&vreg_s5j>; |
| 744 |
vdd-l2-supply = <&vreg_s5j>; |
| 745 |
vdd-l3-supply = <&vreg_s5j>; |
| 746 |
vdd-s1-supply = <&vph_pwr>; |
| 747 |
|
| 748 |
vreg_s1f: smps1 { |
| 749 |
regulator-name = "vreg_s1f"; |
| 750 |
regulator-min-microvolt = <700000>; |
| 751 |
regulator-max-microvolt = <1100000>; |
| 752 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 753 |
}; |
| 754 |
|
| 755 |
vreg_l1f: ldo1 { |
| 756 |
regulator-name = "vreg_l1f"; |
| 757 |
regulator-min-microvolt = <1024000>; |
| 758 |
regulator-max-microvolt = <1024000>; |
| 759 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 760 |
}; |
| 761 |
|
| 762 |
vreg_l2f: ldo2 { |
| 763 |
regulator-name = "vreg_l2f"; |
| 764 |
regulator-min-microvolt = <1024000>; |
| 765 |
regulator-max-microvolt = <1024000>; |
| 766 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 767 |
}; |
| 768 |
|
| 769 |
vreg_l3f: ldo3 { |
| 770 |
regulator-name = "vreg_l3f"; |
| 771 |
regulator-min-microvolt = <1024000>; |
| 772 |
regulator-max-microvolt = <1024000>; |
| 773 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 774 |
}; |
| 775 |
}; |
| 776 |
|
| 777 |
regulators-6 { |
| 778 |
compatible = "qcom,pm8550ve-rpmh-regulators"; |
| 779 |
qcom,pmic-id = "i"; |
| 780 |
|
| 781 |
vdd-l1-supply = <&vreg_s4c>; |
| 782 |
vdd-l2-supply = <&vreg_s5j>; |
| 783 |
vdd-l3-supply = <&vreg_s1f>; |
| 784 |
vdd-s1-supply = <&vph_pwr>; |
| 785 |
vdd-s2-supply = <&vph_pwr>; |
| 786 |
|
| 787 |
vreg_s1i: smps1 { |
| 788 |
regulator-name = "vreg_s1i"; |
| 789 |
regulator-min-microvolt = <900000>; |
| 790 |
regulator-max-microvolt = <920000>; |
| 791 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 792 |
}; |
| 793 |
|
| 794 |
vreg_s2i: smps2 { |
| 795 |
regulator-name = "vreg_s2i"; |
| 796 |
regulator-min-microvolt = <1000000>; |
| 797 |
regulator-max-microvolt = <1100000>; |
| 798 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 799 |
}; |
| 800 |
|
| 801 |
vreg_l1i: ldo1 { |
| 802 |
regulator-name = "vreg_l1i"; |
| 803 |
regulator-min-microvolt = <1800000>; |
| 804 |
regulator-max-microvolt = <1800000>; |
| 805 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 806 |
}; |
| 807 |
|
| 808 |
vreg_l2i: ldo2 { |
| 809 |
regulator-name = "vreg_l2i"; |
| 810 |
regulator-min-microvolt = <1200000>; |
| 811 |
regulator-max-microvolt = <1200000>; |
| 812 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 813 |
}; |
| 814 |
|
| 815 |
vreg_l3i: ldo3 { |
| 816 |
regulator-name = "vreg_l3i"; |
| 817 |
regulator-min-microvolt = <880000>; |
| 818 |
regulator-max-microvolt = <920000>; |
| 819 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 820 |
}; |
| 821 |
}; |
| 822 |
|
| 823 |
regulators-7 { |
| 824 |
compatible = "qcom,pm8550ve-rpmh-regulators"; |
| 825 |
qcom,pmic-id = "j"; |
| 826 |
|
| 827 |
vdd-l1-supply = <&vreg_s1f>; |
| 828 |
vdd-l2-supply = <&vreg_s5j>; |
| 829 |
vdd-l3-supply = <&vreg_s1f>; |
| 830 |
vdd-s5-supply = <&vph_pwr>; |
| 831 |
|
| 832 |
vreg_s5j: smps5 { |
| 833 |
regulator-name = "vreg_s5j"; |
| 834 |
regulator-min-microvolt = <1256000>; |
| 835 |
regulator-max-microvolt = <1304000>; |
| 836 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 837 |
}; |
| 838 |
|
| 839 |
vreg_l1j: ldo1 { |
| 840 |
regulator-name = "vreg_l1j"; |
| 841 |
regulator-min-microvolt = <912000>; |
| 842 |
regulator-max-microvolt = <920000>; |
| 843 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 844 |
}; |
| 845 |
|
| 846 |
vreg_l2j: ldo2 { |
| 847 |
regulator-name = "vreg_l2j"; |
| 848 |
regulator-min-microvolt = <1256000>; |
| 849 |
regulator-max-microvolt = <1256000>; |
| 850 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 851 |
}; |
| 852 |
|
| 853 |
vreg_l3j: ldo3 { |
| 854 |
regulator-name = "vreg_l3j"; |
| 855 |
regulator-min-microvolt = <880000>; |
| 856 |
regulator-max-microvolt = <920000>; |
| 857 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 858 |
}; |
| 859 |
}; |
| 860 |
}; |
| 861 |
|
| 862 |
&gpu { |
| 863 |
status = "okay"; |
| 864 |
}; |
| 865 |
|
| 866 |
&gpu_zap_shader { |
| 867 |
memory-region = <&gpu_microcode_mem>; |
| 868 |
firmware-name = "qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn"; |
| 869 |
}; |
| 870 |
|
| 871 |
&i2c0 { |
| 872 |
clock-frequency = <100000>; |
| 873 |
|
| 874 |
status = "okay"; |
| 875 |
|
| 876 |
/* Something @39, @3e, @44 */ |
| 877 |
}; |
| 878 |
|
| 879 |
&i2c3 { |
| 880 |
clock-frequency = <400000>; |
| 881 |
|
| 882 |
status = "okay"; |
| 883 |
|
| 884 |
/* Left-side rear port */ |
| 885 |
typec-mux@8 { |
| 886 |
compatible = "parade,ps8830"; |
| 887 |
reg = <0x8>; |
| 888 |
|
| 889 |
reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>; |
| 890 |
|
| 891 |
clocks = <&rpmhcc RPMH_RF_CLK3>; |
| 892 |
|
| 893 |
vdd-supply = <&vreg_rtmr0_1p15>; |
| 894 |
vdd33-supply = <&vreg_rtmr0_3p3>; |
| 895 |
vdd33-cap-supply = <&vreg_rtmr0_3p3>; |
| 896 |
vddar-supply = <&vreg_rtmr0_1p15>; |
| 897 |
vddat-supply = <&vreg_rtmr0_1p15>; |
| 898 |
vddio-supply = <&vreg_rtmr0_1p8>; |
| 899 |
|
| 900 |
pinctrl-0 = <&rtmr0_default>; |
| 901 |
pinctrl-names = "default"; |
| 902 |
|
| 903 |
retimer-switch; |
| 904 |
orientation-switch; |
| 905 |
|
| 906 |
ports { |
| 907 |
#address-cells = <1>; |
| 908 |
#size-cells = <0>; |
| 909 |
|
| 910 |
port@0 { |
| 911 |
reg = <0>; |
| 912 |
|
| 913 |
retimer_ss0_ss_out: endpoint { |
| 914 |
remote-endpoint = <&pmic_glink_ss0_ss_in>; |
| 915 |
}; |
| 916 |
}; |
| 917 |
|
| 918 |
port@1 { |
| 919 |
reg = <1>; |
| 920 |
|
| 921 |
retimer_ss0_ss_in: endpoint { |
| 922 |
remote-endpoint = <&usb_1_ss0_qmpphy_out>; |
| 923 |
}; |
| 924 |
}; |
| 925 |
|
| 926 |
port@2 { |
| 927 |
reg = <2>; |
| 928 |
|
| 929 |
retimer_ss0_con_sbu_out: endpoint { |
| 930 |
remote-endpoint = <&pmic_glink_ss0_con_sbu_in>; |
| 931 |
}; |
| 932 |
}; |
| 933 |
}; |
| 934 |
}; |
| 935 |
|
| 936 |
}; |
| 937 |
|
| 938 |
&i2c4 { |
| 939 |
clock-frequency = <400000>; |
| 940 |
|
| 941 |
status = "okay"; |
| 942 |
|
| 943 |
/* Something @18, @2c, @2e */ |
| 944 |
}; |
| 945 |
|
| 946 |
&i2c5 { |
| 947 |
clock-frequency = <400000>; |
| 948 |
|
| 949 |
status = "okay"; |
| 950 |
|
| 951 |
ptn3222: redriver@4f { |
| 952 |
compatible = "nxp,ptn3222"; |
| 953 |
reg = <0x4f>; |
| 954 |
|
| 955 |
reset-gpios = <&tlmm 7 GPIO_ACTIVE_LOW>; |
| 956 |
|
| 957 |
vdd3v3-supply = <&vreg_l13b>; |
| 958 |
vdd1v8-supply = <&vreg_l4b>; |
| 959 |
|
| 960 |
#phy-cells = <0>; |
| 961 |
}; |
| 962 |
}; |
| 963 |
|
| 964 |
&i2c7 { |
| 965 |
clock-frequency = <400000>; |
| 966 |
|
| 967 |
status = "okay"; |
| 968 |
|
| 969 |
/* Left-side front port */ |
| 970 |
typec-mux@8 { |
| 971 |
compatible = "parade,ps8830"; |
| 972 |
reg = <0x8>; |
| 973 |
|
| 974 |
reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>; |
| 975 |
|
| 976 |
clocks = <&rpmhcc RPMH_RF_CLK4>; |
| 977 |
|
| 978 |
vdd-supply = <&vreg_rtmr1_1p15>; |
| 979 |
vdd33-supply = <&vreg_rtmr1_3p3>; |
| 980 |
vdd33-cap-supply = <&vreg_rtmr1_3p3>; |
| 981 |
vddar-supply = <&vreg_rtmr1_1p15>; |
| 982 |
vddat-supply = <&vreg_rtmr1_1p15>; |
| 983 |
vddio-supply = <&vreg_rtmr1_1p8>; |
| 984 |
|
| 985 |
retimer-switch; |
| 986 |
orientation-switch; |
| 987 |
|
| 988 |
ports { |
| 989 |
#address-cells = <1>; |
| 990 |
#size-cells = <0>; |
| 991 |
|
| 992 |
port@0 { |
| 993 |
reg = <0>; |
| 994 |
|
| 995 |
retimer_ss1_ss_out: endpoint { |
| 996 |
remote-endpoint = <&pmic_glink_ss1_ss_in>; |
| 997 |
}; |
| 998 |
}; |
| 999 |
|
| 1000 |
port@1 { |
| 1001 |
reg = <1>; |
| 1002 |
|
| 1003 |
retimer_ss1_ss_in: endpoint { |
| 1004 |
remote-endpoint = <&usb_1_ss1_qmpphy_out>; |
| 1005 |
}; |
| 1006 |
}; |
| 1007 |
|
| 1008 |
port@2 { |
| 1009 |
reg = <2>; |
| 1010 |
|
| 1011 |
retimer_ss1_con_sbu_out: endpoint { |
| 1012 |
remote-endpoint = <&pmic_glink_ss1_con_sbu_in>; |
| 1013 |
}; |
| 1014 |
}; |
| 1015 |
}; |
| 1016 |
}; |
| 1017 |
}; |
| 1018 |
|
| 1019 |
&lpass_tlmm { |
| 1020 |
spkr_01_sd_n_active: spkr-01-sd-n-active-state { |
| 1021 |
pins = "gpio12"; |
| 1022 |
function = "gpio"; |
| 1023 |
drive-strength = <16>; |
| 1024 |
bias-disable; |
| 1025 |
output-low; |
| 1026 |
}; |
| 1027 |
}; |
| 1028 |
|
| 1029 |
&lpass_vamacro { |
| 1030 |
qcom,dmic-sample-rate = <4800000>; |
| 1031 |
|
| 1032 |
vdd-micb-supply = <&vreg_l1b>; |
| 1033 |
|
| 1034 |
pinctrl-0 = <&dmic01_default>; |
| 1035 |
pinctrl-names = "default"; |
| 1036 |
}; |
| 1037 |
|
| 1038 |
&mdss { |
| 1039 |
status = "okay"; |
| 1040 |
}; |
| 1041 |
|
| 1042 |
&mdss_dp0 { |
| 1043 |
status = "okay"; |
| 1044 |
}; |
| 1045 |
|
| 1046 |
&mdss_dp0_out { |
| 1047 |
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; |
| 1048 |
}; |
| 1049 |
|
| 1050 |
&mdss_dp1 { |
| 1051 |
status = "okay"; |
| 1052 |
}; |
| 1053 |
|
| 1054 |
&mdss_dp1_out { |
| 1055 |
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; |
| 1056 |
}; |
| 1057 |
|
| 1058 |
&mdss_dp3 { |
| 1059 |
/delete-property/ #sound-dai-cells; |
| 1060 |
|
| 1061 |
pinctrl-0 = <&edp0_hpd_default>; |
| 1062 |
pinctrl-names = "default"; |
| 1063 |
|
| 1064 |
status = "okay"; |
| 1065 |
|
| 1066 |
aux-bus { |
| 1067 |
panel { |
| 1068 |
compatible = "edp-panel"; |
| 1069 |
|
| 1070 |
backlight = <&backlight>; |
| 1071 |
power-supply = <&vreg_edp_3p3>; |
| 1072 |
|
| 1073 |
port { |
| 1074 |
edp_panel_in: endpoint { |
| 1075 |
remote-endpoint = <&mdss_dp3_out>; |
| 1076 |
}; |
| 1077 |
}; |
| 1078 |
}; |
| 1079 |
}; |
| 1080 |
}; |
| 1081 |
|
| 1082 |
&mdss_dp3_out { |
| 1083 |
data-lanes = <0 1 2 3>; |
| 1084 |
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; |
| 1085 |
|
| 1086 |
remote-endpoint = <&edp_panel_in>; |
| 1087 |
}; |
| 1088 |
|
| 1089 |
&mdss_dp3_phy { |
| 1090 |
vdda-phy-supply = <&vreg_l3j>; |
| 1091 |
vdda-pll-supply = <&vreg_l2j>; |
| 1092 |
|
| 1093 |
status = "okay"; |
| 1094 |
}; |
| 1095 |
|
| 1096 |
&pcie3 { |
| 1097 |
pinctrl-0 = <&pcie3_default>; |
| 1098 |
pinctrl-names = "default"; |
| 1099 |
|
| 1100 |
/* The RTS5261 chip on the other side only does Gen1x1 anyway */ |
| 1101 |
max-link-speed = <1>; |
| 1102 |
status = "okay"; |
| 1103 |
}; |
| 1104 |
|
| 1105 |
&pcie3_phy { |
| 1106 |
vdda-phy-supply = <&vreg_l3c>; |
| 1107 |
vdda-pll-supply = <&vreg_l3e>; |
| 1108 |
|
| 1109 |
status = "okay"; |
| 1110 |
}; |
| 1111 |
|
| 1112 |
&pcie3_port0 { |
| 1113 |
reset-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; |
| 1114 |
wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; |
| 1115 |
}; |
| 1116 |
|
| 1117 |
&pcie4 { |
| 1118 |
status = "okay"; |
| 1119 |
}; |
| 1120 |
|
| 1121 |
&pcie4_phy { |
| 1122 |
vdda-phy-supply = <&vreg_l3i>; |
| 1123 |
vdda-pll-supply = <&vreg_l3e>; |
| 1124 |
|
| 1125 |
status = "okay"; |
| 1126 |
}; |
| 1127 |
|
| 1128 |
&pcie4_port0 { |
| 1129 |
reset-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; |
| 1130 |
wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; |
| 1131 |
|
| 1132 |
wifi@0 { |
| 1133 |
compatible = "pci17cb,1107"; |
| 1134 |
reg = <0x10000 0x0 0x0 0x0 0x0>; |
| 1135 |
|
| 1136 |
vddaon-supply = <&vreg_pmu_aon_0p59>; |
| 1137 |
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 1138 |
vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; |
| 1139 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; |
| 1140 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 1141 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 1142 |
vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>; |
| 1143 |
vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; |
| 1144 |
vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; |
| 1145 |
}; |
| 1146 |
}; |
| 1147 |
|
| 1148 |
&pcie6a { |
| 1149 |
vddpe-3v3-supply = <&vreg_nvme>; |
| 1150 |
|
| 1151 |
pinctrl-0 = <&pcie6a_default>; |
| 1152 |
pinctrl-names = "default"; |
| 1153 |
|
| 1154 |
status = "okay"; |
| 1155 |
}; |
| 1156 |
|
| 1157 |
&pcie6a_phy { |
| 1158 |
vdda-phy-supply = <&vreg_l1d>; |
| 1159 |
vdda-pll-supply = <&vreg_l2j>; |
| 1160 |
|
| 1161 |
status = "okay"; |
| 1162 |
}; |
| 1163 |
|
| 1164 |
&pcie6a_port0 { |
| 1165 |
reset-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; |
| 1166 |
wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>; |
| 1167 |
}; |
| 1168 |
|
| 1169 |
&pm8550_gpios { |
| 1170 |
rtmr0_default: rtmr0-reset-n-active-state { |
| 1171 |
pins = "gpio10"; |
| 1172 |
function = "normal"; |
| 1173 |
power-source = <1>; /* 1.8V */ |
| 1174 |
}; |
| 1175 |
|
| 1176 |
rtmr0_3p3_reg_en: rtmr0-3p3-reg-en-state { |
| 1177 |
pins = "gpio11"; |
| 1178 |
function = "normal"; |
| 1179 |
power-source = <1>; /* 1.8V */ |
| 1180 |
}; |
| 1181 |
}; |
| 1182 |
|
| 1183 |
&pm8550ve_9_gpios { |
| 1184 |
rtmr0_1p8_reg_en: rtmr0-1p8-reg-en-state { |
| 1185 |
pins = "gpio8"; |
| 1186 |
function = "normal"; |
| 1187 |
power-source = <1>; /* 1.8V */ |
| 1188 |
}; |
| 1189 |
}; |
| 1190 |
|
| 1191 |
&pmc8380_3_gpios { |
| 1192 |
edp_bl_en: edp-bl-en-state { |
| 1193 |
pins = "gpio4"; |
| 1194 |
function = "normal"; |
| 1195 |
power-source = <1>; /* 1.8V */ |
| 1196 |
input-disable; |
| 1197 |
output-enable; |
| 1198 |
}; |
| 1199 |
}; |
| 1200 |
|
| 1201 |
&pmc8380_5_gpios { |
| 1202 |
rtmr0_1p15_reg_en: rtmr0-1p15-reg-en-state { |
| 1203 |
pins = "gpio8"; |
| 1204 |
function = "normal"; |
| 1205 |
power-source = <1>; /* 1.8V */ |
| 1206 |
}; |
| 1207 |
}; |
| 1208 |
|
| 1209 |
&pmk8550_pwm { |
| 1210 |
status = "okay"; |
| 1211 |
}; |
| 1212 |
|
| 1213 |
&pmk8550_gpios { |
| 1214 |
edp_bl_pwm: edp-bl-pwm-state { |
| 1215 |
pins = "gpio5"; |
| 1216 |
function = "func3"; |
| 1217 |
}; |
| 1218 |
}; |
| 1219 |
|
| 1220 |
&qupv3_0 { |
| 1221 |
status = "okay"; |
| 1222 |
}; |
| 1223 |
|
| 1224 |
&qupv3_1 { |
| 1225 |
status = "okay"; |
| 1226 |
}; |
| 1227 |
|
| 1228 |
&qupv3_2 { |
| 1229 |
status = "okay"; |
| 1230 |
}; |
| 1231 |
|
| 1232 |
&remoteproc_adsp { |
| 1233 |
firmware-name = "qcom/x1e80100/microsoft/Romulus/qcadsp8380.mbn", |
| 1234 |
"qcom/x1e80100/microsoft/Romulus/adsp_dtbs.elf"; |
| 1235 |
|
| 1236 |
status = "okay"; |
| 1237 |
}; |
| 1238 |
|
| 1239 |
&remoteproc_cdsp { |
| 1240 |
firmware-name = "qcom/x1e80100/microsoft/Romulus/qccdsp8380.mbn", |
| 1241 |
"qcom/x1e80100/microsoft/Romulus/cdsp_dtbs.elf"; |
| 1242 |
|
| 1243 |
status = "okay"; |
| 1244 |
}; |
| 1245 |
|
| 1246 |
&smb2360_0 { |
| 1247 |
status = "okay"; |
| 1248 |
}; |
| 1249 |
|
| 1250 |
&smb2360_0_eusb2_repeater { |
| 1251 |
vdd18-supply = <&vreg_l3d>; |
| 1252 |
vdd3-supply = <&vreg_l2b>; |
| 1253 |
}; |
| 1254 |
|
| 1255 |
&smb2360_1 { |
| 1256 |
status = "okay"; |
| 1257 |
}; |
| 1258 |
|
| 1259 |
&smb2360_1_eusb2_repeater { |
| 1260 |
vdd18-supply = <&vreg_l3d>; |
| 1261 |
vdd3-supply = <&vreg_l14b>; |
| 1262 |
}; |
| 1263 |
|
| 1264 |
&smb2360_2 { |
| 1265 |
status = "okay"; |
| 1266 |
}; |
| 1267 |
|
| 1268 |
&smb2360_2_eusb2_repeater { |
| 1269 |
vdd18-supply = <&vreg_l3d>; |
| 1270 |
vdd3-supply = <&vreg_l8b>; |
| 1271 |
}; |
| 1272 |
|
| 1273 |
&swr0 { |
| 1274 |
pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>; |
| 1275 |
pinctrl-names = "default"; |
| 1276 |
|
| 1277 |
status = "okay"; |
| 1278 |
|
| 1279 |
/* WSA8845, Left speaker */ |
| 1280 |
left_spkr: speaker@0,0 { |
| 1281 |
compatible = "sdw20217020400"; |
| 1282 |
reg = <0 0>; |
| 1283 |
reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; |
| 1284 |
#sound-dai-cells = <0>; |
| 1285 |
sound-name-prefix = "SpkrLeft"; |
| 1286 |
vdd-1p8-supply = <&vreg_l15b>; |
| 1287 |
vdd-io-supply = <&vreg_l12b>; |
| 1288 |
qcom,port-mapping = <1 2 3 7 10 13>; |
| 1289 |
}; |
| 1290 |
|
| 1291 |
/* WSA8845, Right speaker */ |
| 1292 |
right_spkr: speaker@0,1 { |
| 1293 |
compatible = "sdw20217020400"; |
| 1294 |
reg = <0 1>; |
| 1295 |
reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; |
| 1296 |
#sound-dai-cells = <0>; |
| 1297 |
sound-name-prefix = "SpkrRight"; |
| 1298 |
vdd-1p8-supply = <&vreg_l15b>; |
| 1299 |
vdd-io-supply = <&vreg_l12b>; |
| 1300 |
qcom,port-mapping = <4 5 6 7 11 13>; |
| 1301 |
}; |
| 1302 |
}; |
| 1303 |
|
| 1304 |
&swr1 { |
| 1305 |
status = "okay"; |
| 1306 |
|
| 1307 |
/* WCD9385 RX */ |
| 1308 |
wcd_rx: codec@0,4 { |
| 1309 |
compatible = "sdw20217010d00"; |
| 1310 |
reg = <0 4>; |
| 1311 |
qcom,rx-port-mapping = <1 2 3 4 5>; |
| 1312 |
}; |
| 1313 |
}; |
| 1314 |
|
| 1315 |
&swr2 { |
| 1316 |
status = "okay"; |
| 1317 |
|
| 1318 |
/* WCD9385 TX */ |
| 1319 |
wcd_tx: codec@0,3 { |
| 1320 |
compatible = "sdw20217010d00"; |
| 1321 |
reg = <0 3>; |
| 1322 |
qcom,tx-port-mapping = <2 2 3 4>; |
| 1323 |
}; |
| 1324 |
}; |
| 1325 |
|
| 1326 |
&tlmm { |
| 1327 |
gpio-reserved-ranges = <44 4>, /* SPI (TPM) */ |
| 1328 |
<238 1>; /* UFS Reset */ |
| 1329 |
|
| 1330 |
hall_int_n_default: hall-int-n-state { |
| 1331 |
pins = "gpio2"; |
| 1332 |
function = "gpio"; |
| 1333 |
bias-disable; |
| 1334 |
}; |
| 1335 |
|
| 1336 |
nvme_reg_en: nvme-reg-en-state { |
| 1337 |
pins = "gpio18"; |
| 1338 |
function = "gpio"; |
| 1339 |
drive-strength = <2>; |
| 1340 |
bias-disable; |
| 1341 |
}; |
| 1342 |
|
| 1343 |
edp_reg_en: edp-reg-en-state { |
| 1344 |
pins = "gpio70"; |
| 1345 |
function = "gpio"; |
| 1346 |
drive-strength = <16>; |
| 1347 |
bias-disable; |
| 1348 |
}; |
| 1349 |
|
| 1350 |
ssam_state: ssam-state-state { |
| 1351 |
pins = "gpio91"; |
| 1352 |
function = "gpio"; |
| 1353 |
bias-disable; |
| 1354 |
}; |
| 1355 |
|
| 1356 |
wcn_wlan_bt_en: wcn-wlan-bt-en-state { |
| 1357 |
pins = "gpio116", "gpio117"; |
| 1358 |
function = "gpio"; |
| 1359 |
drive-strength = <2>; |
| 1360 |
bias-disable; |
| 1361 |
}; |
| 1362 |
|
| 1363 |
pcie3_default: pcie3-default-state { |
| 1364 |
perst-n-pins { |
| 1365 |
pins = "gpio143"; |
| 1366 |
function = "gpio"; |
| 1367 |
drive-strength = <2>; |
| 1368 |
bias-disable; |
| 1369 |
}; |
| 1370 |
|
| 1371 |
clkreq-n-pins { |
| 1372 |
pins = "gpio144"; |
| 1373 |
function = "pcie3_clk"; |
| 1374 |
drive-strength = <2>; |
| 1375 |
bias-pull-up; |
| 1376 |
}; |
| 1377 |
|
| 1378 |
wake-n-pins { |
| 1379 |
pins = "gpio145"; |
| 1380 |
function = "gpio"; |
| 1381 |
drive-strength = <2>; |
| 1382 |
bias-pull-up; |
| 1383 |
}; |
| 1384 |
}; |
| 1385 |
|
| 1386 |
pcie6a_default: pcie6a-default-state { |
| 1387 |
perst-n-pins { |
| 1388 |
pins = "gpio152"; |
| 1389 |
function = "gpio"; |
| 1390 |
drive-strength = <2>; |
| 1391 |
bias-disable; |
| 1392 |
}; |
| 1393 |
|
| 1394 |
clkreq-n-pins { |
| 1395 |
pins = "gpio153"; |
| 1396 |
function = "pcie6a_clk"; |
| 1397 |
drive-strength = <2>; |
| 1398 |
bias-pull-up; |
| 1399 |
}; |
| 1400 |
|
| 1401 |
wake-n-pins { |
| 1402 |
pins = "gpio154"; |
| 1403 |
function = "gpio"; |
| 1404 |
drive-strength = <2>; |
| 1405 |
bias-pull-up; |
| 1406 |
}; |
| 1407 |
}; |
| 1408 |
|
| 1409 |
rtmr1_1p8_reg_en: rtmr1-1p8-reg-en-state { |
| 1410 |
pins = "gpio175"; |
| 1411 |
function = "gpio"; |
| 1412 |
drive-strength = <2>; |
| 1413 |
bias-disable; |
| 1414 |
}; |
| 1415 |
|
| 1416 |
rtmr1_3p3_reg_en: rtmr1-3p3-reg-en-state { |
| 1417 |
pins = "gpio186"; |
| 1418 |
function = "gpio"; |
| 1419 |
drive-strength = <2>; |
| 1420 |
bias-disable; |
| 1421 |
}; |
| 1422 |
|
| 1423 |
rtmr1_1p15_reg_en: rtmr1-1p15-reg-en-state { |
| 1424 |
pins = "gpio188"; |
| 1425 |
function = "gpio"; |
| 1426 |
drive-strength = <2>; |
| 1427 |
bias-disable; |
| 1428 |
}; |
| 1429 |
|
| 1430 |
wcd_default: wcd-reset-n-active-state { |
| 1431 |
pins = "gpio191"; |
| 1432 |
function = "gpio"; |
| 1433 |
drive-strength = <16>; |
| 1434 |
bias-disable; |
| 1435 |
output-low; |
| 1436 |
}; |
| 1437 |
|
| 1438 |
wcn_sw_en: wcn-sw-en-state { |
| 1439 |
pins = "gpio214"; |
| 1440 |
function = "gpio"; |
| 1441 |
drive-strength = <2>; |
| 1442 |
bias-disable; |
| 1443 |
}; |
| 1444 |
|
| 1445 |
cam_indicator_en: cam-indicator-en-state { |
| 1446 |
pins = "gpio225"; |
| 1447 |
function = "gpio"; |
| 1448 |
drive-strength = <2>; |
| 1449 |
bias-disable; |
| 1450 |
}; |
| 1451 |
}; |
| 1452 |
|
| 1453 |
&uart2 { |
| 1454 |
status = "okay"; |
| 1455 |
|
| 1456 |
embedded-controller { |
| 1457 |
compatible = "microsoft,surface-sam"; |
| 1458 |
|
| 1459 |
interrupts-extended = <&tlmm 91 IRQ_TYPE_EDGE_RISING>; |
| 1460 |
|
| 1461 |
current-speed = <4000000>; |
| 1462 |
|
| 1463 |
pinctrl-0 = <&ssam_state>; |
| 1464 |
pinctrl-names = "default"; |
| 1465 |
}; |
| 1466 |
}; |
| 1467 |
|
| 1468 |
&uart14 { |
| 1469 |
status = "okay"; |
| 1470 |
|
| 1471 |
bluetooth { |
| 1472 |
compatible = "qcom,wcn7850-bt"; |
| 1473 |
max-speed = <3200000>; |
| 1474 |
|
| 1475 |
vddaon-supply = <&vreg_pmu_aon_0p59>; |
| 1476 |
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 1477 |
vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; |
| 1478 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; |
| 1479 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 1480 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 1481 |
vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>; |
| 1482 |
}; |
| 1483 |
}; |
| 1484 |
|
| 1485 |
&usb_1_ss0_hsphy { |
| 1486 |
vdd-supply = <&vreg_l3j>; |
| 1487 |
vdda12-supply = <&vreg_l2j>; |
| 1488 |
|
| 1489 |
phys = <&smb2360_0_eusb2_repeater>; |
| 1490 |
|
| 1491 |
status = "okay"; |
| 1492 |
}; |
| 1493 |
|
| 1494 |
&usb_1_ss0_qmpphy { |
| 1495 |
vdda-phy-supply = <&vreg_l2j>; |
| 1496 |
vdda-pll-supply = <&vreg_l1j>; |
| 1497 |
|
| 1498 |
status = "okay"; |
| 1499 |
}; |
| 1500 |
|
| 1501 |
&usb_1_ss0 { |
| 1502 |
status = "okay"; |
| 1503 |
}; |
| 1504 |
|
| 1505 |
&usb_1_ss0_dwc3 { |
| 1506 |
dr_mode = "host"; |
| 1507 |
}; |
| 1508 |
|
| 1509 |
&usb_1_ss0_dwc3_hs { |
| 1510 |
remote-endpoint = <&pmic_glink_ss0_hs_in>; |
| 1511 |
}; |
| 1512 |
|
| 1513 |
&usb_1_ss0_qmpphy_out { |
| 1514 |
remote-endpoint = <&retimer_ss0_ss_in>; |
| 1515 |
}; |
| 1516 |
|
| 1517 |
&usb_1_ss1_hsphy { |
| 1518 |
vdd-supply = <&vreg_l3j>; |
| 1519 |
vdda12-supply = <&vreg_l2j>; |
| 1520 |
|
| 1521 |
phys = <&smb2360_1_eusb2_repeater>; |
| 1522 |
|
| 1523 |
status = "okay"; |
| 1524 |
}; |
| 1525 |
|
| 1526 |
&usb_1_ss1_qmpphy { |
| 1527 |
vdda-phy-supply = <&vreg_l2j>; |
| 1528 |
vdda-pll-supply = <&vreg_l2d>; |
| 1529 |
|
| 1530 |
status = "okay"; |
| 1531 |
}; |
| 1532 |
|
| 1533 |
&usb_1_ss1 { |
| 1534 |
status = "okay"; |
| 1535 |
}; |
| 1536 |
|
| 1537 |
&usb_1_ss1_dwc3 { |
| 1538 |
dr_mode = "host"; |
| 1539 |
}; |
| 1540 |
|
| 1541 |
&usb_1_ss1_dwc3_hs { |
| 1542 |
remote-endpoint = <&pmic_glink_ss1_hs_in>; |
| 1543 |
}; |
| 1544 |
|
| 1545 |
&usb_1_ss1_qmpphy_out { |
| 1546 |
remote-endpoint = <&retimer_ss1_ss_in>; |
| 1547 |
}; |
| 1548 |
|
| 1549 |
/* MP0 goes to the Surface Connector, MP1 goes to the USB-A port */ |
| 1550 |
&usb_mp { |
| 1551 |
status = "okay"; |
| 1552 |
}; |
| 1553 |
|
| 1554 |
&usb_mp_hsphy0 { |
| 1555 |
vdd-supply = <&vreg_l2e>; |
| 1556 |
vdda12-supply = <&vreg_l2j>; |
| 1557 |
|
| 1558 |
phys = <&smb2360_2_eusb2_repeater>; |
| 1559 |
|
| 1560 |
status = "okay"; |
| 1561 |
}; |
| 1562 |
|
| 1563 |
&usb_mp_hsphy1 { |
| 1564 |
vdd-supply = <&vreg_l2e>; |
| 1565 |
vdda12-supply = <&vreg_l2j>; |
| 1566 |
|
| 1567 |
phys = <&ptn3222>; |
| 1568 |
|
| 1569 |
status = "okay"; |
| 1570 |
}; |
| 1571 |
|
| 1572 |
&usb_mp_qmpphy0 { |
| 1573 |
vdda-phy-supply = <&vreg_l3e>; |
| 1574 |
vdda-pll-supply = <&vreg_l3c>; |
| 1575 |
|
| 1576 |
status = "okay"; |
| 1577 |
}; |
| 1578 |
|
| 1579 |
&usb_mp_qmpphy1 { |
| 1580 |
vdda-phy-supply = <&vreg_l3e>; |
| 1581 |
vdda-pll-supply = <&vreg_l3c>; |
| 1582 |
|
| 1583 |
status = "okay"; |
| 1584 |
}; |