| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2023, Linaro Limited |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/gpio/gpio.h> |
| 7 |
#include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
aliases { |
| 11 |
i2c11 = &i2c11; |
| 12 |
i2c18 = &i2c18; |
| 13 |
serial0 = &uart10; |
| 14 |
serial1 = &uart12; |
| 15 |
serial2 = &uart17; |
| 16 |
spi16 = &spi16; |
| 17 |
ufshc1 = &ufs_mem_hc; |
| 18 |
}; |
| 19 |
|
| 20 |
chosen { |
| 21 |
stdout-path = "serial0:115200n8"; |
| 22 |
}; |
| 23 |
|
| 24 |
vreg_12p0: vreg-12p0-regulator { |
| 25 |
compatible = "regulator-fixed"; |
| 26 |
regulator-name = "VREG_12P0"; |
| 27 |
|
| 28 |
regulator-always-on; |
| 29 |
regulator-boot-on; |
| 30 |
regulator-min-microvolt = <12000000>; |
| 31 |
regulator-max-microvolt = <12000000>; |
| 32 |
}; |
| 33 |
|
| 34 |
vreg_5p0: vreg-5p0-regulator { |
| 35 |
compatible = "regulator-fixed"; |
| 36 |
regulator-name = "VREG_5P0"; |
| 37 |
|
| 38 |
regulator-always-on; |
| 39 |
regulator-boot-on; |
| 40 |
regulator-min-microvolt = <5000000>; |
| 41 |
regulator-max-microvolt = <5000000>; |
| 42 |
|
| 43 |
vin-supply = <&vreg_12p0>; |
| 44 |
}; |
| 45 |
|
| 46 |
vreg_1p8: vreg-1p8-regulator { |
| 47 |
compatible = "regulator-fixed"; |
| 48 |
regulator-name = "VREG_1P8"; |
| 49 |
|
| 50 |
regulator-always-on; |
| 51 |
regulator-boot-on; |
| 52 |
regulator-min-microvolt = <1800000>; |
| 53 |
regulator-max-microvolt = <1800000>; |
| 54 |
|
| 55 |
vin-supply = <&vreg_5p0>; |
| 56 |
}; |
| 57 |
|
| 58 |
vreg_1p0: vreg-1p0-regulator { |
| 59 |
compatible = "regulator-fixed"; |
| 60 |
regulator-name = "VREG_1P0"; |
| 61 |
|
| 62 |
regulator-always-on; |
| 63 |
regulator-boot-on; |
| 64 |
regulator-min-microvolt = <1000000>; |
| 65 |
regulator-max-microvolt = <1000000>; |
| 66 |
|
| 67 |
vin-supply = <&vreg_1p8>; |
| 68 |
}; |
| 69 |
|
| 70 |
vreg_3p0: vreg-3p0-regulator { |
| 71 |
compatible = "regulator-fixed"; |
| 72 |
regulator-name = "VREG_3P0"; |
| 73 |
|
| 74 |
regulator-always-on; |
| 75 |
regulator-boot-on; |
| 76 |
regulator-min-microvolt = <3000000>; |
| 77 |
regulator-max-microvolt = <3000000>; |
| 78 |
|
| 79 |
vin-supply = <&vreg_12p0>; |
| 80 |
}; |
| 81 |
|
| 82 |
vreg_conn_1p8: vreg_conn_1p8 { |
| 83 |
compatible = "regulator-fixed"; |
| 84 |
regulator-name = "vreg_conn_1p8"; |
| 85 |
startup-delay-us = <4000>; |
| 86 |
enable-active-high; |
| 87 |
gpio = <&pmm8654au_1_gpios 4 GPIO_ACTIVE_HIGH>; |
| 88 |
}; |
| 89 |
|
| 90 |
vreg_conn_pa: vreg_conn_pa { |
| 91 |
compatible = "regulator-fixed"; |
| 92 |
regulator-name = "vreg_conn_pa"; |
| 93 |
startup-delay-us = <4000>; |
| 94 |
enable-active-high; |
| 95 |
gpio = <&pmm8654au_1_gpios 6 GPIO_ACTIVE_HIGH>; |
| 96 |
}; |
| 97 |
|
| 98 |
wcn6855-pmu { |
| 99 |
compatible = "qcom,wcn6855-pmu"; |
| 100 |
|
| 101 |
pinctrl-names = "default"; |
| 102 |
pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; |
| 103 |
|
| 104 |
vddio-supply = <&vreg_conn_pa>; |
| 105 |
vddaon-supply = <&vreg_l2c>; |
| 106 |
vddpmu-supply = <&vreg_conn_1p8>; |
| 107 |
vddrfa0p95-supply = <&vreg_l2c>; |
| 108 |
vddrfa1p3-supply = <&vreg_l6e>; |
| 109 |
vddrfa1p9-supply = <&vreg_s5a>; |
| 110 |
vddpcie1p3-supply = <&vreg_l6e>; |
| 111 |
vddpcie1p9-supply = <&vreg_s5a>; |
| 112 |
|
| 113 |
bt-enable-gpios = <&pmm8654au_1_gpios 8 GPIO_ACTIVE_HIGH>; |
| 114 |
wlan-enable-gpios = <&pmm8654au_1_gpios 7 GPIO_ACTIVE_HIGH>; |
| 115 |
|
| 116 |
regulators { |
| 117 |
vreg_pmu_rfa_cmn: ldo0 { |
| 118 |
regulator-name = "vreg_pmu_rfa_cmn"; |
| 119 |
}; |
| 120 |
|
| 121 |
vreg_pmu_aon_0p59: ldo1 { |
| 122 |
regulator-name = "vreg_pmu_aon_0p59"; |
| 123 |
}; |
| 124 |
|
| 125 |
vreg_pmu_wlcx_0p8: ldo2 { |
| 126 |
regulator-name = "vreg_pmu_wlcx_0p8"; |
| 127 |
}; |
| 128 |
|
| 129 |
vreg_pmu_wlmx_0p85: ldo3 { |
| 130 |
regulator-name = "vreg_pmu_wlmx_0p85"; |
| 131 |
}; |
| 132 |
|
| 133 |
vreg_pmu_btcmx_0p85: ldo4 { |
| 134 |
regulator-name = "vreg_pmu_btcmx_0p85"; |
| 135 |
}; |
| 136 |
|
| 137 |
vreg_pmu_rfa_0p8: ldo5 { |
| 138 |
regulator-name = "vreg_pmu_rfa_0p8"; |
| 139 |
}; |
| 140 |
|
| 141 |
vreg_pmu_rfa_1p2: ldo6 { |
| 142 |
regulator-name = "vreg_pmu_rfa_1p2"; |
| 143 |
}; |
| 144 |
|
| 145 |
vreg_pmu_rfa_1p7: ldo7 { |
| 146 |
regulator-name = "vreg_pmu_rfa_1p7"; |
| 147 |
}; |
| 148 |
|
| 149 |
vreg_pmu_pcie_0p9: ldo8 { |
| 150 |
regulator-name = "vreg_pmu_pcie_0p9"; |
| 151 |
}; |
| 152 |
|
| 153 |
vreg_pmu_pcie_1p8: ldo9 { |
| 154 |
regulator-name = "vreg_pmu_pcie_1p8"; |
| 155 |
}; |
| 156 |
}; |
| 157 |
}; |
| 158 |
|
| 159 |
dp0-connector { |
| 160 |
compatible = "dp-connector"; |
| 161 |
label = "eDP0"; |
| 162 |
type = "full-size"; |
| 163 |
|
| 164 |
port { |
| 165 |
dp0_connector_in: endpoint { |
| 166 |
remote-endpoint = <&mdss0_dp0_out>; |
| 167 |
}; |
| 168 |
}; |
| 169 |
}; |
| 170 |
|
| 171 |
dp1-connector { |
| 172 |
compatible = "dp-connector"; |
| 173 |
label = "eDP1"; |
| 174 |
type = "full-size"; |
| 175 |
|
| 176 |
port { |
| 177 |
dp1_connector_in: endpoint { |
| 178 |
remote-endpoint = <&mdss0_dp1_out>; |
| 179 |
}; |
| 180 |
}; |
| 181 |
}; |
| 182 |
|
| 183 |
dp-dsi0-connector { |
| 184 |
compatible = "dp-connector"; |
| 185 |
label = "DSI0"; |
| 186 |
type = "full-size"; |
| 187 |
|
| 188 |
port { |
| 189 |
dp_dsi0_connector_in: endpoint { |
| 190 |
remote-endpoint = <&dsi2dp_bridge0_out>; |
| 191 |
}; |
| 192 |
}; |
| 193 |
}; |
| 194 |
|
| 195 |
dp-dsi1-connector { |
| 196 |
compatible = "dp-connector"; |
| 197 |
label = "DSI1"; |
| 198 |
type = "full-size"; |
| 199 |
|
| 200 |
port { |
| 201 |
dp_dsi1_connector_in: endpoint { |
| 202 |
remote-endpoint = <&dsi2dp_bridge1_out>; |
| 203 |
}; |
| 204 |
}; |
| 205 |
}; |
| 206 |
}; |
| 207 |
|
| 208 |
&apps_rsc { |
| 209 |
regulators-0 { |
| 210 |
compatible = "qcom,pmm8654au-rpmh-regulators"; |
| 211 |
qcom,pmic-id = "a"; |
| 212 |
|
| 213 |
vreg_s4a: smps4 { |
| 214 |
regulator-name = "vreg_s4a"; |
| 215 |
regulator-min-microvolt = <1800000>; |
| 216 |
regulator-max-microvolt = <1816000>; |
| 217 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 218 |
}; |
| 219 |
|
| 220 |
vreg_s5a: smps5 { |
| 221 |
regulator-name = "vreg_s5a"; |
| 222 |
regulator-min-microvolt = <1850000>; |
| 223 |
regulator-max-microvolt = <1996000>; |
| 224 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 225 |
}; |
| 226 |
|
| 227 |
vreg_s9a: smps9 { |
| 228 |
regulator-name = "vreg_s9a"; |
| 229 |
regulator-min-microvolt = <535000>; |
| 230 |
regulator-max-microvolt = <1120000>; |
| 231 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 232 |
}; |
| 233 |
|
| 234 |
vreg_l4a: ldo4 { |
| 235 |
regulator-name = "vreg_l4a"; |
| 236 |
regulator-min-microvolt = <788000>; |
| 237 |
regulator-max-microvolt = <1050000>; |
| 238 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 239 |
regulator-allow-set-load; |
| 240 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 241 |
RPMH_REGULATOR_MODE_HPM>; |
| 242 |
}; |
| 243 |
|
| 244 |
vreg_l5a: ldo5 { |
| 245 |
regulator-name = "vreg_l5a"; |
| 246 |
regulator-min-microvolt = <870000>; |
| 247 |
regulator-max-microvolt = <950000>; |
| 248 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 249 |
regulator-allow-set-load; |
| 250 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 251 |
RPMH_REGULATOR_MODE_HPM>; |
| 252 |
}; |
| 253 |
|
| 254 |
vreg_l6a: ldo6 { |
| 255 |
regulator-name = "vreg_l6a"; |
| 256 |
regulator-min-microvolt = <870000>; |
| 257 |
regulator-max-microvolt = <970000>; |
| 258 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 259 |
regulator-allow-set-load; |
| 260 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 261 |
RPMH_REGULATOR_MODE_HPM>; |
| 262 |
}; |
| 263 |
|
| 264 |
vreg_l7a: ldo7 { |
| 265 |
regulator-name = "vreg_l7a"; |
| 266 |
regulator-min-microvolt = <720000>; |
| 267 |
regulator-max-microvolt = <950000>; |
| 268 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 269 |
regulator-allow-set-load; |
| 270 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 271 |
RPMH_REGULATOR_MODE_HPM>; |
| 272 |
}; |
| 273 |
|
| 274 |
vreg_l8a: ldo8 { |
| 275 |
regulator-name = "vreg_l8a"; |
| 276 |
regulator-min-microvolt = <2504000>; |
| 277 |
regulator-max-microvolt = <3300000>; |
| 278 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 279 |
regulator-allow-set-load; |
| 280 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 281 |
RPMH_REGULATOR_MODE_HPM>; |
| 282 |
}; |
| 283 |
|
| 284 |
vreg_l9a: ldo9 { |
| 285 |
regulator-name = "vreg_l9a"; |
| 286 |
regulator-min-microvolt = <2970000>; |
| 287 |
regulator-max-microvolt = <3544000>; |
| 288 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 289 |
regulator-allow-set-load; |
| 290 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 291 |
RPMH_REGULATOR_MODE_HPM>; |
| 292 |
}; |
| 293 |
}; |
| 294 |
|
| 295 |
regulators-1 { |
| 296 |
compatible = "qcom,pmm8654au-rpmh-regulators"; |
| 297 |
qcom,pmic-id = "c"; |
| 298 |
|
| 299 |
vreg_l1c: ldo1 { |
| 300 |
regulator-name = "vreg_l1c"; |
| 301 |
regulator-min-microvolt = <1140000>; |
| 302 |
regulator-max-microvolt = <1260000>; |
| 303 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 304 |
regulator-allow-set-load; |
| 305 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 306 |
RPMH_REGULATOR_MODE_HPM>; |
| 307 |
}; |
| 308 |
|
| 309 |
vreg_l2c: ldo2 { |
| 310 |
regulator-name = "vreg_l2c"; |
| 311 |
regulator-min-microvolt = <900000>; |
| 312 |
regulator-max-microvolt = <1100000>; |
| 313 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 314 |
regulator-allow-set-load; |
| 315 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 316 |
RPMH_REGULATOR_MODE_HPM>; |
| 317 |
}; |
| 318 |
|
| 319 |
vreg_l3c: ldo3 { |
| 320 |
regulator-name = "vreg_l3c"; |
| 321 |
regulator-min-microvolt = <1100000>; |
| 322 |
regulator-max-microvolt = <1300000>; |
| 323 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 324 |
regulator-allow-set-load; |
| 325 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 326 |
RPMH_REGULATOR_MODE_HPM>; |
| 327 |
}; |
| 328 |
|
| 329 |
vreg_l4c: ldo4 { |
| 330 |
regulator-name = "vreg_l4c"; |
| 331 |
regulator-min-microvolt = <1200000>; |
| 332 |
regulator-max-microvolt = <1200000>; |
| 333 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 334 |
/* |
| 335 |
* FIXME: This should have regulator-allow-set-load but |
| 336 |
* we're getting an over-current fault from the PMIC |
| 337 |
* when switching to LPM. |
| 338 |
*/ |
| 339 |
}; |
| 340 |
|
| 341 |
vreg_l5c: ldo5 { |
| 342 |
regulator-name = "vreg_l5c"; |
| 343 |
regulator-min-microvolt = <1100000>; |
| 344 |
regulator-max-microvolt = <1300000>; |
| 345 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 346 |
regulator-allow-set-load; |
| 347 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 348 |
RPMH_REGULATOR_MODE_HPM>; |
| 349 |
}; |
| 350 |
|
| 351 |
vreg_l6c: ldo6 { |
| 352 |
regulator-name = "vreg_l6c"; |
| 353 |
regulator-min-microvolt = <1620000>; |
| 354 |
regulator-max-microvolt = <1980000>; |
| 355 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 356 |
regulator-allow-set-load; |
| 357 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 358 |
RPMH_REGULATOR_MODE_HPM>; |
| 359 |
}; |
| 360 |
|
| 361 |
vreg_l7c: ldo7 { |
| 362 |
regulator-name = "vreg_l7c"; |
| 363 |
regulator-min-microvolt = <1620000>; |
| 364 |
regulator-max-microvolt = <2000000>; |
| 365 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 366 |
regulator-allow-set-load; |
| 367 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 368 |
RPMH_REGULATOR_MODE_HPM>; |
| 369 |
}; |
| 370 |
|
| 371 |
vreg_l8c: ldo8 { |
| 372 |
regulator-name = "vreg_l8c"; |
| 373 |
regulator-min-microvolt = <2400000>; |
| 374 |
regulator-max-microvolt = <3300000>; |
| 375 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 376 |
regulator-allow-set-load; |
| 377 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 378 |
RPMH_REGULATOR_MODE_HPM>; |
| 379 |
}; |
| 380 |
|
| 381 |
vreg_l9c: ldo9 { |
| 382 |
regulator-name = "vreg_l9c"; |
| 383 |
regulator-min-microvolt = <1650000>; |
| 384 |
regulator-max-microvolt = <2700000>; |
| 385 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 386 |
regulator-allow-set-load; |
| 387 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 388 |
RPMH_REGULATOR_MODE_HPM>; |
| 389 |
}; |
| 390 |
}; |
| 391 |
|
| 392 |
regulators-2 { |
| 393 |
compatible = "qcom,pmm8654au-rpmh-regulators"; |
| 394 |
qcom,pmic-id = "e"; |
| 395 |
|
| 396 |
vreg_s4e: smps4 { |
| 397 |
regulator-name = "vreg_s4e"; |
| 398 |
regulator-min-microvolt = <970000>; |
| 399 |
regulator-max-microvolt = <1520000>; |
| 400 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 401 |
}; |
| 402 |
|
| 403 |
vreg_s7e: smps7 { |
| 404 |
regulator-name = "vreg_s7e"; |
| 405 |
regulator-min-microvolt = <1010000>; |
| 406 |
regulator-max-microvolt = <1170000>; |
| 407 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 408 |
}; |
| 409 |
|
| 410 |
vreg_s9e: smps9 { |
| 411 |
regulator-name = "vreg_s9e"; |
| 412 |
regulator-min-microvolt = <300000>; |
| 413 |
regulator-max-microvolt = <570000>; |
| 414 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 415 |
}; |
| 416 |
|
| 417 |
vreg_l6e: ldo6 { |
| 418 |
regulator-name = "vreg_l6e"; |
| 419 |
regulator-min-microvolt = <1280000>; |
| 420 |
regulator-max-microvolt = <1450000>; |
| 421 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 422 |
regulator-allow-set-load; |
| 423 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 424 |
RPMH_REGULATOR_MODE_HPM>; |
| 425 |
}; |
| 426 |
|
| 427 |
vreg_l8e: ldo8 { |
| 428 |
regulator-name = "vreg_l8e"; |
| 429 |
regulator-min-microvolt = <1800000>; |
| 430 |
regulator-max-microvolt = <1950000>; |
| 431 |
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 432 |
regulator-allow-set-load; |
| 433 |
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 434 |
RPMH_REGULATOR_MODE_HPM>; |
| 435 |
}; |
| 436 |
}; |
| 437 |
}; |
| 438 |
|
| 439 |
&gpu { |
| 440 |
status = "okay"; |
| 441 |
}; |
| 442 |
|
| 443 |
&gpu_zap_shader { |
| 444 |
firmware-name = "qcom/sa8775p/a663_zap.mbn"; |
| 445 |
}; |
| 446 |
|
| 447 |
&i2c11 { |
| 448 |
clock-frequency = <400000>; |
| 449 |
status = "okay"; |
| 450 |
}; |
| 451 |
|
| 452 |
&i2c18 { |
| 453 |
clock-frequency = <400000>; |
| 454 |
|
| 455 |
status = "okay"; |
| 456 |
|
| 457 |
io_expander: gpio@74 { |
| 458 |
compatible = "ti,tca9539"; |
| 459 |
reg = <0x74>; |
| 460 |
interrupts-extended = <&tlmm 98 IRQ_TYPE_EDGE_BOTH>; |
| 461 |
gpio-controller; |
| 462 |
#gpio-cells = <2>; |
| 463 |
interrupt-controller; |
| 464 |
#interrupt-cells = <2>; |
| 465 |
reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; |
| 466 |
|
| 467 |
pinctrl-0 = <&io_expander_intr_active>, |
| 468 |
<&io_expander_reset_active>; |
| 469 |
pinctrl-names = "default"; |
| 470 |
}; |
| 471 |
|
| 472 |
i2c-mux@70 { |
| 473 |
compatible = "nxp,pca9543"; |
| 474 |
#address-cells = <1>; |
| 475 |
|
| 476 |
#size-cells = <0>; |
| 477 |
reg = <0x70>; |
| 478 |
|
| 479 |
i2c@0 { |
| 480 |
reg = <0>; |
| 481 |
#address-cells = <1>; |
| 482 |
#size-cells = <0>; |
| 483 |
|
| 484 |
bridge@58 { |
| 485 |
compatible = "analogix,anx7625"; |
| 486 |
reg = <0x58>; |
| 487 |
interrupts-extended = <&io_expander 2 IRQ_TYPE_EDGE_FALLING>; |
| 488 |
enable-gpios = <&io_expander 1 GPIO_ACTIVE_HIGH>; |
| 489 |
reset-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>; |
| 490 |
vdd10-supply = <&vreg_1p0>; |
| 491 |
vdd18-supply = <&vreg_1p8>; |
| 492 |
vdd33-supply = <&vreg_3p0>; |
| 493 |
|
| 494 |
ports { |
| 495 |
#address-cells = <1>; |
| 496 |
#size-cells = <0>; |
| 497 |
|
| 498 |
port@0 { |
| 499 |
reg = <0>; |
| 500 |
|
| 501 |
dsi2dp_bridge0_in: endpoint { |
| 502 |
remote-endpoint = <&mdss0_dsi0_out>; |
| 503 |
}; |
| 504 |
}; |
| 505 |
|
| 506 |
port@1 { |
| 507 |
reg = <1>; |
| 508 |
|
| 509 |
dsi2dp_bridge0_out: endpoint { |
| 510 |
remote-endpoint = <&dp_dsi0_connector_in>; |
| 511 |
}; |
| 512 |
}; |
| 513 |
}; |
| 514 |
}; |
| 515 |
}; |
| 516 |
|
| 517 |
i2c@1 { |
| 518 |
reg = <1>; |
| 519 |
#address-cells = <1>; |
| 520 |
#size-cells = <0>; |
| 521 |
|
| 522 |
bridge@58 { |
| 523 |
compatible = "analogix,anx7625"; |
| 524 |
reg = <0x58>; |
| 525 |
interrupts-extended = <&io_expander 10 IRQ_TYPE_EDGE_FALLING>; |
| 526 |
enable-gpios = <&io_expander 9 GPIO_ACTIVE_HIGH>; |
| 527 |
reset-gpios = <&io_expander 8 GPIO_ACTIVE_HIGH>; |
| 528 |
vdd10-supply = <&vreg_1p0>; |
| 529 |
vdd18-supply = <&vreg_1p8>; |
| 530 |
vdd33-supply = <&vreg_3p0>; |
| 531 |
|
| 532 |
ports { |
| 533 |
#address-cells = <1>; |
| 534 |
#size-cells = <0>; |
| 535 |
|
| 536 |
port@0 { |
| 537 |
reg = <0>; |
| 538 |
|
| 539 |
dsi2dp_bridge1_in: endpoint { |
| 540 |
remote-endpoint = <&mdss0_dsi1_out>; |
| 541 |
}; |
| 542 |
}; |
| 543 |
|
| 544 |
port@1 { |
| 545 |
reg = <1>; |
| 546 |
|
| 547 |
dsi2dp_bridge1_out: endpoint { |
| 548 |
remote-endpoint = <&dp_dsi1_connector_in>; |
| 549 |
}; |
| 550 |
}; |
| 551 |
}; |
| 552 |
}; |
| 553 |
}; |
| 554 |
}; |
| 555 |
|
| 556 |
}; |
| 557 |
|
| 558 |
&iris { |
| 559 |
firmware-name = "qcom/vpu/vpu30_p4_s6.mbn"; |
| 560 |
|
| 561 |
status = "okay"; |
| 562 |
}; |
| 563 |
|
| 564 |
&mdss0 { |
| 565 |
status = "okay"; |
| 566 |
}; |
| 567 |
|
| 568 |
&mdss0_dp0 { |
| 569 |
pinctrl-0 = <&dp0_hot_plug_det>; |
| 570 |
pinctrl-names = "default"; |
| 571 |
|
| 572 |
status = "okay"; |
| 573 |
}; |
| 574 |
|
| 575 |
&mdss0_dp0_out { |
| 576 |
data-lanes = <0 1 2 3>; |
| 577 |
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; |
| 578 |
remote-endpoint = <&dp0_connector_in>; |
| 579 |
}; |
| 580 |
|
| 581 |
&mdss0_dp0_phy { |
| 582 |
vdda-phy-supply = <&vreg_l1c>; |
| 583 |
vdda-pll-supply = <&vreg_l4a>; |
| 584 |
|
| 585 |
status = "okay"; |
| 586 |
}; |
| 587 |
|
| 588 |
&mdss0_dp1 { |
| 589 |
pinctrl-0 = <&dp1_hot_plug_det>; |
| 590 |
pinctrl-names = "default"; |
| 591 |
|
| 592 |
status = "okay"; |
| 593 |
}; |
| 594 |
|
| 595 |
&mdss0_dp1_out { |
| 596 |
data-lanes = <0 1 2 3>; |
| 597 |
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; |
| 598 |
remote-endpoint = <&dp1_connector_in>; |
| 599 |
}; |
| 600 |
|
| 601 |
&mdss0_dp1_phy { |
| 602 |
vdda-phy-supply = <&vreg_l1c>; |
| 603 |
vdda-pll-supply = <&vreg_l4a>; |
| 604 |
|
| 605 |
status = "okay"; |
| 606 |
}; |
| 607 |
|
| 608 |
&mdss0_dsi0 { |
| 609 |
vdda-supply = <&vreg_l1c>; |
| 610 |
|
| 611 |
status = "okay"; |
| 612 |
}; |
| 613 |
|
| 614 |
&mdss0_dsi0_out { |
| 615 |
data-lanes = <0 1 2 3>; |
| 616 |
remote-endpoint = <&dsi2dp_bridge0_in>; |
| 617 |
}; |
| 618 |
|
| 619 |
&mdss0_dsi0_phy { |
| 620 |
vdds-supply = <&vreg_l4a>; |
| 621 |
|
| 622 |
status = "okay"; |
| 623 |
}; |
| 624 |
|
| 625 |
&mdss0_dsi1 { |
| 626 |
vdda-supply = <&vreg_l1c>; |
| 627 |
|
| 628 |
status = "okay"; |
| 629 |
}; |
| 630 |
|
| 631 |
&mdss0_dsi1_out { |
| 632 |
data-lanes = <0 1 2 3>; |
| 633 |
remote-endpoint = <&dsi2dp_bridge1_in>; |
| 634 |
}; |
| 635 |
|
| 636 |
&mdss0_dsi1_phy { |
| 637 |
vdds-supply = <&vreg_l4a>; |
| 638 |
|
| 639 |
status = "okay"; |
| 640 |
}; |
| 641 |
|
| 642 |
&pmm8654au_0_gpios { |
| 643 |
gpio-line-names = "DS_EN", |
| 644 |
"POFF_COMPLETE", |
| 645 |
"UFS0_VER_ID", |
| 646 |
"FAST_POFF", |
| 647 |
"DBU1_PON_DONE", |
| 648 |
"AOSS_SLEEP", |
| 649 |
"CAM_DES0_EN", |
| 650 |
"CAM_DES1_EN", |
| 651 |
"CAM_DES2_EN", |
| 652 |
"CAM_DES3_EN", |
| 653 |
"UEFI", |
| 654 |
"ANALOG_PON_OPT"; |
| 655 |
}; |
| 656 |
|
| 657 |
&pmm8654au_0_pon_resin { |
| 658 |
linux,code = <KEY_VOLUMEDOWN>; |
| 659 |
status = "okay"; |
| 660 |
}; |
| 661 |
|
| 662 |
&pmm8654au_1_gpios { |
| 663 |
gpio-line-names = "PMIC_C_ID0", |
| 664 |
"PMIC_C_ID1", |
| 665 |
"UFS1_VER_ID", |
| 666 |
"IPA_PWR", |
| 667 |
"", |
| 668 |
"WLAN_DBU4_EN", |
| 669 |
"WLAN_EN", |
| 670 |
"BT_EN", |
| 671 |
"USB2_PWR_EN", |
| 672 |
"USB2_FAULT"; |
| 673 |
|
| 674 |
wlan_en_state: wlan-en-state { |
| 675 |
pins = "gpio7"; |
| 676 |
function = "normal"; |
| 677 |
output-low; |
| 678 |
bias-pull-down; |
| 679 |
}; |
| 680 |
|
| 681 |
bt_en_state: bt-en-state { |
| 682 |
pins = "gpio8"; |
| 683 |
function = "normal"; |
| 684 |
output-low; |
| 685 |
bias-pull-down; |
| 686 |
}; |
| 687 |
|
| 688 |
usb2_en_state: usb2-en-state { |
| 689 |
pins = "gpio9"; |
| 690 |
function = "normal"; |
| 691 |
output-high; |
| 692 |
power-source = <0>; |
| 693 |
}; |
| 694 |
}; |
| 695 |
|
| 696 |
&pmm8654au_2_gpios { |
| 697 |
gpio-line-names = "PMIC_E_ID0", |
| 698 |
"PMIC_E_ID1", |
| 699 |
"USB0_PWR_EN", |
| 700 |
"USB0_FAULT", |
| 701 |
"SENSOR_IRQ_1", |
| 702 |
"SENSOR_IRQ_2", |
| 703 |
"SENSOR_RST", |
| 704 |
"SGMIIO0_RST", |
| 705 |
"SGMIIO1_RST", |
| 706 |
"USB1_PWR_ENABLE", |
| 707 |
"USB1_FAULT", |
| 708 |
"VMON_SPX8"; |
| 709 |
|
| 710 |
usb0_en_state: usb0-en-state { |
| 711 |
pins = "gpio3"; |
| 712 |
function = "normal"; |
| 713 |
output-high; |
| 714 |
power-source = <0>; |
| 715 |
}; |
| 716 |
|
| 717 |
usb1_en_state: usb1-en-state { |
| 718 |
pins = "gpio10"; |
| 719 |
function = "normal"; |
| 720 |
output-high; |
| 721 |
power-source = <0>; |
| 722 |
}; |
| 723 |
}; |
| 724 |
|
| 725 |
&pmm8654au_3_gpios { |
| 726 |
gpio-line-names = "PMIC_G_ID0", |
| 727 |
"PMIC_G_ID1", |
| 728 |
"GNSS_RST", |
| 729 |
"GNSS_EN", |
| 730 |
"GNSS_BOOT_MODE"; |
| 731 |
}; |
| 732 |
|
| 733 |
&qupv3_id_1 { |
| 734 |
status = "okay"; |
| 735 |
}; |
| 736 |
|
| 737 |
&qupv3_id_2 { |
| 738 |
status = "okay"; |
| 739 |
}; |
| 740 |
|
| 741 |
&qup_spi16_default { |
| 742 |
drive-strength = <6>; |
| 743 |
bias-disable; |
| 744 |
}; |
| 745 |
|
| 746 |
&qup_i2c11_default { |
| 747 |
drive-strength = <2>; |
| 748 |
bias-pull-up; |
| 749 |
}; |
| 750 |
|
| 751 |
&qup_i2c18_default { |
| 752 |
drive-strength = <2>; |
| 753 |
bias-pull-up; |
| 754 |
}; |
| 755 |
|
| 756 |
&qup_uart12_cts { |
| 757 |
bias-disable; |
| 758 |
}; |
| 759 |
|
| 760 |
&qup_uart12_rts { |
| 761 |
bias-pull-down; |
| 762 |
}; |
| 763 |
|
| 764 |
&qup_uart12_tx { |
| 765 |
bias-pull-up; |
| 766 |
}; |
| 767 |
|
| 768 |
&qup_uart12_rx { |
| 769 |
bias-pull-down; |
| 770 |
}; |
| 771 |
|
| 772 |
&qup_uart17_cts { |
| 773 |
bias-disable; |
| 774 |
}; |
| 775 |
|
| 776 |
&qup_uart17_rts { |
| 777 |
bias-pull-down; |
| 778 |
}; |
| 779 |
|
| 780 |
&qup_uart17_tx { |
| 781 |
bias-pull-up; |
| 782 |
}; |
| 783 |
|
| 784 |
&qup_uart17_rx { |
| 785 |
bias-pull-down; |
| 786 |
}; |
| 787 |
|
| 788 |
&serdes0 { |
| 789 |
phy-supply = <&vreg_l5a>; |
| 790 |
status = "okay"; |
| 791 |
}; |
| 792 |
|
| 793 |
&serdes1 { |
| 794 |
phy-supply = <&vreg_l5a>; |
| 795 |
status = "okay"; |
| 796 |
}; |
| 797 |
|
| 798 |
&sleep_clk { |
| 799 |
clock-frequency = <32000>; |
| 800 |
}; |
| 801 |
|
| 802 |
&spi16 { |
| 803 |
status = "okay"; |
| 804 |
}; |
| 805 |
|
| 806 |
&tlmm { |
| 807 |
dp0_hot_plug_det: dp0-hot-plug-det-state { |
| 808 |
pins = "gpio101"; |
| 809 |
function = "edp0_hot"; |
| 810 |
bias-disable; |
| 811 |
}; |
| 812 |
|
| 813 |
dp1_hot_plug_det: dp1-hot-plug-det-state { |
| 814 |
pins = "gpio102"; |
| 815 |
function = "edp1_hot"; |
| 816 |
bias-disable; |
| 817 |
}; |
| 818 |
|
| 819 |
io_expander_intr_active: io-expander-intr-active-state { |
| 820 |
pins = "gpio98"; |
| 821 |
function = "gpio"; |
| 822 |
drive-strength = <2>; |
| 823 |
bias-disable; |
| 824 |
}; |
| 825 |
|
| 826 |
io_expander_reset_active: io-expander-reset-active-state { |
| 827 |
pins = "gpio97"; |
| 828 |
function = "gpio"; |
| 829 |
drive-strength = <2>; |
| 830 |
bias-disable; |
| 831 |
output-high; |
| 832 |
}; |
| 833 |
|
| 834 |
pcie0_default_state: pcie0-default-state { |
| 835 |
perst-pins { |
| 836 |
pins = "gpio2"; |
| 837 |
function = "gpio"; |
| 838 |
drive-strength = <2>; |
| 839 |
bias-pull-down; |
| 840 |
}; |
| 841 |
|
| 842 |
clkreq-pins { |
| 843 |
pins = "gpio1"; |
| 844 |
function = "pcie0_clkreq"; |
| 845 |
drive-strength = <2>; |
| 846 |
bias-pull-up; |
| 847 |
}; |
| 848 |
|
| 849 |
wake-pins { |
| 850 |
pins = "gpio0"; |
| 851 |
function = "gpio"; |
| 852 |
drive-strength = <2>; |
| 853 |
bias-pull-up; |
| 854 |
}; |
| 855 |
}; |
| 856 |
|
| 857 |
pcie1_default_state: pcie1-default-state { |
| 858 |
perst-pins { |
| 859 |
pins = "gpio4"; |
| 860 |
function = "gpio"; |
| 861 |
drive-strength = <2>; |
| 862 |
bias-pull-down; |
| 863 |
}; |
| 864 |
|
| 865 |
clkreq-pins { |
| 866 |
pins = "gpio3"; |
| 867 |
function = "pcie1_clkreq"; |
| 868 |
drive-strength = <2>; |
| 869 |
bias-pull-up; |
| 870 |
}; |
| 871 |
|
| 872 |
wake-pins { |
| 873 |
pins = "gpio5"; |
| 874 |
function = "gpio"; |
| 875 |
drive-strength = <2>; |
| 876 |
bias-pull-up; |
| 877 |
}; |
| 878 |
}; |
| 879 |
}; |
| 880 |
|
| 881 |
&pcie0 { |
| 882 |
perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; |
| 883 |
wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; |
| 884 |
|
| 885 |
pinctrl-names = "default"; |
| 886 |
pinctrl-0 = <&pcie0_default_state>; |
| 887 |
|
| 888 |
status = "okay"; |
| 889 |
}; |
| 890 |
|
| 891 |
&pcie1 { |
| 892 |
perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; |
| 893 |
wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; |
| 894 |
|
| 895 |
pinctrl-names = "default"; |
| 896 |
pinctrl-0 = <&pcie1_default_state>; |
| 897 |
|
| 898 |
status = "okay"; |
| 899 |
}; |
| 900 |
|
| 901 |
&pcie0_phy { |
| 902 |
vdda-phy-supply = <&vreg_l5a>; |
| 903 |
vdda-pll-supply = <&vreg_l1c>; |
| 904 |
|
| 905 |
status = "okay"; |
| 906 |
}; |
| 907 |
|
| 908 |
&pcie1_phy { |
| 909 |
vdda-phy-supply = <&vreg_l5a>; |
| 910 |
vdda-pll-supply = <&vreg_l1c>; |
| 911 |
|
| 912 |
status = "okay"; |
| 913 |
}; |
| 914 |
|
| 915 |
&pcieport0 { |
| 916 |
wifi@0 { |
| 917 |
compatible = "pci17cb,1101"; |
| 918 |
reg = <0x10000 0x0 0x0 0x0 0x0>; |
| 919 |
|
| 920 |
qcom,calibration-variant = "QC_SA8775P_Ride"; |
| 921 |
|
| 922 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; |
| 923 |
vddaon-supply = <&vreg_pmu_aon_0p59>; |
| 924 |
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 925 |
vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; |
| 926 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 927 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 928 |
vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; |
| 929 |
vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; |
| 930 |
vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; |
| 931 |
}; |
| 932 |
}; |
| 933 |
|
| 934 |
&remoteproc_adsp { |
| 935 |
firmware-name = "qcom/sa8775p/adsp.mbn"; |
| 936 |
status = "okay"; |
| 937 |
}; |
| 938 |
|
| 939 |
&remoteproc_cdsp0 { |
| 940 |
firmware-name = "qcom/sa8775p/cdsp0.mbn"; |
| 941 |
status = "okay"; |
| 942 |
}; |
| 943 |
|
| 944 |
&remoteproc_cdsp1 { |
| 945 |
firmware-name = "qcom/sa8775p/cdsp1.mbn"; |
| 946 |
status = "okay"; |
| 947 |
}; |
| 948 |
|
| 949 |
&remoteproc_gpdsp0 { |
| 950 |
firmware-name = "qcom/sa8775p/gpdsp0.mbn"; |
| 951 |
status = "okay"; |
| 952 |
}; |
| 953 |
|
| 954 |
&remoteproc_gpdsp1 { |
| 955 |
firmware-name = "qcom/sa8775p/gpdsp1.mbn"; |
| 956 |
status = "okay"; |
| 957 |
}; |
| 958 |
|
| 959 |
&uart10 { |
| 960 |
compatible = "qcom,geni-debug-uart"; |
| 961 |
status = "okay"; |
| 962 |
}; |
| 963 |
|
| 964 |
&uart12 { |
| 965 |
pinctrl-0 = <&qup_uart12_default>; |
| 966 |
pinctrl-names = "default"; |
| 967 |
status = "okay"; |
| 968 |
}; |
| 969 |
|
| 970 |
&uart17 { |
| 971 |
pinctrl-0 = <&qup_uart17_default>; |
| 972 |
pinctrl-names = "default"; |
| 973 |
status = "okay"; |
| 974 |
|
| 975 |
bluetooth { |
| 976 |
compatible = "qcom,wcn6855-bt"; |
| 977 |
firmware-name = "QCA6698/hpnv21", "QCA6698/hpbtfw21.tlv"; |
| 978 |
|
| 979 |
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; |
| 980 |
vddaon-supply = <&vreg_pmu_aon_0p59>; |
| 981 |
vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>; |
| 982 |
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 983 |
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 984 |
vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; |
| 985 |
}; |
| 986 |
}; |
| 987 |
|
| 988 |
&ufs_mem_hc { |
| 989 |
reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; |
| 990 |
vcc-supply = <&vreg_l8a>; |
| 991 |
vcc-max-microamp = <1100000>; |
| 992 |
vccq-supply = <&vreg_l4c>; |
| 993 |
vccq-max-microamp = <1200000>; |
| 994 |
|
| 995 |
status = "okay"; |
| 996 |
}; |
| 997 |
|
| 998 |
&ufs_mem_phy { |
| 999 |
vdda-phy-supply = <&vreg_l4a>; |
| 1000 |
vdda-pll-supply = <&vreg_l1c>; |
| 1001 |
|
| 1002 |
status = "okay"; |
| 1003 |
}; |
| 1004 |
|
| 1005 |
&usb_0 { |
| 1006 |
pinctrl-names = "default"; |
| 1007 |
pinctrl-0 = <&usb0_en_state>; |
| 1008 |
dr_mode = "peripheral"; |
| 1009 |
|
| 1010 |
status = "okay"; |
| 1011 |
}; |
| 1012 |
|
| 1013 |
&usb_0_hsphy { |
| 1014 |
vdda-pll-supply = <&vreg_l7a>; |
| 1015 |
vdda18-supply = <&vreg_l6c>; |
| 1016 |
vdda33-supply = <&vreg_l9a>; |
| 1017 |
|
| 1018 |
status = "okay"; |
| 1019 |
}; |
| 1020 |
|
| 1021 |
&usb_0_qmpphy { |
| 1022 |
vdda-phy-supply = <&vreg_l1c>; |
| 1023 |
vdda-pll-supply = <&vreg_l7a>; |
| 1024 |
|
| 1025 |
status = "okay"; |
| 1026 |
}; |
| 1027 |
|
| 1028 |
&usb_1 { |
| 1029 |
pinctrl-names = "default"; |
| 1030 |
pinctrl-0 = <&usb1_en_state>; |
| 1031 |
dr_mode = "host"; |
| 1032 |
|
| 1033 |
status = "okay"; |
| 1034 |
}; |
| 1035 |
|
| 1036 |
&usb_1_hsphy { |
| 1037 |
vdda-pll-supply = <&vreg_l7a>; |
| 1038 |
vdda18-supply = <&vreg_l6c>; |
| 1039 |
vdda33-supply = <&vreg_l9a>; |
| 1040 |
|
| 1041 |
status = "okay"; |
| 1042 |
}; |
| 1043 |
|
| 1044 |
&usb_1_qmpphy { |
| 1045 |
vdda-phy-supply = <&vreg_l1c>; |
| 1046 |
vdda-pll-supply = <&vreg_l7a>; |
| 1047 |
|
| 1048 |
status = "okay"; |
| 1049 |
}; |
| 1050 |
|
| 1051 |
&usb_2 { |
| 1052 |
pinctrl-names = "default"; |
| 1053 |
pinctrl-0 = <&usb2_en_state>; |
| 1054 |
dr_mode = "host"; |
| 1055 |
|
| 1056 |
status = "okay"; |
| 1057 |
}; |
| 1058 |
|
| 1059 |
&usb_2_hsphy { |
| 1060 |
vdda-pll-supply = <&vreg_l7a>; |
| 1061 |
vdda18-supply = <&vreg_l6c>; |
| 1062 |
vdda33-supply = <&vreg_l9a>; |
| 1063 |
|
| 1064 |
status = "okay"; |
| 1065 |
}; |
| 1066 |
|
| 1067 |
&xo_board_clk { |
| 1068 |
clock-frequency = <38400000>; |
| 1069 |
}; |