blob: 901825514f9d8eceb70f27c8bd2a64bd44b623e5 [file] [log] [blame]
Eugen Hristevb8fc6542023-07-04 22:05:12 +03001// 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";
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 rx_delay = <0x3e>;
35 status = "okay";
36};
37
38&mdio1 {
39 rgmii_phy1: ethernet-phy@1 {
40 /* RTL8211F */
41 compatible = "ethernet-phy-id001c.c916";
42 reg = <0x1>;
43 pinctrl-names = "default";
44 pinctrl-0 = <&rtl8211f_rst>;
45 reset-assert-us = <20000>;
46 reset-deassert-us = <100000>;
47 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
48 };
49};
50
51&pinctrl {
52 rtl8211f {
53 rtl8211f_rst: rtl8211f-rst {
54 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
55 };
56 };
57};
58
59&sdhci {
60 bus-width = <8>;
61 no-sdio;
62 no-sd;
63 non-removable;
64 max-frequency = <200000000>;
65 mmc-hs400-1_8v;
66 mmc-hs400-enhanced-strobe;
67 status = "okay";
68};
69
70&uart2 {
71 pinctrl-0 = <&uart2m0_xfer>;
72 status = "okay";
73};