blob: 350497a3ca8623d51252577c38994d40bf11851e [file] [log] [blame]
Klaus Gogerfce152a62017-12-15 12:44:27 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Xing Zheng241eff32016-06-22 11:16:53 +08002
3/dts-v1/;
4
Frank Wangdea19ca2017-07-05 16:33:10 +08005#include <dt-bindings/input/input.h>
Frank Wang970630e2017-06-22 18:29:57 +08006#include "rk3229.dtsi"
Xing Zheng241eff32016-06-22 11:16:53 +08007
8/ {
9 model = "Rockchip RK3229 Evaluation board";
10 compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
11
Javier Martinez Canillas09fbc4a2016-09-09 10:01:07 -040012 memory@60000000 {
Xing Zheng241eff32016-06-22 11:16:53 +080013 device_type = "memory";
14 reg = <0x60000000 0x40000000>;
15 };
16
Frank Wang76f78872017-07-05 16:30:16 +080017 dc_12v: dc-12v-regulator {
18 compatible = "regulator-fixed";
19 regulator-name = "dc_12v";
20 regulator-always-on;
21 regulator-boot-on;
22 regulator-min-microvolt = <12000000>;
23 regulator-max-microvolt = <12000000>;
24 };
25
Xing Zheng241eff32016-06-22 11:16:53 +080026 ext_gmac: ext_gmac {
27 compatible = "fixed-clock";
28 clock-frequency = <125000000>;
29 clock-output-names = "ext_gmac";
30 #clock-cells = <0>;
31 };
32
William Wu81b61d32017-06-02 15:04:25 +080033 vcc_host: vcc-host-regulator {
34 compatible = "regulator-fixed";
35 enable-active-high;
36 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&host_vbus_drv>;
39 regulator-name = "vcc_host";
40 regulator-always-on;
41 regulator-boot-on;
Frank Wang76f78872017-07-05 16:30:16 +080042 vin-supply = <&vcc_sys>;
William Wu81b61d32017-06-02 15:04:25 +080043 };
44
Xing Zheng241eff32016-06-22 11:16:53 +080045 vcc_phy: vcc-phy-regulator {
46 compatible = "regulator-fixed";
47 enable-active-high;
48 regulator-name = "vcc_phy";
49 regulator-min-microvolt = <1800000>;
50 regulator-max-microvolt = <1800000>;
51 regulator-always-on;
52 regulator-boot-on;
Frank Wang76f78872017-07-05 16:30:16 +080053 vin-supply = <&vccio_1v8>;
54 };
55
56 vcc_sys: vcc-sys-regulator {
57 compatible = "regulator-fixed";
58 regulator-name = "vcc_sys";
59 regulator-always-on;
60 regulator-boot-on;
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
63 vin-supply = <&dc_12v>;
64 };
65
66 vccio_1v8: vccio-1v8-regulator {
67 compatible = "regulator-fixed";
68 regulator-name = "vccio_1v8";
69 regulator-min-microvolt = <1800000>;
70 regulator-max-microvolt = <1800000>;
71 regulator-always-on;
72 vin-supply = <&vcc_sys>;
73 };
74
75 vccio_3v3: vccio-3v3-regulator {
76 compatible = "regulator-fixed";
77 regulator-name = "vccio_3v3";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
80 regulator-always-on;
81 vin-supply = <&vcc_sys>;
82 };
83
84 vdd_arm: vdd-arm-regulator {
85 compatible = "pwm-regulator";
86 pwms = <&pwm1 0 25000 1>;
87 pwm-supply = <&vcc_sys>;
88 regulator-name = "vdd_arm";
89 regulator-min-microvolt = <950000>;
90 regulator-max-microvolt = <1400000>;
91 regulator-always-on;
92 regulator-boot-on;
93 };
94
95 vdd_log: vdd-log-regulator {
96 compatible = "pwm-regulator";
97 pwms = <&pwm2 0 25000 1>;
98 pwm-supply = <&vcc_sys>;
99 regulator-name = "vdd_log";
100 regulator-min-microvolt = <1000000>;
101 regulator-max-microvolt = <1300000>;
102 regulator-always-on;
103 regulator-boot-on;
Xing Zheng241eff32016-06-22 11:16:53 +0800104 };
Frank Wangdea19ca2017-07-05 16:33:10 +0800105
106 gpio_keys {
107 compatible = "gpio-keys";
108 autorepeat;
109 pinctrl-names = "default";
110 pinctrl-0 = <&pwr_key>;
111
112 power_key: power-key {
113 label = "GPIO Key Power";
114 gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_POWER>;
116 debounce-interval = <100>;
117 wakeup-source;
118 };
119 };
Xing Zheng241eff32016-06-22 11:16:53 +0800120};
121
Finley Xiao2e1b0da2017-07-05 16:30:17 +0800122&cpu0 {
123 cpu-supply = <&vdd_arm>;
124};
125
126&cpu1 {
127 cpu-supply = <&vdd_arm>;
128};
129
130&cpu2 {
131 cpu-supply = <&vdd_arm>;
132};
133
134&cpu3 {
135 cpu-supply = <&vdd_arm>;
136};
137
Frank Wang487f7d02017-07-05 16:30:19 +0800138&emmc {
139 cap-mmc-highspeed;
Frank Wang487f7d02017-07-05 16:30:19 +0800140 non-removable;
141 status = "okay";
142};
143
Xing Zheng241eff32016-06-22 11:16:53 +0800144&gmac {
145 assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
146 assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
147 clock_in_out = "input";
148 phy-supply = <&vcc_phy>;
149 phy-mode = "rgmii";
150 pinctrl-names = "default";
151 pinctrl-0 = <&rgmii_pins>;
Andy Yane9e79d52016-10-22 20:54:55 +0800152 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
Xing Zheng241eff32016-06-22 11:16:53 +0800153 snps,reset-active-low;
154 snps,reset-delays-us = <0 10000 1000000>;
155 tx_delay = <0x30>;
156 rx_delay = <0x10>;
157 status = "okay";
158};
159
David Wu1d5ca512017-07-05 16:30:18 +0800160&io_domains {
161 status = "okay";
162
163 vccio1-supply = <&vccio_3v3>;
164 vccio2-supply = <&vccio_1v8>;
165 vccio4-supply = <&vccio_3v3>;
166};
167
William Wu81b61d32017-06-02 15:04:25 +0800168&pinctrl {
Frank Wangdea19ca2017-07-05 16:33:10 +0800169 keys {
170 pwr_key: pwr-key {
171 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
172 };
173 };
174
William Wu81b61d32017-06-02 15:04:25 +0800175 usb {
176 host_vbus_drv: host-vbus-drv {
177 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
178 };
179 };
180};
181
Frank Wang76f78872017-07-05 16:30:16 +0800182&pwm1 {
183 status = "okay";
184};
185
186&pwm2 {
187 status = "okay";
188};
189
Frank Wangd46c8ef2017-07-05 16:32:24 +0800190&tsadc {
191 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
192 status = "okay";
193};
194
Xing Zheng241eff32016-06-22 11:16:53 +0800195&uart2 {
196 status = "okay";
197};
William Wu81b61d32017-06-02 15:04:25 +0800198
199&u2phy0 {
200 status = "okay";
201
202 u2phy0_otg: otg-port {
203 status = "okay";
204 };
205
206 u2phy0_host: host-port {
207 phy-supply = <&vcc_host>;
208 status = "okay";
209 };
210};
211
212&u2phy1 {
213 status = "okay";
214
215 u2phy1_otg: otg-port {
216 phy-supply = <&vcc_host>;
217 status = "okay";
218 };
219
220 u2phy1_host: host-port {
221 phy-supply = <&vcc_host>;
222 status = "okay";
223 };
224};
225
226&usb_host0_ehci {
227 status = "okay";
228};
229
230&usb_host0_ohci {
231 status = "okay";
232};
233
234&usb_host1_ehci {
235 status = "okay";
236};
237
238&usb_host1_ohci {
239 status = "okay";
240};
241
242&usb_host2_ehci {
243 status = "okay";
244};
245
246&usb_host2_ohci {
247 status = "okay";
248};
249
250&usb_otg {
251 status = "okay";
252};