[PATCH 6/6] ARM: imx51-zii-rdu1: Add USBH1,2 iomux configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add iomux configuration for USBH1,2 to match what U-Boot (as well as
Babbage board) would configure those pads to.

Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
---
 arch/arm/dts/imx51-zii-rdu1.dts | 42 +++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-zii-rdu1.dts
index 9021b04a1..245343dae 100644
--- a/arch/arm/dts/imx51-zii-rdu1.dts
+++ b/arch/arm/dts/imx51-zii-rdu1.dts
@@ -105,3 +105,45 @@
 		};
 	};
 };
+
+&iomuxc {
+	pinctrl_usbh1: usbh1grp {
+
+		/*
+		 * Overwrite upstream USBH1,2 iomux settings to match
+		 * the setting U-Boot would set these to. Remove this
+		 * once this is fixed upstream.
+		 */
+		fsl,pins = <
+			MX51_PAD_USBH1_STP__USBH1_STP		0x1e5
+			MX51_PAD_USBH1_CLK__USBH1_CLK		0x1e5
+			MX51_PAD_USBH1_DIR__USBH1_DIR		0x1e5
+			MX51_PAD_USBH1_NXT__USBH1_NXT		0x1e5
+			MX51_PAD_USBH1_DATA0__USBH1_DATA0	0x1e5
+			MX51_PAD_USBH1_DATA1__USBH1_DATA1	0x1e5
+			MX51_PAD_USBH1_DATA2__USBH1_DATA2	0x1e5
+			MX51_PAD_USBH1_DATA3__USBH1_DATA3	0x1e5
+			MX51_PAD_USBH1_DATA4__USBH1_DATA4	0x1e5
+			MX51_PAD_USBH1_DATA5__USBH1_DATA5	0x1e5
+			MX51_PAD_USBH1_DATA6__USBH1_DATA6	0x1e5
+			MX51_PAD_USBH1_DATA7__USBH1_DATA7	0x1e5
+		>;
+	};
+
+	pinctrl_usbh2: usbh2grp {
+		fsl,pins = <
+			MX51_PAD_EIM_A26__USBH2_STP		0x1e5
+			MX51_PAD_EIM_A24__USBH2_CLK		0x1e5
+			MX51_PAD_EIM_A25__USBH2_DIR		0x1e5
+			MX51_PAD_EIM_A27__USBH2_NXT		0x1e5
+			MX51_PAD_EIM_D16__USBH2_DATA0		0x1e5
+			MX51_PAD_EIM_D17__USBH2_DATA1		0x1e5
+			MX51_PAD_EIM_D18__USBH2_DATA2		0x1e5
+			MX51_PAD_EIM_D19__USBH2_DATA3		0x1e5
+			MX51_PAD_EIM_D20__USBH2_DATA4		0x1e5
+			MX51_PAD_EIM_D21__USBH2_DATA5		0x1e5
+			MX51_PAD_EIM_D22__USBH2_DATA6		0x1e5
+			MX51_PAD_EIM_D23__USBH2_DATA7		0x1e5
+		>;
+	};
+};
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux