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