| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. |
| 4 |
* Copyright (c) 2020-2023, Linaro Limited |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include <dt-bindings/firmware/qcom,scm.h> |
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/input/gpio-keys.h> |
| 12 |
#include <dt-bindings/input/input.h> |
| 13 |
#include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 14 |
#include "sc8180x.dtsi" |
| 15 |
#include "sc8180x-pmics.dtsi" |
| 16 |
|
| 17 |
/ { |
| 18 |
model = "Lenovo Flex 5G"; |
| 19 |
compatible = "lenovo,flex-5g", "qcom,sc8180x"; |
| 20 |
|
| 21 |
aliases { |
| 22 |
serial0 = &uart13; |
| 23 |
}; |
| 24 |
|
| 25 |
backlight: backlight { |
| 26 |
compatible = "pwm-backlight"; |
| 27 |
pwms = <&pmc8180c_lpg 4 1000000>; |
| 28 |
enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>; |
| 29 |
|
| 30 |
pinctrl-0 = <&bl_pwm_default>; |
| 31 |
pinctrl-names = "default"; |
| 32 |
}; |
| 33 |
|
| 34 |
gpio-keys { |
| 35 |
compatible = "gpio-keys"; |
| 36 |
|
| 37 |
pinctrl-0 = <&hall_int_active_state>; |
| 38 |
pinctrl-names = "default"; |
| 39 |
|
| 40 |
lid-switch { |
| 41 |
gpios = <&tlmm 121 GPIO_ACTIVE_LOW>; |
| 42 |
linux,input-type = <EV_SW>; |
| 43 |
linux,code = <SW_LID>; |
| 44 |
wakeup-source; |
| 45 |
wakeup-event-action = <EV_ACT_DEASSERTED>; |
| 46 |
}; |
| 47 |
}; |
| 48 |
|
| 49 |
pmic-glink { |
| 50 |
compatible = "qcom,sc8180x-pmic-glink", "qcom,pmic-glink"; |
| 51 |
|
| 52 |
#address-cells = <1>; |
| 53 |
#size-cells = <0>; |
| 54 |
orientation-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>, |
| 55 |
<&tlmm 58 GPIO_ACTIVE_HIGH>; |
| 56 |
|
| 57 |
connector@0 { |
| 58 |
compatible = "usb-c-connector"; |
| 59 |
reg = <0>; |
| 60 |
power-role = "dual"; |
| 61 |
data-role = "dual"; |
| 62 |
|
| 63 |
ports { |
| 64 |
#address-cells = <1>; |
| 65 |
#size-cells = <0>; |
| 66 |
|
| 67 |
port@0 { |
| 68 |
reg = <0>; |
| 69 |
|
| 70 |
pmic_glink_con0_hs: endpoint { |
| 71 |
remote-endpoint = <&usb_prim_dwc3_hs>; |
| 72 |
}; |
| 73 |
}; |
| 74 |
|
| 75 |
port@1 { |
| 76 |
reg = <1>; |
| 77 |
|
| 78 |
pmic_glink_con0_ss: endpoint { |
| 79 |
remote-endpoint = <&usb_prim_qmpphy_out>; |
| 80 |
}; |
| 81 |
}; |
| 82 |
|
| 83 |
port@2 { |
| 84 |
reg = <2>; |
| 85 |
|
| 86 |
pmic_glink_con0_sbu: endpoint { |
| 87 |
remote-endpoint = <&usbprim_sbu_mux>; |
| 88 |
}; |
| 89 |
}; |
| 90 |
}; |
| 91 |
}; |
| 92 |
|
| 93 |
connector@1 { |
| 94 |
compatible = "usb-c-connector"; |
| 95 |
reg = <1>; |
| 96 |
power-role = "dual"; |
| 97 |
data-role = "dual"; |
| 98 |
|
| 99 |
ports { |
| 100 |
#address-cells = <1>; |
| 101 |
#size-cells = <0>; |
| 102 |
port@0 { |
| 103 |
reg = <0>; |
| 104 |
|
| 105 |
pmic_glink_con1_hs: endpoint { |
| 106 |
remote-endpoint = <&usb_sec_dwc3_hs>; |
| 107 |
}; |
| 108 |
}; |
| 109 |
|
| 110 |
port@1 { |
| 111 |
reg = <1>; |
| 112 |
|
| 113 |
pmic_glink_con1_ss: endpoint { |
| 114 |
remote-endpoint = <&usb_sec_qmpphy_out>; |
| 115 |
}; |
| 116 |
}; |
| 117 |
|
| 118 |
port@2 { |
| 119 |
reg = <2>; |
| 120 |
|
| 121 |
pmic_glink_con1_sbu: endpoint { |
| 122 |
remote-endpoint = <&usbsec_sbu_mux>; |
| 123 |
}; |
| 124 |
}; |
| 125 |
}; |
| 126 |
}; |
| 127 |
}; |
| 128 |
|
| 129 |
reserved-memory { |
| 130 |
rmtfs_mem: rmtfs-region@85500000 { |
| 131 |
compatible = "qcom,rmtfs-mem"; |
| 132 |
reg = <0x0 0x85500000 0x0 0x200000>; |
| 133 |
no-map; |
| 134 |
|
| 135 |
qcom,client-id = <1>; |
| 136 |
qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>; |
| 137 |
}; |
| 138 |
|
| 139 |
wlan_mem: wlan-region@8bc00000 { |
| 140 |
reg = <0x0 0x8bc00000 0x0 0x180000>; |
| 141 |
no-map; |
| 142 |
}; |
| 143 |
|
| 144 |
mpss_mem: mpss-region@8d800000 { |
| 145 |
reg = <0x0 0x8d800000 0x0 0x3000000>; |
| 146 |
no-map; |
| 147 |
}; |
| 148 |
|
| 149 |
adsp_mem: adsp-region@90800000 { |
| 150 |
reg = <0x0 0x90800000 0x0 0x1c00000>; |
| 151 |
no-map; |
| 152 |
}; |
| 153 |
|
| 154 |
cdsp_mem: cdsp-region@98900000 { |
| 155 |
reg = <0x0 0x98900000 0x0 0x1400000>; |
| 156 |
no-map; |
| 157 |
}; |
| 158 |
}; |
| 159 |
|
| 160 |
vph_pwr: vph-pwr-regulator { |
| 161 |
compatible = "regulator-fixed"; |
| 162 |
regulator-name = "vph_pwr"; |
| 163 |
regulator-min-microvolt = <3700000>; |
| 164 |
regulator-max-microvolt = <3700000>; |
| 165 |
}; |
| 166 |
|
| 167 |
vreg_s4a_1p8: pm8150-s4-regulator { |
| 168 |
compatible = "regulator-fixed"; |
| 169 |
regulator-name = "vreg_s4a_1p8"; |
| 170 |
|
| 171 |
regulator-min-microvolt = <1800000>; |
| 172 |
regulator-max-microvolt = <1800000>; |
| 173 |
|
| 174 |
regulator-always-on; |
| 175 |
regulator-boot-on; |
| 176 |
|
| 177 |
vin-supply = <&vph_pwr>; |
| 178 |
}; |
| 179 |
|
| 180 |
usbprim-sbu-mux { |
| 181 |
compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 182 |
|
| 183 |
enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; |
| 184 |
select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>; |
| 185 |
|
| 186 |
pinctrl-names = "default"; |
| 187 |
pinctrl-0 = <&usbprim_sbu_default>; |
| 188 |
|
| 189 |
mode-switch; |
| 190 |
orientation-switch; |
| 191 |
|
| 192 |
port { |
| 193 |
usbprim_sbu_mux: endpoint { |
| 194 |
remote-endpoint = <&pmic_glink_con0_sbu>; |
| 195 |
}; |
| 196 |
}; |
| 197 |
}; |
| 198 |
|
| 199 |
usbsec-sbu-mux { |
| 200 |
compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 201 |
|
| 202 |
enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>; |
| 203 |
select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>; |
| 204 |
|
| 205 |
pinctrl-names = "default"; |
| 206 |
pinctrl-0 = <&usbsec_sbu_default>; |
| 207 |
|
| 208 |
mode-switch; |
| 209 |
orientation-switch; |
| 210 |
|
| 211 |
port { |
| 212 |
usbsec_sbu_mux: endpoint { |
| 213 |
remote-endpoint = <&pmic_glink_con1_sbu>; |
| 214 |
}; |
| 215 |
}; |
| 216 |
}; |
| 217 |
}; |
| 218 |
|
| 219 |
&apps_rsc { |
| 220 |
regulators-0 { |
| 221 |
compatible = "qcom,pmc8180-rpmh-regulators"; |
| 222 |
qcom,pmic-id = "a"; |
| 223 |
|
| 224 |
vdd-s5-supply = <&vph_pwr>; |
| 225 |
vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; |
| 226 |
|
| 227 |
vreg_s5a_2p0: smps5 { |
| 228 |
regulator-min-microvolt = <2040000>; |
| 229 |
regulator-max-microvolt = <2100000>; |
| 230 |
}; |
| 231 |
|
| 232 |
vreg_l7a_1p8: ldo7 { |
| 233 |
regulator-min-microvolt = <1800000>; |
| 234 |
regulator-max-microvolt = <1800000>; |
| 235 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 236 |
}; |
| 237 |
|
| 238 |
vreg_l9a_1p3: ldo9 { |
| 239 |
regulator-min-microvolt = <1296000>; |
| 240 |
regulator-max-microvolt = <1304000>; |
| 241 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 242 |
}; |
| 243 |
|
| 244 |
vreg_l12a_1p8: ldo12 { |
| 245 |
regulator-min-microvolt = <1800000>; |
| 246 |
regulator-max-microvolt = <1800000>; |
| 247 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 248 |
}; |
| 249 |
}; |
| 250 |
|
| 251 |
regulators-1 { |
| 252 |
compatible = "qcom,pmc8180c-rpmh-regulators"; |
| 253 |
qcom,pmic-id = "c"; |
| 254 |
|
| 255 |
vdd-s6-supply = <&vph_pwr>; |
| 256 |
vdd-l2-l3-supply = <&vreg_s6c_1p35>; |
| 257 |
vdd-bob-supply = <&vph_pwr>; |
| 258 |
|
| 259 |
vreg_s6c_1p35: smps6 { |
| 260 |
regulator-min-microvolt = <1350000>; |
| 261 |
regulator-max-microvolt = <1372000>; |
| 262 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 263 |
}; |
| 264 |
|
| 265 |
vreg_l3c_1p2: ldo3 { |
| 266 |
regulator-min-microvolt = <1200000>; |
| 267 |
regulator-max-microvolt = <1200000>; |
| 268 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 269 |
}; |
| 270 |
|
| 271 |
vreg_l10c_3p3: ldo10 { |
| 272 |
regulator-min-microvolt = <3000000>; |
| 273 |
regulator-max-microvolt = <3312000>; |
| 274 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 275 |
}; |
| 276 |
|
| 277 |
vreg_l11c_3p3: ldo11 { |
| 278 |
regulator-min-microvolt = <3296000>; |
| 279 |
regulator-max-microvolt = <3304000>; |
| 280 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 281 |
}; |
| 282 |
|
| 283 |
vreg_bob: bob { |
| 284 |
regulator-min-microvolt = <3296000>; |
| 285 |
regulator-max-microvolt = <3350000>; |
| 286 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 287 |
}; |
| 288 |
}; |
| 289 |
|
| 290 |
regulators-2 { |
| 291 |
compatible = "qcom,pmc8180-rpmh-regulators"; |
| 292 |
qcom,pmic-id = "e"; |
| 293 |
|
| 294 |
vdd-s4-supply = <&vph_pwr>; |
| 295 |
vdd-s5-supply = <&vph_pwr>; |
| 296 |
vdd-l2-l10-supply = <&vreg_bob>; |
| 297 |
vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>; |
| 298 |
vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>; |
| 299 |
vdd-l13-l16-l17-supply = <&vreg_bob>; |
| 300 |
|
| 301 |
vreg_s4e_0p98: smps4 { |
| 302 |
regulator-min-microvolt = <992000>; |
| 303 |
regulator-max-microvolt = <992000>; |
| 304 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 305 |
}; |
| 306 |
|
| 307 |
vreg_s5e_2p05: smps5 { |
| 308 |
regulator-min-microvolt = <2040000>; |
| 309 |
regulator-max-microvolt = <2040000>; |
| 310 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 311 |
}; |
| 312 |
|
| 313 |
vreg_l1e_0p75: ldo1 { |
| 314 |
regulator-min-microvolt = <752000>; |
| 315 |
regulator-max-microvolt = <752000>; |
| 316 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 317 |
}; |
| 318 |
|
| 319 |
vreg_l5e_0p88: ldo5 { |
| 320 |
regulator-min-microvolt = <880000>; |
| 321 |
regulator-max-microvolt = <880000>; |
| 322 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 323 |
}; |
| 324 |
|
| 325 |
vreg_l7e_1p8: ldo7 { |
| 326 |
regulator-min-microvolt = <1800000>; |
| 327 |
regulator-max-microvolt = <1800000>; |
| 328 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 329 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 330 |
RPMH_REGULATOR_MODE_HPM>; |
| 331 |
regulator-allow-set-load; |
| 332 |
}; |
| 333 |
|
| 334 |
vreg_l10e_2p9: ldo10 { |
| 335 |
regulator-min-microvolt = <2904000>; |
| 336 |
regulator-max-microvolt = <2904000>; |
| 337 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 338 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 339 |
RPMH_REGULATOR_MODE_HPM>; |
| 340 |
regulator-allow-set-load; |
| 341 |
}; |
| 342 |
|
| 343 |
vreg_l16e_3p0: ldo16 { |
| 344 |
regulator-min-microvolt = <3072000>; |
| 345 |
regulator-max-microvolt = <3072000>; |
| 346 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 347 |
}; |
| 348 |
}; |
| 349 |
}; |
| 350 |
|
| 351 |
&gpu { |
| 352 |
status = "okay"; |
| 353 |
}; |
| 354 |
|
| 355 |
&gpu_zap_shader { |
| 356 |
firmware-name = "qcom/sc8180x/LENOVO/82AK/qcdxkmsuc8180.mbn"; |
| 357 |
}; |
| 358 |
|
| 359 |
&i2c1 { |
| 360 |
clock-frequency = <100000>; |
| 361 |
|
| 362 |
pinctrl-0 = <&i2c1_active>; |
| 363 |
pinctrl-names = "default"; |
| 364 |
|
| 365 |
status = "okay"; |
| 366 |
|
| 367 |
touchscreen@10 { |
| 368 |
compatible = "hid-over-i2c"; |
| 369 |
reg = <0x10>; |
| 370 |
hid-descr-addr = <0x1>; |
| 371 |
|
| 372 |
interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; |
| 373 |
|
| 374 |
pinctrl-0 = <&ts_int_default>; |
| 375 |
pinctrl-names = "default"; |
| 376 |
}; |
| 377 |
}; |
| 378 |
|
| 379 |
&i2c7 { |
| 380 |
clock-frequency = <1000000>; |
| 381 |
|
| 382 |
pinctrl-0 = <&i2c7_active>; |
| 383 |
pinctrl-names = "default"; |
| 384 |
|
| 385 |
status = "okay"; |
| 386 |
|
| 387 |
keyboard@5 { |
| 388 |
compatible = "hid-over-i2c"; |
| 389 |
reg = <0x5>; |
| 390 |
hid-descr-addr = <0x20>; |
| 391 |
|
| 392 |
interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; |
| 393 |
|
| 394 |
pinctrl-0 = <&kb_int_default>; |
| 395 |
pinctrl-names = "default"; |
| 396 |
}; |
| 397 |
|
| 398 |
touchpad@2c { |
| 399 |
compatible = "hid-over-i2c"; |
| 400 |
reg = <0x2c>; |
| 401 |
hid-descr-addr = <0x20>; |
| 402 |
|
| 403 |
interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>; |
| 404 |
|
| 405 |
pinctrl-0 = <&tp_int_default>; |
| 406 |
pinctrl-names = "default"; |
| 407 |
}; |
| 408 |
}; |
| 409 |
|
| 410 |
&mdss { |
| 411 |
status = "okay"; |
| 412 |
}; |
| 413 |
|
| 414 |
&mdss_dp0 { |
| 415 |
status = "okay"; |
| 416 |
}; |
| 417 |
|
| 418 |
&mdss_dp0_out { |
| 419 |
data-lanes = <0 1>; |
| 420 |
remote-endpoint = <&usb_prim_qmpphy_dp_in>; |
| 421 |
}; |
| 422 |
|
| 423 |
&mdss_dp1 { |
| 424 |
status = "okay"; |
| 425 |
}; |
| 426 |
|
| 427 |
&mdss_dp1_out { |
| 428 |
data-lanes = <0 1>; |
| 429 |
remote-endpoint = <&usb_sec_qmpphy_dp_in>; |
| 430 |
}; |
| 431 |
|
| 432 |
&mdss_edp { |
| 433 |
pinctrl-0 = <&edp_hpd_active>; |
| 434 |
pinctrl-names = "default"; |
| 435 |
|
| 436 |
status = "okay"; |
| 437 |
|
| 438 |
aux-bus { |
| 439 |
panel { |
| 440 |
compatible = "edp-panel"; |
| 441 |
no-hpd; |
| 442 |
|
| 443 |
backlight = <&backlight>; |
| 444 |
|
| 445 |
port { |
| 446 |
auo_b140han06_in: endpoint { |
| 447 |
remote-endpoint = <&mdss_edp_out>; |
| 448 |
}; |
| 449 |
}; |
| 450 |
}; |
| 451 |
}; |
| 452 |
}; |
| 453 |
|
| 454 |
&mdss_edp_out { |
| 455 |
data-lanes = <0 1 2 3>; |
| 456 |
remote-endpoint = <&auo_b140han06_in>; |
| 457 |
}; |
| 458 |
|
| 459 |
&pcie3 { |
| 460 |
perst-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>; |
| 461 |
wake-gpios = <&tlmm 180 GPIO_ACTIVE_HIGH>; |
| 462 |
pinctrl-0 = <&pcie3_default_state>; |
| 463 |
pinctrl-names = "default"; |
| 464 |
|
| 465 |
status = "okay"; |
| 466 |
}; |
| 467 |
|
| 468 |
&pcie3_phy { |
| 469 |
vdda-phy-supply = <&vreg_l5e_0p88>; |
| 470 |
vdda-pll-supply = <&vreg_l3c_1p2>; |
| 471 |
|
| 472 |
status = "okay"; |
| 473 |
}; |
| 474 |
|
| 475 |
&pmc8180_pwrkey { |
| 476 |
status = "okay"; |
| 477 |
}; |
| 478 |
|
| 479 |
&pmc8180c_lpg { |
| 480 |
status = "okay"; |
| 481 |
}; |
| 482 |
|
| 483 |
&qupv3_id_0 { |
| 484 |
status = "okay"; |
| 485 |
}; |
| 486 |
|
| 487 |
&qupv3_id_1 { |
| 488 |
status = "okay"; |
| 489 |
}; |
| 490 |
|
| 491 |
&qupv3_id_2 { |
| 492 |
status = "okay"; |
| 493 |
}; |
| 494 |
|
| 495 |
&remoteproc_adsp { |
| 496 |
memory-region = <&adsp_mem>; |
| 497 |
firmware-name = "qcom/sc8180x/LENOVO/82AK/qcadsp8180.mbn"; |
| 498 |
|
| 499 |
status = "okay"; |
| 500 |
}; |
| 501 |
|
| 502 |
&remoteproc_cdsp { |
| 503 |
memory-region = <&cdsp_mem>; |
| 504 |
firmware-name = "qcom/sc8180x/LENOVO/82AK/qccdsp8180.mbn"; |
| 505 |
|
| 506 |
status = "okay"; |
| 507 |
}; |
| 508 |
|
| 509 |
&remoteproc_mpss { |
| 510 |
memory-region = <&mpss_mem>; |
| 511 |
firmware-name = "qcom/sc8180x/LENOVO/82AK/qcmpss8180_nm.mbn"; |
| 512 |
|
| 513 |
status = "okay"; |
| 514 |
}; |
| 515 |
|
| 516 |
&uart13 { |
| 517 |
pinctrl-0 = <&uart13_state>; |
| 518 |
pinctrl-names = "default"; |
| 519 |
|
| 520 |
status = "okay"; |
| 521 |
|
| 522 |
bluetooth { |
| 523 |
compatible = "qcom,wcn3998-bt"; |
| 524 |
|
| 525 |
vddio-supply = <&vreg_s4a_1p8>; |
| 526 |
vddxo-supply = <&vreg_l7a_1p8>; |
| 527 |
vddrf-supply = <&vreg_l9a_1p3>; |
| 528 |
vddch0-supply = <&vreg_l11c_3p3>; |
| 529 |
max-speed = <3200000>; |
| 530 |
}; |
| 531 |
}; |
| 532 |
|
| 533 |
&ufs_mem_hc { |
| 534 |
reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>; |
| 535 |
|
| 536 |
vcc-supply = <&vreg_l10e_2p9>; |
| 537 |
vcc-max-microamp = <155000>; |
| 538 |
|
| 539 |
vccq2-supply = <&vreg_l7e_1p8>; |
| 540 |
vccq2-max-microamp = <425000>; |
| 541 |
|
| 542 |
status = "okay"; |
| 543 |
}; |
| 544 |
|
| 545 |
&ufs_mem_phy { |
| 546 |
vdda-phy-supply = <&vreg_l5e_0p88>; |
| 547 |
vdda-pll-supply = <&vreg_l3c_1p2>; |
| 548 |
|
| 549 |
status = "okay"; |
| 550 |
}; |
| 551 |
|
| 552 |
&usb_mp { |
| 553 |
status = "okay"; |
| 554 |
}; |
| 555 |
|
| 556 |
&usb_mp_hsphy0 { |
| 557 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 558 |
vdda18-supply = <&vreg_l12a_1p8>; |
| 559 |
vdda33-supply = <&vreg_l16e_3p0>; |
| 560 |
|
| 561 |
status = "okay"; |
| 562 |
}; |
| 563 |
|
| 564 |
&usb_mp_hsphy1 { |
| 565 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 566 |
vdda18-supply = <&vreg_l12a_1p8>; |
| 567 |
vdda33-supply = <&vreg_l16e_3p0>; |
| 568 |
|
| 569 |
status = "okay"; |
| 570 |
}; |
| 571 |
|
| 572 |
&usb_mp_qmpphy0 { |
| 573 |
vdda-phy-supply = <&vreg_l3c_1p2>; |
| 574 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 575 |
|
| 576 |
status = "okay"; |
| 577 |
}; |
| 578 |
|
| 579 |
&usb_mp_qmpphy1 { |
| 580 |
vdda-phy-supply = <&vreg_l3c_1p2>; |
| 581 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 582 |
|
| 583 |
status = "okay"; |
| 584 |
}; |
| 585 |
|
| 586 |
&usb_prim_hsphy { |
| 587 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 588 |
vdda18-supply = <&vreg_l12a_1p8>; |
| 589 |
vdda33-supply = <&vreg_l16e_3p0>; |
| 590 |
|
| 591 |
status = "okay"; |
| 592 |
}; |
| 593 |
|
| 594 |
&usb_prim_qmpphy { |
| 595 |
vdda-phy-supply = <&vreg_l3c_1p2>; |
| 596 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 597 |
|
| 598 |
orientation-switch; |
| 599 |
|
| 600 |
status = "okay"; |
| 601 |
}; |
| 602 |
|
| 603 |
&usb_prim { |
| 604 |
status = "okay"; |
| 605 |
}; |
| 606 |
|
| 607 |
&usb_prim_dwc3 { |
| 608 |
dr_mode = "host"; |
| 609 |
}; |
| 610 |
|
| 611 |
&usb_prim_dwc3_hs { |
| 612 |
remote-endpoint = <&pmic_glink_con0_hs>; |
| 613 |
}; |
| 614 |
|
| 615 |
&usb_prim_qmpphy_dp_in { |
| 616 |
remote-endpoint = <&mdss_dp0_out>; |
| 617 |
}; |
| 618 |
|
| 619 |
&usb_prim_qmpphy_out { |
| 620 |
remote-endpoint = <&pmic_glink_con0_ss>; |
| 621 |
}; |
| 622 |
|
| 623 |
&usb_sec_dwc3_hs { |
| 624 |
remote-endpoint = <&pmic_glink_con1_hs>; |
| 625 |
}; |
| 626 |
|
| 627 |
&usb_sec_hsphy { |
| 628 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 629 |
vdda18-supply = <&vreg_l12a_1p8>; |
| 630 |
vdda33-supply = <&vreg_l16e_3p0>; |
| 631 |
|
| 632 |
status = "okay"; |
| 633 |
}; |
| 634 |
|
| 635 |
&usb_sec_qmpphy { |
| 636 |
vdda-phy-supply = <&vreg_l3c_1p2>; |
| 637 |
vdda-pll-supply = <&vreg_l5e_0p88>; |
| 638 |
|
| 639 |
orientation-switch; |
| 640 |
|
| 641 |
status = "okay"; |
| 642 |
}; |
| 643 |
|
| 644 |
&usb_sec_qmpphy_dp_in { |
| 645 |
remote-endpoint = <&mdss_dp1_out>; |
| 646 |
}; |
| 647 |
|
| 648 |
&usb_sec_qmpphy_out { |
| 649 |
remote-endpoint = <&pmic_glink_con1_ss>; |
| 650 |
}; |
| 651 |
|
| 652 |
&usb_sec { |
| 653 |
status = "okay"; |
| 654 |
}; |
| 655 |
|
| 656 |
&usb_sec_dwc3 { |
| 657 |
dr_mode = "host"; |
| 658 |
}; |
| 659 |
|
| 660 |
&wifi { |
| 661 |
memory-region = <&wlan_mem>; |
| 662 |
|
| 663 |
vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>; |
| 664 |
vdd-1.8-xo-supply = <&vreg_l7a_1p8>; |
| 665 |
vdd-1.3-rfa-supply = <&vreg_l9a_1p3>; |
| 666 |
vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; |
| 667 |
vdd-3.3-ch1-supply = <&vreg_l10c_3p3>; |
| 668 |
|
| 669 |
status = "okay"; |
| 670 |
}; |
| 671 |
|
| 672 |
/* PINCTRL */ |
| 673 |
|
| 674 |
&pmc8180c_gpios { |
| 675 |
bl_pwm_default: bl-pwm-default-state { |
| 676 |
en-pins { |
| 677 |
pins = "gpio8"; |
| 678 |
function = "normal"; |
| 679 |
}; |
| 680 |
|
| 681 |
pwm-pins { |
| 682 |
pins = "gpio10"; |
| 683 |
function = "func1"; |
| 684 |
}; |
| 685 |
}; |
| 686 |
}; |
| 687 |
|
| 688 |
&tlmm { |
| 689 |
gpio-reserved-ranges = <0 4>, <47 4>, <126 4>; |
| 690 |
|
| 691 |
edp_hpd_active: epd-hpd-active-state { |
| 692 |
pins = "gpio10"; |
| 693 |
function = "edp_hot"; |
| 694 |
}; |
| 695 |
|
| 696 |
hall_int_active_state: hall-int-active-state { |
| 697 |
pins = "gpio121"; |
| 698 |
function = "gpio"; |
| 699 |
|
| 700 |
bias-disable; |
| 701 |
}; |
| 702 |
|
| 703 |
i2c1_active: i2c1-active-state { |
| 704 |
pins = "gpio114", "gpio115"; |
| 705 |
function = "qup1"; |
| 706 |
|
| 707 |
bias-pull-up = <1>; |
| 708 |
drive-strength = <2>; |
| 709 |
}; |
| 710 |
|
| 711 |
i2c7_active: i2c7-active-state { |
| 712 |
pins = "gpio98", "gpio99"; |
| 713 |
function = "qup7"; |
| 714 |
|
| 715 |
bias-pull-up; |
| 716 |
drive-strength = <2>; |
| 717 |
}; |
| 718 |
|
| 719 |
kb_int_default: kb-int-default-state { |
| 720 |
pins = "gpio37"; |
| 721 |
function = "gpio"; |
| 722 |
|
| 723 |
bias-pull-up; |
| 724 |
drive-strength = <2>; |
| 725 |
}; |
| 726 |
|
| 727 |
pcie3_default_state: pcie3-default-state { |
| 728 |
clkreq-pins { |
| 729 |
pins = "gpio179"; |
| 730 |
function = "pci_e3"; |
| 731 |
bias-pull-up; |
| 732 |
}; |
| 733 |
|
| 734 |
reset-n-pins { |
| 735 |
pins = "gpio178"; |
| 736 |
function = "gpio"; |
| 737 |
|
| 738 |
drive-strength = <2>; |
| 739 |
output-low; |
| 740 |
bias-pull-down; |
| 741 |
}; |
| 742 |
|
| 743 |
wake-n-pins { |
| 744 |
pins = "gpio180"; |
| 745 |
function = "gpio"; |
| 746 |
|
| 747 |
drive-strength = <2>; |
| 748 |
bias-pull-up; |
| 749 |
}; |
| 750 |
}; |
| 751 |
|
| 752 |
tp_int_default: tp-int-default-state { |
| 753 |
pins = "gpio24"; |
| 754 |
function = "gpio"; |
| 755 |
|
| 756 |
bias-pull-up; |
| 757 |
drive-strength = <2>; |
| 758 |
}; |
| 759 |
|
| 760 |
ts_int_default: ts-int-default-state { |
| 761 |
pins = "gpio122"; |
| 762 |
function = "gpio"; |
| 763 |
|
| 764 |
bias-pull-up; |
| 765 |
drive-strength = <2>; |
| 766 |
}; |
| 767 |
|
| 768 |
usbprim_sbu_default: usbprim-sbu-state { |
| 769 |
oe-n-pins { |
| 770 |
pins = "gpio152"; |
| 771 |
function = "gpio"; |
| 772 |
bias-disable; |
| 773 |
drive-strength = <16>; |
| 774 |
output-high; |
| 775 |
}; |
| 776 |
|
| 777 |
sel-pins { |
| 778 |
pins = "gpio100"; |
| 779 |
function = "gpio"; |
| 780 |
bias-disable; |
| 781 |
drive-strength = <16>; |
| 782 |
}; |
| 783 |
}; |
| 784 |
|
| 785 |
usbsec_sbu_default: usbsec-sbu-state { |
| 786 |
oe-n-pins { |
| 787 |
pins = "gpio188"; |
| 788 |
function = "gpio"; |
| 789 |
bias-disable; |
| 790 |
drive-strength = <16>; |
| 791 |
output-high; |
| 792 |
}; |
| 793 |
|
| 794 |
sel-pins { |
| 795 |
pins = "gpio187"; |
| 796 |
function = "gpio"; |
| 797 |
bias-disable; |
| 798 |
drive-strength = <16>; |
| 799 |
}; |
| 800 |
}; |
| 801 |
|
| 802 |
uart13_state: uart13-state { |
| 803 |
cts-pins { |
| 804 |
pins = "gpio43"; |
| 805 |
function = "qup13"; |
| 806 |
bias-pull-down; |
| 807 |
}; |
| 808 |
|
| 809 |
rts-tx-pins { |
| 810 |
pins = "gpio44", "gpio45"; |
| 811 |
function = "qup13"; |
| 812 |
drive-strength = <2>; |
| 813 |
bias-disable; |
| 814 |
}; |
| 815 |
|
| 816 |
rx-pins { |
| 817 |
pins = "gpio46"; |
| 818 |
function = "qup13"; |
| 819 |
bias-pull-up; |
| 820 |
}; |
| 821 |
}; |
| 822 |
}; |