blob: e752b570b4ecdf9c36f12b183137d9ce70271a05 [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
Maxime Ripard69144e32013-03-13 20:07:37 +010029 soc@01c20000 {
Stefan Roesee5a84ba2013-05-30 03:49:24 +000030 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
Emilio López7e362102013-01-28 08:27:44 -030045 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
Maxime Ripardb00adbe2013-03-18 10:54:49 +010054 uart0: serial@01c28000 {
Emilio López23b5cf32013-03-08 08:18:56 -030055 pinctrl-names = "default";
56 pinctrl-0 = <&uart0_pins_a>;
Stefan Roesef055f1f2012-11-19 12:09:42 +010057 status = "okay";
58 };
59 };
Emilio López7e362102013-01-28 08:27:44 -030060
61 leds {
62 compatible = "gpio-leds";
63 pinctrl-names = "default";
64 pinctrl-0 = <&led_pins_cubieboard>;
65
66 blue {
67 label = "cubieboard::blue";
68 gpios = <&pio 7 21 0>; /* LED1 */
69 };
70
71 green {
72 label = "cubieboard::green";
73 gpios = <&pio 7 20 0>; /* LED2 */
74 linux,default-trigger = "heartbeat";
75 };
76 };
Stefan Roesef055f1f2012-11-19 12:09:42 +010077};