]>
Commit | Line | Data |
---|---|---|
241eff3c XZ |
1 | /* |
2 | * This file is dual-licensed: you can use it either under the terms | |
3 | * of the GPL or the X11 license, at your option. Note that this dual | |
4 | * licensing only applies to this file, and not this project as a | |
5 | * whole. | |
6 | * | |
7 | * a) This file is free software; you can redistribute it and/or | |
8 | * modify it under the terms of the GNU General Public License as | |
9 | * published by the Free Software Foundation; either version 2 of the | |
10 | * License, or (at your option) any later version. | |
11 | * | |
12 | * This file is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | * | |
17 | * Or, alternatively, | |
18 | * | |
19 | * b) Permission is hereby granted, free of charge, to any person | |
20 | * obtaining a copy of this software and associated documentation | |
21 | * files (the "Software"), to deal in the Software without | |
22 | * restriction, including without limitation the rights to use, | |
23 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
24 | * sell copies of the Software, and to permit persons to whom the | |
25 | * Software is furnished to do so, subject to the following | |
26 | * conditions: | |
27 | * | |
28 | * The above copyright notice and this permission notice shall be | |
29 | * included in all copies or substantial portions of the Software. | |
30 | * | |
31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
38 | * OTHER DEALINGS IN THE SOFTWARE. | |
39 | */ | |
40 | ||
41 | /dts-v1/; | |
42 | ||
970630e7 | 43 | #include "rk3229.dtsi" |
241eff3c XZ |
44 | |
45 | / { | |
46 | model = "Rockchip RK3229 Evaluation board"; | |
47 | compatible = "rockchip,rk3229-evb", "rockchip,rk3229"; | |
48 | ||
09fbc4a0 | 49 | memory@60000000 { |
241eff3c XZ |
50 | device_type = "memory"; |
51 | reg = <0x60000000 0x40000000>; | |
52 | }; | |
53 | ||
76f7887e FW |
54 | dc_12v: dc-12v-regulator { |
55 | compatible = "regulator-fixed"; | |
56 | regulator-name = "dc_12v"; | |
57 | regulator-always-on; | |
58 | regulator-boot-on; | |
59 | regulator-min-microvolt = <12000000>; | |
60 | regulator-max-microvolt = <12000000>; | |
61 | }; | |
62 | ||
241eff3c XZ |
63 | ext_gmac: ext_gmac { |
64 | compatible = "fixed-clock"; | |
65 | clock-frequency = <125000000>; | |
66 | clock-output-names = "ext_gmac"; | |
67 | #clock-cells = <0>; | |
68 | }; | |
69 | ||
81b61d37 WW |
70 | vcc_host: vcc-host-regulator { |
71 | compatible = "regulator-fixed"; | |
72 | enable-active-high; | |
73 | gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; | |
74 | pinctrl-names = "default"; | |
75 | pinctrl-0 = <&host_vbus_drv>; | |
76 | regulator-name = "vcc_host"; | |
77 | regulator-always-on; | |
78 | regulator-boot-on; | |
76f7887e | 79 | vin-supply = <&vcc_sys>; |
81b61d37 WW |
80 | }; |
81 | ||
241eff3c XZ |
82 | vcc_phy: vcc-phy-regulator { |
83 | compatible = "regulator-fixed"; | |
84 | enable-active-high; | |
85 | regulator-name = "vcc_phy"; | |
86 | regulator-min-microvolt = <1800000>; | |
87 | regulator-max-microvolt = <1800000>; | |
88 | regulator-always-on; | |
89 | regulator-boot-on; | |
76f7887e FW |
90 | vin-supply = <&vccio_1v8>; |
91 | }; | |
92 | ||
93 | vcc_sys: vcc-sys-regulator { | |
94 | compatible = "regulator-fixed"; | |
95 | regulator-name = "vcc_sys"; | |
96 | regulator-always-on; | |
97 | regulator-boot-on; | |
98 | regulator-min-microvolt = <5000000>; | |
99 | regulator-max-microvolt = <5000000>; | |
100 | vin-supply = <&dc_12v>; | |
101 | }; | |
102 | ||
103 | vccio_1v8: vccio-1v8-regulator { | |
104 | compatible = "regulator-fixed"; | |
105 | regulator-name = "vccio_1v8"; | |
106 | regulator-min-microvolt = <1800000>; | |
107 | regulator-max-microvolt = <1800000>; | |
108 | regulator-always-on; | |
109 | vin-supply = <&vcc_sys>; | |
110 | }; | |
111 | ||
112 | vccio_3v3: vccio-3v3-regulator { | |
113 | compatible = "regulator-fixed"; | |
114 | regulator-name = "vccio_3v3"; | |
115 | regulator-min-microvolt = <3300000>; | |
116 | regulator-max-microvolt = <3300000>; | |
117 | regulator-always-on; | |
118 | vin-supply = <&vcc_sys>; | |
119 | }; | |
120 | ||
121 | vdd_arm: vdd-arm-regulator { | |
122 | compatible = "pwm-regulator"; | |
123 | pwms = <&pwm1 0 25000 1>; | |
124 | pwm-supply = <&vcc_sys>; | |
125 | regulator-name = "vdd_arm"; | |
126 | regulator-min-microvolt = <950000>; | |
127 | regulator-max-microvolt = <1400000>; | |
128 | regulator-always-on; | |
129 | regulator-boot-on; | |
130 | }; | |
131 | ||
132 | vdd_log: vdd-log-regulator { | |
133 | compatible = "pwm-regulator"; | |
134 | pwms = <&pwm2 0 25000 1>; | |
135 | pwm-supply = <&vcc_sys>; | |
136 | regulator-name = "vdd_log"; | |
137 | regulator-min-microvolt = <1000000>; | |
138 | regulator-max-microvolt = <1300000>; | |
139 | regulator-always-on; | |
140 | regulator-boot-on; | |
241eff3c XZ |
141 | }; |
142 | }; | |
143 | ||
2e1b0dad FX |
144 | &cpu0 { |
145 | cpu-supply = <&vdd_arm>; | |
146 | }; | |
147 | ||
148 | &cpu1 { | |
149 | cpu-supply = <&vdd_arm>; | |
150 | }; | |
151 | ||
152 | &cpu2 { | |
153 | cpu-supply = <&vdd_arm>; | |
154 | }; | |
155 | ||
156 | &cpu3 { | |
157 | cpu-supply = <&vdd_arm>; | |
158 | }; | |
159 | ||
487f7d00 FW |
160 | &emmc { |
161 | cap-mmc-highspeed; | |
162 | disable-wp; | |
163 | non-removable; | |
164 | status = "okay"; | |
165 | }; | |
166 | ||
241eff3c XZ |
167 | &gmac { |
168 | assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>; | |
169 | assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>; | |
170 | clock_in_out = "input"; | |
171 | phy-supply = <&vcc_phy>; | |
172 | phy-mode = "rgmii"; | |
173 | pinctrl-names = "default"; | |
174 | pinctrl-0 = <&rgmii_pins>; | |
e9e79d53 | 175 | snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>; |
241eff3c XZ |
176 | snps,reset-active-low; |
177 | snps,reset-delays-us = <0 10000 1000000>; | |
178 | tx_delay = <0x30>; | |
179 | rx_delay = <0x10>; | |
180 | status = "okay"; | |
181 | }; | |
182 | ||
1d5ca51c DW |
183 | &io_domains { |
184 | status = "okay"; | |
185 | ||
186 | vccio1-supply = <&vccio_3v3>; | |
187 | vccio2-supply = <&vccio_1v8>; | |
188 | vccio4-supply = <&vccio_3v3>; | |
189 | }; | |
190 | ||
81b61d37 WW |
191 | &pinctrl { |
192 | usb { | |
193 | host_vbus_drv: host-vbus-drv { | |
194 | rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; | |
195 | }; | |
196 | }; | |
197 | }; | |
198 | ||
76f7887e FW |
199 | &pwm1 { |
200 | status = "okay"; | |
201 | }; | |
202 | ||
203 | &pwm2 { | |
204 | status = "okay"; | |
205 | }; | |
206 | ||
241eff3c XZ |
207 | &uart2 { |
208 | status = "okay"; | |
209 | }; | |
81b61d37 WW |
210 | |
211 | &u2phy0 { | |
212 | status = "okay"; | |
213 | ||
214 | u2phy0_otg: otg-port { | |
215 | status = "okay"; | |
216 | }; | |
217 | ||
218 | u2phy0_host: host-port { | |
219 | phy-supply = <&vcc_host>; | |
220 | status = "okay"; | |
221 | }; | |
222 | }; | |
223 | ||
224 | &u2phy1 { | |
225 | status = "okay"; | |
226 | ||
227 | u2phy1_otg: otg-port { | |
228 | phy-supply = <&vcc_host>; | |
229 | status = "okay"; | |
230 | }; | |
231 | ||
232 | u2phy1_host: host-port { | |
233 | phy-supply = <&vcc_host>; | |
234 | status = "okay"; | |
235 | }; | |
236 | }; | |
237 | ||
238 | &usb_host0_ehci { | |
239 | status = "okay"; | |
240 | }; | |
241 | ||
242 | &usb_host0_ohci { | |
243 | status = "okay"; | |
244 | }; | |
245 | ||
246 | &usb_host1_ehci { | |
247 | status = "okay"; | |
248 | }; | |
249 | ||
250 | &usb_host1_ohci { | |
251 | status = "okay"; | |
252 | }; | |
253 | ||
254 | &usb_host2_ehci { | |
255 | status = "okay"; | |
256 | }; | |
257 | ||
258 | &usb_host2_ohci { | |
259 | status = "okay"; | |
260 | }; | |
261 | ||
262 | &usb_otg { | |
263 | status = "okay"; | |
264 | }; |