blob: c200eacc66e8ba06f4d578b569b0d1063fa59b0f [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"
Oliver Schinagl248bd1e2014-03-01 20:26:21 +010015/include/ "sunxi-common-regulators.dtsi"
Stefan Roesef055f1f2012-11-19 12:09:42 +010016
17/ {
18 model = "Cubietech Cubieboard";
Maxime Ripard68136b12012-12-12 17:08:23 +010019 compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
Stefan Roesef055f1f2012-11-19 12:09:42 +010020
Maxime Ripardb74aec12013-08-03 16:07:36 +020021 soc@01c00000 {
Stefan Roesee5a84ba2013-05-30 03:49:24 +000022 emac: ethernet@01c0b000 {
23 pinctrl-names = "default";
24 pinctrl-0 = <&emac_pins_a>;
25 phy = <&phy1>;
26 status = "okay";
27 };
28
29 mdio@01c0b080 {
30 status = "okay";
31
32 phy1: ethernet-phy@1 {
33 reg = <1>;
34 };
35 };
36
Hans de Goedec0955a82014-05-02 17:57:20 +020037 mmc0: mmc@01c0f000 {
38 pinctrl-names = "default";
39 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
Hans de Goedea4da4762014-05-11 09:46:54 +020040 vmmc-supply = <&reg_vcc3v3>;
Hans de Goedec0955a82014-05-02 17:57:20 +020041 bus-width = <4>;
42 cd-gpios = <&pio 7 1 0>; /* PH1 */
43 cd-inverted;
44 status = "okay";
45 };
46
Roman Byshkof28f9eb2014-03-01 20:26:27 +010047 usbphy: phy@01c13400 {
48 usb1_vbus-supply = <&reg_usb1_vbus>;
49 usb2_vbus-supply = <&reg_usb2_vbus>;
50 status = "okay";
51 };
52
53 ehci0: usb@01c14000 {
54 status = "okay";
55 };
56
57 ohci0: usb@01c14400 {
58 status = "okay";
59 };
60
Oliver Schinagl248bd1e2014-03-01 20:26:21 +010061 ahci: sata@01c18000 {
62 target-supply = <&reg_ahci_5v>;
63 status = "okay";
64 };
65
Roman Byshkof28f9eb2014-03-01 20:26:27 +010066 ehci1: usb@01c1c000 {
67 status = "okay";
68 };
69
70 ohci1: usb@01c1c400 {
71 status = "okay";
72 };
73
Emilio López7e362102013-01-28 08:27:44 -030074 pinctrl@01c20800 {
75 led_pins_cubieboard: led_pins@0 {
76 allwinner,pins = "PH20", "PH21";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <1>;
79 allwinner,pull = <0>;
80 };
81 };
82
Maxime Ripardb00adbe2013-03-18 10:54:49 +010083 uart0: serial@01c28000 {
Emilio López23b5cf32013-03-08 08:18:56 -030084 pinctrl-names = "default";
85 pinctrl-0 = <&uart0_pins_a>;
Stefan Roesef055f1f2012-11-19 12:09:42 +010086 status = "okay";
87 };
Emilio Lópezf51cb492013-05-02 09:37:46 -030088
89 i2c0: i2c@01c2ac00 {
90 pinctrl-names = "default";
91 pinctrl-0 = <&i2c0_pins_a>;
92 status = "okay";
93 };
94
95 i2c1: i2c@01c2b000 {
96 pinctrl-names = "default";
97 pinctrl-0 = <&i2c1_pins_a>;
98 status = "okay";
99 };
Stefan Roesef055f1f2012-11-19 12:09:42 +0100100 };
Emilio López7e362102013-01-28 08:27:44 -0300101
102 leds {
103 compatible = "gpio-leds";
104 pinctrl-names = "default";
105 pinctrl-0 = <&led_pins_cubieboard>;
106
107 blue {
Emilio Lópezb9614182013-07-22 22:19:01 -0300108 label = "cubieboard:blue:usr";
Emilio López7e362102013-01-28 08:27:44 -0300109 gpios = <&pio 7 21 0>; /* LED1 */
110 };
111
112 green {
Emilio Lópezb9614182013-07-22 22:19:01 -0300113 label = "cubieboard:green:usr";
Emilio López7e362102013-01-28 08:27:44 -0300114 gpios = <&pio 7 20 0>; /* LED2 */
115 linux,default-trigger = "heartbeat";
116 };
117 };
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100118
119 reg_ahci_5v: ahci-5v {
120 status = "okay";
121 };
Roman Byshkof28f9eb2014-03-01 20:26:27 +0100122
123 reg_usb1_vbus: usb1-vbus {
124 status = "okay";
125 };
126
127 reg_usb2_vbus: usb2-vbus {
128 status = "okay";
129 };
Stefan Roesef055f1f2012-11-19 12:09:42 +0100130};