blob: cd06a3ca21966f2ec9b71b0fc03e77d05a5c094d [file] [log] [blame]
Stefan Roesef055f1f2012-11-19 12:09:42 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
13/dts-v1/;
Maxime Ripard68136b12012-12-12 17:08:23 +010014/include/ "sun4i-a10.dtsi"
Stefan Roesef055f1f2012-11-19 12:09:42 +010015
16/ {
17 model = "Cubietech Cubieboard";
Maxime Ripard68136b12012-12-12 17:08:23 +010018 compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
Stefan Roesef055f1f2012-11-19 12:09:42 +010019
20 aliases {
21 serial0 = &uart0;
22 serial1 = &uart1;
23 };
24
25 chosen {
26 bootargs = "earlyprintk console=ttyS0,115200";
27 };
28
29 soc {
Emilio López7e362102013-01-28 08:27:44 -030030 pinctrl@01c20800 {
31 led_pins_cubieboard: led_pins@0 {
32 allwinner,pins = "PH20", "PH21";
33 allwinner,function = "gpio_out";
34 allwinner,drive = <1>;
35 allwinner,pull = <0>;
36 };
37 };
38
Maxime Ripardb00adbe2013-03-18 10:54:49 +010039 uart0: serial@01c28000 {
Stefan Roesef055f1f2012-11-19 12:09:42 +010040 status = "okay";
41 };
42
Maxime Ripardb00adbe2013-03-18 10:54:49 +010043 uart1: serial@01c28400 {
Stefan Roesef055f1f2012-11-19 12:09:42 +010044 status = "okay";
45 };
46 };
Emilio López7e362102013-01-28 08:27:44 -030047
48 leds {
49 compatible = "gpio-leds";
50 pinctrl-names = "default";
51 pinctrl-0 = <&led_pins_cubieboard>;
52
53 blue {
54 label = "cubieboard::blue";
55 gpios = <&pio 7 21 0>; /* LED1 */
56 };
57
58 green {
59 label = "cubieboard::green";
60 gpios = <&pio 7 20 0>; /* LED2 */
61 linux,default-trigger = "heartbeat";
62 };
63 };
Stefan Roesef055f1f2012-11-19 12:09:42 +010064};