Loading...
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
4 */
5
6/dts-v1/;
7#include <dt-bindings/input/input.h>
8#include "rk3066a.dtsi"
9
10/ {
11 model = "Rayeager PX2";
12 compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
13
14 aliases {
15 mmc0 = &mmc0;
16 mmc1 = &mmc1;
17 mmc2 = &emmc;
18 };
19
20 memory@60000000 {
21 device_type = "memory";
22 reg = <0x60000000 0x40000000>;
23 };
24
25 ir: ir-receiver {
26 compatible = "gpio-ir-receiver";
27 gpios = <&gpio6 RK_PA1 GPIO_ACTIVE_LOW>;
28 pinctrl-names = "default";
29 pinctrl-0 = <&ir_int>;
30 };
31
32 keys: gpio-keys {
33 compatible = "gpio-keys";
34
35 key-power {
36 wakeup-source;
37 gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>;
38 label = "GPIO Power";
39 linux,code = <KEY_POWER>;
40 pinctrl-names = "default";
41 pinctrl-0 = <&pwr_key>;
42 };
43 };
44
45 vdd_log: vdd-log {
46 compatible = "pwm-regulator";
47 pwms = <&pwm3 0 1000>;
48 regulator-name = "vdd_log";
49 regulator-min-microvolt = <1200000>;
50 regulator-max-microvolt = <1200000>;
51 regulator-always-on;
52 voltage-table = <1000000 100>,
53 <1200000 42>;
54 status = "okay";
55 };
56
57 vsys: vsys-regulator {
58 compatible = "regulator-fixed";
59 regulator-name = "vsys";
60 regulator-min-microvolt = <5000000>;
61 regulator-max-microvolt = <5000000>;
62 regulator-always-on;
63 regulator-boot-on;
64 };
65
66 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
67 vcc_stdby: stdby-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "5v_stdby";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
72 regulator-always-on;
73 regulator-boot-on;
74 };
75
76 vcc_emmc: emmc-regulator {
77 compatible = "regulator-fixed";
78 regulator-name = "emmc_vccq";
79 regulator-min-microvolt = <3000000>;
80 regulator-max-microvolt = <3000000>;
81 vin-supply = <&vsys>;
82 };
83
84 vcc_sata: sata-regulator {
85 compatible = "regulator-fixed";
86 enable-active-high;
87 gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&sata_pwr>;
90 regulator-name = "usb_5v";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
93 regulator-always-on;
94 vin-supply = <&vcc_stdby>;
95 };
96
97 vcc_sd: sdmmc-regulator {
98 compatible = "regulator-fixed";
99 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&sdmmc_pwr>;
102 regulator-name = "vcc_sd";
103 regulator-min-microvolt = <3300000>;
104 regulator-max-microvolt = <3300000>;
105 startup-delay-us = <100000>;
106 vin-supply = <&vcc_io>;
107 };
108
109 vcc_host: usb-host-regulator {
110 compatible = "regulator-fixed";
111 enable-active-high;
112 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&host_drv>;
115 regulator-name = "host-pwr";
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
118 regulator-always-on;
119 vin-supply = <&vcc_stdby>;
120 };
121
122 vcc_otg: usb-otg-regulator {
123 compatible = "regulator-fixed";
124 enable-active-high;
125 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&otg_drv>;
128 regulator-name = "vcc_otg";
129 regulator-min-microvolt = <5000000>;
130 regulator-max-microvolt = <5000000>;
131 regulator-always-on;
132 vin-supply = <&vcc_stdby>;
133 };
134};
135
136&cpu0 {
137 cpu-supply = <&vdd_arm>;
138};
139
140&cpu1 {
141 cpu-supply = <&vdd_arm>;
142};
143
144&emac {
145 phy = <&phy0>;
146 phy-supply = <&vcc_rmii>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
149 status = "okay";
150
151 mdio {
152 #address-cells = <1>;
153 #size-cells = <0>;
154
155 phy0: ethernet-phy@0 {
156 reg = <0>;
157 reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
158 };
159 };
160};
161
162&emmc {
163 bus-width = <8>;
164 cap-mmc-highspeed;
165 non-removable;
166 pinctrl-names = "default";
167 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
168 vmmc-supply = <&vcc_emmc>;
169 vqmmc-supply = <&vcc_emmc>;
170 status = "okay";
171};
172
173&i2c0 {
174 clock-frequency = <400000>;
175 status = "okay";
176
177 ak8963: ak8963@d {
178 compatible = "asahi-kasei,ak8975";
179 reg = <0x0d>;
180 interrupt-parent = <&gpio4>;
181 interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&comp_int>;
184 };
185
186 mma8452: mma8452@1d {
187 compatible = "fsl,mma8452";
188 reg = <0x1d>;
189 interrupt-parent = <&gpio4>;
190 interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&gsensor_int>;
193 };
194};
195
196&i2c1 {
197 clock-frequency = <400000>;
198 status = "okay";
199
200 tps: tps@2d {
201 reg = <0x2d>;
202 interrupt-parent = <&gpio6>;
203 interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
206
207 vcc1-supply = <&vsys>;
208 vcc2-supply = <&vsys>;
209 vcc3-supply = <&vsys>;
210 vcc4-supply = <&vsys>;
211 vcc5-supply = <&vcc_io>;
212 vcc6-supply = <&vcc_io>;
213 vcc7-supply = <&vsys>;
214 vccio-supply = <&vsys>;
215
216 regulators {
217 vcc_rtc: regulator@0 {
218 regulator-name = "vcc_rtc";
219 regulator-always-on;
220 };
221
222 vcc_io: regulator@1 {
223 regulator-name = "vcc_io";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-always-on;
227 };
228
229 vdd_arm: regulator@2 {
230 regulator-name = "vdd_arm";
231 regulator-min-microvolt = <600000>;
232 regulator-max-microvolt = <1500000>;
233 regulator-always-on;
234 regulator-boot-on;
235 };
236
237 vcc_ddr: regulator@3 {
238 regulator-name = "vcc_ddr";
239 regulator-min-microvolt = <600000>;
240 regulator-max-microvolt = <1500000>;
241 regulator-always-on;
242 regulator-boot-on;
243 };
244
245 vcc18: regulator@5 {
246 regulator-name = "vcc18";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
249 regulator-always-on;
250 };
251
252 vdd_11: regulator@6 {
253 regulator-name = "vdd_11";
254 regulator-min-microvolt = <1100000>;
255 regulator-max-microvolt = <1100000>;
256 regulator-always-on;
257 };
258
259 vcc_25: regulator@7 {
260 regulator-name = "vcc_25";
261 regulator-min-microvolt = <2500000>;
262 regulator-max-microvolt = <2500000>;
263 regulator-always-on;
264 };
265
266 vccio_wl: regulator@8 {
267 regulator-name = "vccio_wl";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
270 };
271
272 vcc25_hdmi: regulator@9 {
273 regulator-name = "vcc25_hdmi";
274 regulator-min-microvolt = <2500000>;
275 regulator-max-microvolt = <2500000>;
276 };
277
278 vcca_33: regulator@10 {
279 regulator-name = "vcca_33";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
282 };
283
284 vcc_rmii: regulator@11 {
285 regulator-name = "vcc_rmii";
286 regulator-min-microvolt = <3300000>;
287 regulator-max-microvolt = <3300000>;
288 };
289
290 vcc28_cif: regulator@12 {
291 regulator-name = "vcc28_cif";
292 regulator-min-microvolt = <2800000>;
293 regulator-max-microvolt = <2800000>;
294 };
295 };
296 };
297};
298
299#include "tps65910.dtsi"
300
301&i2c2 {
302 status = "okay";
303};
304
305&i2c3 {
306 status = "okay";
307};
308
309&i2c4 {
310 status = "okay";
311};
312
313&mmc0 {
314 bus-width = <4>;
315 disable-wp;
316 pinctrl-names = "default";
317 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
318 vmmc-supply = <&vcc_sd>;
319 cap-mmc-highspeed;
320 cap-sd-highspeed;
321 status = "okay";
322};
323
324&mmc1 {
325 bus-width = <4>;
326 non-removable;
327 pinctrl-names = "default";
328 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
329 vmmc-supply = <&vccio_wl>;
330 status = "okay";
331};
332
333&pinctrl {
334 pcfg_output_high: pcfg-output-high {
335 output-high;
336 };
337
338 ak8963 {
339 comp_int: comp-int {
340 rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_default>;
341 };
342 };
343
344 emac {
345 rmii_rst: rmii-rst {
346 rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_output_high>;
347 };
348 };
349
350 ir {
351 ir_int: ir-int {
352 rockchip,pins = <6 RK_PA1 RK_FUNC_GPIO &pcfg_pull_default>;
353 };
354 };
355
356 keys {
357 pwr_key: pwr-key {
358 rockchip,pins = <6 RK_PA2 RK_FUNC_GPIO &pcfg_pull_default>;
359 };
360 };
361
362 mma8452 {
363 gsensor_int: gsensor-int {
364 rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_default>;
365 };
366 };
367
368 mmc {
369 sdmmc_pwr: sdmmc-pwr {
370 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
371 };
372 };
373
374 usb_host {
375 host_drv: host-drv {
376 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
377 };
378
379 hub_rst: hub-rst {
380 rockchip,pins = <1 RK_PD7 RK_FUNC_GPIO &pcfg_output_high>;
381 };
382
383 sata_pwr: sata-pwr {
384 rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_default>;
385 };
386
387 sata_reset: sata-reset {
388 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_high>;
389 };
390 };
391
392 usb_otg {
393 otg_drv: otg-drv {
394 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
395 };
396 };
397
398 tps {
399 pmic_int: pmic-int {
400 rockchip,pins = <6 RK_PA4 RK_FUNC_GPIO &pcfg_pull_default>;
401 };
402
403 pwr_hold: pwr-hold {
404 rockchip,pins = <6 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
405 };
406 };
407};
408
409&pwm1 {
410 status = "okay";
411};
412
413&pwm2 {
414 status = "okay";
415};
416
417&pwm3 {
418 status = "okay";
419};
420
421&saradc {
422 vref-supply = <&vcc_25>;
423 status = "okay";
424};
425
426&spi0 {
427 status = "okay";
428};
429
430&uart0 {
431 pinctrl-names = "default";
432 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
433 status = "okay";
434};
435
436&uart2 {
437 status = "okay";
438};
439
440&uart3 {
441 pinctrl-names = "default";
442 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
443 status = "okay";
444};
445
446&usb_host {
447 pinctrl-names = "default";
448 pinctrl-0 = <&hub_rst>, <&sata_reset>;
449 status = "okay";
450};
451
452&usbphy {
453 status = "okay";
454};
455
456&usb_otg {
457 status = "okay";
458};
459
460&wdt {
461 status = "okay";
462};
1/*
2 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43/dts-v1/;
44#include <dt-bindings/input/input.h>
45#include "rk3066a.dtsi"
46
47/ {
48 model = "Rayeager PX2";
49 compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
50
51 memory@60000000 {
52 device_type = "memory";
53 reg = <0x60000000 0x40000000>;
54 };
55
56 ir: ir-receiver {
57 compatible = "gpio-ir-receiver";
58 gpios = <&gpio6 RK_PA1 GPIO_ACTIVE_LOW>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&ir_int>;
61 };
62
63 keys: gpio-keys {
64 compatible = "gpio-keys";
65
66 power {
67 wakeup-source;
68 gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>;
69 label = "GPIO Power";
70 linux,code = <KEY_POWER>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pwr_key>;
73 };
74 };
75
76 vdd_log: vdd-log {
77 compatible = "pwm-regulator";
78 pwms = <&pwm3 0 1000>;
79 regulator-name = "vdd_log";
80 regulator-min-microvolt = <1200000>;
81 regulator-max-microvolt = <1200000>;
82 regulator-always-on;
83 voltage-table = <1000000 100>,
84 <1200000 42>;
85 status = "okay";
86 };
87
88 vsys: vsys-regulator {
89 compatible = "regulator-fixed";
90 regulator-name = "vsys";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
93 regulator-always-on;
94 regulator-boot-on;
95 };
96
97 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
98 vcc_stdby: 5v-stdby-regulator {
99 compatible = "regulator-fixed";
100 regulator-name = "5v_stdby";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
103 regulator-always-on;
104 regulator-boot-on;
105 };
106
107 vcc_emmc: emmc-regulator {
108 compatible = "regulator-fixed";
109 regulator-name = "emmc_vccq";
110 regulator-min-microvolt = <3000000>;
111 regulator-max-microvolt = <3000000>;
112 vin-supply = <&vsys>;
113 };
114
115 vcc_sata: sata-regulator {
116 compatible = "regulator-fixed";
117 enable-active-high;
118 gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&sata_pwr>;
121 regulator-name = "usb_5v";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
124 regulator-always-on;
125 vin-supply = <&vcc_stdby>;
126 };
127
128 vcc_sd: sdmmc-regulator {
129 compatible = "regulator-fixed";
130 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&sdmmc_pwr>;
133 regulator-name = "vcc_sd";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 startup-delay-us = <100000>;
137 vin-supply = <&vcc_io>;
138 };
139
140 vcc_host: usb-host-regulator {
141 compatible = "regulator-fixed";
142 enable-active-high;
143 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&host_drv>;
146 regulator-name = "host-pwr";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149 regulator-always-on;
150 vin-supply = <&vcc_stdby>;
151 };
152
153 vcc_otg: usb-otg-regulator {
154 compatible = "regulator-fixed";
155 enable-active-high;
156 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&otg_drv>;
159 regulator-name = "vcc_otg";
160 regulator-min-microvolt = <5000000>;
161 regulator-max-microvolt = <5000000>;
162 regulator-always-on;
163 vin-supply = <&vcc_stdby>;
164 };
165};
166
167&cpu0 {
168 cpu0-supply = <&vdd_arm>;
169};
170
171&emac {
172 pinctrl-names = "default";
173 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
174 phy = <&phy0>;
175 phy-supply = <&vcc_rmii>;
176 status = "okay";
177
178 phy0: ethernet-phy@0 {
179 reg = <0>;
180 reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
181 };
182};
183
184&emmc {
185 bus-width = <8>;
186 cap-mmc-highspeed;
187 disable-wp;
188 non-removable;
189 pinctrl-names = "default";
190 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
191 vmmc-supply = <&vcc_emmc>;
192 vqmmc-supply = <&vcc_emmc>;
193 status = "okay";
194};
195
196&i2c0 {
197 clock-frequency = <400000>;
198 status = "okay";
199
200 ak8963: ak8963@d {
201 compatible = "asahi-kasei,ak8975";
202 reg = <0x0d>;
203 interrupt-parent = <&gpio4>;
204 interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&comp_int>;
207 };
208
209 mma8452: mma8452@1d {
210 compatible = "fsl,mma8452";
211 reg = <0x1d>;
212 interrupt-parent = <&gpio4>;
213 interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&gsensor_int>;
216 };
217};
218
219&i2c1 {
220 clock-frequency = <400000>;
221 status = "okay";
222
223 tps: tps@2d {
224 reg = <0x2d>;
225 interrupt-parent = <&gpio6>;
226 interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
229
230 vcc1-supply = <&vsys>;
231 vcc2-supply = <&vsys>;
232 vcc3-supply = <&vsys>;
233 vcc4-supply = <&vsys>;
234 vcc5-supply = <&vcc_io>;
235 vcc6-supply = <&vcc_io>;
236 vcc7-supply = <&vsys>;
237 vccio-supply = <&vsys>;
238
239 regulators {
240 vcc_rtc: regulator@0 {
241 regulator-name = "vcc_rtc";
242 regulator-always-on;
243 };
244
245 vcc_io: regulator@1 {
246 regulator-name = "vcc_io";
247 regulator-min-microvolt = <3300000>;
248 regulator-max-microvolt = <3300000>;
249 regulator-always-on;
250 };
251
252 vdd_arm: regulator@2 {
253 regulator-name = "vdd_arm";
254 regulator-min-microvolt = <600000>;
255 regulator-max-microvolt = <1500000>;
256 regulator-always-on;
257 regulator-boot-on;
258 };
259
260 vcc_ddr: regulator@3 {
261 regulator-name = "vcc_ddr";
262 regulator-min-microvolt = <600000>;
263 regulator-max-microvolt = <1500000>;
264 regulator-always-on;
265 regulator-boot-on;
266 };
267
268 vcc18: regulator@5 {
269 regulator-name = "vcc18";
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <1800000>;
272 regulator-always-on;
273 };
274
275 vdd_11: regulator@6 {
276 regulator-name = "vdd_11";
277 regulator-min-microvolt = <1100000>;
278 regulator-max-microvolt = <1100000>;
279 regulator-always-on;
280 };
281
282 vcc_25: regulator@7 {
283 regulator-name = "vcc_25";
284 regulator-min-microvolt = <2500000>;
285 regulator-max-microvolt = <2500000>;
286 regulator-always-on;
287 };
288
289 vccio_wl: regulator@8 {
290 regulator-name = "vccio_wl";
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 };
294
295 vcc25_hdmi: regulator@9 {
296 regulator-name = "vcc25_hdmi";
297 regulator-min-microvolt = <2500000>;
298 regulator-max-microvolt = <2500000>;
299 };
300
301 vcca_33: regulator@10 {
302 regulator-name = "vcca_33";
303 regulator-min-microvolt = <3300000>;
304 regulator-max-microvolt = <3300000>;
305 };
306
307 vcc_rmii: regulator@11 {
308 regulator-name = "vcc_rmii";
309 regulator-min-microvolt = <3300000>;
310 regulator-max-microvolt = <3300000>;
311 };
312
313 vcc28_cif: regulator@12 {
314 regulator-name = "vcc28_cif";
315 regulator-min-microvolt = <2800000>;
316 regulator-max-microvolt = <2800000>;
317 };
318 };
319 };
320};
321
322#include "tps65910.dtsi"
323
324&i2c2 {
325 status = "okay";
326};
327
328&i2c3 {
329 status = "okay";
330};
331
332&i2c4 {
333 status = "okay";
334};
335
336&mmc0 {
337 bus-width = <4>;
338 disable-wp;
339 pinctrl-names = "default";
340 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
341 vmmc-supply = <&vcc_sd>;
342 cap-mmc-highspeed;
343 cap-sd-highspeed;
344 status = "okay";
345};
346
347&mmc1 {
348 bus-width = <4>;
349 disable-wp;
350 non-removable;
351 pinctrl-names = "default";
352 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
353 vmmc-supply = <&vccio_wl>;
354 status = "okay";
355};
356
357&pinctrl {
358 pcfg_output_high: pcfg-output-high {
359 output-high;
360 };
361
362 ak8963 {
363 comp_int: comp-int {
364 rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
365 };
366 };
367
368 emac {
369 rmii_rst: rmii-rst {
370 rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
371 };
372 };
373
374 ir {
375 ir_int: ir-int {
376 rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
377 };
378 };
379
380 keys {
381 pwr_key: pwr-key {
382 rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
383 };
384 };
385
386 mma8452 {
387 gsensor_int: gsensor-int {
388 rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
389 };
390 };
391
392 mmc {
393 sdmmc_pwr: sdmmc-pwr {
394 rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
395 };
396 };
397
398 usb_host {
399 host_drv: host-drv {
400 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
401 };
402
403 hub_rst: hub-rst {
404 rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
405 };
406
407 sata_pwr: sata-pwr {
408 rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
409 };
410
411 sata_reset: sata-reset {
412 rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
413 };
414 };
415
416 usb_otg {
417 otg_drv: otg-drv {
418 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
419 };
420 };
421
422 tps {
423 pmic_int: pmic-int {
424 rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
425 };
426
427 pwr_hold: pwr-hold {
428 rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
429 };
430 };
431};
432
433&pwm1 {
434 status = "okay";
435};
436
437&pwm2 {
438 status = "okay";
439};
440
441&pwm3 {
442 status = "okay";
443};
444
445&saradc {
446 vref-supply = <&vcc_25>;
447 status = "okay";
448};
449
450&spi0 {
451 status = "okay";
452};
453
454&uart0 {
455 pinctrl-names = "default";
456 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
457 status = "okay";
458};
459
460&uart2 {
461 status = "okay";
462};
463
464&uart3 {
465 pinctrl-names = "default";
466 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
467 status = "okay";
468};
469
470&usb_host {
471 pinctrl-names = "default";
472 pinctrl-0 = <&hub_rst>, <&sata_reset>;
473 status = "okay";
474};
475
476&usbphy {
477 status = "okay";
478};
479
480&usb_otg {
481 status = "okay";
482};
483
484&wdt {
485 status = "okay";
486};