Skip to content

Commit d38bf2e

Browse files
committed
arm: dts: add Vanxoak HD-RK3506G-EVB board support
Add device tree for the Vanxoak HD-RK3506G-EVB V1 board featuring: - Dual RMII Ethernet (GMAC0/GMAC1, clock_in_out=input, 25MHz CLK_MAC_OUT) - SPI-NAND via FSPI - SD card - USB OTG0 (peripheral) + OTG1 (host)
1 parent 9bd271d commit d38bf2e

2 files changed

Lines changed: 211 additions & 0 deletions

File tree

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
12461246
rk3506g-iotest-v10.dtb \
12471247
rk3506g-iotest-v10-pdm.dtb \
12481248
rk3506g-test1-v10-audio.dtb \
1249+
rk3506g-vanxoak-hd-rk3506g-evb.dtb \
12491250
rk3506j-forlinx-OK3506-S12_nand-microsd.dtb \
12501251
rk3528-demo4-ddr4-v10.dtb \
12511252
rk3528-evb1-ddr4-v10.dtb \
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
4+
* Vanxoak HD-RK3506G-EVB V1 Board
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "rk3506.dtsi"
10+
11+
/ {
12+
model = "Vanxoak HD-RK3506G-EVB V1 Board";
13+
compatible = "vanxoak,hd-rk3506g-evb", "rockchip,rk3506";
14+
15+
chosen {
16+
bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0";
17+
};
18+
19+
fiq_debugger: fiq-debugger {
20+
compatible = "rockchip,fiq-debugger";
21+
rockchip,serial-id = <0>;
22+
rockchip,wake-irq = <0>;
23+
rockchip,irq-mode-enable = <1>;
24+
rockchip,baudrate = <1500000>;
25+
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
26+
};
27+
28+
leds {
29+
compatible = "gpio-leds";
30+
status = "okay";
31+
32+
heart_led {
33+
label = "run";
34+
gpios = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
35+
linux,default-trigger = "heartbeat";
36+
};
37+
};
38+
39+
vcc12v_dc: vcc12v-dc {
40+
compatible = "regulator-fixed";
41+
regulator-name = "vcc12v_dc";
42+
regulator-always-on;
43+
regulator-boot-on;
44+
regulator-min-microvolt = <12000000>;
45+
regulator-max-microvolt = <12000000>;
46+
};
47+
48+
vcc_sys: vcc-sys {
49+
compatible = "regulator-fixed";
50+
regulator-name = "vcc_sys";
51+
regulator-always-on;
52+
regulator-boot-on;
53+
regulator-min-microvolt = <5000000>;
54+
regulator-max-microvolt = <5000000>;
55+
vin-supply = <&vcc12v_dc>;
56+
};
57+
58+
vcc3v3_stb: vcc3v3-stb {
59+
compatible = "regulator-fixed";
60+
regulator-name = "vcc3v3_stb";
61+
regulator-always-on;
62+
regulator-boot-on;
63+
regulator-min-microvolt = <3300000>;
64+
regulator-max-microvolt = <3300000>;
65+
vin-supply = <&vcc_sys>;
66+
};
67+
68+
vcc_1v8: vcc-1v8 {
69+
compatible = "regulator-fixed";
70+
regulator-name = "vcc_1v8";
71+
regulator-always-on;
72+
regulator-boot-on;
73+
regulator-min-microvolt = <1800000>;
74+
regulator-max-microvolt = <1800000>;
75+
vin-supply = <&vcc3v3_stb>;
76+
};
77+
78+
vdd_arm: vdd-arm {
79+
compatible = "regulator-fixed";
80+
regulator-name = "vdd_arm";
81+
regulator-min-microvolt = <1011000>;
82+
regulator-max-microvolt = <1011000>;
83+
regulator-always-on;
84+
regulator-boot-on;
85+
vin-supply = <&vcc_sys>;
86+
};
87+
88+
vcc_ddr: vcc-ddr {
89+
compatible = "regulator-fixed";
90+
regulator-name = "vcc_ddr";
91+
regulator-always-on;
92+
regulator-boot-on;
93+
vin-supply = <&vcc_sys>;
94+
};
95+
};
96+
97+
&cpu0 {
98+
cpu-supply = <&vdd_arm>;
99+
};
100+
101+
&fspi {
102+
status = "okay";
103+
104+
flash@0 {
105+
compatible = "spi-nand";
106+
reg = <0>;
107+
spi-max-frequency = <80000000>;
108+
spi-rx-bus-width = <4>;
109+
spi-tx-bus-width = <1>;
110+
};
111+
};
112+
113+
&mmc {
114+
max-frequency = <150000000>;
115+
supports-sd;
116+
bus-width = <4>;
117+
cd-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_LOW>;
118+
cap-sd-highspeed;
119+
disable-wp;
120+
vmmc-supply = <&vcc3v3_stb>;
121+
vqmmc-supply = <&vcc3v3_stb>;
122+
pinctrl-names = "default";
123+
pinctrl-0 = <&sdmmc_clk_pins &sdmmc_cmd_pins &sdmmc_bus4_pins>;
124+
status = "okay";
125+
};
126+
127+
&gmac0 {
128+
phy-mode = "rmii";
129+
clock_in_out = "input";
130+
snps,reset-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
131+
snps,reset-active-low;
132+
snps,reset-delays-us = <0 20000 100000>;
133+
pinctrl-names = "default";
134+
pinctrl-0 = <&eth_rmii0_miim_pins
135+
&eth_rmii0_tx_bus2_pins
136+
&eth_rmii0_rx_bus2_pins
137+
&eth_rmii0_clk_pins>;
138+
phy-handle = <&rmii_phy0>;
139+
status = "okay";
140+
};
141+
142+
&gmac1 {
143+
phy-mode = "rmii";
144+
clock_in_out = "input";
145+
snps,reset-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
146+
snps,reset-active-low;
147+
snps,reset-delays-us = <0 20000 100000>;
148+
pinctrl-names = "default";
149+
pinctrl-0 = <&eth_rmii1_miim_pins
150+
&eth_rmii1_tx_bus2_pins
151+
&eth_rmii1_rx_bus2_pins
152+
&eth_rmii1_clk_pins>;
153+
phy-handle = <&rmii_phy1>;
154+
status = "okay";
155+
};
156+
157+
&mdio0 {
158+
rmii_phy0: phy@0 {
159+
compatible = "ethernet-phy-ieee802.3-c22";
160+
reg = <0x0>;
161+
clocks = <&cru CLK_MAC_OUT>;
162+
assigned-clocks = <&cru CLK_MAC_OUT>;
163+
assigned-clock-rates = <25000000>;
164+
};
165+
};
166+
167+
&mdio1 {
168+
rmii_phy1: phy@0 {
169+
compatible = "ethernet-phy-ieee802.3-c22";
170+
reg = <0x0>;
171+
clocks = <&cru CLK_MAC_OUT>;
172+
assigned-clocks = <&cru CLK_MAC_OUT>;
173+
assigned-clock-rates = <25000000>;
174+
};
175+
};
176+
177+
&rng {
178+
status = "okay";
179+
};
180+
181+
&saradc {
182+
vref-supply = <&vcc_1v8>;
183+
status = "okay";
184+
};
185+
186+
&tsadc {
187+
status = "okay";
188+
};
189+
190+
&usb2phy {
191+
status = "okay";
192+
};
193+
194+
&u2phy_otg0 {
195+
status = "okay";
196+
};
197+
198+
&u2phy_otg1 {
199+
status = "okay";
200+
};
201+
202+
&usb20_otg0 {
203+
dr_mode = "peripheral";
204+
status = "okay";
205+
};
206+
207+
&usb20_otg1 {
208+
dr_mode = "host";
209+
status = "okay";
210+
};

0 commit comments

Comments
 (0)