]> Pileus Git - ~andy/linux/blob - arch/arm/boot/dts/sun4i-a10-cubieboard.dts
f1c77e0ff44c26fb48978724853e5d30073af036
[~andy/linux] / arch / arm / boot / dts / sun4i-a10-cubieboard.dts
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/;
14 /include/ "sun4i-a10.dtsi"
15
16 / {
17         model = "Cubietech Cubieboard";
18         compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
19
20         chosen {
21                 bootargs = "earlyprintk console=ttyS0,115200";
22         };
23
24         soc@01c00000 {
25                 emac: ethernet@01c0b000 {
26                         pinctrl-names = "default";
27                         pinctrl-0 = <&emac_pins_a>;
28                         phy = <&phy1>;
29                         status = "okay";
30                 };
31
32                 mdio@01c0b080 {
33                         status = "okay";
34
35                         phy1: ethernet-phy@1 {
36                                 reg = <1>;
37                         };
38                 };
39
40                 pinctrl@01c20800 {
41                         led_pins_cubieboard: led_pins@0 {
42                                 allwinner,pins = "PH20", "PH21";
43                                 allwinner,function = "gpio_out";
44                                 allwinner,drive = <1>;
45                                 allwinner,pull = <0>;
46                         };
47                 };
48
49                 uart0: serial@01c28000 {
50                         pinctrl-names = "default";
51                         pinctrl-0 = <&uart0_pins_a>;
52                         status = "okay";
53                 };
54
55                 i2c0: i2c@01c2ac00 {
56                         pinctrl-names = "default";
57                         pinctrl-0 = <&i2c0_pins_a>;
58                         status = "okay";
59                 };
60
61                 i2c1: i2c@01c2b000 {
62                         pinctrl-names = "default";
63                         pinctrl-0 = <&i2c1_pins_a>;
64                         status = "okay";
65                 };
66         };
67
68         leds {
69                 compatible = "gpio-leds";
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&led_pins_cubieboard>;
72
73                 blue {
74                         label = "cubieboard:blue:usr";
75                         gpios = <&pio 7 21 0>; /* LED1 */
76                 };
77
78                 green {
79                         label = "cubieboard:green:usr";
80                         gpios = <&pio 7 20 0>; /* LED2 */
81                         linux,default-trigger = "heartbeat";
82                 };
83         };
84 };