1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/pinctrl/rockchip.h>
11#include "rk3588.dtsi"
12
13/ {
14	model = "Rockchip RK3588 EVB1 V10 Board";
15	compatible = "rockchip,rk3588-evb1-v10", "rockchip,rk3588";
16
17	aliases {
18		mmc0 = &sdhci;
19		serial2 = &uart2;
20	};
21
22	chosen {
23		stdout-path = "serial2:1500000n8";
24	};
25
26	backlight: backlight {
27		compatible = "pwm-backlight";
28		power-supply = <&vcc12v_dcin>;
29		pwms = <&pwm2 0 25000 0>;
30	};
31
32	vcc12v_dcin: vcc12v-dcin-regulator {
33		compatible = "regulator-fixed";
34		regulator-name = "vcc12v_dcin";
35		regulator-always-on;
36		regulator-boot-on;
37		regulator-min-microvolt = <12000000>;
38		regulator-max-microvolt = <12000000>;
39	};
40
41	vcc5v0_sys: vcc5v0-sys-regulator {
42		compatible = "regulator-fixed";
43		regulator-name = "vcc5v0_sys";
44		regulator-always-on;
45		regulator-boot-on;
46		regulator-min-microvolt = <5000000>;
47		regulator-max-microvolt = <5000000>;
48		vin-supply = <&vcc12v_dcin>;
49	};
50};
51
52&gmac0 {
53	clock_in_out = "output";
54	phy-handle = <&rgmii_phy>;
55	phy-mode = "rgmii-rxid";
56	pinctrl-0 = <&gmac0_miim
57		     &gmac0_tx_bus2
58		     &gmac0_rx_bus2
59		     &gmac0_rgmii_clk
60		     &gmac0_rgmii_bus>;
61	pinctrl-names = "default";
62	rx_delay = <0x00>;
63	tx_delay = <0x43>;
64	status = "okay";
65};
66
67&i2c2 {
68	status = "okay";
69
70	hym8563: rtc@51 {
71		compatible = "haoyu,hym8563";
72		reg = <0x51>;
73		#clock-cells = <0>;
74		clock-output-names = "hym8563";
75		pinctrl-names = "default";
76		pinctrl-0 = <&hym8563_int>;
77		interrupt-parent = <&gpio0>;
78		interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>;
79		wakeup-source;
80	};
81};
82
83&mdio0 {
84	rgmii_phy: ethernet-phy@1 {
85		/* RTL8211F */
86		compatible = "ethernet-phy-id001c.c916";
87		reg = <0x1>;
88		pinctrl-names = "default";
89		pinctrl-0 = <&rtl8211f_rst>;
90		reset-assert-us = <20000>;
91		reset-deassert-us = <100000>;
92		reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
93	};
94};
95
96&pinctrl {
97	rtl8211f {
98		rtl8211f_rst: rtl8211f-rst {
99			rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
100		};
101
102	};
103
104	hym8563 {
105		hym8563_int: hym8563-int {
106			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
107		};
108	};
109};
110
111&pwm2 {
112	status = "okay";
113};
114
115&sdhci {
116	bus-width = <8>;
117	no-sdio;
118	no-sd;
119	non-removable;
120	max-frequency = <200000000>;
121	mmc-hs400-1_8v;
122	mmc-hs400-enhanced-strobe;
123	status = "okay";
124};
125
126&uart2 {
127	pinctrl-0 = <&uart2m0_xfer>;
128	status = "okay";
129};
130