| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2024 Rockchip Electronics Co., Ltd. |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include <dt-bindings/leds/common.h> |
| 11 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 12 |
#include <dt-bindings/pwm/pwm.h> |
| 13 |
#include <dt-bindings/soc/rockchip,vop2.h> |
| 14 |
#include <dt-bindings/usb/pd.h> |
| 15 |
#include "rk3576.dtsi" |
| 16 |
|
| 17 |
/ { |
| 18 |
model = "ArmSoM Sige5"; |
| 19 |
compatible = "armsom,sige5", "rockchip,rk3576"; |
| 20 |
|
| 21 |
aliases { |
| 22 |
ethernet0 = &gmac0; |
| 23 |
ethernet1 = &gmac1; |
| 24 |
}; |
| 25 |
|
| 26 |
chosen { |
| 27 |
stdout-path = "serial0:1500000n8"; |
| 28 |
}; |
| 29 |
|
| 30 |
hdmi-con { |
| 31 |
compatible = "hdmi-connector"; |
| 32 |
type = "a"; |
| 33 |
|
| 34 |
port { |
| 35 |
hdmi_con_in: endpoint { |
| 36 |
remote-endpoint = <&hdmi_out_con>; |
| 37 |
}; |
| 38 |
}; |
| 39 |
}; |
| 40 |
|
| 41 |
leds: leds { |
| 42 |
compatible = "gpio-leds"; |
| 43 |
|
| 44 |
green_led: green-led { |
| 45 |
color = <LED_COLOR_ID_GREEN>; |
| 46 |
function = LED_FUNCTION_HEARTBEAT; |
| 47 |
gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; |
| 48 |
linux,default-trigger = "heartbeat"; |
| 49 |
}; |
| 50 |
|
| 51 |
red_led: red-led { |
| 52 |
color = <LED_COLOR_ID_RED>; |
| 53 |
function = LED_FUNCTION_STATUS; |
| 54 |
gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>; |
| 55 |
linux,default-trigger = "default-on"; |
| 56 |
}; |
| 57 |
}; |
| 58 |
|
| 59 |
es8388_sound: es8388-sound { |
| 60 |
compatible = "simple-audio-card"; |
| 61 |
simple-audio-card,format = "i2s"; |
| 62 |
simple-audio-card,mclk-fs = <256>; |
| 63 |
simple-audio-card,name = "On-board Analog ES8388"; |
| 64 |
simple-audio-card,widgets = "Microphone", "Headphone Mic", |
| 65 |
"Microphone", "Mic Pads", |
| 66 |
"Headphone", "Headphone", |
| 67 |
"Line Out", "Line Out"; |
| 68 |
simple-audio-card,routing = "Headphone", "LOUT1", |
| 69 |
"Headphone", "ROUT1", |
| 70 |
"Line Out", "LOUT2", |
| 71 |
"Line Out", "ROUT2", |
| 72 |
"RINPUT1", "Headphone Mic", |
| 73 |
"LINPUT2", "Mic Pads", |
| 74 |
"RINPUT2", "Mic Pads"; |
| 75 |
simple-audio-card,pin-switches = "Headphone", "Line Out"; |
| 76 |
|
| 77 |
simple-audio-card,cpu { |
| 78 |
sound-dai = <&sai1>; |
| 79 |
}; |
| 80 |
|
| 81 |
simple-audio-card,codec { |
| 82 |
sound-dai = <&es8388>; |
| 83 |
system-clock-frequency = <12288000>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
vcc_12v0_dcin: regulator-vcc-12v0-dcin { |
| 88 |
compatible = "regulator-fixed"; |
| 89 |
regulator-name = "vcc_12v0_dcin"; |
| 90 |
regulator-always-on; |
| 91 |
regulator-boot-on; |
| 92 |
regulator-min-microvolt = <12000000>; |
| 93 |
regulator-max-microvolt = <12000000>; |
| 94 |
}; |
| 95 |
|
| 96 |
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { |
| 97 |
compatible = "regulator-fixed"; |
| 98 |
regulator-name = "vcc_1v1_nldo_s3"; |
| 99 |
regulator-boot-on; |
| 100 |
regulator-always-on; |
| 101 |
regulator-min-microvolt = <1100000>; |
| 102 |
regulator-max-microvolt = <1100000>; |
| 103 |
vin-supply = <&vcc_5v0_sys>; |
| 104 |
}; |
| 105 |
|
| 106 |
vcc_1v2_ufs_vccq_s0: regulator-vcc-1v2-ufs-vccq-s0 { |
| 107 |
compatible = "regulator-fixed"; |
| 108 |
regulator-name = "vcc_1v2_ufs_vccq_s0"; |
| 109 |
regulator-boot-on; |
| 110 |
regulator-always-on; |
| 111 |
regulator-min-microvolt = <1200000>; |
| 112 |
regulator-max-microvolt = <1200000>; |
| 113 |
vin-supply = <&vcc_5v0_sys>; |
| 114 |
}; |
| 115 |
|
| 116 |
vcc_1v8_s0: regulator-vcc-1v8-s0 { |
| 117 |
compatible = "regulator-fixed"; |
| 118 |
regulator-name = "vcc_1v8_s0"; |
| 119 |
regulator-boot-on; |
| 120 |
regulator-always-on; |
| 121 |
regulator-min-microvolt = <1800000>; |
| 122 |
regulator-max-microvolt = <1800000>; |
| 123 |
vin-supply = <&vcc_1v8_s3>; |
| 124 |
}; |
| 125 |
|
| 126 |
vcc_1v8_ufs_vccq2_s0: regulator-vcc-1v8-ufs-vccq2-s0 { |
| 127 |
compatible = "regulator-fixed"; |
| 128 |
regulator-name = "vcc_1v8_ufs_vccq2_s0"; |
| 129 |
regulator-boot-on; |
| 130 |
regulator-always-on; |
| 131 |
regulator-min-microvolt = <1800000>; |
| 132 |
regulator-max-microvolt = <1800000>; |
| 133 |
vin-supply = <&vcc_1v8_s3>; |
| 134 |
}; |
| 135 |
|
| 136 |
vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 { |
| 137 |
compatible = "regulator-fixed"; |
| 138 |
regulator-name = "vcc_2v0_pldo_s3"; |
| 139 |
regulator-boot-on; |
| 140 |
regulator-always-on; |
| 141 |
regulator-min-microvolt = <2000000>; |
| 142 |
regulator-max-microvolt = <2000000>; |
| 143 |
vin-supply = <&vcc_5v0_sys>; |
| 144 |
}; |
| 145 |
|
| 146 |
vcc_3v3_pcie: regulator-vcc-3v3-pcie { |
| 147 |
compatible = "regulator-fixed"; |
| 148 |
pinctrl-names = "default"; |
| 149 |
pinctrl-0 = <&pcie_pwr_en>; |
| 150 |
regulator-name = "vcc_3v3_pcie"; |
| 151 |
regulator-min-microvolt = <3300000>; |
| 152 |
regulator-max-microvolt = <3300000>; |
| 153 |
enable-active-high; |
| 154 |
gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; |
| 155 |
startup-delay-us = <5000>; |
| 156 |
vin-supply = <&vcc_5v0_sys>; |
| 157 |
}; |
| 158 |
|
| 159 |
vcc_3v3_s0: regulator-vcc-3v3-s0 { |
| 160 |
compatible = "regulator-fixed"; |
| 161 |
regulator-name = "vcc_3v3_s0"; |
| 162 |
regulator-boot-on; |
| 163 |
regulator-always-on; |
| 164 |
regulator-min-microvolt = <3300000>; |
| 165 |
regulator-max-microvolt = <3300000>; |
| 166 |
vin-supply = <&vcc_3v3_s3>; |
| 167 |
}; |
| 168 |
|
| 169 |
vcc_5v0_sys: regulator-vcc-5v0-sys { |
| 170 |
compatible = "regulator-fixed"; |
| 171 |
regulator-name = "vcc_5v0_sys"; |
| 172 |
regulator-always-on; |
| 173 |
regulator-boot-on; |
| 174 |
regulator-min-microvolt = <5000000>; |
| 175 |
regulator-max-microvolt = <5000000>; |
| 176 |
vin-supply = <&vcc_12v0_dcin>; |
| 177 |
}; |
| 178 |
|
| 179 |
vcc_5v0_device: regulator-vcc-5v0-device { |
| 180 |
compatible = "regulator-fixed"; |
| 181 |
regulator-name = "vcc_5v0_device"; |
| 182 |
regulator-always-on; |
| 183 |
regulator-boot-on; |
| 184 |
regulator-min-microvolt = <5000000>; |
| 185 |
regulator-max-microvolt = <5000000>; |
| 186 |
vin-supply = <&vcc_12v0_dcin>; |
| 187 |
}; |
| 188 |
|
| 189 |
vcc_5v0_typec0: regulator-vcc-5v0-typec0 { |
| 190 |
compatible = "regulator-fixed"; |
| 191 |
enable-active-high; |
| 192 |
gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 193 |
pinctrl-names = "default"; |
| 194 |
pinctrl-0 = <&usb_otg0_pwren>; |
| 195 |
regulator-name = "vcc_5v0_typec0"; |
| 196 |
regulator-min-microvolt = <5000000>; |
| 197 |
regulator-max-microvolt = <5000000>; |
| 198 |
vin-supply = <&vcc_5v0_device>; |
| 199 |
}; |
| 200 |
|
| 201 |
vcc_5v0_usbhost: regulator-vcc-5v0-usbhost { |
| 202 |
compatible = "regulator-fixed"; |
| 203 |
enable-active-high; |
| 204 |
gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 205 |
pinctrl-names = "default"; |
| 206 |
pinctrl-0 = <&usb_host_pwren>; |
| 207 |
regulator-name = "vcc_5v0_usbhost"; |
| 208 |
regulator-min-microvolt = <5000000>; |
| 209 |
regulator-max-microvolt = <5000000>; |
| 210 |
vin-supply = <&vcc_5v0_device>; |
| 211 |
}; |
| 212 |
|
| 213 |
vcc_3v3_ufs_s0: regulator-vcc-ufs-s0 { |
| 214 |
compatible = "regulator-fixed"; |
| 215 |
regulator-name = "vcc_3v3_ufs_s0"; |
| 216 |
regulator-boot-on; |
| 217 |
regulator-always-on; |
| 218 |
regulator-min-microvolt = <3300000>; |
| 219 |
regulator-max-microvolt = <3300000>; |
| 220 |
vin-supply = <&vcc_5v0_sys>; |
| 221 |
}; |
| 222 |
|
| 223 |
sdio_pwrseq: sdio-pwrseq { |
| 224 |
compatible = "mmc-pwrseq-simple"; |
| 225 |
clocks = <&hym8563>; |
| 226 |
clock-names = "ext_clock"; |
| 227 |
pinctrl-names = "default"; |
| 228 |
pinctrl-0 = <&wifi_reg_on>; |
| 229 |
reset-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; |
| 230 |
}; |
| 231 |
}; |
| 232 |
|
| 233 |
&combphy1_psu { |
| 234 |
status = "okay"; |
| 235 |
}; |
| 236 |
|
| 237 |
&combphy0_ps { |
| 238 |
status = "okay"; |
| 239 |
}; |
| 240 |
|
| 241 |
&cpu_b0 { |
| 242 |
cpu-supply = <&vdd_cpu_big_s0>; |
| 243 |
}; |
| 244 |
|
| 245 |
&cpu_b1 { |
| 246 |
cpu-supply = <&vdd_cpu_big_s0>; |
| 247 |
}; |
| 248 |
|
| 249 |
&cpu_b2 { |
| 250 |
cpu-supply = <&vdd_cpu_big_s0>; |
| 251 |
}; |
| 252 |
|
| 253 |
&cpu_b3 { |
| 254 |
cpu-supply = <&vdd_cpu_big_s0>; |
| 255 |
}; |
| 256 |
|
| 257 |
&cpu_l0 { |
| 258 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 259 |
}; |
| 260 |
|
| 261 |
&cpu_l1 { |
| 262 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 263 |
}; |
| 264 |
|
| 265 |
&cpu_l2 { |
| 266 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 267 |
}; |
| 268 |
|
| 269 |
&cpu_l3 { |
| 270 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 271 |
}; |
| 272 |
|
| 273 |
&gmac0 { |
| 274 |
phy-mode = "rgmii-id"; |
| 275 |
clock_in_out = "output"; |
| 276 |
phy-handle = <&rgmii_phy0>; |
| 277 |
pinctrl-names = "default"; |
| 278 |
pinctrl-0 = <ð0m0_miim |
| 279 |
ð0m0_tx_bus2 |
| 280 |
ð0m0_rx_bus2 |
| 281 |
ð0m0_rgmii_clk |
| 282 |
ð0m0_rgmii_bus>; |
| 283 |
status = "okay"; |
| 284 |
}; |
| 285 |
|
| 286 |
&gmac1 { |
| 287 |
phy-mode = "rgmii-id"; |
| 288 |
clock_in_out = "output"; |
| 289 |
phy-handle = <&rgmii_phy1>; |
| 290 |
pinctrl-names = "default"; |
| 291 |
pinctrl-0 = <ð1m0_miim |
| 292 |
ð1m0_tx_bus2 |
| 293 |
ð1m0_rx_bus2 |
| 294 |
ð1m0_rgmii_clk |
| 295 |
ð1m0_rgmii_bus>; |
| 296 |
status = "okay"; |
| 297 |
}; |
| 298 |
|
| 299 |
&gpu { |
| 300 |
mali-supply = <&vdd_gpu_s0>; |
| 301 |
status = "okay"; |
| 302 |
}; |
| 303 |
|
| 304 |
&hdmi { |
| 305 |
status = "okay"; |
| 306 |
}; |
| 307 |
|
| 308 |
&hdmi_in { |
| 309 |
hdmi_in_vp0: endpoint { |
| 310 |
remote-endpoint = <&vp0_out_hdmi>; |
| 311 |
}; |
| 312 |
}; |
| 313 |
|
| 314 |
&hdmi_out { |
| 315 |
hdmi_out_con: endpoint { |
| 316 |
remote-endpoint = <&hdmi_con_in>; |
| 317 |
}; |
| 318 |
}; |
| 319 |
|
| 320 |
&hdmi_sound { |
| 321 |
status = "okay"; |
| 322 |
}; |
| 323 |
|
| 324 |
&hdptxphy { |
| 325 |
status = "okay"; |
| 326 |
}; |
| 327 |
|
| 328 |
&i2c1 { |
| 329 |
status = "okay"; |
| 330 |
|
| 331 |
pmic@23 { |
| 332 |
compatible = "rockchip,rk806"; |
| 333 |
reg = <0x23>; |
| 334 |
|
| 335 |
interrupt-parent = <&gpio0>; |
| 336 |
interrupts = <6 IRQ_TYPE_LEVEL_LOW>; |
| 337 |
|
| 338 |
pinctrl-names = "default"; |
| 339 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 340 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 341 |
|
| 342 |
system-power-controller; |
| 343 |
|
| 344 |
vcc1-supply = <&vcc_5v0_sys>; |
| 345 |
vcc2-supply = <&vcc_5v0_sys>; |
| 346 |
vcc3-supply = <&vcc_5v0_sys>; |
| 347 |
vcc4-supply = <&vcc_5v0_sys>; |
| 348 |
vcc5-supply = <&vcc_5v0_sys>; |
| 349 |
vcc6-supply = <&vcc_5v0_sys>; |
| 350 |
vcc7-supply = <&vcc_5v0_sys>; |
| 351 |
vcc8-supply = <&vcc_5v0_sys>; |
| 352 |
vcc9-supply = <&vcc_5v0_sys>; |
| 353 |
vcc10-supply = <&vcc_5v0_sys>; |
| 354 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 355 |
vcc12-supply = <&vcc_5v0_sys>; |
| 356 |
vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 357 |
vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 358 |
vcca-supply = <&vcc_5v0_sys>; |
| 359 |
|
| 360 |
gpio-controller; |
| 361 |
#gpio-cells = <2>; |
| 362 |
|
| 363 |
rk806_dvs1_null: dvs1-null-pins { |
| 364 |
pins = "gpio_pwrctrl1"; |
| 365 |
function = "pin_fun0"; |
| 366 |
}; |
| 367 |
|
| 368 |
rk806_dvs2_null: dvs2-null-pins { |
| 369 |
pins = "gpio_pwrctrl2"; |
| 370 |
function = "pin_fun0"; |
| 371 |
}; |
| 372 |
|
| 373 |
rk806_dvs3_null: dvs3-null-pins { |
| 374 |
pins = "gpio_pwrctrl3"; |
| 375 |
function = "pin_fun0"; |
| 376 |
}; |
| 377 |
|
| 378 |
rk806_dvs1_slp: dvs1-slp-pins { |
| 379 |
pins = "gpio_pwrctrl1"; |
| 380 |
function = "pin_fun1"; |
| 381 |
}; |
| 382 |
|
| 383 |
rk806_dvs1_pwrdn: dvs1-pwrdn-pins { |
| 384 |
pins = "gpio_pwrctrl1"; |
| 385 |
function = "pin_fun2"; |
| 386 |
}; |
| 387 |
|
| 388 |
rk806_dvs1_rst: dvs1-rst-pins { |
| 389 |
pins = "gpio_pwrctrl1"; |
| 390 |
function = "pin_fun3"; |
| 391 |
}; |
| 392 |
|
| 393 |
rk806_dvs2_slp: dvs2-slp-pins { |
| 394 |
pins = "gpio_pwrctrl2"; |
| 395 |
function = "pin_fun1"; |
| 396 |
}; |
| 397 |
|
| 398 |
rk806_dvs2_pwrdn: dvs2-pwrdn-pins { |
| 399 |
pins = "gpio_pwrctrl2"; |
| 400 |
function = "pin_fun2"; |
| 401 |
}; |
| 402 |
|
| 403 |
rk806_dvs2_rst: dvs2-rst-pins { |
| 404 |
pins = "gpio_pwrctrl2"; |
| 405 |
function = "pin_fun3"; |
| 406 |
}; |
| 407 |
|
| 408 |
rk806_dvs2_dvs: dvs2-dvs-pins { |
| 409 |
pins = "gpio_pwrctrl2"; |
| 410 |
function = "pin_fun4"; |
| 411 |
}; |
| 412 |
|
| 413 |
rk806_dvs2_gpio: dvs2-gpio-pins { |
| 414 |
pins = "gpio_pwrctrl2"; |
| 415 |
function = "pin_fun5"; |
| 416 |
}; |
| 417 |
|
| 418 |
rk806_dvs3_slp: dvs3-slp-pins { |
| 419 |
pins = "gpio_pwrctrl3"; |
| 420 |
function = "pin_fun1"; |
| 421 |
}; |
| 422 |
|
| 423 |
rk806_dvs3_pwrdn: dvs3-pwrdn-pins { |
| 424 |
pins = "gpio_pwrctrl3"; |
| 425 |
function = "pin_fun2"; |
| 426 |
}; |
| 427 |
|
| 428 |
rk806_dvs3_rst: dvs3-rst-pins { |
| 429 |
pins = "gpio_pwrctrl3"; |
| 430 |
function = "pin_fun3"; |
| 431 |
}; |
| 432 |
|
| 433 |
rk806_dvs3_dvs: dvs3-dvs-pins { |
| 434 |
pins = "gpio_pwrctrl3"; |
| 435 |
function = "pin_fun4"; |
| 436 |
}; |
| 437 |
|
| 438 |
rk806_dvs3_gpio: dvs3-gpio-pins { |
| 439 |
pins = "gpio_pwrctrl3"; |
| 440 |
function = "pin_fun5"; |
| 441 |
}; |
| 442 |
|
| 443 |
regulators { |
| 444 |
vdd_cpu_big_s0: dcdc-reg1 { |
| 445 |
regulator-always-on; |
| 446 |
regulator-boot-on; |
| 447 |
regulator-min-microvolt = <550000>; |
| 448 |
regulator-max-microvolt = <950000>; |
| 449 |
regulator-ramp-delay = <12500>; |
| 450 |
regulator-name = "vdd_cpu_big_s0"; |
| 451 |
regulator-enable-ramp-delay = <400>; |
| 452 |
regulator-state-mem { |
| 453 |
regulator-off-in-suspend; |
| 454 |
}; |
| 455 |
}; |
| 456 |
|
| 457 |
vdd_npu_s0: dcdc-reg2 { |
| 458 |
regulator-boot-on; |
| 459 |
regulator-min-microvolt = <550000>; |
| 460 |
regulator-max-microvolt = <950000>; |
| 461 |
regulator-ramp-delay = <12500>; |
| 462 |
regulator-name = "vdd_npu_s0"; |
| 463 |
regulator-enable-ramp-delay = <400>; |
| 464 |
regulator-state-mem { |
| 465 |
regulator-off-in-suspend; |
| 466 |
}; |
| 467 |
}; |
| 468 |
|
| 469 |
vdd_cpu_lit_s0: dcdc-reg3 { |
| 470 |
regulator-always-on; |
| 471 |
regulator-boot-on; |
| 472 |
regulator-min-microvolt = <550000>; |
| 473 |
regulator-max-microvolt = <950000>; |
| 474 |
regulator-ramp-delay = <12500>; |
| 475 |
regulator-name = "vdd_cpu_lit_s0"; |
| 476 |
regulator-state-mem { |
| 477 |
regulator-off-in-suspend; |
| 478 |
regulator-suspend-microvolt = <750000>; |
| 479 |
}; |
| 480 |
}; |
| 481 |
|
| 482 |
vcc_3v3_s3: dcdc-reg4 { |
| 483 |
regulator-always-on; |
| 484 |
regulator-boot-on; |
| 485 |
regulator-min-microvolt = <3300000>; |
| 486 |
regulator-max-microvolt = <3300000>; |
| 487 |
regulator-name = "vcc_3v3_s3"; |
| 488 |
regulator-state-mem { |
| 489 |
regulator-on-in-suspend; |
| 490 |
regulator-suspend-microvolt = <3300000>; |
| 491 |
}; |
| 492 |
}; |
| 493 |
|
| 494 |
vdd_gpu_s0: dcdc-reg5 { |
| 495 |
regulator-boot-on; |
| 496 |
regulator-min-microvolt = <550000>; |
| 497 |
regulator-max-microvolt = <900000>; |
| 498 |
regulator-ramp-delay = <12500>; |
| 499 |
regulator-name = "vdd_gpu_s0"; |
| 500 |
regulator-enable-ramp-delay = <400>; |
| 501 |
regulator-state-mem { |
| 502 |
regulator-off-in-suspend; |
| 503 |
regulator-suspend-microvolt = <850000>; |
| 504 |
}; |
| 505 |
}; |
| 506 |
|
| 507 |
vddq_ddr_s0: dcdc-reg6 { |
| 508 |
regulator-always-on; |
| 509 |
regulator-boot-on; |
| 510 |
regulator-name = "vddq_ddr_s0"; |
| 511 |
regulator-state-mem { |
| 512 |
regulator-off-in-suspend; |
| 513 |
}; |
| 514 |
}; |
| 515 |
|
| 516 |
vdd_logic_s0: dcdc-reg7 { |
| 517 |
regulator-always-on; |
| 518 |
regulator-boot-on; |
| 519 |
regulator-min-microvolt = <550000>; |
| 520 |
regulator-max-microvolt = <800000>; |
| 521 |
regulator-name = "vdd_logic_s0"; |
| 522 |
regulator-state-mem { |
| 523 |
regulator-off-in-suspend; |
| 524 |
}; |
| 525 |
}; |
| 526 |
|
| 527 |
vcc_1v8_s3: dcdc-reg8 { |
| 528 |
regulator-always-on; |
| 529 |
regulator-boot-on; |
| 530 |
regulator-min-microvolt = <1800000>; |
| 531 |
regulator-max-microvolt = <1800000>; |
| 532 |
regulator-name = "vcc_1v8_s3"; |
| 533 |
regulator-state-mem { |
| 534 |
regulator-on-in-suspend; |
| 535 |
regulator-suspend-microvolt = <1800000>; |
| 536 |
}; |
| 537 |
}; |
| 538 |
|
| 539 |
vdd2_ddr_s3: dcdc-reg9 { |
| 540 |
regulator-always-on; |
| 541 |
regulator-boot-on; |
| 542 |
regulator-name = "vdd2_ddr_s3"; |
| 543 |
regulator-state-mem { |
| 544 |
regulator-on-in-suspend; |
| 545 |
}; |
| 546 |
}; |
| 547 |
|
| 548 |
vdd_ddr_s0: dcdc-reg10 { |
| 549 |
regulator-always-on; |
| 550 |
regulator-boot-on; |
| 551 |
regulator-min-microvolt = <550000>; |
| 552 |
regulator-max-microvolt = <1200000>; |
| 553 |
regulator-name = "vdd_ddr_s0"; |
| 554 |
regulator-state-mem { |
| 555 |
regulator-off-in-suspend; |
| 556 |
}; |
| 557 |
}; |
| 558 |
|
| 559 |
vcca_1v8_s0: pldo-reg1 { |
| 560 |
regulator-always-on; |
| 561 |
regulator-boot-on; |
| 562 |
regulator-min-microvolt = <1800000>; |
| 563 |
regulator-max-microvolt = <1800000>; |
| 564 |
regulator-name = "vcca_1v8_s0"; |
| 565 |
regulator-state-mem { |
| 566 |
regulator-off-in-suspend; |
| 567 |
}; |
| 568 |
}; |
| 569 |
|
| 570 |
vcca1v8_pldo2_s0: pldo-reg2 { |
| 571 |
regulator-always-on; |
| 572 |
regulator-boot-on; |
| 573 |
regulator-min-microvolt = <1800000>; |
| 574 |
regulator-max-microvolt = <1800000>; |
| 575 |
regulator-name = "vcca1v8_pldo2_s0"; |
| 576 |
regulator-state-mem { |
| 577 |
regulator-off-in-suspend; |
| 578 |
}; |
| 579 |
}; |
| 580 |
|
| 581 |
vdda_1v2_s0: pldo-reg3 { |
| 582 |
regulator-always-on; |
| 583 |
regulator-boot-on; |
| 584 |
regulator-min-microvolt = <1200000>; |
| 585 |
regulator-max-microvolt = <1200000>; |
| 586 |
regulator-name = "vdda_1v2_s0"; |
| 587 |
regulator-state-mem { |
| 588 |
regulator-off-in-suspend; |
| 589 |
}; |
| 590 |
}; |
| 591 |
|
| 592 |
vcca_3v3_s0: pldo-reg4 { |
| 593 |
regulator-always-on; |
| 594 |
regulator-boot-on; |
| 595 |
regulator-min-microvolt = <3300000>; |
| 596 |
regulator-max-microvolt = <3300000>; |
| 597 |
regulator-name = "vcca_3v3_s0"; |
| 598 |
regulator-state-mem { |
| 599 |
regulator-off-in-suspend; |
| 600 |
}; |
| 601 |
}; |
| 602 |
|
| 603 |
vccio_sd_s0: pldo-reg5 { |
| 604 |
regulator-always-on; |
| 605 |
regulator-boot-on; |
| 606 |
regulator-min-microvolt = <1800000>; |
| 607 |
regulator-max-microvolt = <3300000>; |
| 608 |
regulator-name = "vccio_sd_s0"; |
| 609 |
regulator-state-mem { |
| 610 |
regulator-off-in-suspend; |
| 611 |
}; |
| 612 |
}; |
| 613 |
|
| 614 |
vcca1v8_pldo6_s3: pldo-reg6 { |
| 615 |
regulator-always-on; |
| 616 |
regulator-boot-on; |
| 617 |
regulator-min-microvolt = <1800000>; |
| 618 |
regulator-max-microvolt = <1800000>; |
| 619 |
regulator-name = "vcca1v8_pldo6_s3"; |
| 620 |
regulator-state-mem { |
| 621 |
regulator-on-in-suspend; |
| 622 |
regulator-suspend-microvolt = <1800000>; |
| 623 |
}; |
| 624 |
}; |
| 625 |
|
| 626 |
vdd_0v75_s3: nldo-reg1 { |
| 627 |
regulator-always-on; |
| 628 |
regulator-boot-on; |
| 629 |
regulator-min-microvolt = <750000>; |
| 630 |
regulator-max-microvolt = <750000>; |
| 631 |
regulator-name = "vdd_0v75_s3"; |
| 632 |
regulator-state-mem { |
| 633 |
regulator-on-in-suspend; |
| 634 |
regulator-suspend-microvolt = <750000>; |
| 635 |
}; |
| 636 |
}; |
| 637 |
|
| 638 |
vdda_ddr_pll_s0: nldo-reg2 { |
| 639 |
regulator-always-on; |
| 640 |
regulator-boot-on; |
| 641 |
regulator-min-microvolt = <850000>; |
| 642 |
regulator-max-microvolt = <850000>; |
| 643 |
regulator-name = "vdda_ddr_pll_s0"; |
| 644 |
regulator-state-mem { |
| 645 |
regulator-off-in-suspend; |
| 646 |
}; |
| 647 |
}; |
| 648 |
|
| 649 |
vdda0v75_hdmi_s0: nldo-reg3 { |
| 650 |
regulator-always-on; |
| 651 |
regulator-boot-on; |
| 652 |
regulator-min-microvolt = <837500>; |
| 653 |
regulator-max-microvolt = <837500>; |
| 654 |
regulator-name = "vdda0v75_hdmi_s0"; |
| 655 |
regulator-state-mem { |
| 656 |
regulator-off-in-suspend; |
| 657 |
}; |
| 658 |
}; |
| 659 |
|
| 660 |
vdda_0v85_s0: nldo-reg4 { |
| 661 |
regulator-always-on; |
| 662 |
regulator-boot-on; |
| 663 |
regulator-min-microvolt = <850000>; |
| 664 |
regulator-max-microvolt = <850000>; |
| 665 |
regulator-name = "vdda_0v85_s0"; |
| 666 |
regulator-state-mem { |
| 667 |
regulator-off-in-suspend; |
| 668 |
}; |
| 669 |
}; |
| 670 |
|
| 671 |
vdda_0v75_s0: nldo-reg5 { |
| 672 |
regulator-always-on; |
| 673 |
regulator-boot-on; |
| 674 |
regulator-min-microvolt = <750000>; |
| 675 |
regulator-max-microvolt = <750000>; |
| 676 |
regulator-name = "vdda_0v75_s0"; |
| 677 |
regulator-state-mem { |
| 678 |
regulator-off-in-suspend; |
| 679 |
}; |
| 680 |
}; |
| 681 |
}; |
| 682 |
}; |
| 683 |
}; |
| 684 |
|
| 685 |
&i2c2 { |
| 686 |
status = "okay"; |
| 687 |
|
| 688 |
usbc0: typec-portc@22 { |
| 689 |
compatible = "fcs,fusb302"; |
| 690 |
reg = <0x22>; |
| 691 |
interrupt-parent = <&gpio0>; |
| 692 |
interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; |
| 693 |
pinctrl-names = "default"; |
| 694 |
pinctrl-0 = <&usbc0_interrupt>; |
| 695 |
vbus-supply = <&vcc_5v0_typec0>; |
| 696 |
|
| 697 |
connector { |
| 698 |
compatible = "usb-c-connector"; |
| 699 |
label = "USB-C"; |
| 700 |
data-role = "dual"; |
| 701 |
/* fusb302 supports PD Rev 2.0 Ver 1.2 */ |
| 702 |
pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>; |
| 703 |
power-role = "source"; |
| 704 |
source-pdos = <PDO_FIXED(5000, 2000, |
| 705 |
PDO_FIXED_USB_COMM | PDO_FIXED_DATA_SWAP)>; |
| 706 |
|
| 707 |
altmodes { |
| 708 |
displayport { |
| 709 |
svid = /bits/ 16 <0xff01>; |
| 710 |
vdo = <0xffffffff>; |
| 711 |
}; |
| 712 |
}; |
| 713 |
|
| 714 |
ports { |
| 715 |
#address-cells = <1>; |
| 716 |
#size-cells = <0>; |
| 717 |
|
| 718 |
port@0 { |
| 719 |
reg = <0>; |
| 720 |
usbc0_hs_ep: endpoint { |
| 721 |
remote-endpoint = <&usb_drd0_hs_ep>; |
| 722 |
}; |
| 723 |
}; |
| 724 |
port@1 { |
| 725 |
reg = <1>; |
| 726 |
usbc0_ss_ep: endpoint { |
| 727 |
remote-endpoint = <&usb_drd0_ss_ep>; |
| 728 |
}; |
| 729 |
}; |
| 730 |
port@2 { |
| 731 |
reg = <2>; |
| 732 |
usbc0_dp_ep: endpoint { |
| 733 |
remote-endpoint = <&usbdp_phy_ep>; |
| 734 |
}; |
| 735 |
}; |
| 736 |
}; |
| 737 |
}; |
| 738 |
}; |
| 739 |
|
| 740 |
hym8563: rtc@51 { |
| 741 |
compatible = "haoyu,hym8563"; |
| 742 |
reg = <0x51>; |
| 743 |
clock-output-names = "hym8563"; |
| 744 |
interrupt-parent = <&gpio0>; |
| 745 |
interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>; |
| 746 |
pinctrl-names = "default"; |
| 747 |
pinctrl-0 = <&hym8563_int>; |
| 748 |
wakeup-source; |
| 749 |
#clock-cells = <0>; |
| 750 |
}; |
| 751 |
}; |
| 752 |
|
| 753 |
&i2c3 { |
| 754 |
status = "okay"; |
| 755 |
|
| 756 |
es8388: audio-codec@10 { |
| 757 |
compatible = "everest,es8388", "everest,es8328"; |
| 758 |
reg = <0x10>; |
| 759 |
clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>; |
| 760 |
AVDD-supply = <&vcca_3v3_s0>; |
| 761 |
DVDD-supply = <&vcc_3v3_s0>; |
| 762 |
HPVDD-supply = <&vcca_3v3_s0>; |
| 763 |
PVDD-supply = <&vcc_3v3_s0>; |
| 764 |
assigned-clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>; |
| 765 |
assigned-clock-rates = <12288000>; |
| 766 |
#sound-dai-cells = <0>; |
| 767 |
pinctrl-names = "default"; |
| 768 |
pinctrl-0 = <&sai1m0_mclk>; |
| 769 |
}; |
| 770 |
}; |
| 771 |
|
| 772 |
&mdio0 { |
| 773 |
rgmii_phy0: phy@1 { |
| 774 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 775 |
reg = <0x1>; |
| 776 |
pinctrl-names = "default"; |
| 777 |
pinctrl-0 = <&gmac0_rst>; |
| 778 |
reset-assert-us = <20000>; |
| 779 |
reset-deassert-us = <100000>; |
| 780 |
reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
| 781 |
}; |
| 782 |
}; |
| 783 |
|
| 784 |
&mdio1 { |
| 785 |
rgmii_phy1: phy@1 { |
| 786 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 787 |
reg = <0x1>; |
| 788 |
pinctrl-names = "default"; |
| 789 |
pinctrl-0 = <&gmac1_rst>; |
| 790 |
reset-assert-us = <20000>; |
| 791 |
reset-deassert-us = <100000>; |
| 792 |
reset-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>; |
| 793 |
}; |
| 794 |
}; |
| 795 |
|
| 796 |
&pcie0 { |
| 797 |
pinctrl-names = "default"; |
| 798 |
pinctrl-0 = <&pcie_reset>; |
| 799 |
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>; |
| 800 |
vpcie3v3-supply = <&vcc_3v3_pcie>; |
| 801 |
status = "okay"; |
| 802 |
}; |
| 803 |
|
| 804 |
&pinctrl { |
| 805 |
gmac { |
| 806 |
gmac0_rst: gmac0-rst { |
| 807 |
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 808 |
}; |
| 809 |
gmac1_rst: gmac1-rst { |
| 810 |
rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 811 |
}; |
| 812 |
}; |
| 813 |
|
| 814 |
headphone { |
| 815 |
hp_det_l: hp-det-l { |
| 816 |
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 817 |
}; |
| 818 |
}; |
| 819 |
|
| 820 |
hym8563 { |
| 821 |
hym8563_int: hym8563-int { |
| 822 |
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; |
| 823 |
}; |
| 824 |
}; |
| 825 |
|
| 826 |
leds { |
| 827 |
led_rgb_r: led-red-en { |
| 828 |
rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 829 |
}; |
| 830 |
led_rgb_g: led-green-en { |
| 831 |
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 832 |
}; |
| 833 |
}; |
| 834 |
|
| 835 |
pcie { |
| 836 |
pcie_pwr_en: pcie-pwr-en { |
| 837 |
rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 838 |
}; |
| 839 |
pcie_reset: pcie-reset { |
| 840 |
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 841 |
}; |
| 842 |
}; |
| 843 |
|
| 844 |
usb { |
| 845 |
usb_host_pwren: usb-host-pwren { |
| 846 |
rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 847 |
}; |
| 848 |
usb_otg0_pwren: usb-otg0-pwren { |
| 849 |
rockchip,pins = <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 850 |
}; |
| 851 |
usbc0_interrupt: usbc0-interrupt { |
| 852 |
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 853 |
}; |
| 854 |
usbc0_sbu1: usbc0-sbu1 { |
| 855 |
rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 856 |
}; |
| 857 |
usbc0_sbu2: usbc0-sbu2 { |
| 858 |
rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; |
| 859 |
}; |
| 860 |
}; |
| 861 |
|
| 862 |
wireless-bluetooth { |
| 863 |
bt_reg_on: bt-reg-on { |
| 864 |
rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; |
| 865 |
}; |
| 866 |
|
| 867 |
host_wake_bt: host-wake-bt { |
| 868 |
rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 869 |
}; |
| 870 |
|
| 871 |
bt_wake_host: bt-wake-host { |
| 872 |
rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>; |
| 873 |
}; |
| 874 |
}; |
| 875 |
|
| 876 |
wireless-wlan { |
| 877 |
wifi_wake_host: wifi-wake-host { |
| 878 |
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>; |
| 879 |
}; |
| 880 |
|
| 881 |
wifi_reg_on: wifi-reg-on { |
| 882 |
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 883 |
}; |
| 884 |
}; |
| 885 |
}; |
| 886 |
|
| 887 |
&sai1 { |
| 888 |
pinctrl-names = "default"; |
| 889 |
pinctrl-0 = <&sai1m0_lrck |
| 890 |
&sai1m0_sclk |
| 891 |
&sai1m0_sdi0 |
| 892 |
&sai1m0_sdo0>; |
| 893 |
status = "okay"; |
| 894 |
}; |
| 895 |
|
| 896 |
&sai6 { |
| 897 |
status = "okay"; |
| 898 |
}; |
| 899 |
|
| 900 |
&saradc { |
| 901 |
vref-supply = <&vcca_1v8_s0>; |
| 902 |
status = "okay"; |
| 903 |
}; |
| 904 |
|
| 905 |
&sdhci { |
| 906 |
bus-width = <8>; |
| 907 |
full-pwr-cycle-in-suspend; |
| 908 |
max-frequency = <200000000>; |
| 909 |
mmc-hs400-1_8v; |
| 910 |
mmc-hs400-enhanced-strobe; |
| 911 |
no-sdio; |
| 912 |
no-sd; |
| 913 |
non-removable; |
| 914 |
status = "okay"; |
| 915 |
}; |
| 916 |
|
| 917 |
&sdio { |
| 918 |
bus-width = <4>; |
| 919 |
cap-sdio-irq; |
| 920 |
disable-wp; |
| 921 |
keep-power-in-suspend; |
| 922 |
mmc-pwrseq = <&sdio_pwrseq>; |
| 923 |
no-sd; |
| 924 |
no-mmc; |
| 925 |
non-removable; |
| 926 |
sd-uhs-sdr50; |
| 927 |
sd-uhs-sdr104; |
| 928 |
vmmc-supply = <&vcc_3v3_s3>; |
| 929 |
vqmmc-supply = <&vcc_1v8_s3>; |
| 930 |
wakeup-source; |
| 931 |
status = "okay"; |
| 932 |
}; |
| 933 |
|
| 934 |
&sdmmc { |
| 935 |
bus-width = <4>; |
| 936 |
cap-mmc-highspeed; |
| 937 |
cap-sd-highspeed; |
| 938 |
disable-wp; |
| 939 |
max-frequency = <200000000>; |
| 940 |
no-sdio; |
| 941 |
no-mmc; |
| 942 |
sd-uhs-sdr104; |
| 943 |
vmmc-supply = <&vcc_3v3_s3>; |
| 944 |
vqmmc-supply = <&vccio_sd_s0>; |
| 945 |
status = "okay"; |
| 946 |
}; |
| 947 |
|
| 948 |
&u2phy0 { |
| 949 |
status = "okay"; |
| 950 |
}; |
| 951 |
|
| 952 |
&u2phy0_otg { |
| 953 |
status = "okay"; |
| 954 |
}; |
| 955 |
|
| 956 |
&u2phy1 { |
| 957 |
status = "okay"; |
| 958 |
}; |
| 959 |
|
| 960 |
&u2phy1_otg { |
| 961 |
phy-supply = <&vcc_5v0_usbhost>; |
| 962 |
status = "okay"; |
| 963 |
}; |
| 964 |
|
| 965 |
&uart0 { |
| 966 |
pinctrl-0 = <&uart0m0_xfer>; |
| 967 |
status = "okay"; |
| 968 |
}; |
| 969 |
|
| 970 |
/* Used by Bluetooth modules, enabled in a version specific overlay */ |
| 971 |
&uart4 { |
| 972 |
pinctrl-0 = <&uart4m1_xfer &uart4m1_ctsn &uart4m1_rtsn>; |
| 973 |
pinctrl-names = "default"; |
| 974 |
uart-has-rtscts; |
| 975 |
}; |
| 976 |
|
| 977 |
&usb_drd0_dwc3 { |
| 978 |
usb-role-switch; |
| 979 |
dr_mode = "otg"; |
| 980 |
status = "okay"; |
| 981 |
|
| 982 |
ports { |
| 983 |
#address-cells = <1>; |
| 984 |
#size-cells = <0>; |
| 985 |
|
| 986 |
port@0 { |
| 987 |
reg = <0>; |
| 988 |
usb_drd0_hs_ep: endpoint { |
| 989 |
remote-endpoint = <&usbc0_hs_ep>; |
| 990 |
}; |
| 991 |
}; |
| 992 |
|
| 993 |
port@1 { |
| 994 |
reg = <1>; |
| 995 |
usb_drd0_ss_ep: endpoint { |
| 996 |
remote-endpoint = <&usbc0_ss_ep>; |
| 997 |
}; |
| 998 |
}; |
| 999 |
}; |
| 1000 |
}; |
| 1001 |
|
| 1002 |
&usb_drd1_dwc3 { |
| 1003 |
dr_mode = "host"; |
| 1004 |
status = "okay"; |
| 1005 |
}; |
| 1006 |
|
| 1007 |
&usbdp_phy { |
| 1008 |
mode-switch; |
| 1009 |
orientation-switch; |
| 1010 |
pinctrl-names = "default"; |
| 1011 |
pinctrl-0 = <&usbc0_sbu1 &usbc0_sbu2>; |
| 1012 |
sbu1-dc-gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 1013 |
sbu2-dc-gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>; |
| 1014 |
status = "okay"; |
| 1015 |
|
| 1016 |
port { |
| 1017 |
usbdp_phy_ep: endpoint { |
| 1018 |
remote-endpoint = <&usbc0_dp_ep>; |
| 1019 |
}; |
| 1020 |
}; |
| 1021 |
}; |
| 1022 |
|
| 1023 |
&vop { |
| 1024 |
status = "okay"; |
| 1025 |
}; |
| 1026 |
|
| 1027 |
&vop_mmu { |
| 1028 |
status = "okay"; |
| 1029 |
}; |
| 1030 |
|
| 1031 |
&vp0 { |
| 1032 |
vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { |
| 1033 |
reg = <ROCKCHIP_VOP2_EP_HDMI0>; |
| 1034 |
remote-endpoint = <&hdmi_in_vp0>; |
| 1035 |
}; |
| 1036 |
}; |