imx6: add back bootargs
[openwrt/staging/chunkeey.git] / target / linux / imx6 / files-3.10 / arch / arm / boot / dts / imx6q-gw5400-a.dts
1 /*
2 * Copyright 2013 Gateworks Corporation
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12 /dts-v1/;
13 #include "imx6q.dtsi"
14
15 / {
16 model = "Gateworks Ventana GW5400-A";
17 compatible = "gw,imx6q-gw5400-a", "gw,ventana", "fsl,imx6q";
18
19 /* these are used by bootloader for disabling nodes */
20 aliases {
21 ethernet0 = &fec;
22 ethernet1 = &eth1;
23 i2c0 = &i2c1;
24 i2c1 = &i2c2;
25 i2c2 = &i2c3;
26 ipu0 = &ipu1;
27 ipu1 = &ipu2;
28 led0 = &led0;
29 led1 = &led1;
30 led2 = &led2;
31 pwm0 = &pwm1;
32 pwm1 = &pwm2;
33 pwm2 = &pwm3;
34 pwm3 = &pwm4;
35 sky2 = &eth1;
36 ssi0 = &ssi1;
37 ssi1 = &ssi2;
38 spi0 = &ecspi1;
39 spi1 = &ecspi2;
40 spi2 = &ecspi3;
41 spi3 = &ecspi4;
42 spi4 = &ecspi5;
43 usb0 = &usbh3;
44 usb1 = &usbotg;
45 usdhc0 = &usdhc1;
46 usdhc1 = &usdhc2;
47 usdhc2 = &usdhc3;
48 usdhc3 = &usdhc4;
49 };
50
51 chosen {
52 bootargs = "console=ttymxc1,115200";
53 };
54
55 memory {
56 reg = <0x10000000 0x40000000>;
57 };
58
59 leds {
60 compatible = "gpio-leds";
61
62 led0: user1 {
63 label = "user1";
64 gpios = <&gpio4 6 0>; /* 102 -> MX6_PANLEDG */
65 default-state = "on";
66 linux,default-trigger = "heartbeat";
67 };
68
69 led1: user2 {
70 label = "user2";
71 gpios = <&gpio4 10 0>; /* 106 -> MX6_PANLEDR */
72 default-state = "off";
73 };
74
75 led2: user3 {
76 label = "user3";
77 gpios = <&gpio4 15 1>; /* 111 -> MX6_LOCLED# */
78 default-state = "off";
79 };
80 };
81
82 regulators {
83 compatible = "simple-bus";
84
85 reg_2p5v: 2p5v {
86 compatible = "regulator-fixed";
87 regulator-name = "2P5V";
88 regulator-min-microvolt = <2500000>;
89 regulator-max-microvolt = <2500000>;
90 regulator-always-on;
91 };
92
93 reg_3p3v: 3p3v {
94 compatible = "regulator-fixed";
95 regulator-name = "3P3V";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
98 regulator-always-on;
99 };
100
101 reg_usb_otg_vbus: usb_otg_vbus {
102 compatible = "regulator-fixed";
103 regulator-name = "usb_otg_vbus";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106 gpio = <&gpio3 22 0>;
107 enable-active-high;
108 };
109 };
110
111 sound {
112 compatible = "fsl,imx6q-sabrelite-sgtl5000",
113 "fsl,imx-audio-sgtl5000";
114 model = "imx6q-sabrelite-sgtl5000";
115 ssi-controller = <&ssi1>;
116 audio-codec = <&codec>;
117 audio-routing =
118 "MIC_IN", "Mic Jack",
119 "Mic Jack", "Mic Bias",
120 "Headphone Jack", "HP_OUT";
121 mux-int-port = <1>;
122 mux-ext-port = <4>;
123 };
124 };
125
126 &audmux {
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_audmux_3>;
129 status = "okay";
130 };
131
132 &ecspi1 {
133 fsl,spi-num-chipselects = <1>;
134 cs-gpios = <&gpio3 19 0>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_ecspi1_1>;
137 status = "okay";
138
139 flash: m25p80@0 {
140 compatible = "sst,w25q256";
141 spi-max-frequency = <30000000>;
142 reg = <0>;
143 };
144 };
145
146 &fec {
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_enet_1>;
149 phy-mode = "rgmii";
150 phy-reset-gpios = <&gpio1 30 0>;
151 status = "okay";
152 };
153
154 &i2c1 {
155 status = "okay";
156 clock-frequency = <100000>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_i2c1_1>;
159
160 eeprom: eeprom@50 {
161 compatible = "atmel,24c02";
162 reg = <0x50>;
163 pagesize = <16>;
164 };
165
166 eeprom1: eeprom@50 {
167 compatible = "atmel,24c02";
168 reg = <0x50>;
169 pagesize = <16>;
170 };
171
172 eeprom2: eeprom@51 {
173 compatible = "atmel,24c02";
174 reg = <0x51>;
175 pagesize = <16>;
176 };
177
178 eeprom3: eeprom@52 {
179 compatible = "atmel,24c02";
180 reg = <0x52>;
181 pagesize = <16>;
182 };
183
184 eeprom4: eeprom@53 {
185 compatible = "atmel,24c02";
186 reg = <0x53>;
187 pagesize = <16>;
188 };
189
190 rtc: ds1672@68 {
191 compatible = "dallas,ds1672";
192 reg = <0x68>;
193 };
194
195 gpio: pca9555@23 {
196 compatible = "nxp,pca9555";
197 reg = <0x23>;
198 gpio-controller;
199 #gpio-cells = <2>;
200 };
201
202 hwmon: gsc@29 {
203 compatible = "gw,gsp";
204 reg = <0x29>;
205 };
206 };
207
208 &i2c2 {
209 status = "okay";
210 clock-frequency = <100000>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&pinctrl_i2c2_2>;
213
214 pmic: pfuze@08 {
215 compatible = "fsl,pfuze100";
216 reg = <0x08>;
217 };
218
219 pciswitch: pex8609@3f {
220 compatible = "plx,pex8609";
221 reg = <0x3f>;
222 };
223
224 pciclkgen: si52147@6b {
225 compatible = "sil,si52147";
226 reg = <0x6b>;
227 };
228 };
229
230 &i2c3 {
231 status = "okay";
232 clock-frequency = <100000>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pinctrl_i2c3_2>;
235
236 codec: sgtl5000@0a {
237 compatible = "fsl,sgtl5000";
238 reg = <0x0a>;
239 clocks = <&clks 169>;
240 VDDA-supply = <&reg_2p5v>;
241 VDDIO-supply = <&reg_3p3v>;
242 };
243
244 accelerometer: mma8450@1c {
245 compatible = "fsl,mma8450";
246 reg = <0x1c>;
247 };
248
249 videoout: adv7393@2a {
250 compatible = "adi,adv7393";
251 reg = <0x2a>;
252 };
253
254 videoin: adv7180@20 {
255 compatible = "adi,adv7180";
256 reg = <0x20>;
257 };
258
259 hdmiin: adv7611@4c {
260 compatible = "adi,adv7611";
261 reg = <0x4c>;
262 };
263
264 touchscreen: egalax_ts@04 {
265 compatible = "eeti,egalax_ts";
266 reg = <0x04>;
267 wakeup-gpios = <&gpio1 12 0>;
268 };
269 };
270
271 &iomuxc {
272 pinctrl-names = "default";
273 pinctrl-0 = <&pinctrl_hog>;
274
275 hog {
276 pinctrl_hog: hoggrp {
277 fsl,pins = <
278 MX6Q_PAD_EIM_D22__GPIO3_IO22 0x80000000 /* OTG_PWR_EN */
279 MX6Q_PAD_EIM_D19__GPIO3_IO19 0x80000000 /* SPINOR_CS0# */
280 MX6Q_PAD_KEY_COL0__GPIO4_IO06 0x80000000 /* user1 led */
281 MX6Q_PAD_KEY_COL2__GPIO4_IO10 0x80000000 /* user2 led */
282 MX6Q_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 /* user3 led */
283 MX6Q_PAD_SD1_DAT0__GPIO1_IO16 0x80000000 /* USBHUB_RST# */
284 MX6Q_PAD_ENET_TX_EN__GPIO1_IO28 0x80000000 /* PCIE IRQ */
285 MX6Q_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 /* PCIE RST */
286 MX6Q_PAD_SD1_DAT3__GPIO1_IO21 0x80000000 /* MIPI_DIO */
287 MX6Q_PAD_GPIO_0__CCM_CLKO1 0x80000000 /* AUD4_MCK */
288 >;
289 };
290 };
291 };
292
293 &ldb {
294 status = "okay";
295 lvds-channel@0 {
296 crtcs = <&ipu1 0>, <&ipu1 1>, <&ipu2 0>, <&ipu2 1>;
297 };
298 };
299
300 &pcie {
301 reset-gpio = <&gpio1 29 0>;
302 status = "okay";
303
304 eth1: sky2@8 { /* MAC/PHY on bus 8 */
305 compatible = "marvell,sky2";
306 /* Filled in by U-Boot */
307 mac-address = [ 00 00 00 00 00 00 ];
308 };
309 };
310
311 &ssi1 {
312 fsl,mode = "i2s-slave";
313 status = "okay";
314 };
315
316 &uart1 {
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_uart1_2>;
319 status = "okay";
320 };
321
322 &uart2 {
323 pinctrl-names = "default";
324 pinctrl-0 = <&pinctrl_uart2_2>;
325 status = "okay";
326 };
327
328 &uart3 {
329 pinctrl-names = "default";
330 pinctrl-0 = <&pinctrl_uart3_1>;
331 status = "okay";
332 };
333
334 &uart5 {
335 status = "okay";
336 pinctrl-names = "default";
337 pinctrl-0 = <&pinctrl_uart5_1>;
338 };
339
340 &usbh1 {
341 status = "okay";
342 };
343
344 &usdhc3 {
345 pinctrl-names = "default";
346 pinctrl-0 = <&pinctrl_usdhc3_2>;
347 cd-gpios = <&gpio7 0 0>;
348 vmmc-supply = <&reg_3p3v>;
349 status = "okay";
350 };