blob: 56922730d285e72b0faf5617c4efd6502dec80ec [file] [log] [blame]
Heiko Stuebnerd63dc052013-06-02 23:09:41 +02001/*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
Heiko Stuebner5218c6b2015-03-06 19:04:00 +01005 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
Heiko Stuebnerd63dc052013-06-02 23:09:41 +02009 *
Heiko Stuebner5218c6b2015-03-06 19:04:00 +010010 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020042 */
43
44#include <dt-bindings/gpio/gpio.h>
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020045#include <dt-bindings/pinctrl/rockchip.h>
Heiko Stuebnerb13d2a72014-04-15 01:16:44 +020046#include <dt-bindings/clock/rk3066a-cru.h>
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +020047#include "rk3xxx.dtsi"
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020048
49/ {
50 compatible = "rockchip,rk3066a";
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020051
52 cpus {
53 #address-cells = <1>;
54 #size-cells = <0>;
Heiko Stübner26ab69c2014-03-27 01:06:32 +010055 enable-method = "rockchip,rk3066-smp";
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020056
Heiko Stuebnerbe8a77c2014-09-13 00:34:29 +020057 cpu0: cpu@0 {
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020058 device_type = "cpu";
59 compatible = "arm,cortex-a9";
60 next-level-cache = <&L2>;
61 reg = <0x0>;
Heiko Stuebnerbe8a77c2014-09-13 00:34:29 +020062 operating-points = <
63 /* kHz uV */
Andy Yan3a429492016-01-15 21:25:21 +080064 1416000 1300000
65 1200000 1175000
66 1008000 1125000
67 816000 1125000
68 600000 1100000
69 504000 1100000
70 312000 1075000
Heiko Stuebnerbe8a77c2014-09-13 00:34:29 +020071 >;
72 clock-latency = <40000>;
73 clocks = <&cru ARMCLK>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +020074 };
75 cpu@1 {
76 device_type = "cpu";
77 compatible = "arm,cortex-a9";
78 next-level-cache = <&L2>;
79 reg = <0x1>;
80 };
81 };
82
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020083 sram: sram@10080000 {
84 compatible = "mmio-sram";
85 reg = <0x10080000 0x10000>;
86 #address-cells = <1>;
87 #size-cells = <1>;
88 ranges = <0 0x10080000 0x10000>;
89
90 smp-sram@0 {
91 compatible = "rockchip,rk3066-smp-sram";
92 reg = <0x0 0x50>;
93 };
94 };
95
Julien CHAUVEAU5fe62b82014-10-14 10:16:37 +020096 i2s0: i2s@10118000 {
97 compatible = "rockchip,rk3066-i2s";
98 reg = <0x10118000 0x2000>;
99 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
100 #address-cells = <1>;
101 #size-cells = <0>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2s0_bus>;
104 dmas = <&dmac1_s 4>, <&dmac1_s 5>;
105 dma-names = "tx", "rx";
106 clock-names = "i2s_hclk", "i2s_clk";
107 clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
Sugar Zhange2416572015-11-10 15:32:09 +0800108 rockchip,playback-channels = <8>;
109 rockchip,capture-channels = <2>;
Julien CHAUVEAU5fe62b82014-10-14 10:16:37 +0200110 status = "disabled";
111 };
112
113 i2s1: i2s@1011a000 {
114 compatible = "rockchip,rk3066-i2s";
115 reg = <0x1011a000 0x2000>;
116 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
117 #address-cells = <1>;
118 #size-cells = <0>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&i2s1_bus>;
121 dmas = <&dmac1_s 6>, <&dmac1_s 7>;
122 dma-names = "tx", "rx";
123 clock-names = "i2s_hclk", "i2s_clk";
124 clocks = <&cru HCLK_I2S1>, <&cru SCLK_I2S1>;
Sugar Zhange2416572015-11-10 15:32:09 +0800125 rockchip,playback-channels = <2>;
126 rockchip,capture-channels = <2>;
Julien CHAUVEAU5fe62b82014-10-14 10:16:37 +0200127 status = "disabled";
128 };
129
130 i2s2: i2s@1011c000 {
131 compatible = "rockchip,rk3066-i2s";
132 reg = <0x1011c000 0x2000>;
133 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
134 #address-cells = <1>;
135 #size-cells = <0>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&i2s2_bus>;
138 dmas = <&dmac1_s 9>, <&dmac1_s 10>;
139 dma-names = "tx", "rx";
140 clock-names = "i2s_hclk", "i2s_clk";
141 clocks = <&cru HCLK_I2S2>, <&cru SCLK_I2S2>;
Sugar Zhange2416572015-11-10 15:32:09 +0800142 rockchip,playback-channels = <2>;
143 rockchip,capture-channels = <2>;
Julien CHAUVEAU5fe62b82014-10-14 10:16:37 +0200144 status = "disabled";
145 };
146
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200147 cru: clock-controller@20000000 {
148 compatible = "rockchip,rk3066a-cru";
149 reg = <0x20000000 0x1000>;
150 rockchip,grf = <&grf>;
151
152 #clock-cells = <1>;
153 #reset-cells = <1>;
154 };
155
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200156 timer@2000e000 {
157 compatible = "snps,dw-apb-timer-osc";
158 reg = <0x2000e000 0x100>;
159 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
160 clocks = <&cru SCLK_TIMER2>, <&cru PCLK_TIMER2>;
161 clock-names = "timer", "pclk";
162 };
163
Caesar Wangd3369b12015-11-11 15:34:30 +0800164 efuse: efuse@20010000 {
165 compatible = "rockchip,rockchip-efuse";
166 reg = <0x20010000 0x4000>;
167 #address-cells = <1>;
168 #size-cells = <1>;
169 clocks = <&cru PCLK_EFUSE>;
170 clock-names = "pclk_efuse";
171
172 cpu_leakage: cpu_leakage {
173 reg = <0x17 0x1>;
174 };
175 };
176
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200177 timer@20038000 {
178 compatible = "snps,dw-apb-timer-osc";
179 reg = <0x20038000 0x100>;
180 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
181 clocks = <&cru SCLK_TIMER0>, <&cru PCLK_TIMER0>;
182 clock-names = "timer", "pclk";
183 };
184
185 timer@2003a000 {
186 compatible = "snps,dw-apb-timer-osc";
187 reg = <0x2003a000 0x100>;
188 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
189 clocks = <&cru SCLK_TIMER1>, <&cru PCLK_TIMER1>;
190 clock-names = "timer", "pclk";
191 };
192
Heiko Stuebner760bb972015-08-01 20:28:36 +0200193 usbphy: phy {
194 compatible = "rockchip,rk3066a-usb-phy", "rockchip,rk3288-usb-phy";
195 rockchip,grf = <&grf>;
196 #address-cells = <1>;
197 #size-cells = <0>;
198 status = "disabled";
199
200 usbphy0: usb-phy0 {
201 #phy-cells = <0>;
202 reg = <0x17c>;
203 clocks = <&cru SCLK_OTGPHY0>;
204 clock-names = "phyclk";
Heiko Stuebner0ace8212015-11-19 22:22:27 +0100205 #clock-cells = <0>;
Heiko Stuebner760bb972015-08-01 20:28:36 +0200206 };
207
208 usbphy1: usb-phy1 {
209 #phy-cells = <0>;
210 reg = <0x188>;
211 clocks = <&cru SCLK_OTGPHY1>;
212 clock-names = "phyclk";
Heiko Stuebner0ace8212015-11-19 22:22:27 +0100213 #clock-cells = <0>;
Heiko Stuebner760bb972015-08-01 20:28:36 +0200214 };
215 };
216
Heiko Stuebner6e4b3b42014-07-22 22:56:16 +0200217 pinctrl: pinctrl {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200218 compatible = "rockchip,rk3066a-pinctrl";
219 rockchip,grf = <&grf>;
220 #address-cells = <1>;
221 #size-cells = <1>;
222 ranges;
223
224 gpio0: gpio0@20034000 {
225 compatible = "rockchip,gpio-bank";
226 reg = <0x20034000 0x100>;
227 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
228 clocks = <&cru PCLK_GPIO0>;
229
230 gpio-controller;
231 #gpio-cells = <2>;
232
233 interrupt-controller;
234 #interrupt-cells = <2>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200235 };
236
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200237 gpio1: gpio1@2003c000 {
238 compatible = "rockchip,gpio-bank";
239 reg = <0x2003c000 0x100>;
240 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&cru PCLK_GPIO1>;
242
243 gpio-controller;
244 #gpio-cells = <2>;
245
246 interrupt-controller;
247 #interrupt-cells = <2>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200248 };
249
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200250 gpio2: gpio2@2003e000 {
251 compatible = "rockchip,gpio-bank";
252 reg = <0x2003e000 0x100>;
253 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
254 clocks = <&cru PCLK_GPIO2>;
255
256 gpio-controller;
257 #gpio-cells = <2>;
258
259 interrupt-controller;
260 #interrupt-cells = <2>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200261 };
262
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200263 gpio3: gpio3@20080000 {
264 compatible = "rockchip,gpio-bank";
265 reg = <0x20080000 0x100>;
266 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
267 clocks = <&cru PCLK_GPIO3>;
Heiko Stuebnerde18e012013-06-17 22:08:31 +0200268
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200269 gpio-controller;
270 #gpio-cells = <2>;
271
272 interrupt-controller;
273 #interrupt-cells = <2>;
274 };
275
276 gpio4: gpio4@20084000 {
277 compatible = "rockchip,gpio-bank";
278 reg = <0x20084000 0x100>;
279 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
280 clocks = <&cru PCLK_GPIO4>;
281
282 gpio-controller;
283 #gpio-cells = <2>;
284
285 interrupt-controller;
286 #interrupt-cells = <2>;
287 };
288
289 gpio6: gpio6@2000a000 {
290 compatible = "rockchip,gpio-bank";
291 reg = <0x2000a000 0x100>;
292 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
293 clocks = <&cru PCLK_GPIO6>;
294
295 gpio-controller;
296 #gpio-cells = <2>;
297
298 interrupt-controller;
299 #interrupt-cells = <2>;
300 };
301
302 pcfg_pull_default: pcfg_pull_default {
303 bias-pull-pin-default;
304 };
305
306 pcfg_pull_none: pcfg_pull_none {
307 bias-disable;
308 };
309
Romain Perier89f66872014-11-02 10:20:00 +0000310 emac {
311 emac_xfer: emac-xfer {
312 rockchip,pins = <RK_GPIO1 16 RK_FUNC_2 &pcfg_pull_none>, /* mac_clk */
313 <RK_GPIO1 17 RK_FUNC_2 &pcfg_pull_none>, /* tx_en */
314 <RK_GPIO1 18 RK_FUNC_2 &pcfg_pull_none>, /* txd1 */
315 <RK_GPIO1 19 RK_FUNC_2 &pcfg_pull_none>, /* txd0 */
316 <RK_GPIO1 20 RK_FUNC_2 &pcfg_pull_none>, /* rx_err */
317 <RK_GPIO1 21 RK_FUNC_2 &pcfg_pull_none>, /* crs_dvalid */
318 <RK_GPIO1 22 RK_FUNC_2 &pcfg_pull_none>, /* rxd1 */
319 <RK_GPIO1 23 RK_FUNC_2 &pcfg_pull_none>; /* rxd0 */
320 };
321
322 emac_mdio: emac-mdio {
323 rockchip,pins = <RK_GPIO1 24 RK_FUNC_2 &pcfg_pull_none>, /* mac_md */
324 <RK_GPIO1 25 RK_FUNC_2 &pcfg_pull_none>; /* mac_mdclk */
325 };
326 };
327
Heiko Stuebner4ff4ae12014-09-10 17:04:36 +0200328 emmc {
329 emmc_clk: emmc-clk {
330 rockchip,pins = <RK_GPIO3 31 RK_FUNC_2 &pcfg_pull_default>;
331 };
332
333 emmc_cmd: emmc-cmd {
334 rockchip,pins = <RK_GPIO4 9 RK_FUNC_2 &pcfg_pull_default>;
335 };
336
337 emmc_rst: emmc-rst {
338 rockchip,pins = <RK_GPIO4 10 RK_FUNC_2 &pcfg_pull_default>;
339 };
340
341 /*
342 * The data pins are shared between nandc and emmc and
343 * not accessible through pinctrl. Also they should've
344 * been already set correctly by firmware, as
345 * flash/emmc is the boot-device.
346 */
347 };
348
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200349 i2c0 {
350 i2c0_xfer: i2c0-xfer {
351 rockchip,pins = <RK_GPIO2 28 RK_FUNC_1 &pcfg_pull_none>,
352 <RK_GPIO2 29 RK_FUNC_1 &pcfg_pull_none>;
353 };
354 };
355
356 i2c1 {
357 i2c1_xfer: i2c1-xfer {
358 rockchip,pins = <RK_GPIO2 30 RK_FUNC_1 &pcfg_pull_none>,
359 <RK_GPIO2 31 RK_FUNC_1 &pcfg_pull_none>;
360 };
361 };
362
363 i2c2 {
364 i2c2_xfer: i2c2-xfer {
365 rockchip,pins = <RK_GPIO3 0 RK_FUNC_1 &pcfg_pull_none>,
366 <RK_GPIO3 1 RK_FUNC_1 &pcfg_pull_none>;
367 };
368 };
369
370 i2c3 {
371 i2c3_xfer: i2c3-xfer {
372 rockchip,pins = <RK_GPIO3 2 RK_FUNC_2 &pcfg_pull_none>,
373 <RK_GPIO3 3 RK_FUNC_2 &pcfg_pull_none>;
374 };
375 };
376
377 i2c4 {
378 i2c4_xfer: i2c4-xfer {
379 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>,
380 <RK_GPIO3 5 RK_FUNC_1 &pcfg_pull_none>;
381 };
382 };
383
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200384 pwm0 {
385 pwm0_out: pwm0-out {
386 rockchip,pins = <RK_GPIO0 3 RK_FUNC_1 &pcfg_pull_none>;
387 };
388 };
389
390 pwm1 {
391 pwm1_out: pwm1-out {
392 rockchip,pins = <RK_GPIO0 4 RK_FUNC_1 &pcfg_pull_none>;
393 };
394 };
395
396 pwm2 {
397 pwm2_out: pwm2-out {
398 rockchip,pins = <RK_GPIO0 30 RK_FUNC_1 &pcfg_pull_none>;
399 };
400 };
401
402 pwm3 {
403 pwm3_out: pwm3-out {
404 rockchip,pins = <RK_GPIO0 31 RK_FUNC_1 &pcfg_pull_none>;
405 };
406 };
407
Heiko Stuebner39c2bd72014-09-10 16:28:02 +0200408 spi0 {
409 spi0_clk: spi0-clk {
410 rockchip,pins = <RK_GPIO1 5 RK_FUNC_2 &pcfg_pull_default>;
411 };
412 spi0_cs0: spi0-cs0 {
413 rockchip,pins = <RK_GPIO1 4 RK_FUNC_2 &pcfg_pull_default>;
414 };
415 spi0_tx: spi0-tx {
416 rockchip,pins = <RK_GPIO1 7 RK_FUNC_2 &pcfg_pull_default>;
417 };
418 spi0_rx: spi0-rx {
419 rockchip,pins = <RK_GPIO1 6 RK_FUNC_2 &pcfg_pull_default>;
420 };
421 spi0_cs1: spi0-cs1 {
422 rockchip,pins = <RK_GPIO4 15 RK_FUNC_1 &pcfg_pull_default>;
423 };
424 };
425
426 spi1 {
427 spi1_clk: spi1-clk {
428 rockchip,pins = <RK_GPIO2 19 RK_FUNC_2 &pcfg_pull_default>;
429 };
430 spi1_cs0: spi1-cs0 {
431 rockchip,pins = <RK_GPIO2 20 RK_FUNC_2 &pcfg_pull_default>;
432 };
433 spi1_rx: spi1-rx {
434 rockchip,pins = <RK_GPIO2 22 RK_FUNC_2 &pcfg_pull_default>;
435 };
436 spi1_tx: spi1-tx {
437 rockchip,pins = <RK_GPIO2 21 RK_FUNC_2 &pcfg_pull_default>;
438 };
439 spi1_cs1: spi1-cs1 {
440 rockchip,pins = <RK_GPIO2 23 RK_FUNC_2 &pcfg_pull_default>;
441 };
442 };
443
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200444 uart0 {
445 uart0_xfer: uart0-xfer {
446 rockchip,pins = <RK_GPIO1 0 RK_FUNC_1 &pcfg_pull_default>,
447 <RK_GPIO1 1 RK_FUNC_1 &pcfg_pull_default>;
448 };
449
450 uart0_cts: uart0-cts {
451 rockchip,pins = <RK_GPIO1 2 RK_FUNC_1 &pcfg_pull_default>;
452 };
453
454 uart0_rts: uart0-rts {
455 rockchip,pins = <RK_GPIO1 3 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerde18e012013-06-17 22:08:31 +0200456 };
457 };
458
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200459 uart1 {
460 uart1_xfer: uart1-xfer {
461 rockchip,pins = <RK_GPIO1 4 RK_FUNC_1 &pcfg_pull_default>,
462 <RK_GPIO1 5 RK_FUNC_1 &pcfg_pull_default>;
463 };
Heiko Stuebnerb13d2a72014-04-15 01:16:44 +0200464
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200465 uart1_cts: uart1-cts {
466 rockchip,pins = <RK_GPIO1 6 RK_FUNC_1 &pcfg_pull_default>;
467 };
468
469 uart1_rts: uart1-rts {
470 rockchip,pins = <RK_GPIO1 7 RK_FUNC_1 &pcfg_pull_default>;
471 };
Heiko Stuebnerb13d2a72014-04-15 01:16:44 +0200472 };
473
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200474 uart2 {
475 uart2_xfer: uart2-xfer {
476 rockchip,pins = <RK_GPIO1 8 RK_FUNC_1 &pcfg_pull_default>,
477 <RK_GPIO1 9 RK_FUNC_1 &pcfg_pull_default>;
478 };
479 /* no rts / cts for uart2 */
480 };
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200481
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200482 uart3 {
483 uart3_xfer: uart3-xfer {
484 rockchip,pins = <RK_GPIO3 27 RK_FUNC_1 &pcfg_pull_default>,
485 <RK_GPIO3 28 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200486 };
487
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200488 uart3_cts: uart3-cts {
489 rockchip,pins = <RK_GPIO3 29 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200490 };
491
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200492 uart3_rts: uart3-rts {
493 rockchip,pins = <RK_GPIO3 30 RK_FUNC_1 &pcfg_pull_default>;
494 };
495 };
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200496
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200497 sd0 {
498 sd0_clk: sd0-clk {
499 rockchip,pins = <RK_GPIO3 8 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200500 };
501
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200502 sd0_cmd: sd0-cmd {
503 rockchip,pins = <RK_GPIO3 9 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200504 };
505
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200506 sd0_cd: sd0-cd {
507 rockchip,pins = <RK_GPIO3 14 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200508 };
509
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200510 sd0_wp: sd0-wp {
511 rockchip,pins = <RK_GPIO3 15 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200512 };
513
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200514 sd0_bus1: sd0-bus-width1 {
515 rockchip,pins = <RK_GPIO3 10 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200516 };
517
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200518 sd0_bus4: sd0-bus-width4 {
519 rockchip,pins = <RK_GPIO3 10 RK_FUNC_1 &pcfg_pull_default>,
520 <RK_GPIO3 11 RK_FUNC_1 &pcfg_pull_default>,
521 <RK_GPIO3 12 RK_FUNC_1 &pcfg_pull_default>,
522 <RK_GPIO3 13 RK_FUNC_1 &pcfg_pull_default>;
523 };
524 };
525
526 sd1 {
527 sd1_clk: sd1-clk {
528 rockchip,pins = <RK_GPIO3 21 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200529 };
530
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200531 sd1_cmd: sd1-cmd {
532 rockchip,pins = <RK_GPIO3 16 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200533 };
534
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200535 sd1_cd: sd1-cd {
536 rockchip,pins = <RK_GPIO3 22 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200537 };
538
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200539 sd1_wp: sd1-wp {
540 rockchip,pins = <RK_GPIO3 23 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200541 };
542
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200543 sd1_bus1: sd1-bus-width1 {
544 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200545 };
546
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200547 sd1_bus4: sd1-bus-width4 {
548 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_default>,
549 <RK_GPIO3 18 RK_FUNC_1 &pcfg_pull_default>,
550 <RK_GPIO3 19 RK_FUNC_1 &pcfg_pull_default>,
551 <RK_GPIO3 20 RK_FUNC_1 &pcfg_pull_default>;
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200552 };
553 };
Julien CHAUVEAU5fe62b82014-10-14 10:16:37 +0200554
555 i2s0 {
556 i2s0_bus: i2s0-bus {
557 rockchip,pins = <RK_GPIO0 7 RK_FUNC_1 &pcfg_pull_default>,
558 <RK_GPIO0 8 RK_FUNC_1 &pcfg_pull_default>,
559 <RK_GPIO0 9 RK_FUNC_1 &pcfg_pull_default>,
560 <RK_GPIO0 10 RK_FUNC_1 &pcfg_pull_default>,
561 <RK_GPIO0 11 RK_FUNC_1 &pcfg_pull_default>,
562 <RK_GPIO0 12 RK_FUNC_1 &pcfg_pull_default>,
563 <RK_GPIO0 13 RK_FUNC_1 &pcfg_pull_default>,
564 <RK_GPIO0 14 RK_FUNC_1 &pcfg_pull_default>,
565 <RK_GPIO0 15 RK_FUNC_1 &pcfg_pull_default>;
566 };
567 };
568
569 i2s1 {
570 i2s1_bus: i2s1-bus {
571 rockchip,pins = <RK_GPIO0 16 RK_FUNC_1 &pcfg_pull_default>,
572 <RK_GPIO0 17 RK_FUNC_1 &pcfg_pull_default>,
573 <RK_GPIO0 18 RK_FUNC_1 &pcfg_pull_default>,
574 <RK_GPIO0 19 RK_FUNC_1 &pcfg_pull_default>,
575 <RK_GPIO0 20 RK_FUNC_1 &pcfg_pull_default>,
576 <RK_GPIO0 21 RK_FUNC_1 &pcfg_pull_default>;
577 };
578 };
579
580 i2s2 {
581 i2s2_bus: i2s2-bus {
582 rockchip,pins = <RK_GPIO0 24 RK_FUNC_1 &pcfg_pull_default>,
583 <RK_GPIO0 25 RK_FUNC_1 &pcfg_pull_default>,
584 <RK_GPIO0 26 RK_FUNC_1 &pcfg_pull_default>,
585 <RK_GPIO0 27 RK_FUNC_1 &pcfg_pull_default>,
586 <RK_GPIO0 28 RK_FUNC_1 &pcfg_pull_default>,
587 <RK_GPIO0 29 RK_FUNC_1 &pcfg_pull_default>;
588 };
589 };
Heiko Stuebnerd63dc052013-06-02 23:09:41 +0200590 };
591};
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200592
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200593&i2c0 {
594 pinctrl-names = "default";
595 pinctrl-0 = <&i2c0_xfer>;
596};
597
598&i2c1 {
599 pinctrl-names = "default";
600 pinctrl-0 = <&i2c1_xfer>;
601};
602
603&i2c2 {
604 pinctrl-names = "default";
605 pinctrl-0 = <&i2c2_xfer>;
606};
607
608&i2c3 {
609 pinctrl-names = "default";
610 pinctrl-0 = <&i2c3_xfer>;
611};
612
613&i2c4 {
614 pinctrl-names = "default";
615 pinctrl-0 = <&i2c4_xfer>;
616};
617
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200618&mmc0 {
619 pinctrl-names = "default";
620 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4>;
621};
622
623&mmc1 {
624 pinctrl-names = "default";
625 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus4>;
626};
627
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200628&pwm0 {
629 pinctrl-names = "default";
630 pinctrl-0 = <&pwm0_out>;
631};
632
633&pwm1 {
634 pinctrl-names = "default";
635 pinctrl-0 = <&pwm1_out>;
636};
637
638&pwm2 {
639 pinctrl-names = "default";
640 pinctrl-0 = <&pwm2_out>;
641};
642
643&pwm3 {
644 pinctrl-names = "default";
645 pinctrl-0 = <&pwm3_out>;
646};
647
Heiko Stuebner39c2bd72014-09-10 16:28:02 +0200648&spi0 {
649 pinctrl-names = "default";
650 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
651};
652
653&spi1 {
654 pinctrl-names = "default";
655 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
656};
657
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200658&uart0 {
659 pinctrl-names = "default";
660 pinctrl-0 = <&uart0_xfer>;
661};
662
663&uart1 {
664 pinctrl-names = "default";
665 pinctrl-0 = <&uart1_xfer>;
666};
667
668&uart2 {
669 pinctrl-names = "default";
670 pinctrl-0 = <&uart2_xfer>;
671};
672
673&uart3 {
674 pinctrl-names = "default";
675 pinctrl-0 = <&uart3_xfer>;
676};
Heiko Stuebnereb2b9d42014-07-30 10:16:17 +0200677
678&wdt {
679 compatible = "rockchip,rk3066-wdt", "snps,dw-wdt";
680};
Romain Perier89f66872014-11-02 10:20:00 +0000681
682&emac {
683 compatible = "rockchip,rk3066-emac";
684};