mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Kurz <akurz@blala.de>
To: barebox@lists.infradead.org
Cc: Alexander Kurz <akurz@blala.de>
Subject: [PATCH v2 1/3] ARM: i.MX50: Add imx50.dtsi as workaround
Date: Sun, 23 Apr 2017 19:37:39 +0200	[thread overview]
Message-ID: <1492969061-12273-1-git-send-email-akurz@blala.de> (raw)

The upstream imx50.dtsi is missing the usbphy and usbmisc nodes.
Furthermore, the clock property values for the two existing usb
instances (usbotg and usbh1) is set to a clock which is not present
on the imx50.
Note that usbh2 and usbh3 do not exist on the imx50.

Fix imx50.dtsi to get the usb peripherial mode via DT running,
until imx50.dtsi is fixed upstream.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 arch/arm/dts/imx50.dtsi | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 arch/arm/dts/imx50.dtsi

diff --git a/arch/arm/dts/imx50.dtsi b/arch/arm/dts/imx50.dtsi
new file mode 100644
index 0000000..8737d4f
--- /dev/null
+++ b/arch/arm/dts/imx50.dtsi
@@ -0,0 +1,40 @@
+#include <arm/imx50.dtsi>
+
+/ {
+	soc {
+		aips@50000000 { /* AIPS1 */
+			usbphy0: usbphy@0 {
+				compatible = "usb-nop-xceiv";
+				clocks = <&clks IMX5_CLK_USB_PHY1_GATE>;
+				clock-names = "main_clk";
+				status = "okay";
+			};
+
+			usbphy1: usbphy@1 {
+				compatible = "usb-nop-xceiv";
+				clocks = <&clks IMX5_CLK_USB_PHY2_GATE>;
+				clock-names = "main_clk";
+				status = "okay";
+			};
+
+			usbmisc: usbmisc@53f80800 {
+				#index-cells = <1>;
+				compatible = "fsl,imx53-usbmisc";
+				reg = <0x53f80800 0x200>;
+				clocks = <&clks IMX5_CLK_USBOH3_GATE>;
+			};
+		};
+	};
+};
+
+&usbotg {
+	clocks = <&clks IMX5_CLK_USBOH3_GATE>;
+	fsl,usbmisc = <&usbmisc 0>;
+	fsl,usbphy = <&usbphy0>;
+};
+
+&usbh1 {
+	clocks = <&clks IMX5_CLK_USBOH3_GATE>;
+	fsl,usbmisc = <&usbmisc 0>;
+	fsl,usbphy = <&usbphy0>;
+};
-- 
2.1.4


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

             reply	other threads:[~2017-04-23 17:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 17:37 Alexander Kurz [this message]
2017-04-23 17:37 ` [PATCH v2 2/3] ARM: i.MX50 clock: add clock for USB physbase Alexander Kurz
2017-04-23 17:37 ` [PATCH v2 3/3] ARM i.MX50: Add support for i.MX50 based Amazon Kindle e-book readers Alexander Kurz
2017-04-24 13:37   ` Sascha Hauer
2017-04-25  6:45     ` Alexander Kurz

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=1492969061-12273-1-git-send-email-akurz@blala.de \
    --to=akurz@blala.de \
    --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