| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2021, The Linux Foundation. All rights reserved. |
| 4 |
* Copyright (c) 2022, Linaro Limited |
| 5 |
* |
| 6 |
* Copyright (c) 2024, Tianyu Gao <[email protected]> |
| 7 |
* Copyright (c) 2024, Xuecong Chen <[email protected]> |
| 8 |
* |
| 9 |
* Copyright (c) 2024, Pengyu Luo <[email protected]> |
| 10 |
*/ |
| 11 |
|
| 12 |
/dts-v1/; |
| 13 |
|
| 14 |
#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> |
| 15 |
#include <dt-bindings/gpio/gpio.h> |
| 16 |
#include <dt-bindings/input/gpio-keys.h> |
| 17 |
#include <dt-bindings/input/input.h> |
| 18 |
#include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 19 |
#include <dt-bindings/phy/phy.h> |
| 20 |
|
| 21 |
#include "sc8280xp.dtsi" |
| 22 |
#include "sc8280xp-pmics.dtsi" |
| 23 |
|
| 24 |
/ { |
| 25 |
chassis-type = "tablet"; |
| 26 |
model = "Matebook E Go"; |
| 27 |
compatible = "huawei,gaokun3", "qcom,sc8280xp"; |
| 28 |
|
| 29 |
aliases { |
| 30 |
i2c4 = &i2c4; |
| 31 |
i2c15 = &i2c15; |
| 32 |
serial1 = &uart2; |
| 33 |
}; |
| 34 |
|
| 35 |
chosen { |
| 36 |
#address-cells = <2>; |
| 37 |
#size-cells = <2>; |
| 38 |
ranges; |
| 39 |
|
| 40 |
framebuffer0: framebuffer@c6200000 { |
| 41 |
compatible = "simple-framebuffer"; |
| 42 |
reg = <0x0 0xc6200000 0x0 0x02400000>; |
| 43 |
width = <1600>; |
| 44 |
height = <2560>; |
| 45 |
stride = <(1600 * 4)>; |
| 46 |
format = "a8r8g8b8"; |
| 47 |
}; |
| 48 |
}; |
| 49 |
|
| 50 |
wcd938x: audio-codec { |
| 51 |
compatible = "qcom,wcd9380-codec"; |
| 52 |
|
| 53 |
pinctrl-0 = <&wcd_default>; |
| 54 |
pinctrl-names = "default"; |
| 55 |
|
| 56 |
reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; |
| 57 |
|
| 58 |
vdd-buck-supply = <&vreg_s10b>; |
| 59 |
vdd-rxtx-supply = <&vreg_s10b>; |
| 60 |
vdd-io-supply = <&vreg_s10b>; |
| 61 |
vdd-mic-bias-supply = <&vreg_bob>; |
| 62 |
|
| 63 |
qcom,micbias1-microvolt = <1800000>; |
| 64 |
qcom,micbias2-microvolt = <1800000>; |
| 65 |
qcom,micbias3-microvolt = <1800000>; |
| 66 |
qcom,micbias4-microvolt = <1800000>; |
| 67 |
qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; |
| 68 |
qcom,mbhc-headset-vthreshold-microvolt = <1700000>; |
| 69 |
qcom,mbhc-headphone-vthreshold-microvolt = <50000>; |
| 70 |
qcom,rx-device = <&wcd_rx>; |
| 71 |
qcom,tx-device = <&wcd_tx>; |
| 72 |
|
| 73 |
#sound-dai-cells = <1>; |
| 74 |
}; |
| 75 |
|
| 76 |
gpio-keys { |
| 77 |
compatible = "gpio-keys"; |
| 78 |
|
| 79 |
pinctrl-0 = <&mode_pin_active>, <&vol_up_n>; |
| 80 |
pinctrl-names = "default"; |
| 81 |
|
| 82 |
key-vol-up { |
| 83 |
label = "Volume Up"; |
| 84 |
gpios = <&pmc8280_1_gpios 6 GPIO_ACTIVE_LOW>; |
| 85 |
linux,code = <KEY_VOLUMEUP>; |
| 86 |
debounce-interval = <15>; |
| 87 |
linux,can-disable; |
| 88 |
wakeup-source; |
| 89 |
}; |
| 90 |
|
| 91 |
switch-mode { |
| 92 |
label = "Tablet Mode Switch"; |
| 93 |
gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>; |
| 94 |
linux,input-type = <EV_SW>; |
| 95 |
linux,code = <SW_TABLET_MODE>; |
| 96 |
debounce-interval = <10>; |
| 97 |
wakeup-source; |
| 98 |
}; |
| 99 |
}; |
| 100 |
|
| 101 |
vreg_misc_3p3: regulator-misc-3p3 { |
| 102 |
compatible = "regulator-fixed"; |
| 103 |
|
| 104 |
regulator-name = "VCC3B"; |
| 105 |
regulator-min-microvolt = <3300000>; |
| 106 |
regulator-max-microvolt = <3300000>; |
| 107 |
|
| 108 |
gpio = <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>; |
| 109 |
enable-active-high; |
| 110 |
|
| 111 |
pinctrl-0 = <&misc_3p3_reg_en>; |
| 112 |
pinctrl-names = "default"; |
| 113 |
|
| 114 |
regulator-boot-on; |
| 115 |
regulator-always-on; |
| 116 |
}; |
| 117 |
|
| 118 |
vreg_nvme: regulator-nvme { |
| 119 |
compatible = "regulator-fixed"; |
| 120 |
|
| 121 |
regulator-name = "VCC3_SSD"; |
| 122 |
regulator-min-microvolt = <3300000>; |
| 123 |
regulator-max-microvolt = <3300000>; |
| 124 |
|
| 125 |
gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>; |
| 126 |
enable-active-high; |
| 127 |
|
| 128 |
pinctrl-0 = <&nvme_reg_en>; |
| 129 |
pinctrl-names = "default"; |
| 130 |
|
| 131 |
regulator-boot-on; |
| 132 |
}; |
| 133 |
|
| 134 |
vreg_vph_pwr: regulator-vph-pwr { |
| 135 |
compatible = "regulator-fixed"; |
| 136 |
|
| 137 |
regulator-name = "VPH_VCC3R9"; |
| 138 |
regulator-min-microvolt = <3900000>; |
| 139 |
regulator-max-microvolt = <3900000>; |
| 140 |
|
| 141 |
regulator-always-on; |
| 142 |
}; |
| 143 |
|
| 144 |
vreg_wlan: regulator-wlan { |
| 145 |
compatible = "regulator-fixed"; |
| 146 |
|
| 147 |
regulator-name = "VCC_WLAN_3R9"; |
| 148 |
regulator-min-microvolt = <3900000>; |
| 149 |
regulator-max-microvolt = <3900000>; |
| 150 |
|
| 151 |
gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; |
| 152 |
enable-active-high; |
| 153 |
|
| 154 |
pinctrl-0 = <&hastings_reg_en>; |
| 155 |
pinctrl-names = "default"; |
| 156 |
|
| 157 |
regulator-boot-on; |
| 158 |
}; |
| 159 |
|
| 160 |
reserved-memory { |
| 161 |
linux,cma { |
| 162 |
compatible = "shared-dma-pool"; |
| 163 |
size = <0x0 0x8000000>; |
| 164 |
reusable; |
| 165 |
linux,cma-default; |
| 166 |
}; |
| 167 |
}; |
| 168 |
|
| 169 |
thermal-zones { |
| 170 |
skin-temp-thermal { |
| 171 |
polling-delay-passive = <250>; |
| 172 |
|
| 173 |
thermal-sensors = <&pmk8280_adc_tm 5>; |
| 174 |
|
| 175 |
trips { |
| 176 |
skin_temp_alert0: trip-point0 { |
| 177 |
temperature = <55000>; |
| 178 |
hysteresis = <1000>; |
| 179 |
type = "passive"; |
| 180 |
}; |
| 181 |
|
| 182 |
skin_temp_alert1: trip-point1 { |
| 183 |
temperature = <58000>; |
| 184 |
hysteresis = <1000>; |
| 185 |
type = "passive"; |
| 186 |
}; |
| 187 |
|
| 188 |
skin-temp-crit { |
| 189 |
temperature = <73000>; |
| 190 |
hysteresis = <1000>; |
| 191 |
type = "critical"; |
| 192 |
}; |
| 193 |
}; |
| 194 |
|
| 195 |
cooling-maps { |
| 196 |
map0 { |
| 197 |
trip = <&skin_temp_alert0>; |
| 198 |
cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 199 |
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 200 |
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 201 |
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 202 |
}; |
| 203 |
|
| 204 |
map1 { |
| 205 |
trip = <&skin_temp_alert1>; |
| 206 |
cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 207 |
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 208 |
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 209 |
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 210 |
}; |
| 211 |
}; |
| 212 |
}; |
| 213 |
}; |
| 214 |
|
| 215 |
usb0-sbu-mux { |
| 216 |
compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 217 |
|
| 218 |
select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; |
| 219 |
|
| 220 |
pinctrl-0 = <&usb0_sbu_default>; |
| 221 |
pinctrl-names = "default"; |
| 222 |
|
| 223 |
orientation-switch; |
| 224 |
|
| 225 |
port { |
| 226 |
usb0_sbu_mux: endpoint { |
| 227 |
remote-endpoint = <&ucsi0_sbu>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
}; |
| 231 |
|
| 232 |
usb1-sbu-mux { |
| 233 |
compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 234 |
|
| 235 |
select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; |
| 236 |
|
| 237 |
pinctrl-0 = <&usb1_sbu_default>; |
| 238 |
pinctrl-names = "default"; |
| 239 |
|
| 240 |
orientation-switch; |
| 241 |
|
| 242 |
port { |
| 243 |
usb1_sbu_mux: endpoint { |
| 244 |
remote-endpoint = <&ucsi1_sbu>; |
| 245 |
}; |
| 246 |
}; |
| 247 |
}; |
| 248 |
|
| 249 |
wcn6855-pmu { |
| 250 |
compatible = "qcom,wcn6855-pmu"; |
| 251 |
|
| 252 |
pinctrl-names = "default"; |
| 253 |
pinctrl-0 = <&bt_default>, <&wlan_en>; |
| 254 |
|
| 255 |
wlan-enable-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>; |
| 256 |
bt-enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>; |
| 257 |
swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>; |
| 258 |
|
| 259 |
vddio-supply = <&vreg_s10b>; |
| 260 |
vddaon-supply = <&vreg_s12b>; |
| 261 |
vddpmu-supply = <&vreg_s12b>; |
| 262 |
vddpmumx-supply = <&vreg_s12b>; |
| 263 |
vddpmucx-supply = <&vreg_s12b>; |
| 264 |
vddrfa0p95-supply = <&vreg_s12b>; |
| 265 |
vddrfa1p3-supply = <&vreg_s11b>; |
| 266 |
vddrfa1p9-supply = <&vreg_s1c>; |
| 267 |
vddpcie1p3-supply = <&vreg_s11b>; |
| 268 |
vddpcie1p9-supply = <&vreg_s1c>; |
| 269 |
|
| 270 |
regulators { |
| 271 |
vreg_pmu_rfa_cmn_0p8: ldo0 { |
| 272 |
regulator-name = "vreg_pmu_rfa_cmn_0p8"; |
| 273 |
}; |
| 274 |
|
| 275 |
vreg_pmu_aon_0p8: ldo1 { |
| 276 |
regulator-name = "vreg_pmu_aon_0p8"; |
| 277 |
}; |
| 278 |
|
| 279 |
vreg_pmu_wlcx_0p8: ldo2 { |
| 280 |
regulator-name = "vreg_pmu_wlcx_0p8"; |
| 281 |
}; |
| 282 |
|
| 283 |
vreg_pmu_wlmx_0p8: ldo3 { |
| 284 |
regulator-name = "vreg_pmu_wlmx_0p8"; |
| 285 |
}; |
| 286 |
|
| 287 |
vreg_pmu_btcmx_0p8: ldo4 { |
| 288 |
regulator-name = "vreg_pmu_btcmx_0p8"; |
| 289 |
}; |
| 290 |
|
| 291 |
vreg_pmu_pcie_1p8: ldo5 { |
| 292 |
regulator-name = "vreg_pmu_pcie_1p8"; |
| 293 |
}; |
| 294 |
|
| 295 |
vreg_pmu_pcie_0p9: ldo6 { |
| 296 |
regulator-name = "vreg_pmu_pcie_0p9"; |
| 297 |
}; |
| 298 |
|
| 299 |
vreg_pmu_rfa_0p8: ldo7 { |
| 300 |
regulator-name = "vreg_pmu_rfa_0p8"; |
| 301 |
}; |
| 302 |
|
| 303 |
vreg_pmu_rfa_1p2: ldo8 { |
| 304 |
regulator-name = "vreg_pmu_rfa_1p2"; |
| 305 |
}; |
| 306 |
|
| 307 |
vreg_pmu_rfa_1p7: ldo9 { |
| 308 |
regulator-name = "vreg_pmu_rfa_1p7"; |
| 309 |
}; |
| 310 |
}; |
| 311 |
}; |
| 312 |
}; |
| 313 |
|
| 314 |
&apps_rsc { |
| 315 |
regulators-0 { |
| 316 |
compatible = "qcom,pm8350-rpmh-regulators"; |
| 317 |
qcom,pmic-id = "b"; |
| 318 |
|
| 319 |
vdd-l1-l4-supply = <&vreg_s12b>; |
| 320 |
vdd-l2-l7-supply = <&vreg_bob>; |
| 321 |
vdd-l3-l5-supply = <&vreg_s11b>; |
| 322 |
vdd-l6-l9-l10-supply = <&vreg_s12b>; |
| 323 |
vdd-l8-supply = <&vreg_s12b>; |
| 324 |
|
| 325 |
vreg_s10b: smps10 { |
| 326 |
regulator-name = "vreg_s10b"; |
| 327 |
regulator-min-microvolt = <1800000>; |
| 328 |
regulator-max-microvolt = <1800000>; |
| 329 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 330 |
regulator-always-on; |
| 331 |
}; |
| 332 |
|
| 333 |
vreg_s11b: smps11 { |
| 334 |
regulator-name = "vreg_s11b"; |
| 335 |
regulator-min-microvolt = <1272000>; |
| 336 |
regulator-max-microvolt = <1272000>; |
| 337 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 338 |
}; |
| 339 |
|
| 340 |
vreg_s12b: smps12 { |
| 341 |
regulator-name = "vreg_s12b"; |
| 342 |
regulator-min-microvolt = <984000>; |
| 343 |
regulator-max-microvolt = <984000>; |
| 344 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 345 |
}; |
| 346 |
|
| 347 |
vreg_l1b: ldo1 { |
| 348 |
regulator-name = "vreg_l1b"; |
| 349 |
regulator-min-microvolt = <912000>; |
| 350 |
regulator-max-microvolt = <912000>; |
| 351 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 352 |
regulator-allow-set-load; |
| 353 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 354 |
RPMH_REGULATOR_MODE_HPM>; |
| 355 |
}; |
| 356 |
|
| 357 |
vreg_l2b: ldo2 { |
| 358 |
regulator-name = "vreg_l2b"; |
| 359 |
regulator-min-microvolt = <1904000>; |
| 360 |
regulator-max-microvolt = <1904000>; |
| 361 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 362 |
}; |
| 363 |
|
| 364 |
vreg_l3b: ldo3 { |
| 365 |
regulator-name = "vreg_l3b"; |
| 366 |
regulator-min-microvolt = <1200000>; |
| 367 |
regulator-max-microvolt = <1200000>; |
| 368 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 369 |
regulator-boot-on; |
| 370 |
regulator-allow-set-load; |
| 371 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 372 |
RPMH_REGULATOR_MODE_HPM>; |
| 373 |
}; |
| 374 |
|
| 375 |
vreg_l4b: ldo4 { |
| 376 |
regulator-name = "vreg_l4b"; |
| 377 |
regulator-min-microvolt = <912000>; |
| 378 |
regulator-max-microvolt = <912000>; |
| 379 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 380 |
regulator-allow-set-load; |
| 381 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 382 |
RPMH_REGULATOR_MODE_HPM>; |
| 383 |
}; |
| 384 |
|
| 385 |
vreg_l5b: ldo5 { |
| 386 |
regulator-name = "vreg_l5b"; |
| 387 |
regulator-min-microvolt = <1200000>; |
| 388 |
regulator-max-microvolt = <1200000>; |
| 389 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 390 |
}; |
| 391 |
|
| 392 |
vreg_l6b: ldo6 { |
| 393 |
regulator-name = "vreg_l6b"; |
| 394 |
regulator-min-microvolt = <880000>; |
| 395 |
regulator-max-microvolt = <880000>; |
| 396 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 397 |
regulator-boot-on; |
| 398 |
regulator-allow-set-load; |
| 399 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 400 |
RPMH_REGULATOR_MODE_HPM>; |
| 401 |
}; |
| 402 |
|
| 403 |
vreg_l7b: ldo7 { |
| 404 |
regulator-name = "vreg_l7b"; |
| 405 |
regulator-min-microvolt = <1800000>; |
| 406 |
regulator-max-microvolt = <1800000>; |
| 407 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 408 |
regulator-boot-on; |
| 409 |
}; |
| 410 |
|
| 411 |
vreg_l9b: ldo9 { |
| 412 |
regulator-name = "vreg_l9b"; |
| 413 |
regulator-min-microvolt = <912000>; |
| 414 |
regulator-max-microvolt = <912000>; |
| 415 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 416 |
}; |
| 417 |
}; |
| 418 |
|
| 419 |
regulators-1 { |
| 420 |
compatible = "qcom,pm8350c-rpmh-regulators"; |
| 421 |
qcom,pmic-id = "c"; |
| 422 |
|
| 423 |
vdd-bob-supply = <&vreg_vph_pwr>; |
| 424 |
vdd-l1-l12-supply = <&vreg_s1c>; |
| 425 |
vdd-l2-l8-supply = <&vreg_s1c>; |
| 426 |
vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; |
| 427 |
vdd-l6-l9-l11-supply = <&vreg_bob>; |
| 428 |
vdd-l10-supply = <&vreg_s11b>; |
| 429 |
|
| 430 |
vreg_s1c: smps1 { |
| 431 |
regulator-name = "vreg_s1c"; |
| 432 |
regulator-min-microvolt = <1880000>; |
| 433 |
regulator-max-microvolt = <1900000>; |
| 434 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 435 |
regulator-always-on; |
| 436 |
}; |
| 437 |
|
| 438 |
vreg_l1c: ldo1 { |
| 439 |
regulator-name = "vreg_l1c"; |
| 440 |
regulator-min-microvolt = <1800000>; |
| 441 |
regulator-max-microvolt = <1800000>; |
| 442 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 443 |
regulator-allow-set-load; |
| 444 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 445 |
RPMH_REGULATOR_MODE_HPM>; |
| 446 |
}; |
| 447 |
|
| 448 |
vreg_l2c: ldo2 { |
| 449 |
regulator-name = "vreg_l2c"; |
| 450 |
regulator-min-microvolt = <1800000>; |
| 451 |
regulator-max-microvolt = <1800000>; |
| 452 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 453 |
}; |
| 454 |
|
| 455 |
vreg_l8c: ldo8 { |
| 456 |
regulator-name = "vreg_l8c"; |
| 457 |
regulator-min-microvolt = <1800000>; |
| 458 |
regulator-max-microvolt = <1800000>; |
| 459 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 460 |
regulator-allow-set-load; |
| 461 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 462 |
RPMH_REGULATOR_MODE_HPM>; |
| 463 |
}; |
| 464 |
|
| 465 |
vreg_l12c: ldo12 { |
| 466 |
regulator-name = "vreg_l12c"; |
| 467 |
regulator-min-microvolt = <1800000>; |
| 468 |
regulator-max-microvolt = <1800000>; |
| 469 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 470 |
}; |
| 471 |
|
| 472 |
vreg_l13c: ldo13 { |
| 473 |
regulator-name = "vreg_l13c"; |
| 474 |
regulator-min-microvolt = <3072000>; |
| 475 |
regulator-max-microvolt = <3072000>; |
| 476 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 477 |
regulator-allow-set-load; |
| 478 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 479 |
RPMH_REGULATOR_MODE_HPM>; |
| 480 |
}; |
| 481 |
|
| 482 |
vreg_bob: bob { |
| 483 |
regulator-name = "vreg_bob"; |
| 484 |
regulator-min-microvolt = <3008000>; |
| 485 |
regulator-max-microvolt = <3960000>; |
| 486 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; |
| 487 |
regulator-always-on; |
| 488 |
}; |
| 489 |
}; |
| 490 |
|
| 491 |
regulators-2 { |
| 492 |
compatible = "qcom,pm8350-rpmh-regulators"; |
| 493 |
qcom,pmic-id = "d"; |
| 494 |
|
| 495 |
vdd-l1-l4-supply = <&vreg_s11b>; |
| 496 |
vdd-l2-l7-supply = <&vreg_bob>; |
| 497 |
vdd-l3-l5-supply = <&vreg_s11b>; |
| 498 |
vdd-l6-l9-l10-supply = <&vreg_s12b>; |
| 499 |
vdd-l8-supply = <&vreg_s12b>; |
| 500 |
|
| 501 |
vreg_l2d: ldo2 { |
| 502 |
regulator-name = "vreg_l2d"; |
| 503 |
regulator-min-microvolt = <3072000>; |
| 504 |
regulator-max-microvolt = <3072000>; |
| 505 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 506 |
regulator-allow-set-load; |
| 507 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 508 |
RPMH_REGULATOR_MODE_HPM>; |
| 509 |
}; |
| 510 |
|
| 511 |
vreg_l3d: ldo3 { |
| 512 |
regulator-name = "vreg_l3d"; |
| 513 |
regulator-min-microvolt = <1200000>; |
| 514 |
regulator-max-microvolt = <1200000>; |
| 515 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 516 |
}; |
| 517 |
|
| 518 |
vreg_l4d: ldo4 { |
| 519 |
regulator-name = "vreg_l4d"; |
| 520 |
regulator-min-microvolt = <1200000>; |
| 521 |
regulator-max-microvolt = <1200000>; |
| 522 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 523 |
regulator-allow-set-load; |
| 524 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 525 |
RPMH_REGULATOR_MODE_HPM>; |
| 526 |
}; |
| 527 |
|
| 528 |
vreg_l6d: ldo6 { |
| 529 |
regulator-name = "vreg_l6d"; |
| 530 |
regulator-min-microvolt = <880000>; |
| 531 |
regulator-max-microvolt = <880000>; |
| 532 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 533 |
regulator-allow-set-load; |
| 534 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 535 |
RPMH_REGULATOR_MODE_HPM>; |
| 536 |
}; |
| 537 |
|
| 538 |
vreg_l7d: ldo7 { |
| 539 |
regulator-name = "vreg_l7d"; |
| 540 |
regulator-min-microvolt = <3072000>; |
| 541 |
regulator-max-microvolt = <3072000>; |
| 542 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 543 |
regulator-allow-set-load; |
| 544 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 545 |
RPMH_REGULATOR_MODE_HPM>; |
| 546 |
}; |
| 547 |
|
| 548 |
vreg_l8d: ldo8 { |
| 549 |
regulator-name = "vreg_l8d"; |
| 550 |
regulator-min-microvolt = <912000>; |
| 551 |
regulator-max-microvolt = <912000>; |
| 552 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 553 |
regulator-allow-set-load; |
| 554 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 555 |
RPMH_REGULATOR_MODE_HPM>; |
| 556 |
}; |
| 557 |
|
| 558 |
vreg_l9d: ldo9 { |
| 559 |
regulator-name = "vreg_l9d"; |
| 560 |
regulator-min-microvolt = <912000>; |
| 561 |
regulator-max-microvolt = <912000>; |
| 562 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 563 |
regulator-allow-set-load; |
| 564 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 565 |
RPMH_REGULATOR_MODE_HPM>; |
| 566 |
}; |
| 567 |
|
| 568 |
vreg_l10d: ldo10 { |
| 569 |
regulator-name = "vreg_l10d"; |
| 570 |
regulator-min-microvolt = <912000>; |
| 571 |
regulator-max-microvolt = <912000>; |
| 572 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 573 |
regulator-allow-set-load; |
| 574 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 575 |
RPMH_REGULATOR_MODE_HPM>; |
| 576 |
}; |
| 577 |
}; |
| 578 |
}; |
| 579 |
|
| 580 |
&dispcc0 { |
| 581 |
status = "okay"; |
| 582 |
}; |
| 583 |
|
| 584 |
&gpi_dma0 { |
| 585 |
status = "okay"; |
| 586 |
}; |
| 587 |
|
| 588 |
&gpi_dma1 { |
| 589 |
status = "okay"; |
| 590 |
}; |
| 591 |
|
| 592 |
&gpi_dma2 { |
| 593 |
status = "okay"; |
| 594 |
}; |
| 595 |
|
| 596 |
&gpu { |
| 597 |
status = "okay"; |
| 598 |
}; |
| 599 |
|
| 600 |
&gpu_zap_shader { |
| 601 |
firmware-name = "qcom/sc8280xp/HUAWEI/gaokun3/qcdxkmsuc8280.mbn"; |
| 602 |
}; |
| 603 |
|
| 604 |
&i2c4 { |
| 605 |
clock-frequency = <400000>; |
| 606 |
|
| 607 |
pinctrl-0 = <&i2c4_default>; |
| 608 |
pinctrl-names = "default"; |
| 609 |
|
| 610 |
status = "okay"; |
| 611 |
|
| 612 |
touchscreen@4f { |
| 613 |
compatible = "hid-over-i2c"; |
| 614 |
reg = <0x4f>; |
| 615 |
|
| 616 |
hid-descr-addr = <0x1>; |
| 617 |
interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>; |
| 618 |
|
| 619 |
vdd-supply = <&vreg_misc_3p3>; |
| 620 |
vddl-supply = <&vreg_s10b>; |
| 621 |
|
| 622 |
pinctrl-0 = <&ts0_default>; |
| 623 |
pinctrl-names = "default"; |
| 624 |
}; |
| 625 |
|
| 626 |
}; |
| 627 |
|
| 628 |
&i2c15 { |
| 629 |
clock-frequency = <400000>; |
| 630 |
|
| 631 |
pinctrl-0 = <&i2c15_default>; |
| 632 |
pinctrl-names = "default"; |
| 633 |
|
| 634 |
status = "okay"; |
| 635 |
|
| 636 |
embedded-controller@38 { |
| 637 |
compatible = "huawei,gaokun3-ec"; |
| 638 |
reg = <0x38>; |
| 639 |
|
| 640 |
interrupts-extended = <&tlmm 107 IRQ_TYPE_LEVEL_LOW>; |
| 641 |
|
| 642 |
#address-cells = <1>; |
| 643 |
#size-cells = <0>; |
| 644 |
|
| 645 |
connector@0 { |
| 646 |
compatible = "usb-c-connector"; |
| 647 |
reg = <0>; |
| 648 |
power-role = "dual"; |
| 649 |
data-role = "dual"; |
| 650 |
|
| 651 |
ports { |
| 652 |
#address-cells = <1>; |
| 653 |
#size-cells = <0>; |
| 654 |
|
| 655 |
port@0 { |
| 656 |
reg = <0>; |
| 657 |
|
| 658 |
ucsi0_hs_in: endpoint { |
| 659 |
remote-endpoint = <&usb_0_dwc3_hs>; |
| 660 |
}; |
| 661 |
}; |
| 662 |
|
| 663 |
port@1 { |
| 664 |
reg = <1>; |
| 665 |
|
| 666 |
ucsi0_ss_in: endpoint { |
| 667 |
remote-endpoint = <&usb_0_qmpphy_out>; |
| 668 |
}; |
| 669 |
}; |
| 670 |
|
| 671 |
port@2 { |
| 672 |
reg = <2>; |
| 673 |
|
| 674 |
ucsi0_sbu: endpoint { |
| 675 |
remote-endpoint = <&usb0_sbu_mux>; |
| 676 |
}; |
| 677 |
}; |
| 678 |
}; |
| 679 |
}; |
| 680 |
|
| 681 |
connector@1 { |
| 682 |
compatible = "usb-c-connector"; |
| 683 |
reg = <1>; |
| 684 |
power-role = "dual"; |
| 685 |
data-role = "dual"; |
| 686 |
|
| 687 |
ports { |
| 688 |
#address-cells = <1>; |
| 689 |
#size-cells = <0>; |
| 690 |
|
| 691 |
port@0 { |
| 692 |
reg = <0>; |
| 693 |
|
| 694 |
ucsi1_hs_in: endpoint { |
| 695 |
remote-endpoint = <&usb_1_dwc3_hs>; |
| 696 |
}; |
| 697 |
}; |
| 698 |
|
| 699 |
port@1 { |
| 700 |
reg = <1>; |
| 701 |
|
| 702 |
ucsi1_ss_in: endpoint { |
| 703 |
remote-endpoint = <&usb_1_qmpphy_out>; |
| 704 |
}; |
| 705 |
}; |
| 706 |
|
| 707 |
port@2 { |
| 708 |
reg = <2>; |
| 709 |
|
| 710 |
ucsi1_sbu: endpoint { |
| 711 |
remote-endpoint = <&usb1_sbu_mux>; |
| 712 |
}; |
| 713 |
}; |
| 714 |
}; |
| 715 |
}; |
| 716 |
}; |
| 717 |
}; |
| 718 |
|
| 719 |
&mdss0 { |
| 720 |
status = "okay"; |
| 721 |
}; |
| 722 |
|
| 723 |
&mdss0_dp0 { |
| 724 |
status = "okay"; |
| 725 |
}; |
| 726 |
|
| 727 |
&mdss0_dp0_out { |
| 728 |
data-lanes = <0 1>; |
| 729 |
remote-endpoint = <&usb_0_qmpphy_dp_in>; |
| 730 |
}; |
| 731 |
|
| 732 |
&mdss0_dp1 { |
| 733 |
status = "okay"; |
| 734 |
}; |
| 735 |
|
| 736 |
&mdss0_dp1_out { |
| 737 |
data-lanes = <0 1>; |
| 738 |
remote-endpoint = <&usb_1_qmpphy_dp_in>; |
| 739 |
}; |
| 740 |
|
| 741 |
&pcie2a { |
| 742 |
perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; |
| 743 |
wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; |
| 744 |
|
| 745 |
vddpe-3v3-supply = <&vreg_nvme>; |
| 746 |
|
| 747 |
pinctrl-0 = <&pcie2a_default>; |
| 748 |
pinctrl-names = "default"; |
| 749 |
|
| 750 |
status = "okay"; |
| 751 |
}; |
| 752 |
|
| 753 |
&pcie2a_phy { |
| 754 |
vdda-phy-supply = <&vreg_l6d>; |
| 755 |
vdda-pll-supply = <&vreg_l4d>; |
| 756 |
|
| 757 |
status = "okay"; |
| 758 |
}; |
| 759 |
|
| 760 |
&pcie4 { |
| 761 |
max-link-speed = <2>; |
| 762 |
|
| 763 |
perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; |
| 764 |
wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>; |
| 765 |
|
| 766 |
vddpe-3v3-supply = <&vreg_wlan>; |
| 767 |
|
| 768 |
pinctrl-0 = <&pcie4_default>; |
| 769 |
pinctrl-names = "default"; |
| 770 |
|
| 771 |
status = "okay"; |
| 772 |
}; |
| 773 |
|
| 774 |
&pcie4_port0 { |
| 775 |
wifi@0 { |
| 776 |
compatible = "pci17cb,1103"; |
| 777 |
reg = <0x10000 0x0 0x0 0x0 0x0>; |
| 778 |
|
| 779 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>; |
| 780 |
vddaon-supply = <&vreg_pmu_aon_0p8>; |
| 781 |
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 782 |
vddwlmx-supply = <&vreg_pmu_wlmx_0p8>; |
| 783 |
vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; |
| 784 |
vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; |
| 785 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 786 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 787 |
vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>; |
| 788 |
}; |
| 789 |
}; |
| 790 |
|
| 791 |
&pcie4_phy { |
| 792 |
vdda-phy-supply = <&vreg_l6d>; |
| 793 |
vdda-pll-supply = <&vreg_l4d>; |
| 794 |
|
| 795 |
status = "okay"; |
| 796 |
}; |
| 797 |
|
| 798 |
&pmk8280_adc_tm { |
| 799 |
status = "okay"; |
| 800 |
|
| 801 |
sys-therm@0 { |
| 802 |
reg = <0>; |
| 803 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; |
| 804 |
qcom,hw-settle-time-us = <200>; |
| 805 |
qcom,avg-samples = <2>; |
| 806 |
qcom,ratiometric; |
| 807 |
}; |
| 808 |
|
| 809 |
sys-therm@1 { |
| 810 |
reg = <1>; |
| 811 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; |
| 812 |
qcom,hw-settle-time-us = <200>; |
| 813 |
qcom,avg-samples = <2>; |
| 814 |
qcom,ratiometric; |
| 815 |
}; |
| 816 |
|
| 817 |
sys-therm@2 { |
| 818 |
reg = <2>; |
| 819 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; |
| 820 |
qcom,hw-settle-time-us = <200>; |
| 821 |
qcom,avg-samples = <2>; |
| 822 |
qcom,ratiometric; |
| 823 |
}; |
| 824 |
|
| 825 |
sys-therm@3 { |
| 826 |
reg = <3>; |
| 827 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; |
| 828 |
qcom,hw-settle-time-us = <200>; |
| 829 |
qcom,avg-samples = <2>; |
| 830 |
qcom,ratiometric; |
| 831 |
}; |
| 832 |
|
| 833 |
sys-therm@4 { |
| 834 |
reg = <4>; |
| 835 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; |
| 836 |
qcom,hw-settle-time-us = <200>; |
| 837 |
qcom,avg-samples = <2>; |
| 838 |
qcom,ratiometric; |
| 839 |
}; |
| 840 |
|
| 841 |
sys-therm@5 { |
| 842 |
reg = <5>; |
| 843 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; |
| 844 |
qcom,hw-settle-time-us = <200>; |
| 845 |
qcom,avg-samples = <2>; |
| 846 |
qcom,ratiometric; |
| 847 |
}; |
| 848 |
|
| 849 |
sys-therm@6 { |
| 850 |
reg = <6>; |
| 851 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; |
| 852 |
qcom,hw-settle-time-us = <200>; |
| 853 |
qcom,avg-samples = <2>; |
| 854 |
qcom,ratiometric; |
| 855 |
}; |
| 856 |
|
| 857 |
sys-therm@7 { |
| 858 |
reg = <7>; |
| 859 |
io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; |
| 860 |
qcom,hw-settle-time-us = <200>; |
| 861 |
qcom,avg-samples = <2>; |
| 862 |
qcom,ratiometric; |
| 863 |
}; |
| 864 |
}; |
| 865 |
|
| 866 |
&pmk8280_pon_pwrkey { |
| 867 |
status = "okay"; |
| 868 |
}; |
| 869 |
|
| 870 |
&pmk8280_pon_resin { |
| 871 |
status = "okay"; |
| 872 |
linux,code = <KEY_VOLUMEDOWN>; |
| 873 |
}; |
| 874 |
|
| 875 |
&pmk8280_rtc { |
| 876 |
nvmem-cells = <&rtc_offset>; |
| 877 |
nvmem-cell-names = "offset"; |
| 878 |
|
| 879 |
status = "okay"; |
| 880 |
}; |
| 881 |
|
| 882 |
&pmk8280_sdam_6 { |
| 883 |
status = "okay"; |
| 884 |
|
| 885 |
rtc_offset: rtc-offset@bc { |
| 886 |
reg = <0xbc 0x4>; |
| 887 |
}; |
| 888 |
}; |
| 889 |
|
| 890 |
&pmk8280_vadc { |
| 891 |
channel@144 { |
| 892 |
reg = <PM8350_ADC7_AMUX_THM1_100K_PU(1)>; |
| 893 |
qcom,hw-settle-time = <200>; |
| 894 |
qcom,ratiometric; |
| 895 |
label = "sys_therm1"; |
| 896 |
}; |
| 897 |
|
| 898 |
channel@145 { |
| 899 |
reg = <PM8350_ADC7_AMUX_THM2_100K_PU(1)>; |
| 900 |
qcom,hw-settle-time = <200>; |
| 901 |
qcom,ratiometric; |
| 902 |
label = "sys_therm2"; |
| 903 |
}; |
| 904 |
|
| 905 |
channel@146 { |
| 906 |
reg = <PM8350_ADC7_AMUX_THM3_100K_PU(1)>; |
| 907 |
qcom,hw-settle-time = <200>; |
| 908 |
qcom,ratiometric; |
| 909 |
label = "sys_therm3"; |
| 910 |
}; |
| 911 |
|
| 912 |
channel@147 { |
| 913 |
reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>; |
| 914 |
qcom,hw-settle-time = <200>; |
| 915 |
qcom,ratiometric; |
| 916 |
label = "sys_therm4"; |
| 917 |
}; |
| 918 |
|
| 919 |
channel@344 { |
| 920 |
reg = <PM8350_ADC7_AMUX_THM1_100K_PU(3)>; |
| 921 |
qcom,hw-settle-time = <200>; |
| 922 |
qcom,ratiometric; |
| 923 |
label = "sys_therm5"; |
| 924 |
}; |
| 925 |
|
| 926 |
channel@345 { |
| 927 |
reg = <PM8350_ADC7_AMUX_THM2_100K_PU(3)>; |
| 928 |
qcom,hw-settle-time = <200>; |
| 929 |
qcom,ratiometric; |
| 930 |
label = "sys_therm6"; |
| 931 |
}; |
| 932 |
|
| 933 |
channel@346 { |
| 934 |
reg = <PM8350_ADC7_AMUX_THM3_100K_PU(3)>; |
| 935 |
qcom,hw-settle-time = <200>; |
| 936 |
qcom,ratiometric; |
| 937 |
label = "sys_therm7"; |
| 938 |
}; |
| 939 |
|
| 940 |
channel@347 { |
| 941 |
reg = <PM8350_ADC7_AMUX_THM4_100K_PU(3)>; |
| 942 |
qcom,hw-settle-time = <200>; |
| 943 |
qcom,ratiometric; |
| 944 |
label = "sys_therm8"; |
| 945 |
}; |
| 946 |
}; |
| 947 |
|
| 948 |
&qup0 { |
| 949 |
status = "okay"; |
| 950 |
}; |
| 951 |
|
| 952 |
&qup1 { |
| 953 |
status = "okay"; |
| 954 |
}; |
| 955 |
|
| 956 |
&qup2 { |
| 957 |
status = "okay"; |
| 958 |
}; |
| 959 |
|
| 960 |
&remoteproc_adsp { |
| 961 |
firmware-name = "qcom/sc8280xp/HUAWEI/gaokun3/qcadsp8280.mbn"; |
| 962 |
|
| 963 |
status = "okay"; |
| 964 |
}; |
| 965 |
|
| 966 |
&remoteproc_nsp0 { |
| 967 |
firmware-name = "qcom/sc8280xp/HUAWEI/gaokun3/qccdsp8280.mbn"; |
| 968 |
|
| 969 |
status = "okay"; |
| 970 |
}; |
| 971 |
|
| 972 |
&rxmacro { |
| 973 |
status = "okay"; |
| 974 |
}; |
| 975 |
|
| 976 |
&sound { |
| 977 |
compatible = "qcom,sc8280xp-sndcard"; |
| 978 |
model = "SC8280XP-HUAWEI-MATEBOOKEGO"; |
| 979 |
audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", |
| 980 |
"SpkrRight IN", "WSA_SPK2 OUT", |
| 981 |
"IN1_HPHL", "HPHL_OUT", |
| 982 |
"IN2_HPHR", "HPHR_OUT", |
| 983 |
"AMIC2", "MIC BIAS2", |
| 984 |
"VA DMIC0", "MIC BIAS1", |
| 985 |
"VA DMIC1", "MIC BIAS1", |
| 986 |
"VA DMIC2", "MIC BIAS3", |
| 987 |
"VA DMIC0", "VA MIC BIAS1", |
| 988 |
"VA DMIC1", "VA MIC BIAS1", |
| 989 |
"VA DMIC2", "VA MIC BIAS3", |
| 990 |
"TX SWR_ADC1", "ADC2_OUTPUT"; |
| 991 |
|
| 992 |
wcd-playback-dai-link { |
| 993 |
link-name = "WCD Playback"; |
| 994 |
|
| 995 |
cpu { |
| 996 |
sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; |
| 997 |
}; |
| 998 |
|
| 999 |
codec { |
| 1000 |
sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; |
| 1001 |
}; |
| 1002 |
|
| 1003 |
platform { |
| 1004 |
sound-dai = <&q6apm>; |
| 1005 |
}; |
| 1006 |
}; |
| 1007 |
|
| 1008 |
wcd-capture-dai-link { |
| 1009 |
link-name = "WCD Capture"; |
| 1010 |
|
| 1011 |
cpu { |
| 1012 |
sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; |
| 1013 |
}; |
| 1014 |
|
| 1015 |
codec { |
| 1016 |
sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; |
| 1017 |
}; |
| 1018 |
|
| 1019 |
platform { |
| 1020 |
sound-dai = <&q6apm>; |
| 1021 |
}; |
| 1022 |
}; |
| 1023 |
|
| 1024 |
wsa-dai-link { |
| 1025 |
link-name = "WSA Playback"; |
| 1026 |
|
| 1027 |
cpu { |
| 1028 |
sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; |
| 1029 |
}; |
| 1030 |
|
| 1031 |
codec { |
| 1032 |
sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; |
| 1033 |
}; |
| 1034 |
|
| 1035 |
platform { |
| 1036 |
sound-dai = <&q6apm>; |
| 1037 |
}; |
| 1038 |
}; |
| 1039 |
|
| 1040 |
va-dai-link { |
| 1041 |
link-name = "VA Capture"; |
| 1042 |
|
| 1043 |
cpu { |
| 1044 |
sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; |
| 1045 |
}; |
| 1046 |
|
| 1047 |
platform { |
| 1048 |
sound-dai = <&q6apm>; |
| 1049 |
}; |
| 1050 |
|
| 1051 |
codec { |
| 1052 |
sound-dai = <&vamacro 0>; |
| 1053 |
}; |
| 1054 |
}; |
| 1055 |
}; |
| 1056 |
|
| 1057 |
&swr0 { |
| 1058 |
status = "okay"; |
| 1059 |
|
| 1060 |
left_spkr: wsa8830-left@0,1 { |
| 1061 |
compatible = "sdw10217020200"; |
| 1062 |
reg = <0 1>; |
| 1063 |
pinctrl-0 = <&spkr_1_sd_n_default>; |
| 1064 |
pinctrl-names = "default"; |
| 1065 |
powerdown-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>; |
| 1066 |
#thermal-sensor-cells = <0>; |
| 1067 |
sound-name-prefix = "SpkrLeft"; |
| 1068 |
#sound-dai-cells = <0>; |
| 1069 |
vdd-supply = <&vreg_s10b>; |
| 1070 |
}; |
| 1071 |
|
| 1072 |
right_spkr: wsa8830-right@0,2 { |
| 1073 |
compatible = "sdw10217020200"; |
| 1074 |
reg = <0 2>; |
| 1075 |
pinctrl-0 = <&spkr_2_sd_n_default>; |
| 1076 |
pinctrl-names = "default"; |
| 1077 |
powerdown-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>; |
| 1078 |
#thermal-sensor-cells = <0>; |
| 1079 |
sound-name-prefix = "SpkrRight"; |
| 1080 |
#sound-dai-cells = <0>; |
| 1081 |
vdd-supply = <&vreg_s10b>; |
| 1082 |
}; |
| 1083 |
}; |
| 1084 |
|
| 1085 |
&swr1 { |
| 1086 |
status = "okay"; |
| 1087 |
|
| 1088 |
wcd_rx: wcd9380-rx@0,4 { |
| 1089 |
compatible = "sdw20217010d00"; |
| 1090 |
reg = <0 4>; |
| 1091 |
qcom,rx-port-mapping = <1 2 3 4 5>; |
| 1092 |
}; |
| 1093 |
}; |
| 1094 |
|
| 1095 |
&swr2 { |
| 1096 |
status = "okay"; |
| 1097 |
|
| 1098 |
wcd_tx: wcd9380-tx@0,3 { |
| 1099 |
compatible = "sdw20217010d00"; |
| 1100 |
reg = <0 3>; |
| 1101 |
qcom,tx-port-mapping = <1 1 2 3>; |
| 1102 |
}; |
| 1103 |
}; |
| 1104 |
|
| 1105 |
&txmacro { |
| 1106 |
status = "okay"; |
| 1107 |
}; |
| 1108 |
|
| 1109 |
&uart2 { |
| 1110 |
pinctrl-0 = <&uart2_default>; |
| 1111 |
pinctrl-names = "default"; |
| 1112 |
|
| 1113 |
status = "okay"; |
| 1114 |
|
| 1115 |
bluetooth { |
| 1116 |
compatible = "qcom,wcn6855-bt"; |
| 1117 |
|
| 1118 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>; |
| 1119 |
vddaon-supply = <&vreg_pmu_aon_0p8>; |
| 1120 |
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 1121 |
vddwlmx-supply = <&vreg_pmu_wlmx_0p8>; |
| 1122 |
vddbtcmx-supply = <&vreg_pmu_btcmx_0p8>; |
| 1123 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 1124 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 1125 |
vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>; |
| 1126 |
|
| 1127 |
max-speed = <3200000>; |
| 1128 |
}; |
| 1129 |
}; |
| 1130 |
|
| 1131 |
&usb_0 { |
| 1132 |
status = "okay"; |
| 1133 |
}; |
| 1134 |
|
| 1135 |
&usb_0_dwc3 { |
| 1136 |
dr_mode = "host"; |
| 1137 |
}; |
| 1138 |
|
| 1139 |
&usb_0_dwc3_hs { |
| 1140 |
remote-endpoint = <&ucsi0_hs_in>; |
| 1141 |
}; |
| 1142 |
|
| 1143 |
&usb_0_hsphy { |
| 1144 |
vdda-pll-supply = <&vreg_l9d>; |
| 1145 |
vdda18-supply = <&vreg_l1c>; |
| 1146 |
vdda33-supply = <&vreg_l7d>; |
| 1147 |
|
| 1148 |
status = "okay"; |
| 1149 |
}; |
| 1150 |
|
| 1151 |
&usb_0_qmpphy { |
| 1152 |
vdda-phy-supply = <&vreg_l9d>; |
| 1153 |
vdda-pll-supply = <&vreg_l4d>; |
| 1154 |
|
| 1155 |
orientation-switch; |
| 1156 |
|
| 1157 |
status = "okay"; |
| 1158 |
}; |
| 1159 |
|
| 1160 |
&usb_0_qmpphy_dp_in { |
| 1161 |
remote-endpoint = <&mdss0_dp0_out>; |
| 1162 |
}; |
| 1163 |
|
| 1164 |
&usb_0_qmpphy_out { |
| 1165 |
remote-endpoint = <&ucsi0_ss_in>; |
| 1166 |
}; |
| 1167 |
|
| 1168 |
&usb_1 { |
| 1169 |
status = "okay"; |
| 1170 |
}; |
| 1171 |
|
| 1172 |
&usb_1_dwc3 { |
| 1173 |
dr_mode = "host"; |
| 1174 |
}; |
| 1175 |
|
| 1176 |
&usb_1_dwc3_hs { |
| 1177 |
remote-endpoint = <&ucsi1_hs_in>; |
| 1178 |
}; |
| 1179 |
|
| 1180 |
&usb_1_hsphy { |
| 1181 |
vdda-pll-supply = <&vreg_l4b>; |
| 1182 |
vdda18-supply = <&vreg_l1c>; |
| 1183 |
vdda33-supply = <&vreg_l13c>; |
| 1184 |
|
| 1185 |
status = "okay"; |
| 1186 |
}; |
| 1187 |
|
| 1188 |
&usb_1_qmpphy { |
| 1189 |
vdda-phy-supply = <&vreg_l4b>; |
| 1190 |
vdda-pll-supply = <&vreg_l3b>; |
| 1191 |
|
| 1192 |
orientation-switch; |
| 1193 |
|
| 1194 |
status = "okay"; |
| 1195 |
}; |
| 1196 |
|
| 1197 |
&usb_1_qmpphy_dp_in { |
| 1198 |
remote-endpoint = <&mdss0_dp1_out>; |
| 1199 |
}; |
| 1200 |
|
| 1201 |
&usb_1_qmpphy_out { |
| 1202 |
remote-endpoint = <&ucsi1_ss_in>; |
| 1203 |
}; |
| 1204 |
|
| 1205 |
&usb_2 { |
| 1206 |
status = "okay"; |
| 1207 |
}; |
| 1208 |
|
| 1209 |
&usb_2_hsphy0 { |
| 1210 |
vdda-pll-supply = <&vreg_l1b>; |
| 1211 |
vdda18-supply = <&vreg_l1c>; |
| 1212 |
vdda33-supply = <&vreg_l7d>; |
| 1213 |
|
| 1214 |
status = "okay"; |
| 1215 |
}; |
| 1216 |
|
| 1217 |
&usb_2_hsphy1 { |
| 1218 |
vdda-pll-supply = <&vreg_l8d>; |
| 1219 |
vdda18-supply = <&vreg_l1c>; |
| 1220 |
vdda33-supply = <&vreg_l7d>; |
| 1221 |
|
| 1222 |
status = "okay"; |
| 1223 |
}; |
| 1224 |
|
| 1225 |
&usb_2_hsphy2 { |
| 1226 |
vdda-pll-supply = <&vreg_l10d>; |
| 1227 |
vdda18-supply = <&vreg_l8c>; |
| 1228 |
vdda33-supply = <&vreg_l2d>; |
| 1229 |
|
| 1230 |
status = "okay"; |
| 1231 |
}; |
| 1232 |
|
| 1233 |
&usb_2_hsphy3 { |
| 1234 |
vdda-pll-supply = <&vreg_l10d>; |
| 1235 |
vdda18-supply = <&vreg_l8c>; |
| 1236 |
vdda33-supply = <&vreg_l2d>; |
| 1237 |
|
| 1238 |
status = "okay"; |
| 1239 |
}; |
| 1240 |
|
| 1241 |
&usb_2_qmpphy0 { |
| 1242 |
vdda-phy-supply = <&vreg_l1b>; |
| 1243 |
vdda-pll-supply = <&vreg_l4d>; |
| 1244 |
|
| 1245 |
status = "okay"; |
| 1246 |
}; |
| 1247 |
|
| 1248 |
&usb_2_qmpphy1 { |
| 1249 |
vdda-phy-supply = <&vreg_l8d>; |
| 1250 |
vdda-pll-supply = <&vreg_l4d>; |
| 1251 |
|
| 1252 |
status = "okay"; |
| 1253 |
}; |
| 1254 |
|
| 1255 |
&vamacro { |
| 1256 |
pinctrl-0 = <&dmic01_default>, <&dmic23_default>; |
| 1257 |
pinctrl-names = "default"; |
| 1258 |
|
| 1259 |
vdd-micb-supply = <&vreg_s10b>; |
| 1260 |
|
| 1261 |
qcom,dmic-sample-rate = <4800000>; |
| 1262 |
|
| 1263 |
status = "okay"; |
| 1264 |
}; |
| 1265 |
|
| 1266 |
&wsamacro { |
| 1267 |
status = "okay"; |
| 1268 |
}; |
| 1269 |
|
| 1270 |
&xo_board_clk { |
| 1271 |
clock-frequency = <38400000>; |
| 1272 |
}; |
| 1273 |
|
| 1274 |
/* PINCTRL */ |
| 1275 |
|
| 1276 |
&lpass_tlmm { |
| 1277 |
status = "okay"; |
| 1278 |
}; |
| 1279 |
|
| 1280 |
&pmc8280_1_gpios { |
| 1281 |
misc_3p3_reg_en: misc-3p3-reg-en-state { |
| 1282 |
pins = "gpio1"; |
| 1283 |
function = "normal"; |
| 1284 |
}; |
| 1285 |
|
| 1286 |
vol_up_n: vol-up-n-state { |
| 1287 |
pins = "gpio6"; |
| 1288 |
function = "normal"; |
| 1289 |
power-source = <1>; |
| 1290 |
input-enable; |
| 1291 |
bias-pull-up; |
| 1292 |
}; |
| 1293 |
}; |
| 1294 |
|
| 1295 |
&pmr735a_gpios { |
| 1296 |
hastings_reg_en: hastings-reg-en-state { |
| 1297 |
pins = "gpio1"; |
| 1298 |
function = "normal"; |
| 1299 |
}; |
| 1300 |
}; |
| 1301 |
|
| 1302 |
&tlmm { |
| 1303 |
|
| 1304 |
gpio-reserved-ranges = <70 2>, <74 6>, <83 4>, <125 2>, <128 2>, <154 4>; |
| 1305 |
|
| 1306 |
bt_default: bt-default-state { |
| 1307 |
hstp-bt-en-pins { |
| 1308 |
pins = "gpio133"; |
| 1309 |
function = "gpio"; |
| 1310 |
drive-strength = <16>; |
| 1311 |
bias-disable; |
| 1312 |
}; |
| 1313 |
|
| 1314 |
hstp-sw-ctrl-pins { |
| 1315 |
pins = "gpio132"; |
| 1316 |
function = "gpio"; |
| 1317 |
bias-pull-down; |
| 1318 |
}; |
| 1319 |
}; |
| 1320 |
|
| 1321 |
i2c4_default: i2c4-default-state { |
| 1322 |
pins = "gpio171", "gpio172"; |
| 1323 |
function = "qup4"; |
| 1324 |
drive-strength = <16>; |
| 1325 |
bias-disable; |
| 1326 |
}; |
| 1327 |
|
| 1328 |
i2c15_default: i2c15-default-state { |
| 1329 |
pins = "gpio36", "gpio37"; |
| 1330 |
function = "qup15"; |
| 1331 |
drive-strength = <2>; |
| 1332 |
bias-pull-up; |
| 1333 |
}; |
| 1334 |
|
| 1335 |
mode_pin_active: mode-pin-state { |
| 1336 |
pins = "gpio26"; |
| 1337 |
function = "gpio"; |
| 1338 |
bias-disable; |
| 1339 |
}; |
| 1340 |
|
| 1341 |
nvme_reg_en: nvme-reg-en-state { |
| 1342 |
pins = "gpio135"; |
| 1343 |
function = "gpio"; |
| 1344 |
drive-strength = <2>; |
| 1345 |
bias-disable; |
| 1346 |
}; |
| 1347 |
|
| 1348 |
pcie2a_default: pcie2a-default-state { |
| 1349 |
clkreq-n-pins { |
| 1350 |
pins = "gpio142"; |
| 1351 |
function = "pcie2a_clkreq"; |
| 1352 |
drive-strength = <2>; |
| 1353 |
bias-pull-up; |
| 1354 |
}; |
| 1355 |
|
| 1356 |
perst-n-pins { |
| 1357 |
pins = "gpio143"; |
| 1358 |
function = "gpio"; |
| 1359 |
drive-strength = <2>; |
| 1360 |
bias-disable; |
| 1361 |
}; |
| 1362 |
|
| 1363 |
wake-n-pins { |
| 1364 |
pins = "gpio145"; |
| 1365 |
function = "gpio"; |
| 1366 |
drive-strength = <2>; |
| 1367 |
bias-pull-up; |
| 1368 |
}; |
| 1369 |
}; |
| 1370 |
|
| 1371 |
pcie4_default: pcie4-default-state { |
| 1372 |
clkreq-n-pins { |
| 1373 |
pins = "gpio140"; |
| 1374 |
function = "pcie4_clkreq"; |
| 1375 |
drive-strength = <2>; |
| 1376 |
bias-pull-up; |
| 1377 |
}; |
| 1378 |
|
| 1379 |
perst-n-pins { |
| 1380 |
pins = "gpio141"; |
| 1381 |
function = "gpio"; |
| 1382 |
drive-strength = <2>; |
| 1383 |
bias-disable; |
| 1384 |
}; |
| 1385 |
|
| 1386 |
wake-n-pins { |
| 1387 |
pins = "gpio139"; |
| 1388 |
function = "gpio"; |
| 1389 |
drive-strength = <2>; |
| 1390 |
bias-pull-up; |
| 1391 |
}; |
| 1392 |
}; |
| 1393 |
|
| 1394 |
spkr_1_sd_n_default: spkr-1-sd-n-default-state { |
| 1395 |
perst-n-pins { |
| 1396 |
pins = "gpio178"; |
| 1397 |
function = "gpio"; |
| 1398 |
drive-strength = <16>; |
| 1399 |
bias-disable; |
| 1400 |
output-high; |
| 1401 |
}; |
| 1402 |
}; |
| 1403 |
|
| 1404 |
spkr_2_sd_n_default: spkr-2-sd-n-default-state { |
| 1405 |
perst-n-pins { |
| 1406 |
pins = "gpio179"; |
| 1407 |
function = "gpio"; |
| 1408 |
drive-strength = <16>; |
| 1409 |
bias-disable; |
| 1410 |
output-high; |
| 1411 |
}; |
| 1412 |
}; |
| 1413 |
|
| 1414 |
ts0_default: ts0-default-state { |
| 1415 |
int-n-pins { |
| 1416 |
pins = "gpio175"; |
| 1417 |
function = "gpio"; |
| 1418 |
drive-strength = <2>; |
| 1419 |
bias-disable; |
| 1420 |
}; |
| 1421 |
|
| 1422 |
reset-n-pins { |
| 1423 |
pins = "gpio99"; |
| 1424 |
function = "gpio"; |
| 1425 |
drive-strength = <2>; |
| 1426 |
bias-disable; |
| 1427 |
output-high; |
| 1428 |
}; |
| 1429 |
}; |
| 1430 |
|
| 1431 |
uart2_default: uart2-default-state { |
| 1432 |
cts-pins { |
| 1433 |
pins = "gpio121"; |
| 1434 |
function = "qup2"; |
| 1435 |
bias-bus-hold; |
| 1436 |
}; |
| 1437 |
|
| 1438 |
rts-pins { |
| 1439 |
pins = "gpio122"; |
| 1440 |
function = "qup2"; |
| 1441 |
drive-strength = <2>; |
| 1442 |
bias-disable; |
| 1443 |
}; |
| 1444 |
|
| 1445 |
rx-pins { |
| 1446 |
pins = "gpio124"; |
| 1447 |
function = "qup2"; |
| 1448 |
bias-pull-up; |
| 1449 |
}; |
| 1450 |
|
| 1451 |
tx-pins { |
| 1452 |
pins = "gpio123"; |
| 1453 |
function = "qup2"; |
| 1454 |
drive-strength = <2>; |
| 1455 |
bias-disable; |
| 1456 |
}; |
| 1457 |
}; |
| 1458 |
|
| 1459 |
usb0_sbu_default: usb0-sbu-state { |
| 1460 |
pins = "gpio164"; |
| 1461 |
function = "gpio"; |
| 1462 |
drive-strength = <16>; |
| 1463 |
bias-disable; |
| 1464 |
}; |
| 1465 |
|
| 1466 |
usb1_sbu_default: usb1-sbu-state { |
| 1467 |
pins = "gpio47"; |
| 1468 |
function = "gpio"; |
| 1469 |
drive-strength = <16>; |
| 1470 |
bias-disable; |
| 1471 |
}; |
| 1472 |
|
| 1473 |
wcd_default: wcd-default-state { |
| 1474 |
reset-pins { |
| 1475 |
pins = "gpio106"; |
| 1476 |
function = "gpio"; |
| 1477 |
bias-disable; |
| 1478 |
}; |
| 1479 |
}; |
| 1480 |
|
| 1481 |
wlan_en: wlan-en-state { |
| 1482 |
pins = "gpio134"; |
| 1483 |
function = "gpio"; |
| 1484 |
drive-strength = <8>; |
| 1485 |
bias-pull-down; |
| 1486 |
}; |
| 1487 |
}; |