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" |
248bd1e2 | 15 | /include/ "sunxi-common-regulators.dtsi" |
f055f1f6 SR |
16 | |
17 | / { | |
18 | model = "Cubietech Cubieboard"; | |
68136b10 | 19 | compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; |
f055f1f6 | 20 | |
b74aec1a | 21 | soc@01c00000 { |
e5a84bac SR |
22 | 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 | ||
c0955a86 HG |
37 | mmc0: mmc@01c0f000 { |
38 | pinctrl-names = "default"; | |
39 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | |
a4da476b | 40 | vmmc-supply = <®_vcc3v3>; |
c0955a86 HG |
41 | bus-width = <4>; |
42 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | |
43 | cd-inverted; | |
44 | status = "okay"; | |
45 | }; | |
46 | ||
f28f9eb4 RB |
47 | usbphy: phy@01c13400 { |
48 | usb1_vbus-supply = <®_usb1_vbus>; | |
49 | usb2_vbus-supply = <®_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 | ||
248bd1e2 OS |
61 | ahci: sata@01c18000 { |
62 | target-supply = <®_ahci_5v>; | |
63 | status = "okay"; | |
64 | }; | |
65 | ||
f28f9eb4 RB |
66 | ehci1: usb@01c1c000 { |
67 | status = "okay"; | |
68 | }; | |
69 | ||
70 | ohci1: usb@01c1c400 { | |
71 | status = "okay"; | |
72 | }; | |
73 | ||
7e362103 EL |
74 | 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 | ||
4a5c5861 HG |
83 | ir0: ir@01c21800 { |
84 | pinctrl-names = "default"; | |
85 | pinctrl-0 = <&ir0_pins_a>; | |
86 | status = "okay"; | |
87 | }; | |
88 | ||
b00adbe0 | 89 | uart0: serial@01c28000 { |
23b5cf31 EL |
90 | pinctrl-names = "default"; |
91 | pinctrl-0 = <&uart0_pins_a>; | |
f055f1f6 SR |
92 | status = "okay"; |
93 | }; | |
f51cb49b EL |
94 | |
95 | i2c0: i2c@01c2ac00 { | |
96 | pinctrl-names = "default"; | |
97 | pinctrl-0 = <&i2c0_pins_a>; | |
98 | status = "okay"; | |
e288f1ba CC |
99 | |
100 | axp209: pmic@34 { | |
101 | compatible = "x-powers,axp209"; | |
102 | reg = <0x34>; | |
103 | interrupts = <0>; | |
104 | ||
105 | interrupt-controller; | |
106 | #interrupt-cells = <1>; | |
107 | }; | |
f51cb49b EL |
108 | }; |
109 | ||
110 | i2c1: i2c@01c2b000 { | |
111 | pinctrl-names = "default"; | |
112 | pinctrl-0 = <&i2c1_pins_a>; | |
113 | status = "okay"; | |
114 | }; | |
f055f1f6 | 115 | }; |
7e362103 EL |
116 | |
117 | leds { | |
118 | compatible = "gpio-leds"; | |
119 | pinctrl-names = "default"; | |
120 | pinctrl-0 = <&led_pins_cubieboard>; | |
121 | ||
122 | blue { | |
b9614183 | 123 | label = "cubieboard:blue:usr"; |
7e362103 EL |
124 | gpios = <&pio 7 21 0>; /* LED1 */ |
125 | }; | |
126 | ||
127 | green { | |
b9614183 | 128 | label = "cubieboard:green:usr"; |
7e362103 EL |
129 | gpios = <&pio 7 20 0>; /* LED2 */ |
130 | linux,default-trigger = "heartbeat"; | |
131 | }; | |
132 | }; | |
248bd1e2 OS |
133 | |
134 | reg_ahci_5v: ahci-5v { | |
135 | status = "okay"; | |
136 | }; | |
f28f9eb4 RB |
137 | |
138 | reg_usb1_vbus: usb1-vbus { | |
139 | status = "okay"; | |
140 | }; | |
141 | ||
142 | reg_usb2_vbus: usb2-vbus { | |
143 | status = "okay"; | |
144 | }; | |
f055f1f6 | 145 | }; |