Skip to contentSkip to conversation

: ARM: dts: Add Gateworks Ventana Support

PATCH New Tim Harvey 2 participants 9 messages Oct 23, 2013

Subsystems (5)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

cover : ARM: dts: Add Gateworks Ventana Support

The Gateworks Ventana product family consists of several baseboard designs based on the Freescale i.MX6 family of processors.

Tim Harvey (4):
ARM: dts: added several new imx-pinmux groups
ARM: dts: add Gateworks Ventana support
ARM: dts: disable flexcan by default
imx: add PCI fixup for PEX860X on Gateworks board

 arch/arm/boot/dts/Makefile            |    9 +
 arch/arm/boot/dts/imx6dl-gw51xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw52xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw53xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw54xx.dts   |   19 ++
 arch/arm/boot/dts/imx6q-gw51xx.dts    |   19 ++
 arch/arm/boot/dts/imx6q-gw52xx.dts    |   23 ++
 arch/arm/boot/dts/imx6q-gw53xx.dts    |   23 ++
 arch/arm/boot/dts/imx6q-gw5400-a.dts  |  443 ++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6q-gw54xx.dts    |   23 ++
 arch/arm/boot/dts/imx6qdl-gw51xx.dtsi |  272 ++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi |  373 +++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi |  429 +++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi |  457 +++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl.dtsi        |   62 +++++
 arch/arm/mach-imx/mach-imx6q.c        |   33 +++
 16 files changed, 2242 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6dl-gw51xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw52xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw53xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw54xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw51xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw52xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw53xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw5400-a.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw54xx.dts
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/4 ARM: dts: added several new imx-pinmux groups

---
 arch/arm/boot/dts/imx6qdl.dtsi |   60 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
arch/arm/boot/dts/imx6qdl.dtsi +60 -0
index 59154dc..caa88f9 100644
@@ -637,6 +637,14 @@
 							MX6QDL_PAD_DISP0_DAT19__AUD5_RXD  0x80000000
 						>;
 					};
+
+					pinctrl_audmux_4: audmux-4 {
+						fsl,pins = <
+							MX6QDL_PAD_EIM_D24__AUD5_RXFS     0x80000000
+							MX6QDL_PAD_EIM_D25__AUD5_RXC      0x80000000
+							MX6QDL_PAD_DISP0_DAT19__AUD5_RXD  0x80000000
+						>;
+					};
 				};
 
 				ecspi1 {
@@ -809,6 +817,28 @@
 							MX6QDL_PAD_SD4_DAT0__NAND_DQS      0x00b1
 						>;
 					};
+
+					/* No Strobe */
+					pinctrl_gpmi_nand_2: gpmi-nand-2 {
+						fsl,pins = <
+							MX6QDL_PAD_NANDF_CLE__NAND_CLE     0xb0b1
+							MX6QDL_PAD_NANDF_ALE__NAND_ALE     0xb0b1
+							MX6QDL_PAD_NANDF_WP_B__NAND_WP_B   0xb0b1
+							MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
+							MX6QDL_PAD_NANDF_CS0__NAND_CE0_B   0xb0b1
+							MX6QDL_PAD_NANDF_CS1__NAND_CE1_B   0xb0b1
+							MX6QDL_PAD_SD4_CMD__NAND_RE_B      0xb0b1
+							MX6QDL_PAD_SD4_CLK__NAND_WE_B      0xb0b1
+							MX6QDL_PAD_NANDF_D0__NAND_DATA00   0xb0b1
+							MX6QDL_PAD_NANDF_D1__NAND_DATA01   0xb0b1
+							MX6QDL_PAD_NANDF_D2__NAND_DATA02   0xb0b1
+							MX6QDL_PAD_NANDF_D3__NAND_DATA03   0xb0b1
+							MX6QDL_PAD_NANDF_D4__NAND_DATA04   0xb0b1
+							MX6QDL_PAD_NANDF_D5__NAND_DATA05   0xb0b1
+							MX6QDL_PAD_NANDF_D6__NAND_DATA06   0xb0b1
+							MX6QDL_PAD_NANDF_D7__NAND_DATA07   0xb0b1
+						>;
+					};
 				};
 
 				hdmi_hdcp {
@@ -1056,6 +1086,13 @@
 							MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
 						>;
 					};
+
+					pinctrl_uart1_2: uart1grp-2 {
+						fsl,pins = <
+							MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
+							MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart2 {
@@ -1074,6 +1111,13 @@
 							MX6QDL_PAD_EIM_D29__UART2_DTE_RTS_B 0x1b0b1
 						>;
 					};
+
+					pinctrl_uart2_3: uart2grp-3 {
+						fsl,pins = <
+							MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
+							MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart3 {
@@ -1094,6 +1138,13 @@
 							MX6QDL_PAD_EIM_EB3__UART3_RTS_B	  0x1b0b1
 						>;
 					};
+
+					pinctrl_uart3_3: uart3grp-3 {
+						fsl,pins = <
+							MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
+							MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart4 {
@@ -1105,6 +1156,15 @@
 					};
 				};
 
+				uart5 {
+					pinctrl_uart5_1: uart5grp-1 {
+						fsl,pins = <
+							MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
+							MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
+						>;
+					};
+				};
+
 				usbotg {
 					pinctrl_usbotg_1: usbotggrp-1 {
 						fsl,pins = <
Signature · 1 line
1.7.9.5
author
#3 lore raw

PATCH 2/4 ARM: dts: add Gateworks Ventana support

In reply to Tim Harvey

The Gateworks Ventana product family consists of several baseboard designs based on the Freescale i.MX6 family of processors. Each baseboard has a different set of possible features.

---
 arch/arm/boot/dts/Makefile            |    9 +
 arch/arm/boot/dts/imx6dl-gw51xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw52xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw53xx.dts   |   19 ++
 arch/arm/boot/dts/imx6dl-gw54xx.dts   |   19 ++
 arch/arm/boot/dts/imx6q-gw51xx.dts    |   19 ++
 arch/arm/boot/dts/imx6q-gw52xx.dts    |   23 ++
 arch/arm/boot/dts/imx6q-gw53xx.dts    |   23 ++
 arch/arm/boot/dts/imx6q-gw5400-a.dts  |  443 ++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6q-gw54xx.dts    |   23 ++
 arch/arm/boot/dts/imx6qdl-gw51xx.dtsi |  272 ++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi |  373 +++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi |  429 +++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi |  457 +++++++++++++++++++++++++++++++++
 14 files changed, 2147 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6dl-gw51xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw52xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw53xx.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-gw54xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw51xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw52xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw53xx.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw5400-a.dts
 create mode 100644 arch/arm/boot/dts/imx6q-gw54xx.dts
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
arch/arm/boot/dts/Makefile +9 -0
index 3043e6c..2b7084c 100644
@@ -131,10 +131,19 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx6dl-gw54xx.dtb \
+	imx6dl-gw53xx.dtb \
+	imx6dl-gw52xx.dtb \
+	imx6dl-gw51xx.dtb \
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
 	imx6q-arm2.dtb \
+	imx6q-gw5400-a.dtb \
+	imx6q-gw54xx.dtb \
+	imx6q-gw53xx.dtb \
+	imx6q-gw52xx.dtb \
+	imx6q-gw51xx.dtb \
 	imx6q-phytec-pbab01.dtb \
 	imx6q-sabreauto.dtb \
 	imx6q-sabrelite.dtb \
arch/arm/boot/dts/imx6dl-gw51xx.dts new file +19 -0
new file mode 100644
index 0000000..4bd055f
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6dl.dtsi"
+#include "imx6qdl-gw51xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 DualLite GW51XX";
+	compatible = "gw,imx6dl-gw51xx", "gw,ventana", "fsl,imx6dl";
+};
arch/arm/boot/dts/imx6dl-gw52xx.dts new file +19 -0
new file mode 100644
index 0000000..c913605
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6dl.dtsi"
+#include "imx6qdl-gw52xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 DualLite GW52XX";
+	compatible = "gw,imx6dl-gw52xx", "gw,ventana", "fsl,imx6dl";
+};
arch/arm/boot/dts/imx6dl-gw53xx.dts new file +19 -0
new file mode 100644
index 0000000..61818a1
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6dl.dtsi"
+#include "imx6qdl-gw53xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 DualLite GW53XX";
+	compatible = "gw,imx6dl-gw53xx", "gw,ventana", "fsl,imx6dl";
+};
arch/arm/boot/dts/imx6dl-gw54xx.dts new file +19 -0
new file mode 100644
index 0000000..ab38b67
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6dl.dtsi"
+#include "imx6qdl-gw54xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 DualLite GW54XX";
+	compatible = "gw,imx6dl-gw54xx", "gw,ventana", "fsl,imx6dl";
+};
arch/arm/boot/dts/imx6q-gw51xx.dts new file +19 -0
new file mode 100644
index 0000000..af4929a
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-gw54xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 Quad GW51XX";
+	compatible = "gw,imx6q-gw51xx", "gw,ventana", "fsl,imx6q";
+};
arch/arm/boot/dts/imx6q-gw52xx.dts new file +23 -0
new file mode 100644
index 0000000..5f71ddb
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-gw52xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 Quad GW52XX";
+	compatible = "gw,imx6q-gw52xx", "gw,ventana", "fsl,imx6q";
+};
+
+&sata {
+	status = "okay";
+};
arch/arm/boot/dts/imx6q-gw53xx.dts new file +23 -0
new file mode 100644
index 0000000..360c316
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-gw53xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 Quad GW53XX";
+	compatible = "gw,imx6q-gw53xx", "gw,ventana", "fsl,imx6q";
+};
+
+&sata {
+	status = "okay";
+};
arch/arm/boot/dts/imx6q-gw5400-a.dts new file +443 -0

443 lines not on this page · raw message

arch/arm/boot/dts/imx6q-gw54xx.dts new file +23 -0
new file mode 100644
index 0000000..ab518d6
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2013 Gateworks Corporation
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-gw54xx.dtsi"
+
+/ {
+	model = "Gateworks Ventana i.MX6 Quad GW54XX";
+	compatible = "gw,imx6q-gw54xx", "gw,ventana", "fsl,imx6q";
+};
+
+&sata {
+	status = "okay";
+};
arch/arm/boot/dts/imx6qdl-gw51xx.dtsi new file +272 -0

272 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-gw52xx.dtsi new file +373 -0

373 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-gw53xx.dtsi new file +429 -0

429 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-gw54xx.dtsi new file +457 -0

457 lines not on this page · raw message

Signature · 1 line
1.7.9.5
author
#5 lore raw

PATCH 3/4 ARM: dts: disable flexcan by default

In reply to Tim Harvey

Typically nodes are disabled by default and enabled when needed.

---
 arch/arm/boot/dts/imx6qdl.dtsi |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl.dtsi +2 -0
index caa88f9..226ce75 100644
@@ -331,6 +331,7 @@
 				interrupts = <0 110 0x04>;
 				clocks = <&clks 108>, <&clks 109>;
 				clock-names = "ipg", "per";
+				status = "disabled";
 			};
 
 			can2: flexcan at 02094000 {
@@ -339,6 +340,7 @@
 				interrupts = <0 111 0x04>;
 				clocks = <&clks 110>, <&clks 111>;
 				clock-names = "ipg", "per";
+				status = "disabled";
 			};
 
 			gpt: gpt at 02098000 {
Signature · 1 line
1.7.9.5
author
#7 lore raw

PATCH 4/4 imx: add PCI fixup for PEX860X on Gateworks board

In reply to Tim Harvey

The PEX860X has GPIO's which are used for PCI Reset lines on the Gateworks Ventana boards. The GPIO's need to be set as output level high so as to allow the PCIe devices to come out of reset.

---
 arch/arm/mach-imx/mach-imx6q.c |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm/mach-imx/mach-imx6q.c +33 -0
index 0f9f241..eb5747f 100644
@@ -13,6 +13,7 @@
 #include <linux/clk.h>
 #include <linux/clkdev.h>
 #include <linux/cpu.h>
+#include <linux/delay.h>
 #include <linux/export.h>
 #include <linux/init.h>
 #include <linux/io.h>
@@ -23,6 +24,7 @@
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/opp.h>
+#include <linux/pci.h>
 #include <linux/phy.h>
 #include <linux/reboot.h>
 #include <linux/regmap.h>
@@ -78,6 +80,37 @@ static int ksz9031rn_phy_fixup(struct phy_device *dev)
 	return 0;
 }
 
+/*
+ * fixup for PLX PEX8909 bridge to configure GPIO1-7 as output High
+ * as they are used for slots1-7 PERST#
+ */
+static void mx6_ventana_pciesw_early_fixup(struct pci_dev *dev)
+{
+	u32 dw;
+
+	if (!of_machine_is_compatible("gw,ventana"))
+		return;
+
+	if (dev->devfn != 0)
+		return;
+
+	pci_read_config_dword(dev, 0x62c, &dw);
+	dw |= 0xaaa8; // GPIO1-7 outputs
+	pci_write_config_dword(dev, 0x62c, dw);
+
+	pci_read_config_dword(dev, 0x644, &dw);
+	dw |= 0xfe;   // GPIO1-7 output high
+	pci_write_config_dword(dev, 0x644, dw);
+
+	msleep(100);
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8609,
+	mx6_ventana_pciesw_early_fixup);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8606,
+	mx6_ventana_pciesw_early_fixup);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8604,
+	mx6_ventana_pciesw_early_fixup);
+
 static int ar8031_phy_fixup(struct phy_device *dev)
 {
 	u16 val;
Signature · 1 line
1.7.9.5
Applied
#2 lore raw

PATCH 1/4 ARM: dts: added several new imx-pinmux groups

In reply to Tim Harvey
Quoted 1 line · Tim Harvey

Applied, thanks.

Shawn

Quoted 113 lines
---
 arch/arm/boot/dts/imx6qdl.dtsi |   60 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
arch/arm/boot/dts/imx6qdl.dtsi +60 -0
index 59154dc..caa88f9 100644
@@ -637,6 +637,14 @@
 							MX6QDL_PAD_DISP0_DAT19__AUD5_RXD  0x80000000
 						>;
 					};
+
+					pinctrl_audmux_4: audmux-4 {
+						fsl,pins = <
+							MX6QDL_PAD_EIM_D24__AUD5_RXFS     0x80000000
+							MX6QDL_PAD_EIM_D25__AUD5_RXC      0x80000000
+							MX6QDL_PAD_DISP0_DAT19__AUD5_RXD  0x80000000
+						>;
+					};
 				};
 
 				ecspi1 {
@@ -809,6 +817,28 @@
 							MX6QDL_PAD_SD4_DAT0__NAND_DQS      0x00b1
 						>;
 					};
+
+					/* No Strobe */
+					pinctrl_gpmi_nand_2: gpmi-nand-2 {
+						fsl,pins = <
+							MX6QDL_PAD_NANDF_CLE__NAND_CLE     0xb0b1
+							MX6QDL_PAD_NANDF_ALE__NAND_ALE     0xb0b1
+							MX6QDL_PAD_NANDF_WP_B__NAND_WP_B   0xb0b1
+							MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
+							MX6QDL_PAD_NANDF_CS0__NAND_CE0_B   0xb0b1
+							MX6QDL_PAD_NANDF_CS1__NAND_CE1_B   0xb0b1
+							MX6QDL_PAD_SD4_CMD__NAND_RE_B      0xb0b1
+							MX6QDL_PAD_SD4_CLK__NAND_WE_B      0xb0b1
+							MX6QDL_PAD_NANDF_D0__NAND_DATA00   0xb0b1
+							MX6QDL_PAD_NANDF_D1__NAND_DATA01   0xb0b1
+							MX6QDL_PAD_NANDF_D2__NAND_DATA02   0xb0b1
+							MX6QDL_PAD_NANDF_D3__NAND_DATA03   0xb0b1
+							MX6QDL_PAD_NANDF_D4__NAND_DATA04   0xb0b1
+							MX6QDL_PAD_NANDF_D5__NAND_DATA05   0xb0b1
+							MX6QDL_PAD_NANDF_D6__NAND_DATA06   0xb0b1
+							MX6QDL_PAD_NANDF_D7__NAND_DATA07   0xb0b1
+						>;
+					};
 				};
 
 				hdmi_hdcp {
@@ -1056,6 +1086,13 @@
 							MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
 						>;
 					};
+
+					pinctrl_uart1_2: uart1grp-2 {
+						fsl,pins = <
+							MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
+							MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart2 {
@@ -1074,6 +1111,13 @@
 							MX6QDL_PAD_EIM_D29__UART2_DTE_RTS_B 0x1b0b1
 						>;
 					};
+
+					pinctrl_uart2_3: uart2grp-3 {
+						fsl,pins = <
+							MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
+							MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart3 {
@@ -1094,6 +1138,13 @@
 							MX6QDL_PAD_EIM_EB3__UART3_RTS_B	  0x1b0b1
 						>;
 					};
+
+					pinctrl_uart3_3: uart3grp-3 {
+						fsl,pins = <
+							MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
+							MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
+						>;
+					};
 				};
 
 				uart4 {
@@ -1105,6 +1156,15 @@
 					};
 				};
 
+				uart5 {
+					pinctrl_uart5_1: uart5grp-1 {
+						fsl,pins = <
+							MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
+							MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
+						>;
+					};
+				};
+
 				usbotg {
 					pinctrl_usbotg_1: usbotggrp-1 {
 						fsl,pins = <
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 2/4 ARM: dts: add Gateworks Ventana support

In reply to Tim Harvey
Quoted 6 lines · Tim Harvey

The Gateworks Ventana product family consists of several baseboard designs based on the Freescale i.MX6 family of processors. Each baseboard has a different set of possible features.

---

<snip>

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_MXC) += \ · line 137

Quoted 12 lines
arch/arm/boot/dts/Makefile +4 -0
index 3043e6c..2b7084c 100644
@@ -131,10 +131,19 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx6dl-gw54xx.dtb \
+	imx6dl-gw53xx.dtb \
+	imx6dl-gw52xx.dtb \
+	imx6dl-gw51xx.dtb \

Sorted it like 51xx, 52xx, 53xx, 54xx, and applied the patch. Thanks.

Shawn

Quoted 12 lines
arch/arm/boot/dts/Makefile +5 -0
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
 	imx6q-arm2.dtb \
+	imx6q-gw5400-a.dtb \
+	imx6q-gw54xx.dtb \
+	imx6q-gw53xx.dtb \
+	imx6q-gw52xx.dtb \
+	imx6q-gw51xx.dtb \
 	imx6q-phytec-pbab01.dtb \
 	imx6q-sabreauto.dtb \
 	imx6q-sabrelite.dtb \
#8 lore raw

PATCH 4/4 imx: add PCI fixup for PEX860X on Gateworks board

In reply to Tim Harvey

On Tue, Oct 22, 2013 at 09:51:28PM -0700, Tim Harvey wrote:

<snip>

arch/arm/mach-imx/mach-imx6q.c static int ksz9031rn_phy_fixup(struct phy_device *dev) · line 87

Quoted 9 lines
arch/arm/mach-imx/mach-imx6q.c +5 -0
@@ -78,6 +80,37 @@ static int ksz9031rn_phy_fixup(struct phy_device *dev)
 	return 0;
 }
 
+/*
+ * fixup for PLX PEX8909 bridge to configure GPIO1-7 as output High
+ * as they are used for slots1-7 PERST#
+ */
+static void mx6_ventana_pciesw_early_fixup(struct pci_dev *dev)

Please use 'imx' instead of 'mx' where you need an imx prefix. In this case, it's even fine without the prefix. So I just drop the 'mx6_' from function name, and applied the patch. Thanks.

Shawn

Quoted 32 lines
arch/arm/mach-imx/mach-imx6q.c +26 -0
+{
+	u32 dw;
+
+	if (!of_machine_is_compatible("gw,ventana"))
+		return;
+
+	if (dev->devfn != 0)
+		return;
+
+	pci_read_config_dword(dev, 0x62c, &dw);
+	dw |= 0xaaa8; // GPIO1-7 outputs
+	pci_write_config_dword(dev, 0x62c, dw);
+
+	pci_read_config_dword(dev, 0x644, &dw);
+	dw |= 0xfe;   // GPIO1-7 output high
+	pci_write_config_dword(dev, 0x644, dw);
+
+	msleep(100);
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8609,
+	mx6_ventana_pciesw_early_fixup);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8606,
+	mx6_ventana_pciesw_early_fixup);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8604,
+	mx6_ventana_pciesw_early_fixup);
+
 static int ar8031_phy_fixup(struct phy_device *dev)
 {
 	u16 val;
Signature · 1 line
1.7.9.5