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 | ||
b74aec1a | 29 | soc@01c00000 { |
e5a84bac SR |
30 | emac: ethernet@01c0b000 { |
31 | pinctrl-names = "default"; | |
32 | pinctrl-0 = <&emac_pins_a>; | |
33 | phy = <&phy1>; | |
34 | status = "okay"; | |
35 | }; | |
36 | ||
37 | mdio@01c0b080 { | |
38 | status = "okay"; | |
39 | ||
40 | phy1: ethernet-phy@1 { | |
41 | reg = <1>; | |
42 | }; | |
43 | }; | |
44 | ||
7e362103 EL |
45 | pinctrl@01c20800 { |
46 | led_pins_cubieboard: led_pins@0 { | |
47 | allwinner,pins = "PH20", "PH21"; | |
48 | allwinner,function = "gpio_out"; | |
49 | allwinner,drive = <1>; | |
50 | allwinner,pull = <0>; | |
51 | }; | |
52 | }; | |
53 | ||
b00adbe0 | 54 | uart0: serial@01c28000 { |
23b5cf31 EL |
55 | pinctrl-names = "default"; |
56 | pinctrl-0 = <&uart0_pins_a>; | |
f055f1f6 SR |
57 | status = "okay"; |
58 | }; | |
f51cb49b EL |
59 | |
60 | i2c0: i2c@01c2ac00 { | |
61 | pinctrl-names = "default"; | |
62 | pinctrl-0 = <&i2c0_pins_a>; | |
63 | status = "okay"; | |
64 | }; | |
65 | ||
66 | i2c1: i2c@01c2b000 { | |
67 | pinctrl-names = "default"; | |
68 | pinctrl-0 = <&i2c1_pins_a>; | |
69 | status = "okay"; | |
70 | }; | |
f055f1f6 | 71 | }; |
7e362103 EL |
72 | |
73 | leds { | |
74 | compatible = "gpio-leds"; | |
75 | pinctrl-names = "default"; | |
76 | pinctrl-0 = <&led_pins_cubieboard>; | |
77 | ||
78 | blue { | |
b9614183 | 79 | label = "cubieboard:blue:usr"; |
7e362103 EL |
80 | gpios = <&pio 7 21 0>; /* LED1 */ |
81 | }; | |
82 | ||
83 | green { | |
b9614183 | 84 | label = "cubieboard:green:usr"; |
7e362103 EL |
85 | gpios = <&pio 7 20 0>; /* LED2 */ |
86 | linux,default-trigger = "heartbeat"; | |
87 | }; | |
88 | }; | |
f055f1f6 | 89 | }; |