16823078bf286ae0aa16b1b1ceece559fbd06b10
[deliverable/linux.git] / arch / arm / boot / dts / sun7i-a20-cubietruck.dts
1 /*
2 * Copyright 2013 Oliver Schinagl
3 *
4 * Oliver Schinagl <oliver@schinagl.nl>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14 /dts-v1/;
15 /include/ "sun7i-a20.dtsi"
16 /include/ "sunxi-common-regulators.dtsi"
17
18 / {
19 model = "Cubietech Cubietruck";
20 compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
21
22 soc@01c00000 {
23 mmc0: mmc@01c0f000 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
26 vmmc-supply = <&reg_vcc3v3>;
27 bus-width = <4>;
28 cd-gpios = <&pio 7 1 0>; /* PH1 */
29 cd-inverted;
30 status = "okay";
31 };
32
33 mmc3: mmc@01c12000 {
34 pinctrl-names = "default";
35 pinctrl-0 = <&mmc3_pins_a>;
36 vmmc-supply = <&reg_vmmc3>;
37 bus-width = <4>;
38 non-removable;
39 status = "okay";
40 };
41
42 usbphy: phy@01c13400 {
43 usb1_vbus-supply = <&reg_usb1_vbus>;
44 usb2_vbus-supply = <&reg_usb2_vbus>;
45 status = "okay";
46 };
47
48 ehci0: usb@01c14000 {
49 status = "okay";
50 };
51
52 ohci0: usb@01c14400 {
53 status = "okay";
54 };
55
56 ahci: sata@01c18000 {
57 target-supply = <&reg_ahci_5v>;
58 status = "okay";
59 };
60
61 ehci1: usb@01c1c000 {
62 status = "okay";
63 };
64
65 ohci1: usb@01c1c400 {
66 status = "okay";
67 };
68
69 pinctrl@01c20800 {
70 mmc3_pins_a: mmc3@0 {
71 /* AP6210 requires pull-up */
72 allwinner,pull = <1>;
73 };
74
75 vmmc3_pin_cubietruck: vmmc3_pin@0 {
76 allwinner,pins = "PH9";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <0>;
79 allwinner,pull = <0>;
80 };
81
82 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
83 allwinner,pins = "PH12";
84 allwinner,function = "gpio_out";
85 allwinner,drive = <0>;
86 allwinner,pull = <0>;
87 };
88
89 led_pins_cubietruck: led_pins@0 {
90 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
91 allwinner,function = "gpio_out";
92 allwinner,drive = <0>;
93 allwinner,pull = <0>;
94 };
95
96 usb0_vbus_pin_a: usb0_vbus_pin@0 {
97 allwinner,pins = "PH17";
98 allwinner,function = "gpio_out";
99 allwinner,drive = <0>;
100 allwinner,pull = <0>;
101 };
102 };
103
104 pwm: pwm@01c20e00 {
105 pinctrl-names = "default";
106 pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
107 status = "okay";
108 };
109
110 ir0: ir@01c21800 {
111 pinctrl-names = "default";
112 pinctrl-0 = <&ir0_pins_a>;
113 status = "okay";
114 };
115
116 uart0: serial@01c28000 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&uart0_pins_a>;
119 status = "okay";
120 };
121
122 i2c0: i2c@01c2ac00 {
123 pinctrl-names = "default";
124 pinctrl-0 = <&i2c0_pins_a>;
125 status = "okay";
126
127 axp209: pmic@34 {
128 compatible = "x-powers,axp209";
129 reg = <0x34>;
130 interrupt-parent = <&nmi_intc>;
131 interrupts = <0 8>;
132
133 interrupt-controller;
134 #interrupt-cells = <1>;
135 };
136 };
137
138 i2c1: i2c@01c2b000 {
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c1_pins_a>;
141 status = "okay";
142 };
143
144 i2c2: i2c@01c2b400 {
145 pinctrl-names = "default";
146 pinctrl-0 = <&i2c2_pins_a>;
147 status = "okay";
148 };
149
150 gmac: ethernet@01c50000 {
151 pinctrl-names = "default";
152 pinctrl-0 = <&gmac_pins_rgmii_a>;
153 phy = <&phy1>;
154 phy-mode = "rgmii";
155 status = "okay";
156
157 phy1: ethernet-phy@1 {
158 reg = <1>;
159 };
160 };
161 };
162
163 leds {
164 compatible = "gpio-leds";
165 pinctrl-names = "default";
166 pinctrl-0 = <&led_pins_cubietruck>;
167
168 blue {
169 label = "cubietruck:blue:usr";
170 gpios = <&pio 7 21 0>;
171 };
172
173 orange {
174 label = "cubietruck:orange:usr";
175 gpios = <&pio 7 20 0>;
176 };
177
178 white {
179 label = "cubietruck:white:usr";
180 gpios = <&pio 7 11 0>;
181 };
182
183 green {
184 label = "cubietruck:green:usr";
185 gpios = <&pio 7 7 0>;
186 };
187 };
188
189 reg_ahci_5v: ahci-5v {
190 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
191 gpio = <&pio 7 12 0>;
192 status = "okay";
193 };
194
195 reg_usb0_vbus: usb0-vbus {
196 pinctrl-0 = <&usb0_vbus_pin_a>;
197 gpio = <&pio 7 17 0>;
198 status = "okay";
199 };
200
201 reg_usb1_vbus: usb1-vbus {
202 status = "okay";
203 };
204
205 reg_usb2_vbus: usb2-vbus {
206 status = "okay";
207 };
208
209 reg_vmmc3: vmmc3 {
210 compatible = "regulator-fixed";
211 pinctrl-names = "default";
212 pinctrl-0 = <&vmmc3_pin_cubietruck>;
213 regulator-name = "vmmc3";
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
216 enable-active-high;
217 gpio = <&pio 7 9 0>;
218 };
219 };
This page took 0.066603 seconds and 4 git commands to generate.