blob: b139ee6bcf99f422535899173f481777c7751541 [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
Maxime Ripardb74aec12013-08-03 16:07:36 +020020 soc@01c00000 {
Stefan Roesee5a84ba2013-05-30 03:49:24 +000021 emac: ethernet@01c0b000 {
22 pinctrl-names = "default";
23 pinctrl-0 = <&emac_pins_a>;
24 phy = <&phy1>;
25 status = "okay";
26 };
27
28 mdio@01c0b080 {
29 status = "okay";
30
31 phy1: ethernet-phy@1 {
32 reg = <1>;
33 };
34 };
35
Emilio López7e362102013-01-28 08:27:44 -030036 pinctrl@01c20800 {
37 led_pins_cubieboard: led_pins@0 {
38 allwinner,pins = "PH20", "PH21";
39 allwinner,function = "gpio_out";
40 allwinner,drive = <1>;
41 allwinner,pull = <0>;
42 };
43 };
44
Maxime Ripardb00adbe2013-03-18 10:54:49 +010045 uart0: serial@01c28000 {
Emilio López23b5cf32013-03-08 08:18:56 -030046 pinctrl-names = "default";
47 pinctrl-0 = <&uart0_pins_a>;
Stefan Roesef055f1f2012-11-19 12:09:42 +010048 status = "okay";
49 };
Emilio Lópezf51cb492013-05-02 09:37:46 -030050
51 i2c0: i2c@01c2ac00 {
52 pinctrl-names = "default";
53 pinctrl-0 = <&i2c0_pins_a>;
54 status = "okay";
55 };
56
57 i2c1: i2c@01c2b000 {
58 pinctrl-names = "default";
59 pinctrl-0 = <&i2c1_pins_a>;
60 status = "okay";
61 };
Stefan Roesef055f1f2012-11-19 12:09:42 +010062 };
Emilio López7e362102013-01-28 08:27:44 -030063
64 leds {
65 compatible = "gpio-leds";
66 pinctrl-names = "default";
67 pinctrl-0 = <&led_pins_cubieboard>;
68
69 blue {
Emilio Lópezb9614182013-07-22 22:19:01 -030070 label = "cubieboard:blue:usr";
Emilio López7e362102013-01-28 08:27:44 -030071 gpios = <&pio 7 21 0>; /* LED1 */
72 };
73
74 green {
Emilio Lópezb9614182013-07-22 22:19:01 -030075 label = "cubieboard:green:usr";
Emilio López7e362102013-01-28 08:27:44 -030076 gpios = <&pio 7 20 0>; /* LED2 */
77 linux,default-trigger = "heartbeat";
78 };
79 };
Stefan Roesef055f1f2012-11-19 12:09:42 +010080};