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