summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2017-04-23 19:37:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-24 15:28:02 +0200
commit39a785fff14dfaecdc048b3a163988184b982b6b (patch)
tree8de1f9240af5db62471e6b97884b6f2fe95adddd /arch/arm/dts
parentd1de2e14008c9144e5abd6087e25d7d87c679461 (diff)
downloadbarebox-39a785fff14dfaecdc048b3a163988184b982b6b.tar.gz
barebox-39a785fff14dfaecdc048b3a163988184b982b6b.tar.xz
ARM: i.MX50: Add imx50.dtsi as workaround
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts')
-rw-r--r--arch/arm/dts/imx50.dtsi40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/dts/imx50.dtsi b/arch/arm/dts/imx50.dtsi
new file mode 100644
index 0000000000..8737d4f33f
--- /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>;
+};