mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 6/6] ARM: imx51-zii-rdu1: Add USBH1,2 iomux configuration
Date: Sat, 25 Aug 2018 14:03:15 -0700	[thread overview]
Message-ID: <20180825210315.4661-7-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20180825210315.4661-1-andrew.smirnov@gmail.com>

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@gmail.com>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2018-08-25 21:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-25 21:03 [PATCH 0/6] i.MX51 RDU1 and Babbage USB fixes Andrey Smirnov
2018-08-25 21:03 ` [PATCH 1/6] clk: i.MX: Port Linux clock tree for i.MX51 and i.MX53 Andrey Smirnov
2018-08-27  7:46   ` Sascha Hauer
2018-08-27 23:22     ` Andrey Smirnov
2018-08-25 21:03 ` [PATCH 2/6] ARM: imx51-zii-rdu1: Swtich to using Linux clock tree Andrey Smirnov
2018-08-27  9:15   ` Roland Hieber
2018-08-25 21:03 ` [PATCH 3/6] ARM: freescale-mx51-babbage: " Andrey Smirnov
2018-08-25 21:03 ` [PATCH 4/6] ARM: freescale-mx51-babbage: Add USBH1 PHY reset sequence Andrey Smirnov
2018-08-25 21:03 ` [PATCH 5/6] dts: imx51-babbage: Add USBH1 iomux configuration Andrey Smirnov
2018-08-25 21:03 ` Andrey Smirnov [this message]
2018-08-27  7:49 ` [PATCH 0/6] i.MX51 RDU1 and Babbage USB fixes Sascha Hauer
2018-08-29  3:03   ` Andrey Smirnov
2018-08-29  7:41     ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180825210315.4661-7-andrew.smirnov@gmail.com \
    --to=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox