imx6: drop 4.3 support
[openwrt/openwrt.git] / target / linux / imx6 / patches-4.1 / 020-ARM-dts-Gateworks-GW5510-support-i.MX6.patch
1 From e9d6d6b62f306ba83e1441af5daf2809a6167474 Mon Sep 17 00:00:00 2001
2 From: Tim Harvey <tharvey@gateworks.com>
3 Date: Thu, 7 May 2015 08:38:00 -0700
4 Subject: [PATCH] ARM: dts: Gateworks GW5510 support (i.MX6)
5
6 Add support for the Gateworks GW5510 board featuring:
7 * i.MX6 SoC
8 * up to 512MB DDR3
9 * up to 2GB NAND flash
10 * 1x miniPCIe socket (with USB)
11 * HDMI out (micro-HDMI)
12 * HDMI in (micro-HDMI) (currently supported by only vendor kernel)
13 * TTL level I/O (supported by GW16111 breakout board):
14 * I2C
15 * 2x UART
16 * CAN
17 * 2x DIO (GPIO/PWM)
18 * USB OTG
19
20 For more details see:
21 http://www.gateworks.com/product/item/ventana-gw5510-single-board-computer
22
23 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
24 Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
25 Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
26 ---
27 arch/arm/boot/dts/Makefile | 2 +
28 arch/arm/boot/dts/imx6dl-gw551x.dts | 55 ++++++
29 arch/arm/boot/dts/imx6q-gw551x.dts | 55 ++++++
30 arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 314 ++++++++++++++++++++++++++++++++++
31 4 files changed, 426 insertions(+)
32 create mode 100644 arch/arm/boot/dts/imx6dl-gw551x.dts
33 create mode 100644 arch/arm/boot/dts/imx6q-gw551x.dts
34 create mode 100644 arch/arm/boot/dts/imx6qdl-gw551x.dtsi
35
36 --- a/arch/arm/boot/dts/Makefile
37 +++ b/arch/arm/boot/dts/Makefile
38 @@ -262,6 +262,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
39 imx6dl-gw52xx.dtb \
40 imx6dl-gw53xx.dtb \
41 imx6dl-gw54xx.dtb \
42 + imx6dl-gw551x.dtb \
43 imx6dl-gw552x.dtb \
44 imx6dl-hummingboard.dtb \
45 imx6dl-nitrogen6x.dtb \
46 @@ -288,6 +289,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
47 imx6q-gw53xx.dtb \
48 imx6q-gw5400-a.dtb \
49 imx6q-gw54xx.dtb \
50 + imx6q-gw551x.dtb \
51 imx6q-gw552x.dtb \
52 imx6q-hummingboard.dtb \
53 imx6q-nitrogen6x.dtb \
54 --- /dev/null
55 +++ b/arch/arm/boot/dts/imx6dl-gw551x.dts
56 @@ -0,0 +1,55 @@
57 +/*
58 + * Copyright 2014 Gateworks Corporation
59 + *
60 + * This file is dual-licensed: you can use it either under the terms
61 + * of the GPL or the X11 license, at your option. Note that this dual
62 + * licensing only applies to this file, and not this project as a
63 + * whole.
64 + *
65 + * a) This file is free software; you can redistribute it and/or
66 + * modify it under the terms of the GNU General Public License as
67 + * published by the Free Software Foundation; either version 2 of
68 + * the License, or (at your option) any later version.
69 + *
70 + * This file is distributed in the hope that it will be useful,
71 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
72 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 + * GNU General Public License for more details.
74 + *
75 + * You should have received a copy of the GNU General Public
76 + * License along with this file; if not, write to the Free
77 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
78 + * MA 02110-1301 USA
79 + *
80 + * Or, alternatively,
81 + *
82 + * b) Permission is hereby granted, free of charge, to any person
83 + * obtaining a copy of this software and associated documentation
84 + * files (the "Software"), to deal in the Software without
85 + * restriction, including without limitation the rights to use,
86 + * copy, modify, merge, publish, distribute, sublicense, and/or
87 + * sell copies of the Software, and to permit persons to whom the
88 + * Software is furnished to do so, subject to the following
89 + * conditions:
90 + *
91 + * The above copyright notice and this permission notice shall be
92 + * included in all copies or substantial portions of the Software.
93 + *
94 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
95 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
96 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
97 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
98 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
99 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
100 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
101 + * OTHER DEALINGS IN THE SOFTWARE.
102 + */
103 +
104 +/dts-v1/;
105 +#include "imx6dl.dtsi"
106 +#include "imx6qdl-gw551x.dtsi"
107 +
108 +/ {
109 + model = "Gateworks Ventana i.MX6 DualLite/Solo GW551X";
110 + compatible = "gw,imx6dl-gw551x", "gw,ventana", "fsl,imx6dl";
111 +};
112 --- /dev/null
113 +++ b/arch/arm/boot/dts/imx6q-gw551x.dts
114 @@ -0,0 +1,55 @@
115 +/*
116 + * Copyright 2014 Gateworks Corporation
117 + *
118 + * This file is dual-licensed: you can use it either under the terms
119 + * of the GPL or the X11 license, at your option. Note that this dual
120 + * licensing only applies to this file, and not this project as a
121 + * whole.
122 + *
123 + * a) This file is free software; you can redistribute it and/or
124 + * modify it under the terms of the GNU General Public License as
125 + * published by the Free Software Foundation; either version 2 of
126 + * the License, or (at your option) any later version.
127 + *
128 + * This file is distributed in the hope that it will be useful,
129 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
130 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
131 + * GNU General Public License for more details.
132 + *
133 + * You should have received a copy of the GNU General Public
134 + * License along with this file; if not, write to the Free
135 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
136 + * MA 02110-1301 USA
137 + *
138 + * Or, alternatively,
139 + *
140 + * b) Permission is hereby granted, free of charge, to any person
141 + * obtaining a copy of this software and associated documentation
142 + * files (the "Software"), to deal in the Software without
143 + * restriction, including without limitation the rights to use,
144 + * copy, modify, merge, publish, distribute, sublicense, and/or
145 + * sell copies of the Software, and to permit persons to whom the
146 + * Software is furnished to do so, subject to the following
147 + * conditions:
148 + *
149 + * The above copyright notice and this permission notice shall be
150 + * included in all copies or substantial portions of the Software.
151 + *
152 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
153 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
154 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
155 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
156 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
157 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
158 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
159 + * OTHER DEALINGS IN THE SOFTWARE.
160 + */
161 +
162 +/dts-v1/;
163 +#include "imx6q.dtsi"
164 +#include "imx6qdl-gw551x.dtsi"
165 +
166 +/ {
167 + model = "Gateworks Ventana i.MX6 Dual/Quad GW551X";
168 + compatible = "gw,imx6q-gw551x", "gw,ventana", "fsl,imx6q";
169 +};
170 --- /dev/null
171 +++ b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi
172 @@ -0,0 +1,314 @@
173 +/*
174 + * Copyright 2014 Gateworks Corporation
175 + *
176 + * This file is dual-licensed: you can use it either under the terms
177 + * of the GPL or the X11 license, at your option. Note that this dual
178 + * licensing only applies to this file, and not this project as a
179 + * whole.
180 + *
181 + * a) This file is free software; you can redistribute it and/or
182 + * modify it under the terms of the GNU General Public License as
183 + * published by the Free Software Foundation; either version 2 of
184 + * the License, or (at your option) any later version.
185 + *
186 + * This file is distributed in the hope that it will be useful,
187 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
188 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
189 + * GNU General Public License for more details.
190 + *
191 + * You should have received a copy of the GNU General Public
192 + * License along with this file; if not, write to the Free
193 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
194 + * MA 02110-1301 USA
195 + *
196 + * Or, alternatively,
197 + *
198 + * b) Permission is hereby granted, free of charge, to any person
199 + * obtaining a copy of this software and associated documentation
200 + * files (the "Software"), to deal in the Software without
201 + * restriction, including without limitation the rights to use,
202 + * copy, modify, merge, publish, distribute, sublicense, and/or
203 + * sell copies of the Software, and to permit persons to whom the
204 + * Software is furnished to do so, subject to the following
205 + * conditions:
206 + *
207 + * The above copyright notice and this permission notice shall be
208 + * included in all copies or substantial portions of the Software.
209 + *
210 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
211 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
212 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
213 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
214 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
215 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
216 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
217 + * OTHER DEALINGS IN THE SOFTWARE.
218 + */
219 +
220 +#include <dt-bindings/gpio/gpio.h>
221 +
222 +/ {
223 + /* these are used by bootloader for disabling nodes */
224 + aliases {
225 + led0 = &led0;
226 + nand = &gpmi;
227 + ssi0 = &ssi1;
228 + usb0 = &usbh1;
229 + usb1 = &usbotg;
230 + };
231 +
232 + chosen {
233 + bootargs = "console=ttymxc1,115200";
234 + };
235 +
236 + leds {
237 + compatible = "gpio-leds";
238 + pinctrl-names = "default";
239 + pinctrl-0 = <&pinctrl_gpio_leds>;
240 +
241 + led0: user1 {
242 + label = "user1";
243 + gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
244 + default-state = "on";
245 + linux,default-trigger = "heartbeat";
246 + };
247 + };
248 +
249 + memory {
250 + reg = <0x10000000 0x20000000>;
251 + };
252 +
253 + regulators {
254 + compatible = "simple-bus";
255 + #address-cells = <1>;
256 + #size-cells = <0>;
257 +
258 + reg_5p0v: regulator@0 {
259 + compatible = "regulator-fixed";
260 + reg = <0>;
261 + regulator-name = "5P0V";
262 + regulator-min-microvolt = <5000000>;
263 + regulator-max-microvolt = <5000000>;
264 + };
265 +
266 + reg_usb_h1_vbus: regulator@1 {
267 + compatible = "regulator-fixed";
268 + reg = <1>;
269 + regulator-name = "usb_h1_vbus";
270 + regulator-min-microvolt = <5000000>;
271 + regulator-max-microvolt = <5000000>;
272 + };
273 +
274 + reg_usb_otg_vbus: regulator@2 {
275 + compatible = "regulator-fixed";
276 + reg = <2>;
277 + regulator-name = "usb_otg_vbus";
278 + regulator-min-microvolt = <5000000>;
279 + regulator-max-microvolt = <5000000>;
280 + };
281 + };
282 +};
283 +
284 +&can1 {
285 + pinctrl-names = "default";
286 + pinctrl-0 = <&pinctrl_flexcan1>;
287 + status = "okay";
288 +};
289 +
290 +&gpmi {
291 + pinctrl-names = "default";
292 + pinctrl-0 = <&pinctrl_gpmi_nand>;
293 + status = "okay";
294 +};
295 +
296 +&hdmi {
297 + ddc-i2c-bus = <&i2c3>;
298 + status = "okay";
299 +};
300 +
301 +&i2c1 {
302 + clock-frequency = <100000>;
303 + pinctrl-names = "default";
304 + pinctrl-0 = <&pinctrl_i2c1>;
305 + status = "okay";
306 +
307 + eeprom1: eeprom@50 {
308 + compatible = "atmel,24c02";
309 + reg = <0x50>;
310 + pagesize = <16>;
311 + };
312 +
313 + eeprom2: eeprom@51 {
314 + compatible = "atmel,24c02";
315 + reg = <0x51>;
316 + pagesize = <16>;
317 + };
318 +
319 + eeprom3: eeprom@52 {
320 + compatible = "atmel,24c02";
321 + reg = <0x52>;
322 + pagesize = <16>;
323 + };
324 +
325 + eeprom4: eeprom@53 {
326 + compatible = "atmel,24c02";
327 + reg = <0x53>;
328 + pagesize = <16>;
329 + };
330 +
331 + gpio: pca9555@23 {
332 + compatible = "nxp,pca9555";
333 + reg = <0x23>;
334 + gpio-controller;
335 + #gpio-cells = <2>;
336 + };
337 +
338 + rtc: ds1672@68 {
339 + compatible = "dallas,ds1672";
340 + reg = <0x68>;
341 + };
342 +};
343 +
344 +&i2c2 {
345 + clock-frequency = <100000>;
346 + pinctrl-names = "default";
347 + pinctrl-0 = <&pinctrl_i2c2>;
348 + status = "okay";
349 +};
350 +
351 +&i2c3 {
352 + clock-frequency = <100000>;
353 + pinctrl-names = "default";
354 + pinctrl-0 = <&pinctrl_i2c3>;
355 + status = "okay";
356 +
357 + gpio_exp: pca9555@24 {
358 + compatible = "nxp,pca9555";
359 + reg = <0x24>;
360 + gpio-controller;
361 + #gpio-cells = <2>;
362 + };
363 +
364 +};
365 +
366 +&pcie {
367 + pinctrl-names = "default";
368 + pinctrl-0 = <&pinctrl_pcie>;
369 + reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
370 + status = "okay";
371 +};
372 +
373 +&ssi1 {
374 + status = "okay";
375 +};
376 +
377 +&uart2 {
378 + pinctrl-names = "default";
379 + pinctrl-0 = <&pinctrl_uart2>;
380 + status = "okay";
381 +};
382 +
383 +&uart3 {
384 + pinctrl-names = "default";
385 + pinctrl-0 = <&pinctrl_uart3>;
386 + status = "okay";
387 +};
388 +
389 +&usbotg {
390 + vbus-supply = <&reg_usb_otg_vbus>;
391 + pinctrl-names = "default";
392 + pinctrl-0 = <&pinctrl_usbotg>;
393 + disable-over-current;
394 + status = "okay";
395 +};
396 +
397 +&usbh1 {
398 + vbus-supply = <&reg_usb_h1_vbus>;
399 + status = "okay";
400 +};
401 +
402 +&iomuxc {
403 + imx6qdl-gw51xx {
404 + pinctrl_flexcan1: flexcan1grp {
405 + fsl,pins = <
406 + MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
407 + MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
408 + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* CAN_STBY */
409 + >;
410 + };
411 +
412 + pinctrl_gpio_leds: gpioledsgrp {
413 + fsl,pins = <
414 + MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
415 + >;
416 + };
417 +
418 + pinctrl_gpmi_nand: gpminandgrp {
419 + fsl,pins = <
420 + MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
421 + MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
422 + MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
423 + MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
424 + MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
425 + MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
426 + MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
427 + MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
428 + MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
429 + MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
430 + MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
431 + MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
432 + MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
433 + MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
434 + MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
435 + MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
436 + >;
437 + };
438 +
439 + pinctrl_i2c1: i2c1grp {
440 + fsl,pins = <
441 + MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
442 + MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
443 + >;
444 + };
445 +
446 + pinctrl_i2c2: i2c2grp {
447 + fsl,pins = <
448 + MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
449 + MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
450 + >;
451 + };
452 +
453 + pinctrl_i2c3: i2c3grp {
454 + fsl,pins = <
455 + MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
456 + MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
457 + >;
458 + };
459 +
460 + pinctrl_pcie: pciegrp {
461 + fsl,pins = <
462 + MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */
463 + >;
464 + };
465 +
466 + pinctrl_uart2: uart2grp {
467 + fsl,pins = <
468 + MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
469 + MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
470 + >;
471 + };
472 +
473 + pinctrl_uart3: uart3grp {
474 + fsl,pins = <
475 + MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
476 + MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
477 + >;
478 + };
479 +
480 + pinctrl_usbotg: usbotggrp {
481 + fsl,pins = <
482 + MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
483 + >;
484 + };
485 + };
486 +};