Commit | Line | Data |
---|---|---|
f055f1f6 SR |
1 | /* |
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/; | |
68136b10 | 14 | /include/ "sun4i-a10.dtsi" |
f055f1f6 SR |
15 | |
16 | / { | |
17 | model = "Cubietech Cubieboard"; | |
68136b10 | 18 | compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; |
f055f1f6 SR |
19 | |
20 | aliases { | |
21 | serial0 = &uart0; | |
22 | serial1 = &uart1; | |
23 | }; | |
24 | ||
25 | chosen { | |
26 | bootargs = "earlyprintk console=ttyS0,115200"; | |
27 | }; | |
28 | ||
69144e3b | 29 | soc@01c20000 { |
7e362103 EL |
30 | 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 | ||
b00adbe0 | 39 | uart0: serial@01c28000 { |
23b5cf31 EL |
40 | pinctrl-names = "default"; |
41 | pinctrl-0 = <&uart0_pins_a>; | |
f055f1f6 SR |
42 | status = "okay"; |
43 | }; | |
44 | }; | |
7e362103 EL |
45 | |
46 | leds { | |
47 | compatible = "gpio-leds"; | |
48 | pinctrl-names = "default"; | |
49 | pinctrl-0 = <&led_pins_cubieboard>; | |
50 | ||
51 | blue { | |
52 | label = "cubieboard::blue"; | |
53 | gpios = <&pio 7 21 0>; /* LED1 */ | |
54 | }; | |
55 | ||
56 | green { | |
57 | label = "cubieboard::green"; | |
58 | gpios = <&pio 7 20 0>; /* LED2 */ | |
59 | linux,default-trigger = "heartbeat"; | |
60 | }; | |
61 | }; | |
f055f1f6 | 62 | }; |