xref: /openbmc/u-boot/arch/arm/dts/rk3229-evb.dts (revision 9d466f2f)
1/*
2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
3 *
4 * SPDX-License-Identifier:     GPL-2.0+ X11
5 */
6
7/dts-v1/;
8
9#include "rk322x.dtsi"
10
11/ {
12	model = "Rockchip RK3229 Evaluation board";
13	compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
14
15	chosen {
16		stdout-path = &uart2;
17	};
18
19	memory@60000000 {
20		device_type = "memory";
21		reg = <0x60000000 0x40000000>;
22	};
23
24	ext_gmac: ext_gmac {
25		compatible = "fixed-clock";
26		clock-frequency = <125000000>;
27		clock-output-names = "ext_gmac";
28		#clock-cells = <0>;
29	};
30
31	vcc_phy: vcc-phy-regulator {
32		compatible = "regulator-fixed";
33		enable-active-high;
34		regulator-name = "vcc_phy";
35		regulator-min-microvolt = <1800000>;
36		regulator-max-microvolt = <1800000>;
37		regulator-always-on;
38		regulator-boot-on;
39	};
40};
41
42&dmc {
43	rockchip,pctl-timing = <0x96 0xC8 0x1F3 0xF 0x8000004D 0x4 0x4E 0x6 0x3
44		0x0 0x6 0x5 0xC 0x10 0x6 0x4 0x4
45		0x5 0x4 0x200 0x3 0xA 0x40 0x0 0x1
46		0x5 0x5 0x3 0xC 0x1E 0x100 0x0 0x4
47		0x0 0x924>;
48	rockchip,phy-timing = <0x220 0x1 0x0 0x0 0x0 0x4 0x60>;
49	rockchip,sdram-params = <0x428B188 0x0 0x21 0x472 0x15
50		0 300 3 0 120>;
51};
52
53&gmac {
54	assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
55	assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
56	clock_in_out = "input";
57	phy-supply = <&vcc_phy>;
58	phy-mode = "rgmii";
59	pinctrl-names = "default";
60	pinctrl-0 = <&rgmii_pins>;
61	snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
62	snps,reset-active-low;
63	snps,reset-delays-us = <0 10000 1000000>;
64	tx_delay = <0x30>;
65	rx_delay = <0x10>;
66	status = "okay";
67};
68
69&emmc {
70	u-boot,dm-pre-reloc;
71	status = "okay";
72};
73
74&sdmmc {
75	status = "okay";
76	bus-width = <4>;
77	cap-mmc-highspeed;
78	cap-sd-highspeed;
79	card-detect-delay = <200>;
80	disable-wp;
81	num-slots = <1>;
82	supports-sd;
83};
84
85&uart2 {
86	status = "okay";
87};
88
89&usb20_otg {
90       status = "okay";
91};
92