xref: /linux/arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts (revision 0f048c878ee32a4259dbf28e0ad8fd0b71ee0085)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include "rk3528-rock-2.dtsi"
6
7/ {
8	model = "Radxa ROCK 2A";
9	compatible = "radxa,rock-2a", "rockchip,rk3528";
10
11	aliases {
12		ethernet0 = &gmac1;
13	};
14
15	vcc5v0_usb30_otg: regulator-5v0-vcc-usb30-otg {
16		compatible = "regulator-fixed";
17		enable-active-high;
18		gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_HIGH>;
19		pinctrl-names = "default";
20		pinctrl-0 = <&usb_otg_en>;
21		regulator-name = "vcc5v0_usb30_otg";
22		regulator-min-microvolt = <5000000>;
23		regulator-max-microvolt = <5000000>;
24		vin-supply = <&vcc5v0_sys>;
25	};
26};
27
28&gmac1 {
29	clock_in_out = "output";
30	phy-handle = <&rgmii_phy>;
31	phy-mode = "rgmii-id";
32	phy-supply = <&vcc_3v3>;
33	pinctrl-names = "default";
34	pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>,
35		    <&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>;
36	status = "okay";
37};
38
39&leds {
40	pinctrl-names = "default";
41	pinctrl-0 = <&state_led_b>, <&sys_led_g>;
42
43	led-1 {
44		color = <LED_COLOR_ID_GREEN>;
45		default-state = "on";
46		function = LED_FUNCTION_STATUS;
47		gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
48		linux,default-trigger = "default-on";
49	};
50};
51
52&mdio1 {
53	rgmii_phy: ethernet-phy@1 {
54		compatible = "ethernet-phy-ieee802.3-c22";
55		reg = <0x1>;
56		pinctrl-names = "default";
57		pinctrl-0 = <&gmac1_rstn_l>;
58		reset-assert-us = <20000>;
59		reset-deassert-us = <100000>;
60		reset-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
61	};
62};
63
64&pinctrl {
65	ethernet {
66		gmac1_rstn_l: gmac1-rstn-l {
67			rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
68		};
69	};
70
71	leds {
72		sys_led_g: sys-led-g {
73			rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
74		};
75	};
76
77	usb {
78		usb_otg_en: usb-otg-en {
79			rockchip,pins = <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
80		};
81	};
82};
83