1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include "rk3588s.dtsi"
8
9/ {
10	model = "Radxa ROCK 5 Model A";
11	compatible = "radxa,rock-5a", "rockchip,rk3588s";
12
13	aliases {
14		mmc0 = &sdhci;
15		serial2 = &uart2;
16	};
17
18	chosen {
19		stdout-path = "serial2:1500000n8";
20	};
21};
22
23&gmac1 {
24	clock_in_out = "output";
25	phy-handle = <&rgmii_phy1>;
26	phy-mode = "rgmii-rxid";
27	pinctrl-0 = <&gmac1_miim
28		     &gmac1_tx_bus2
29		     &gmac1_rx_bus2
30		     &gmac1_rgmii_clk
31		     &gmac1_rgmii_bus>;
32	pinctrl-names = "default";
33	tx_delay = <0x3a>;
34	status = "okay";
35};
36
37&mdio1 {
38	rgmii_phy1: ethernet-phy@1 {
39		/* RTL8211F */
40		compatible = "ethernet-phy-id001c.c916";
41		reg = <0x1>;
42		pinctrl-names = "default";
43		pinctrl-0 = <&rtl8211f_rst>;
44		reset-assert-us = <20000>;
45		reset-deassert-us = <100000>;
46		reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
47	};
48};
49
50&pinctrl {
51	rtl8211f {
52		rtl8211f_rst: rtl8211f-rst {
53			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
54		};
55	};
56};
57
58&sdhci {
59	bus-width = <8>;
60	no-sdio;
61	no-sd;
62	non-removable;
63	max-frequency = <200000000>;
64	mmc-hs400-1_8v;
65	mmc-hs400-enhanced-strobe;
66	status = "okay";
67};
68
69&uart2 {
70	pinctrl-0 = <&uart2m0_xfer>;
71	status = "okay";
72};
73