xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3229-evb.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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#include "rk322x-u-boot.dtsi"
11#include <dt-bindings/input/input.h>
12
13/ {
14	model = "Rockchip RK3229 Evaluation board";
15	compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
16
17	chosen {
18		u-boot,spl-boot-order = &emmc, &sdmmc;
19	};
20
21	ext_gmac: ext_gmac {
22		compatible = "fixed-clock";
23		clock-frequency = <125000000>;
24		clock-output-names = "ext_gmac";
25		#clock-cells = <0>;
26	};
27
28	vcc_phy: vcc-phy-regulator {
29		compatible = "regulator-fixed";
30		enable-active-high;
31		regulator-name = "vcc_phy";
32		regulator-min-microvolt = <1800000>;
33		regulator-max-microvolt = <1800000>;
34		regulator-always-on;
35		regulator-boot-on;
36	};
37
38	gpio-keys {
39		u-boot,dm-spl;
40		compatible = "gpio-keys";
41		status = "okay";
42
43		volume-up {
44			u-boot,dm-spl;
45			linux,code = <KEY_VOLUMEUP>;
46			label = "Volume Up";
47			gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
48		};
49	};
50};
51
52&dmc {
53	rockchip,pctl-timing = <0x96 0xC8 0x1F3 0xF 0x8000004D 0x4 0x4E 0x6 0x3
54		0x0 0x6 0x5 0xC 0x10 0x6 0x4 0x4
55		0x5 0x4 0x200 0x3 0xA 0x40 0x0 0x1
56		0x5 0x5 0x3 0xC 0x1E 0x100 0x0 0x4
57		0x0 0x924>;
58	rockchip,phy-timing = <0x220 0x1 0x0 0x0 0x0 0x4 0x60>;
59	rockchip,sdram-params = <0x428B188 0x0 0x21 0x472 0x15
60		0 300 3 0 120>;
61};
62
63&gmac {
64	assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
65	assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
66	clock_in_out = "input";
67	phy-supply = <&vcc_phy>;
68	phy-mode = "rgmii";
69	pinctrl-names = "default";
70	pinctrl-0 = <&rgmii_pins>;
71	snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
72	snps,reset-active-low;
73	snps,reset-delays-us = <0 10000 1000000>;
74	tx_delay = <0x30>;
75	rx_delay = <0x10>;
76	status = "okay";
77};
78
79&crypto {
80	status = "okay";
81};
82
83&emmc {
84	status = "okay";
85};
86
87&nandc {
88	status = "okay";
89};
90
91&sdmmc {
92	status = "okay";
93	bus-width = <4>;
94	cap-mmc-highspeed;
95	cap-sd-highspeed;
96	card-detect-delay = <200>;
97	disable-wp;
98	num-slots = <1>;
99	supports-sd;
100};
101
102&uart2 {
103	status = "okay";
104};
105
106&u2phy0 {
107	status = "okay";
108
109	u2phy0_otg: otg-port {
110		status = "okay";
111	};
112
113	u2phy0_host: host-port {
114		status = "okay";
115	};
116};
117
118&usb20_otg {
119       status = "okay";
120};
121
122&pwm3 {
123	status = "okay";
124	compatible = "rockchip,remotectl-pwm";
125
126	ir_key1 {
127		rockchip,usercode = <0x4040>;
128		rockchip,key_table =
129			<0xf2	KEY_REPLY>,
130			<0xba	KEY_BACK>,
131			<0xf4	KEY_UP>,
132			<0xf1	KEY_DOWN>,
133			<0xef	KEY_LEFT>,
134			<0xee	KEY_RIGHT>,
135			<0xbd	KEY_HOME>,
136			<0xea	KEY_VOLUMEUP>,
137			<0xe3	KEY_VOLUMEDOWN>,
138			<0xe2	KEY_SEARCH>,
139			<0xb2	KEY_POWER>,
140			<0xbc	KEY_MUTE>,
141			<0xec	KEY_MENU>,
142			<0xbf	0x190>,
143			<0xe0	0x191>,
144			<0xe1	0x192>,
145			<0xe9	183>,
146			<0xe6	248>,
147			<0xe8	185>,
148			<0xe7	186>,
149			<0xf0	388>,
150			<0xbe	0x175>;
151	};
152
153	ir_key2 {
154		rockchip,usercode = <0xff00>;
155		rockchip,key_table =
156			<0xf9	KEY_HOME>,
157			<0xbf	KEY_BACK>,
158			<0xfb	KEY_MENU>,
159			<0xaa	KEY_REPLY>,
160			<0xb9	KEY_UP>,
161			<0xe9	KEY_DOWN>,
162			<0xb8	KEY_LEFT>,
163			<0xea	KEY_RIGHT>,
164			<0xeb	KEY_VOLUMEDOWN>,
165			<0xef	KEY_VOLUMEUP>,
166			<0xf7	KEY_MUTE>,
167			<0xe7	KEY_POWER>,
168			<0xfc	KEY_POWER>,
169			<0xa9	KEY_VOLUMEDOWN>,
170			<0xa8	KEY_VOLUMEDOWN>,
171			<0xe0	KEY_VOLUMEDOWN>,
172			<0xa5	KEY_VOLUMEDOWN>,
173			<0xab	183>,
174			<0xb7	388>,
175			<0xe8	388>,
176			<0xf8	184>,
177			<0xaf	185>,
178			<0xed	KEY_VOLUMEDOWN>,
179			<0xee	186>,
180			<0xb3	KEY_VOLUMEDOWN>,
181			<0xf1	KEY_VOLUMEDOWN>,
182			<0xf2	KEY_VOLUMEDOWN>,
183			<0xf3	KEY_SEARCH>,
184			<0xb4	KEY_VOLUMEDOWN>,
185			<0xbe	KEY_SEARCH>;
186	};
187
188	ir_key3 {
189		rockchip,usercode = <0x1dcc>;
190		rockchip,key_table =
191			<0xee	KEY_REPLY>,
192			<0xf0	KEY_BACK>,
193			<0xf8	KEY_UP>,
194			<0xbb	KEY_DOWN>,
195			<0xef	KEY_LEFT>,
196			<0xed	KEY_RIGHT>,
197			<0xfc	KEY_HOME>,
198			<0xf1	KEY_VOLUMEUP>,
199			<0xfd	KEY_VOLUMEDOWN>,
200			<0xb7	KEY_SEARCH>,
201			<0xff	KEY_POWER>,
202			<0xf3	KEY_MUTE>,
203			<0xbf	KEY_MENU>,
204			<0xf9	0x191>,
205			<0xf5	0x192>,
206			<0xb3	388>,
207			<0xbe	KEY_1>,
208			<0xba	KEY_2>,
209			<0xb2	KEY_3>,
210			<0xbd	KEY_4>,
211			<0xf9	KEY_5>,
212			<0xb1	KEY_6>,
213			<0xfc	KEY_7>,
214			<0xf8	KEY_8>,
215			<0xb0	KEY_9>,
216			<0xb6	KEY_0>,
217			<0xb5	KEY_BACKSPACE>;
218	};
219};
220