]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/rk3229-evb.dts
Merge tag 'mips_fixes_5.1_1' into mips-next
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / rk3229-evb.dts
CommitLineData
fce152a6 1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
241eff3c
XZ
2
3/dts-v1/;
4
dea19ca2 5#include <dt-bindings/input/input.h>
970630e7 6#include "rk3229.dtsi"
241eff3c
XZ
7
8/ {
9 model = "Rockchip RK3229 Evaluation board";
10 compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
11
09fbc4a0 12 memory@60000000 {
241eff3c
XZ
13 device_type = "memory";
14 reg = <0x60000000 0x40000000>;
15 };
16
76f7887e
FW
17 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
241eff3c
XZ
26 ext_gmac: ext_gmac {
27 compatible = "fixed-clock";
28 clock-frequency = <125000000>;
29 clock-output-names = "ext_gmac";
30 #clock-cells = <0>;
31 };
32
81b61d37
WW
33 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;
76f7887e 42 vin-supply = <&vcc_sys>;
81b61d37
WW
43 };
44
241eff3c
XZ
45 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;
76f7887e
FW
53 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;
241eff3c 104 };
dea19ca2
FW
105
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 };
241eff3c
XZ
120};
121
2e1b0dad
FX
122&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
487f7d00
FW
138&emmc {
139 cap-mmc-highspeed;
487f7d00
FW
140 non-removable;
141 status = "okay";
142};
143
241eff3c
XZ
144&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>;
e9e79d53 152 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
241eff3c
XZ
153 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
1d5ca51c
DW
160&io_domains {
161 status = "okay";
162
163 vccio1-supply = <&vccio_3v3>;
164 vccio2-supply = <&vccio_1v8>;
165 vccio4-supply = <&vccio_3v3>;
166};
167
81b61d37 168&pinctrl {
dea19ca2
FW
169 keys {
170 pwr_key: pwr-key {
171 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
172 };
173 };
174
81b61d37
WW
175 usb {
176 host_vbus_drv: host-vbus-drv {
177 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
178 };
179 };
180};
181
76f7887e
FW
182&pwm1 {
183 status = "okay";
184};
185
186&pwm2 {
187 status = "okay";
188};
189
d46c8ef9
FW
190&tsadc {
191 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
192 status = "okay";
193};
194
241eff3c
XZ
195&uart2 {
196 status = "okay";
197};
81b61d37
WW
198
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};