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 --- a/arch/arm/boot/dts/Makefile
37 +++ b/arch/arm/boot/dts/Makefile
38 @@ -262,6 +262,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
44 imx6dl-hummingboard.dtb \
45 imx6dl-nitrogen6x.dtb \
46 @@ -288,6 +289,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
52 imx6q-hummingboard.dtb \
53 imx6q-nitrogen6x.dtb \
55 +++ b/arch/arm/boot/dts/imx6dl-gw551x.dts
58 + * Copyright 2014 Gateworks Corporation
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
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.
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.
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,
80 + * Or, alternatively,
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
91 + * The above copyright notice and this permission notice shall be
92 + * included in all copies or substantial portions of the Software.
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.
105 +#include "imx6dl.dtsi"
106 +#include "imx6qdl-gw551x.dtsi"
109 + model = "Gateworks Ventana i.MX6 DualLite/Solo GW551X";
110 + compatible = "gw,imx6dl-gw551x", "gw,ventana", "fsl,imx6dl";
113 +++ b/arch/arm/boot/dts/imx6q-gw551x.dts
116 + * Copyright 2014 Gateworks Corporation
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
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.
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.
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
138 + * Or, alternatively,
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
149 + * The above copyright notice and this permission notice shall be
150 + * included in all copies or substantial portions of the Software.
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.
163 +#include "imx6q.dtsi"
164 +#include "imx6qdl-gw551x.dtsi"
167 + model = "Gateworks Ventana i.MX6 Dual/Quad GW551X";
168 + compatible = "gw,imx6q-gw551x", "gw,ventana", "fsl,imx6q";
171 +++ b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi
174 + * Copyright 2014 Gateworks Corporation
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
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.
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.
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
196 + * Or, alternatively,
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
207 + * The above copyright notice and this permission notice shall be
208 + * included in all copies or substantial portions of the Software.
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.
220 +#include <dt-bindings/gpio/gpio.h>
223 + /* these are used by bootloader for disabling nodes */
233 + bootargs = "console=ttymxc1,115200";
237 + compatible = "gpio-leds";
238 + pinctrl-names = "default";
239 + pinctrl-0 = <&pinctrl_gpio_leds>;
243 + gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
244 + default-state = "on";
245 + linux,default-trigger = "heartbeat";
250 + reg = <0x10000000 0x20000000>;
254 + compatible = "simple-bus";
255 + #address-cells = <1>;
258 + reg_5p0v: regulator@0 {
259 + compatible = "regulator-fixed";
261 + regulator-name = "5P0V";
262 + regulator-min-microvolt = <5000000>;
263 + regulator-max-microvolt = <5000000>;
266 + reg_usb_h1_vbus: regulator@1 {
267 + compatible = "regulator-fixed";
269 + regulator-name = "usb_h1_vbus";
270 + regulator-min-microvolt = <5000000>;
271 + regulator-max-microvolt = <5000000>;
274 + reg_usb_otg_vbus: regulator@2 {
275 + compatible = "regulator-fixed";
277 + regulator-name = "usb_otg_vbus";
278 + regulator-min-microvolt = <5000000>;
279 + regulator-max-microvolt = <5000000>;
285 + pinctrl-names = "default";
286 + pinctrl-0 = <&pinctrl_flexcan1>;
291 + pinctrl-names = "default";
292 + pinctrl-0 = <&pinctrl_gpmi_nand>;
297 + ddc-i2c-bus = <&i2c3>;
302 + clock-frequency = <100000>;
303 + pinctrl-names = "default";
304 + pinctrl-0 = <&pinctrl_i2c1>;
307 + eeprom1: eeprom@50 {
308 + compatible = "atmel,24c02";
313 + eeprom2: eeprom@51 {
314 + compatible = "atmel,24c02";
319 + eeprom3: eeprom@52 {
320 + compatible = "atmel,24c02";
325 + eeprom4: eeprom@53 {
326 + compatible = "atmel,24c02";
332 + compatible = "nxp,pca9555";
339 + compatible = "dallas,ds1672";
345 + clock-frequency = <100000>;
346 + pinctrl-names = "default";
347 + pinctrl-0 = <&pinctrl_i2c2>;
352 + clock-frequency = <100000>;
353 + pinctrl-names = "default";
354 + pinctrl-0 = <&pinctrl_i2c3>;
357 + gpio_exp: pca9555@24 {
358 + compatible = "nxp,pca9555";
367 + pinctrl-names = "default";
368 + pinctrl-0 = <&pinctrl_pcie>;
369 + reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
378 + pinctrl-names = "default";
379 + pinctrl-0 = <&pinctrl_uart2>;
384 + pinctrl-names = "default";
385 + pinctrl-0 = <&pinctrl_uart3>;
390 + vbus-supply = <®_usb_otg_vbus>;
391 + pinctrl-names = "default";
392 + pinctrl-0 = <&pinctrl_usbotg>;
393 + disable-over-current;
398 + vbus-supply = <®_usb_h1_vbus>;
404 + pinctrl_flexcan1: flexcan1grp {
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 */
412 + pinctrl_gpio_leds: gpioledsgrp {
414 + MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
418 + pinctrl_gpmi_nand: gpminandgrp {
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
439 + pinctrl_i2c1: i2c1grp {
441 + MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
442 + MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
446 + pinctrl_i2c2: i2c2grp {
448 + MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
449 + MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
453 + pinctrl_i2c3: i2c3grp {
455 + MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
456 + MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
460 + pinctrl_pcie: pciegrp {
462 + MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */
466 + pinctrl_uart2: uart2grp {
468 + MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
469 + MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
473 + pinctrl_uart3: uart3grp {
475 + MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
476 + MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
480 + pinctrl_usbotg: usbotggrp {
482 + MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059