| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd |
| 4 |
* Copyright (c) 2019 Radxa Limited |
| 5 |
* Copyright (c) 2022 Amarula Solutions(India) |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
#include <dt-bindings/leds/common.h> |
| 10 |
#include "rk3399-t.dtsi" |
| 11 |
|
| 12 |
/ { |
| 13 |
model = "Radxa ROCK 4C+"; |
| 14 |
compatible = "radxa,rock-4c-plus", "rockchip,rk3399"; |
| 15 |
|
| 16 |
aliases { |
| 17 |
ethernet0 = &gmac; |
| 18 |
mmc0 = &sdhci; |
| 19 |
mmc1 = &sdmmc; |
| 20 |
}; |
| 21 |
|
| 22 |
chosen { |
| 23 |
stdout-path = "serial2:1500000n8"; |
| 24 |
}; |
| 25 |
|
| 26 |
clkin_gmac: external-gmac-clock { |
| 27 |
compatible = "fixed-clock"; |
| 28 |
clock-frequency = <125000000>; |
| 29 |
clock-output-names = "clkin_gmac"; |
| 30 |
#clock-cells = <0>; |
| 31 |
}; |
| 32 |
|
| 33 |
leds { |
| 34 |
compatible = "gpio-leds"; |
| 35 |
pinctrl-names = "default"; |
| 36 |
pinctrl-0 = <&user_led1 &user_led2>; |
| 37 |
|
| 38 |
/* USER_LED1 */ |
| 39 |
led-0 { |
| 40 |
function = LED_FUNCTION_POWER; |
| 41 |
color = <LED_COLOR_ID_GREEN>; |
| 42 |
default-state = "on"; |
| 43 |
gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>; |
| 44 |
}; |
| 45 |
|
| 46 |
/* USER_LED2 */ |
| 47 |
led-1 { |
| 48 |
function = LED_FUNCTION_STATUS; |
| 49 |
color = <LED_COLOR_ID_BLUE>; |
| 50 |
gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; |
| 51 |
linux,default-trigger = "heartbeat"; |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
rk809-sound { |
| 56 |
compatible = "simple-audio-card"; |
| 57 |
simple-audio-card,format = "i2s"; |
| 58 |
simple-audio-card,name = "Analog RK809"; |
| 59 |
simple-audio-card,mclk-fs = <256>; |
| 60 |
|
| 61 |
simple-audio-card,cpu { |
| 62 |
sound-dai = <&i2s0>; |
| 63 |
}; |
| 64 |
|
| 65 |
simple-audio-card,codec { |
| 66 |
sound-dai = <&rk809>; |
| 67 |
}; |
| 68 |
}; |
| 69 |
|
| 70 |
sdio_pwrseq: sdio-pwrseq { |
| 71 |
compatible = "mmc-pwrseq-simple"; |
| 72 |
clocks = <&rk809 1>; |
| 73 |
clock-names = "ext_clock"; |
| 74 |
pinctrl-names = "default"; |
| 75 |
pinctrl-0 = <&wifi_enable_h>; |
| 76 |
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; |
| 77 |
}; |
| 78 |
|
| 79 |
vcc_3v3: regulator-vcc-3v3 { |
| 80 |
compatible = "regulator-fixed"; |
| 81 |
regulator-name = "vcc_3v3"; |
| 82 |
regulator-always-on; |
| 83 |
regulator-boot-on; |
| 84 |
regulator-min-microvolt = <3300000>; |
| 85 |
regulator-max-microvolt = <3300000>; |
| 86 |
vin-supply = <&vcc3v3_sys>; |
| 87 |
}; |
| 88 |
|
| 89 |
vcc3v3_phy1: regulator-vcc3v3-phy1 { |
| 90 |
compatible = "regulator-fixed"; |
| 91 |
regulator-name = "vcc3v3_phy1"; |
| 92 |
regulator-always-on; |
| 93 |
regulator-boot-on; |
| 94 |
regulator-min-microvolt = <3300000>; |
| 95 |
regulator-max-microvolt = <3300000>; |
| 96 |
vin-supply = <&vcc_3v3>; |
| 97 |
}; |
| 98 |
|
| 99 |
vcc5v0_host1: regulator-vcc5v0-host { |
| 100 |
compatible = "regulator-fixed"; |
| 101 |
enable-active-high; |
| 102 |
gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; |
| 103 |
pinctrl-names = "default"; |
| 104 |
pinctrl-0 = <&vcc5v0_host_en>; |
| 105 |
regulator-name = "vcc5v0_host1"; |
| 106 |
regulator-always-on; |
| 107 |
regulator-boot-on; |
| 108 |
vin-supply = <&vcc5v0_host0_s0>; |
| 109 |
}; |
| 110 |
|
| 111 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 112 |
compatible = "regulator-fixed"; |
| 113 |
regulator-name = "vcc5v0_sys"; |
| 114 |
regulator-always-on; |
| 115 |
regulator-boot-on; |
| 116 |
regulator-min-microvolt = <5000000>; |
| 117 |
regulator-max-microvolt = <5000000>; |
| 118 |
}; |
| 119 |
|
| 120 |
vcc5v0_typec: regulator-vcc5v0-typec { |
| 121 |
compatible = "regulator-fixed"; |
| 122 |
enable-active-high; |
| 123 |
gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; |
| 124 |
pinctrl-names = "default"; |
| 125 |
pinctrl-0 = <&vcc5v0_typec0_en>; |
| 126 |
regulator-name = "vcc5v0_typec"; |
| 127 |
regulator-always-on; |
| 128 |
regulator-boot-on; |
| 129 |
vin-supply = <&vcc5v0_sys>; |
| 130 |
}; |
| 131 |
|
| 132 |
vdd_log: regulator-vdd-log { |
| 133 |
compatible = "regulator-fixed"; |
| 134 |
regulator-name = "vdd_log"; |
| 135 |
regulator-always-on; |
| 136 |
regulator-boot-on; |
| 137 |
regulator-min-microvolt = <950000>; |
| 138 |
regulator-max-microvolt = <950000>; |
| 139 |
vin-supply = <&vcc5v0_sys>; |
| 140 |
}; |
| 141 |
}; |
| 142 |
|
| 143 |
&cpu_l0 { |
| 144 |
cpu-supply = <&vdd_cpu_l>; |
| 145 |
}; |
| 146 |
|
| 147 |
&cpu_l1 { |
| 148 |
cpu-supply = <&vdd_cpu_l>; |
| 149 |
}; |
| 150 |
|
| 151 |
&cpu_l2 { |
| 152 |
cpu-supply = <&vdd_cpu_l>; |
| 153 |
}; |
| 154 |
|
| 155 |
&cpu_l3 { |
| 156 |
cpu-supply = <&vdd_cpu_l>; |
| 157 |
}; |
| 158 |
|
| 159 |
&cpu_b0 { |
| 160 |
cpu-supply = <&vdd_cpu_b>; |
| 161 |
}; |
| 162 |
|
| 163 |
&cpu_b1 { |
| 164 |
cpu-supply = <&vdd_cpu_b>; |
| 165 |
}; |
| 166 |
|
| 167 |
&emmc_phy { |
| 168 |
rockchip,enable-strobe-pulldown; |
| 169 |
status = "okay"; |
| 170 |
}; |
| 171 |
|
| 172 |
&gmac { |
| 173 |
assigned-clocks = <&cru SCLK_RMII_SRC>; |
| 174 |
assigned-clock-parents = <&clkin_gmac>; |
| 175 |
clock_in_out = "input"; |
| 176 |
phy-supply = <&vcc3v3_phy1>; |
| 177 |
phy-mode = "rgmii"; |
| 178 |
pinctrl-names = "default"; |
| 179 |
pinctrl-0 = <&rgmii_pins>; |
| 180 |
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; |
| 181 |
snps,reset-active-low; |
| 182 |
snps,reset-delays-us = <0 10000 50000>; |
| 183 |
tx_delay = <0x2a>; |
| 184 |
rx_delay = <0x21>; |
| 185 |
status = "okay"; |
| 186 |
}; |
| 187 |
|
| 188 |
&gpu { |
| 189 |
mali-supply = <&vdd_gpu>; |
| 190 |
status = "okay"; |
| 191 |
}; |
| 192 |
|
| 193 |
&hdmi { |
| 194 |
avdd-0v9-supply = <&vcc_0v9_s0>; |
| 195 |
avdd-1v8-supply = <&vcc_1v8_s0>; |
| 196 |
ddc-i2c-bus = <&i2c3>; |
| 197 |
pinctrl-names = "default"; |
| 198 |
pinctrl-0 = <&hdmi_cec>; |
| 199 |
status = "okay"; |
| 200 |
}; |
| 201 |
|
| 202 |
&hdmi_sound { |
| 203 |
status = "okay"; |
| 204 |
}; |
| 205 |
|
| 206 |
&i2c0 { |
| 207 |
status = "okay"; |
| 208 |
i2c-scl-falling-time-ns = <30>; |
| 209 |
i2c-scl-rising-time-ns = <180>; |
| 210 |
clock-frequency = <400000>; |
| 211 |
|
| 212 |
rk809: pmic@20 { |
| 213 |
compatible = "rockchip,rk809"; |
| 214 |
reg = <0x20>; |
| 215 |
interrupt-parent = <&gpio1>; |
| 216 |
interrupts = <RK_PC5 IRQ_TYPE_LEVEL_LOW>; |
| 217 |
#clock-cells = <1>; |
| 218 |
clock-names = "mclk"; |
| 219 |
clocks = <&cru SCLK_I2S_8CH_OUT>; |
| 220 |
clock-output-names = "rk808-clkout1", "rk808-clkout2"; |
| 221 |
pinctrl-names = "default"; |
| 222 |
pinctrl-0 = <&pmic_int_l>, <&i2s_8ch_mclk>; |
| 223 |
system-power-controller; |
| 224 |
#sound-dai-cells = <0>; |
| 225 |
wakeup-source; |
| 226 |
|
| 227 |
vcc1-supply = <&vcc5v0_sys>; |
| 228 |
vcc2-supply = <&vcc5v0_sys>; |
| 229 |
vcc3-supply = <&vcc5v0_sys>; |
| 230 |
vcc4-supply = <&vcc5v0_sys>; |
| 231 |
vcc5-supply = <&vcc_buck5_s3>; |
| 232 |
vcc6-supply = <&vcc_buck5_s3>; |
| 233 |
vcc7-supply = <&vcc5v0_sys>; |
| 234 |
vcc8-supply = <&vcc3v3_sys>; |
| 235 |
vcc9-supply = <&vcc5v0_sys>; |
| 236 |
|
| 237 |
regulators { |
| 238 |
vdd_center: DCDC_REG1 { |
| 239 |
regulator-always-on; |
| 240 |
regulator-boot-on; |
| 241 |
regulator-min-microvolt = <750000>; |
| 242 |
regulator-max-microvolt = <1350000>; |
| 243 |
regulator-initial-mode = <0x2>; |
| 244 |
regulator-name = "vdd_center"; |
| 245 |
regulator-state-mem { |
| 246 |
regulator-off-in-suspend; |
| 247 |
regulator-suspend-microvolt = <900000>; |
| 248 |
}; |
| 249 |
}; |
| 250 |
|
| 251 |
vdd_cpu_l: DCDC_REG2 { |
| 252 |
regulator-always-on; |
| 253 |
regulator-boot-on; |
| 254 |
regulator-min-microvolt = <750000>; |
| 255 |
regulator-max-microvolt = <1350000>; |
| 256 |
regulator-ramp-delay = <6001>; |
| 257 |
regulator-initial-mode = <0x2>; |
| 258 |
regulator-name = "vdd_cpu_l"; |
| 259 |
regulator-state-mem { |
| 260 |
regulator-off-in-suspend; |
| 261 |
}; |
| 262 |
}; |
| 263 |
|
| 264 |
vcc_ddr: DCDC_REG3 { |
| 265 |
regulator-always-on; |
| 266 |
regulator-boot-on; |
| 267 |
regulator-name = "vcc_ddr"; |
| 268 |
regulator-initial-mode = <0x2>; |
| 269 |
regulator-state-mem { |
| 270 |
regulator-on-in-suspend; |
| 271 |
}; |
| 272 |
}; |
| 273 |
|
| 274 |
vcc3v3_sys: DCDC_REG4 { |
| 275 |
regulator-always-on; |
| 276 |
regulator-boot-on; |
| 277 |
regulator-min-microvolt = <3300000>; |
| 278 |
regulator-max-microvolt = <3300000>; |
| 279 |
regulator-initial-mode = <0x2>; |
| 280 |
regulator-name = "vcc3v3_sys"; |
| 281 |
regulator-state-mem { |
| 282 |
regulator-on-in-suspend; |
| 283 |
regulator-suspend-microvolt = <3300000>; |
| 284 |
}; |
| 285 |
}; |
| 286 |
|
| 287 |
vcc_buck5_s3: DCDC_REG5 { |
| 288 |
regulator-always-on; |
| 289 |
regulator-boot-on; |
| 290 |
regulator-min-microvolt = <3300000>; |
| 291 |
regulator-max-microvolt = <3300000>; |
| 292 |
regulator-name = "vcc_buck5_s3"; |
| 293 |
regulator-state-mem { |
| 294 |
regulator-on-in-suspend; |
| 295 |
regulator-suspend-microvolt = <3300000>; |
| 296 |
}; |
| 297 |
}; |
| 298 |
|
| 299 |
vcc_0v9_s3: LDO_REG1 { |
| 300 |
regulator-always-on; |
| 301 |
regulator-boot-on; |
| 302 |
regulator-min-microvolt = <900000>; |
| 303 |
regulator-max-microvolt = <900000>; |
| 304 |
regulator-name = "vcc_0v9_s3"; |
| 305 |
regulator-state-mem { |
| 306 |
regulator-off-in-suspend; |
| 307 |
}; |
| 308 |
}; |
| 309 |
|
| 310 |
vcc_1v8_s3: LDO_REG2 { |
| 311 |
regulator-always-on; |
| 312 |
regulator-boot-on; |
| 313 |
regulator-min-microvolt = <1800000>; |
| 314 |
regulator-max-microvolt = <1800000>; |
| 315 |
regulator-name = "vcc_1v8_s3"; |
| 316 |
regulator-state-mem { |
| 317 |
regulator-on-in-suspend; |
| 318 |
regulator-suspend-microvolt = <1800000>; |
| 319 |
}; |
| 320 |
}; |
| 321 |
|
| 322 |
vcc_0v9_s0: LDO_REG3 { |
| 323 |
regulator-always-on; |
| 324 |
regulator-boot-on; |
| 325 |
regulator-min-microvolt = <900000>; |
| 326 |
regulator-max-microvolt = <900000>; |
| 327 |
regulator-name = "vcc_0v9_s0"; |
| 328 |
regulator-state-mem { |
| 329 |
regulator-on-in-suspend; |
| 330 |
regulator-suspend-microvolt = <900000>; |
| 331 |
}; |
| 332 |
}; |
| 333 |
|
| 334 |
vcc_1v8_s0: LDO_REG4 { |
| 335 |
regulator-always-on; |
| 336 |
regulator-boot-on; |
| 337 |
regulator-min-microvolt = <1800000>; |
| 338 |
regulator-max-microvolt = <1800000>; |
| 339 |
regulator-name = "vcc_1v8_s0"; |
| 340 |
regulator-state-mem { |
| 341 |
regulator-off-in-suspend; |
| 342 |
}; |
| 343 |
}; |
| 344 |
|
| 345 |
vcc_mipi: LDO_REG5 { |
| 346 |
regulator-always-on; |
| 347 |
regulator-boot-on; |
| 348 |
regulator-min-microvolt = <3000000>; |
| 349 |
regulator-max-microvolt = <3000000>; |
| 350 |
regulator-name = "vcc_mipi"; |
| 351 |
regulator-state-mem { |
| 352 |
regulator-off-in-suspend; |
| 353 |
}; |
| 354 |
}; |
| 355 |
|
| 356 |
vcc_1v5_s0: LDO_REG6 { |
| 357 |
regulator-always-on; |
| 358 |
regulator-boot-on; |
| 359 |
regulator-min-microvolt = <1500000>; |
| 360 |
regulator-max-microvolt = <1500000>; |
| 361 |
regulator-name = "vcc_1v5_s0"; |
| 362 |
regulator-state-mem { |
| 363 |
regulator-off-in-suspend; |
| 364 |
}; |
| 365 |
}; |
| 366 |
|
| 367 |
vcc_3v0_s0: LDO_REG7 { |
| 368 |
regulator-always-on; |
| 369 |
regulator-boot-on; |
| 370 |
regulator-min-microvolt = <3000000>; |
| 371 |
regulator-max-microvolt = <3000000>; |
| 372 |
regulator-name = "vcc_3v0_s0"; |
| 373 |
regulator-state-mem { |
| 374 |
regulator-off-in-suspend; |
| 375 |
}; |
| 376 |
}; |
| 377 |
|
| 378 |
vcc_sdio_s0: LDO_REG8 { |
| 379 |
regulator-always-on; |
| 380 |
regulator-boot-on; |
| 381 |
regulator-min-microvolt = <1800000>; |
| 382 |
regulator-max-microvolt = <3300000>; |
| 383 |
regulator-name = "vcc_sdio_s0"; |
| 384 |
regulator-state-mem { |
| 385 |
regulator-off-in-suspend; |
| 386 |
}; |
| 387 |
}; |
| 388 |
|
| 389 |
vcc_cam: LDO_REG9 { |
| 390 |
regulator-always-on; |
| 391 |
regulator-boot-on; |
| 392 |
regulator-min-microvolt = <3300000>; |
| 393 |
regulator-max-microvolt = <3300000>; |
| 394 |
regulator-name = "vcc_cam"; |
| 395 |
regulator-state-mem { |
| 396 |
regulator-off-in-suspend; |
| 397 |
}; |
| 398 |
}; |
| 399 |
|
| 400 |
vcc5v0_host0_s0: SWITCH_REG1 { |
| 401 |
regulator-always-on; |
| 402 |
regulator-boot-on; |
| 403 |
regulator-name = "vcc5v0_host0_s0"; |
| 404 |
regulator-state-mem { |
| 405 |
regulator-on-in-suspend; |
| 406 |
}; |
| 407 |
}; |
| 408 |
|
| 409 |
lcd_3v3: SWITCH_REG2 { |
| 410 |
regulator-always-on; |
| 411 |
regulator-boot-on; |
| 412 |
regulator-name = "lcd_3v3"; |
| 413 |
regulator-state-mem { |
| 414 |
regulator-off-in-suspend; |
| 415 |
}; |
| 416 |
}; |
| 417 |
}; |
| 418 |
}; |
| 419 |
|
| 420 |
vdd_cpu_b: regulator@40 { |
| 421 |
compatible = "silergy,syr827"; |
| 422 |
reg = <0x40>; |
| 423 |
fcs,suspend-voltage-selector = <1>; |
| 424 |
pinctrl-0 = <&vsel1_gpio>; |
| 425 |
vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; |
| 426 |
regulator-name = "vdd_cpu_b"; |
| 427 |
regulator-min-microvolt = <712500>; |
| 428 |
regulator-max-microvolt = <1500000>; |
| 429 |
regulator-ramp-delay = <1000>; |
| 430 |
regulator-always-on; |
| 431 |
regulator-boot-on; |
| 432 |
vin-supply = <&vcc5v0_sys>; |
| 433 |
regulator-state-mem { |
| 434 |
regulator-off-in-suspend; |
| 435 |
}; |
| 436 |
}; |
| 437 |
|
| 438 |
vdd_gpu: regulator@41 { |
| 439 |
compatible = "silergy,syr828"; |
| 440 |
reg = <0x41>; |
| 441 |
fcs,suspend-voltage-selector = <1>; |
| 442 |
pinctrl-0 = <&vsel2_gpio>; |
| 443 |
vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 444 |
regulator-name = "vdd_gpu"; |
| 445 |
regulator-min-microvolt = <712500>; |
| 446 |
regulator-max-microvolt = <1500000>; |
| 447 |
regulator-ramp-delay = <1000>; |
| 448 |
regulator-always-on; |
| 449 |
regulator-boot-on; |
| 450 |
vin-supply = <&vcc5v0_sys>; |
| 451 |
regulator-initial-mode = <1>; /* 1:force PWM 2:auto */ |
| 452 |
regulator-state-mem { |
| 453 |
regulator-off-in-suspend; |
| 454 |
}; |
| 455 |
}; |
| 456 |
|
| 457 |
eeprom@50 { |
| 458 |
compatible = "belling,bl24c04a", "atmel,24c04"; |
| 459 |
reg = <0x50>; |
| 460 |
pagesize = <16>; |
| 461 |
read-only; |
| 462 |
vcc-supply = <&vcc_3v0_s0>; |
| 463 |
}; |
| 464 |
}; |
| 465 |
|
| 466 |
&i2c3 { |
| 467 |
i2c-scl-rising-time-ns = <450>; |
| 468 |
i2c-scl-falling-time-ns = <15>; |
| 469 |
status = "okay"; |
| 470 |
}; |
| 471 |
|
| 472 |
&i2s0 { |
| 473 |
status = "okay"; |
| 474 |
}; |
| 475 |
|
| 476 |
&i2s0_8ch_bus { |
| 477 |
rockchip,pins = |
| 478 |
<3 RK_PD0 1 &pcfg_pull_none>, |
| 479 |
<3 RK_PD2 1 &pcfg_pull_none>, |
| 480 |
<3 RK_PD3 1 &pcfg_pull_none>, |
| 481 |
<3 RK_PD7 1 &pcfg_pull_none>; |
| 482 |
}; |
| 483 |
|
| 484 |
&i2s0_8ch_bus_bclk_off { |
| 485 |
rockchip,pins = |
| 486 |
<3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, |
| 487 |
<3 RK_PD2 1 &pcfg_pull_none>, |
| 488 |
<3 RK_PD3 1 &pcfg_pull_none>, |
| 489 |
<3 RK_PD7 1 &pcfg_pull_none>; |
| 490 |
}; |
| 491 |
|
| 492 |
&i2s2 { |
| 493 |
status = "okay"; |
| 494 |
}; |
| 495 |
|
| 496 |
&io_domains { |
| 497 |
audio-supply = <&vcc_1v8_s0>; |
| 498 |
bt656-supply = <&vcc_3v0_s0>; |
| 499 |
gpio1830-supply = <&vcc_3v0_s0>; |
| 500 |
sdmmc-supply = <&vcc_sdio_s0>; |
| 501 |
status = "okay"; |
| 502 |
}; |
| 503 |
|
| 504 |
&pinctrl { |
| 505 |
bt { |
| 506 |
bt_enable_h: bt-enable-h { |
| 507 |
rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 508 |
}; |
| 509 |
|
| 510 |
bt_host_wake_l: bt-host-wake-l { |
| 511 |
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 512 |
}; |
| 513 |
|
| 514 |
bt_wake_l: bt-wake-l { |
| 515 |
rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 516 |
}; |
| 517 |
}; |
| 518 |
|
| 519 |
i2s0 { |
| 520 |
i2s_8ch_mclk: i2s-8ch-mclk { |
| 521 |
rockchip,pins = <4 RK_PA0 1 &pcfg_pull_none>; |
| 522 |
}; |
| 523 |
}; |
| 524 |
|
| 525 |
leds { |
| 526 |
user_led1: user-led1 { |
| 527 |
rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 528 |
}; |
| 529 |
|
| 530 |
user_led2: user-led2 { |
| 531 |
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 532 |
}; |
| 533 |
}; |
| 534 |
|
| 535 |
pmic { |
| 536 |
pmic_int_l: pmic-int-l { |
| 537 |
rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 538 |
}; |
| 539 |
|
| 540 |
vsel1_gpio: vsel1-gpio-pin { |
| 541 |
rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; |
| 542 |
}; |
| 543 |
|
| 544 |
vsel2_gpio: vsel2-gpio-pin { |
| 545 |
rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 546 |
}; |
| 547 |
}; |
| 548 |
|
| 549 |
sdmmc { |
| 550 |
sdmmc_bus4: sdmmc-bus4 { |
| 551 |
rockchip,pins = <4 8 1 &pcfg_pull_up_8ma>, |
| 552 |
<4 9 1 &pcfg_pull_up_8ma>, |
| 553 |
<4 10 1 &pcfg_pull_up_8ma>, |
| 554 |
<4 11 1 &pcfg_pull_up_8ma>; |
| 555 |
}; |
| 556 |
|
| 557 |
sdmmc_clk: sdmmc-clk { |
| 558 |
rockchip,pins = <4 12 1 &pcfg_pull_none_18ma>; |
| 559 |
}; |
| 560 |
|
| 561 |
sdmmc_cmd: sdmmc-cmd { |
| 562 |
rockchip,pins = <4 13 1 &pcfg_pull_up_8ma>; |
| 563 |
}; |
| 564 |
}; |
| 565 |
|
| 566 |
usb-typec { |
| 567 |
vcc5v0_typec0_en: vcc5v0-typec-en { |
| 568 |
rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; |
| 569 |
}; |
| 570 |
}; |
| 571 |
|
| 572 |
usb2 { |
| 573 |
vcc5v0_host_en: vcc5v0-host-en { |
| 574 |
rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>; |
| 575 |
}; |
| 576 |
}; |
| 577 |
|
| 578 |
wifi { |
| 579 |
wifi_enable_h: wifi-enable-h { |
| 580 |
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 581 |
}; |
| 582 |
|
| 583 |
wifi_host_wake_l: wifi-host-wake-l { |
| 584 |
rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 585 |
}; |
| 586 |
}; |
| 587 |
}; |
| 588 |
|
| 589 |
&pmu_io_domains { |
| 590 |
pmu1830-supply = <&vcc_3v0_s0>; |
| 591 |
status = "okay"; |
| 592 |
}; |
| 593 |
|
| 594 |
&saradc { |
| 595 |
status = "okay"; |
| 596 |
vref-supply = <&vcc_1v8_s3>; |
| 597 |
}; |
| 598 |
|
| 599 |
&sdhci { |
| 600 |
max-frequency = <150000000>; |
| 601 |
bus-width = <8>; |
| 602 |
mmc-hs400-1_8v; |
| 603 |
mmc-hs400-enhanced-strobe; |
| 604 |
non-removable; |
| 605 |
status = "okay"; |
| 606 |
}; |
| 607 |
|
| 608 |
&sdio0 { |
| 609 |
#address-cells = <1>; |
| 610 |
#size-cells = <0>; |
| 611 |
bus-width = <4>; |
| 612 |
clock-frequency = <50000000>; |
| 613 |
cap-sdio-irq; |
| 614 |
cap-sd-highspeed; |
| 615 |
keep-power-in-suspend; |
| 616 |
mmc-pwrseq = <&sdio_pwrseq>; |
| 617 |
non-removable; |
| 618 |
pinctrl-names = "default"; |
| 619 |
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; |
| 620 |
sd-uhs-sdr104; |
| 621 |
status = "okay"; |
| 622 |
|
| 623 |
brcmf: wifi@1 { |
| 624 |
compatible = "brcm,bcm4329-fmac"; |
| 625 |
reg = <1>; |
| 626 |
interrupt-parent = <&gpio0>; |
| 627 |
interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>; |
| 628 |
interrupt-names = "host-wake"; |
| 629 |
pinctrl-names = "default"; |
| 630 |
pinctrl-0 = <&wifi_host_wake_l>; |
| 631 |
}; |
| 632 |
}; |
| 633 |
|
| 634 |
&sdmmc { |
| 635 |
bus-width = <4>; |
| 636 |
cap-mmc-highspeed; |
| 637 |
cap-sd-highspeed; |
| 638 |
card-detect-delay = <800>; |
| 639 |
disable-wp; |
| 640 |
pinctrl-names = "default"; |
| 641 |
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; |
| 642 |
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; |
| 643 |
vqmmc-supply = <&vcc_sdio_s0>; |
| 644 |
status = "okay"; |
| 645 |
}; |
| 646 |
|
| 647 |
&tcphy0 { |
| 648 |
status = "okay"; |
| 649 |
}; |
| 650 |
|
| 651 |
&tcphy1 { |
| 652 |
status = "okay"; |
| 653 |
}; |
| 654 |
|
| 655 |
&tsadc { |
| 656 |
rockchip,hw-tshut-mode = <1>; |
| 657 |
rockchip,hw-tshut-polarity = <1>; |
| 658 |
status = "okay"; |
| 659 |
}; |
| 660 |
|
| 661 |
&u2phy0 { |
| 662 |
status = "okay"; |
| 663 |
|
| 664 |
u2phy0_otg: otg-port { |
| 665 |
status = "okay"; |
| 666 |
}; |
| 667 |
|
| 668 |
u2phy0_host: host-port { |
| 669 |
phy-supply = <&vcc5v0_host1>; |
| 670 |
status = "okay"; |
| 671 |
}; |
| 672 |
}; |
| 673 |
|
| 674 |
&u2phy1 { |
| 675 |
status = "okay"; |
| 676 |
|
| 677 |
u2phy1_otg: otg-port { |
| 678 |
status = "okay"; |
| 679 |
}; |
| 680 |
|
| 681 |
u2phy1_host: host-port { |
| 682 |
phy-supply = <&vcc5v0_host1>; |
| 683 |
status = "okay"; |
| 684 |
}; |
| 685 |
}; |
| 686 |
|
| 687 |
&uart0 { |
| 688 |
pinctrl-names = "default"; |
| 689 |
pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; |
| 690 |
status = "okay"; |
| 691 |
|
| 692 |
bluetooth { |
| 693 |
compatible = "brcm,bcm4345c5"; |
| 694 |
clocks = <&rk809 1>; |
| 695 |
clock-names = "lpo"; |
| 696 |
device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; |
| 697 |
host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 698 |
shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; |
| 699 |
max-speed = <1500000>; |
| 700 |
pinctrl-names = "default"; |
| 701 |
pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; |
| 702 |
vbat-supply = <&vcc3v3_sys>; |
| 703 |
vddio-supply = <&vcc_1v8_s3>; |
| 704 |
}; |
| 705 |
}; |
| 706 |
|
| 707 |
&uart2 { |
| 708 |
status = "okay"; |
| 709 |
}; |
| 710 |
|
| 711 |
&usb_host0_ehci { |
| 712 |
status = "okay"; |
| 713 |
}; |
| 714 |
|
| 715 |
&usb_host0_ohci { |
| 716 |
status = "okay"; |
| 717 |
}; |
| 718 |
|
| 719 |
&usb_host1_ehci { |
| 720 |
status = "okay"; |
| 721 |
}; |
| 722 |
|
| 723 |
&usb_host1_ohci { |
| 724 |
status = "okay"; |
| 725 |
}; |
| 726 |
|
| 727 |
&usbdrd3_0 { |
| 728 |
extcon = <&u2phy0>; |
| 729 |
status = "okay"; |
| 730 |
}; |
| 731 |
|
| 732 |
&usbdrd_dwc3_0 { |
| 733 |
status = "okay"; |
| 734 |
dr_mode = "host"; |
| 735 |
}; |
| 736 |
|
| 737 |
&usbdrd3_1 { |
| 738 |
status = "okay"; |
| 739 |
}; |
| 740 |
|
| 741 |
&usbdrd_dwc3_1 { |
| 742 |
status = "okay"; |
| 743 |
dr_mode = "host"; |
| 744 |
}; |
| 745 |
|
| 746 |
&vopb { |
| 747 |
status = "okay"; |
| 748 |
}; |
| 749 |
|
| 750 |
&vopb_mmu { |
| 751 |
status = "okay"; |
| 752 |
}; |
| 753 |
|
| 754 |
&vopl { |
| 755 |
status = "okay"; |
| 756 |
}; |
| 757 |
|
| 758 |
&vopl_mmu { |
| 759 |
status = "okay"; |
| 760 |
}; |