xref: /linux/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts (revision 55d0969c451159cff86949b38c39171cab962069)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include "rk3566-radxa-zero-3.dtsi"
6
7/ {
8	model = "Radxa ZERO 3E";
9	compatible = "radxa,zero-3e", "rockchip,rk3566";
10
11	aliases {
12		ethernet0 = &gmac1;
13		mmc0 = &sdmmc0;
14	};
15};
16
17&gmac1 {
18	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
19	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
20	clock_in_out = "input";
21	phy-handle = <&rgmii_phy1>;
22	phy-mode = "rgmii-id";
23	phy-supply = <&vcc_3v3>;
24	pinctrl-names = "default";
25	pinctrl-0 = <&gmac1m1_miim
26		     &gmac1m1_tx_bus2
27		     &gmac1m1_rx_bus2
28		     &gmac1m1_rgmii_clk
29		     &gmac1m1_rgmii_bus
30		     &gmac1m1_clkinout>;
31	status = "okay";
32};
33
34&mdio1 {
35	rgmii_phy1: ethernet-phy@1 {
36		compatible = "ethernet-phy-ieee802.3-c22";
37		reg = <1>;
38		pinctrl-names = "default";
39		pinctrl-0 = <&gmac1_rstn>;
40		reset-assert-us = <20000>;
41		reset-deassert-us = <50000>;
42		reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
43	};
44};
45
46&pinctrl {
47	gmac1 {
48		gmac1_rstn: gmac1-rstn {
49			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
50		};
51	};
52};
53