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)
6 Add support for the Gateworks GW5510 board featuring:
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):
21 http://www.gateworks.com/product/item/ventana-gw5510-single-board-computer
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>
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
36 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
37 index 86217db..8932e6e 100644
38 --- a/arch/arm/boot/dts/Makefile
39 +++ b/arch/arm/boot/dts/Makefile
40 @@ -262,6 +262,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
46 imx6dl-hummingboard.dtb \
47 imx6dl-nitrogen6x.dtb \
48 @@ -288,6 +289,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
54 imx6q-hummingboard.dtb \
55 imx6q-nitrogen6x.dtb \
56 diff --git a/arch/arm/boot/dts/imx6dl-gw551x.dts b/arch/arm/boot/dts/imx6dl-gw551x.dts
58 index 0000000..82d5f85
60 +++ b/arch/arm/boot/dts/imx6dl-gw551x.dts
63 + * Copyright 2014 Gateworks Corporation
65 + * This file is dual-licensed: you can use it either under the terms
66 + * of the GPL or the X11 license, at your option. Note that this dual
67 + * licensing only applies to this file, and not this project as a
70 + * a) This file is free software; you can redistribute it and/or
71 + * modify it under the terms of the GNU General Public License as
72 + * published by the Free Software Foundation; either version 2 of
73 + * the License, or (at your option) any later version.
75 + * This file is distributed in the hope that it will be useful,
76 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
77 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
78 + * GNU General Public License for more details.
80 + * You should have received a copy of the GNU General Public
81 + * License along with this file; if not, write to the Free
82 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
85 + * Or, alternatively,
87 + * b) Permission is hereby granted, free of charge, to any person
88 + * obtaining a copy of this software and associated documentation
89 + * files (the "Software"), to deal in the Software without
90 + * restriction, including without limitation the rights to use,
91 + * copy, modify, merge, publish, distribute, sublicense, and/or
92 + * sell copies of the Software, and to permit persons to whom the
93 + * Software is furnished to do so, subject to the following
96 + * The above copyright notice and this permission notice shall be
97 + * included in all copies or substantial portions of the Software.
99 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
100 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
101 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
102 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
103 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
104 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
105 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
106 + * OTHER DEALINGS IN THE SOFTWARE.
110 +#include "imx6dl.dtsi"
111 +#include "imx6qdl-gw551x.dtsi"
114 + model = "Gateworks Ventana i.MX6 DualLite/Solo GW551X";
115 + compatible = "gw,imx6dl-gw551x", "gw,ventana", "fsl,imx6dl";
117 diff --git a/arch/arm/boot/dts/imx6q-gw551x.dts b/arch/arm/boot/dts/imx6q-gw551x.dts
119 index 0000000..2c7feee
121 +++ b/arch/arm/boot/dts/imx6q-gw551x.dts
124 + * Copyright 2014 Gateworks Corporation
126 + * This file is dual-licensed: you can use it either under the terms
127 + * of the GPL or the X11 license, at your option. Note that this dual
128 + * licensing only applies to this file, and not this project as a
131 + * a) This file is free software; you can redistribute it and/or
132 + * modify it under the terms of the GNU General Public License as
133 + * published by the Free Software Foundation; either version 2 of
134 + * the License, or (at your option) any later version.
136 + * This file is distributed in the hope that it will be useful,
137 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
138 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
139 + * GNU General Public License for more details.
141 + * You should have received a copy of the GNU General Public
142 + * License along with this file; if not, write to the Free
143 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
144 + * MA 02110-1301 USA
146 + * Or, alternatively,
148 + * b) Permission is hereby granted, free of charge, to any person
149 + * obtaining a copy of this software and associated documentation
150 + * files (the "Software"), to deal in the Software without
151 + * restriction, including without limitation the rights to use,
152 + * copy, modify, merge, publish, distribute, sublicense, and/or
153 + * sell copies of the Software, and to permit persons to whom the
154 + * Software is furnished to do so, subject to the following
157 + * The above copyright notice and this permission notice shall be
158 + * included in all copies or substantial portions of the Software.
160 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
161 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
162 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
163 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
164 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
165 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
166 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
167 + * OTHER DEALINGS IN THE SOFTWARE.
171 +#include "imx6q.dtsi"
172 +#include "imx6qdl-gw551x.dtsi"
175 + model = "Gateworks Ventana i.MX6 Dual/Quad GW551X";
176 + compatible = "gw,imx6q-gw551x", "gw,ventana", "fsl,imx6q";
178 diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi
180 index 0000000..d1866a0
182 +++ b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi
185 + * Copyright 2014 Gateworks Corporation
187 + * This file is dual-licensed: you can use it either under the terms
188 + * of the GPL or the X11 license, at your option. Note that this dual
189 + * licensing only applies to this file, and not this project as a
192 + * a) This file is free software; you can redistribute it and/or
193 + * modify it under the terms of the GNU General Public License as
194 + * published by the Free Software Foundation; either version 2 of
195 + * the License, or (at your option) any later version.
197 + * This file is distributed in the hope that it will be useful,
198 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
199 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
200 + * GNU General Public License for more details.
202 + * You should have received a copy of the GNU General Public
203 + * License along with this file; if not, write to the Free
204 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
205 + * MA 02110-1301 USA
207 + * Or, alternatively,
209 + * b) Permission is hereby granted, free of charge, to any person
210 + * obtaining a copy of this software and associated documentation
211 + * files (the "Software"), to deal in the Software without
212 + * restriction, including without limitation the rights to use,
213 + * copy, modify, merge, publish, distribute, sublicense, and/or
214 + * sell copies of the Software, and to permit persons to whom the
215 + * Software is furnished to do so, subject to the following
218 + * The above copyright notice and this permission notice shall be
219 + * included in all copies or substantial portions of the Software.
221 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
222 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
223 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
224 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
225 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
226 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
227 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
228 + * OTHER DEALINGS IN THE SOFTWARE.
231 +#include <dt-bindings/gpio/gpio.h>
234 + /* these are used by bootloader for disabling nodes */
244 + bootargs = "console=ttymxc1,115200";
248 + compatible = "gpio-leds";
249 + pinctrl-names = "default";
250 + pinctrl-0 = <&pinctrl_gpio_leds>;
254 + gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
255 + default-state = "on";
256 + linux,default-trigger = "heartbeat";
261 + reg = <0x10000000 0x20000000>;
265 + compatible = "simple-bus";
266 + #address-cells = <1>;
269 + reg_5p0v: regulator@0 {
270 + compatible = "regulator-fixed";
272 + regulator-name = "5P0V";
273 + regulator-min-microvolt = <5000000>;
274 + regulator-max-microvolt = <5000000>;
277 + reg_usb_h1_vbus: regulator@1 {
278 + compatible = "regulator-fixed";
280 + regulator-name = "usb_h1_vbus";
281 + regulator-min-microvolt = <5000000>;
282 + regulator-max-microvolt = <5000000>;
285 + reg_usb_otg_vbus: regulator@2 {
286 + compatible = "regulator-fixed";
288 + regulator-name = "usb_otg_vbus";
289 + regulator-min-microvolt = <5000000>;
290 + regulator-max-microvolt = <5000000>;
296 + pinctrl-names = "default";
297 + pinctrl-0 = <&pinctrl_flexcan1>;
302 + pinctrl-names = "default";
303 + pinctrl-0 = <&pinctrl_gpmi_nand>;
308 + ddc-i2c-bus = <&i2c3>;
313 + clock-frequency = <100000>;
314 + pinctrl-names = "default";
315 + pinctrl-0 = <&pinctrl_i2c1>;
318 + eeprom1: eeprom@50 {
319 + compatible = "atmel,24c02";
324 + eeprom2: eeprom@51 {
325 + compatible = "atmel,24c02";
330 + eeprom3: eeprom@52 {
331 + compatible = "atmel,24c02";
336 + eeprom4: eeprom@53 {
337 + compatible = "atmel,24c02";
343 + compatible = "nxp,pca9555";
350 + compatible = "dallas,ds1672";
356 + clock-frequency = <100000>;
357 + pinctrl-names = "default";
358 + pinctrl-0 = <&pinctrl_i2c2>;
363 + clock-frequency = <100000>;
364 + pinctrl-names = "default";
365 + pinctrl-0 = <&pinctrl_i2c3>;
368 + gpio_exp: pca9555@24 {
369 + compatible = "nxp,pca9555";
378 + pinctrl-names = "default";
379 + pinctrl-0 = <&pinctrl_pcie>;
380 + reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
389 + pinctrl-names = "default";
390 + pinctrl-0 = <&pinctrl_uart2>;
395 + pinctrl-names = "default";
396 + pinctrl-0 = <&pinctrl_uart3>;
401 + vbus-supply = <®_usb_otg_vbus>;
402 + pinctrl-names = "default";
403 + pinctrl-0 = <&pinctrl_usbotg>;
404 + disable-over-current;
409 + vbus-supply = <®_usb_h1_vbus>;
415 + pinctrl_flexcan1: flexcan1grp {
417 + MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
418 + MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
419 + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* CAN_STBY */
423 + pinctrl_gpio_leds: gpioledsgrp {
425 + MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
429 + pinctrl_gpmi_nand: gpminandgrp {
431 + MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
432 + MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
433 + MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
434 + MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
435 + MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
436 + MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
437 + MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
438 + MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
439 + MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
440 + MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
441 + MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
442 + MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
443 + MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
444 + MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
445 + MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
446 + MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
450 + pinctrl_i2c1: i2c1grp {
452 + MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
453 + MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
457 + pinctrl_i2c2: i2c2grp {
459 + MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
460 + MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
464 + pinctrl_i2c3: i2c3grp {
466 + MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
467 + MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
471 + pinctrl_pcie: pciegrp {
473 + MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */
477 + pinctrl_uart2: uart2grp {
479 + MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
480 + MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
484 + pinctrl_uart3: uart3grp {
486 + MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
487 + MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
491 + pinctrl_usbotg: usbotggrp {
493 + MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059