Skip to contentSkip to conversation

arm/dts: omap: add dt data for MUSB

PATCH In review Kishon Vijay Abraham I 2 participants 6 messages Aug 6, 2012 – Sep 6, 2012 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover arm/dts: omap: add dt data for MUSB

This patch series adds dt data for MUSB and related modules to get MUSB working

These patches were initially part of
[PATCH v6 00/11] omap: musb: Add device tree support

These patches can be tested by applying it over [PATCH v7 0/7] omap: musb: Add device tree support

These patches were developed on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git

If it needs to be rebased on some other tree, pls let me know.

Performed MUSB device mode testing on omap4 panda, omap4 sdp and omap3 beagle

Kishon Vijay Abraham I (4):
arm/dts: omap: Add omap-usb2 dt data arm/dts: Add twl6030-usb data
arm/dts: Add twl4030-usb data
arm/dts: omap: Add usb_otg and glue data

 arch/arm/boot/dts/omap3-beagle.dts |    6 ++++++
 arch/arm/boot/dts/omap3-evm.dts    |    6 ++++++
 arch/arm/boot/dts/omap3.dtsi       |    8 ++++++++
 arch/arm/boot/dts/omap4-panda.dts  |   10 ++++++++++
 arch/arm/boot/dts/omap4-sdp.dts    |   10 ++++++++++
 arch/arm/boot/dts/omap4.dtsi       |   13 +++++++++++++
 arch/arm/boot/dts/twl4030.dtsi     |   21 +++++++++++++++++++++
 arch/arm/boot/dts/twl6030.dtsi     |    5 +++++
 8 files changed, 79 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/4 arm/dts: omap: Add omap-usb2 dt data

Add omap-usb2 data node in omap4 device tree file.

---
 arch/arm/boot/dts/omap4.dtsi |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/omap4.dtsi +5 -0
index 8a780b2..d774733 100644
@@ -302,6 +302,11 @@
 			#size-cells = <1>;
 			ranges;
 			ti,hwmods = "ocp2scp_usb_phy";
+			usb2phy at 4a0ad080 {
+				compatible = "ti,omap-usb2";
+				reg = <0x4a0ad080 0x58>,
+				      <0x4a002300 0x1>;
+			};
 		};
 	};
 };
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/4 arm/dts: Add twl6030-usb data

In reply to Kishon Vijay Abraham I

Add twl6030-usb data node in twl6030 device tree file

---
 arch/arm/boot/dts/omap4-panda.dts |    4 ++++
 arch/arm/boot/dts/omap4-sdp.dts   |    4 ++++
 arch/arm/boot/dts/twl6030.dtsi    |    5 +++++
 3 files changed, 13 insertions(+)
arch/arm/boot/dts/omap4-panda.dts +4 -0
index 9880c12..2999eba 100644
@@ -126,3 +126,7 @@
 	ti,non-removable;
 	bus-width = <4>;
 };
+
+&twlusb {
+	usb-supply = <&vusb>;
+};
arch/arm/boot/dts/omap4-sdp.dts +4 -0
index 72216e9..d8290c0 100644
@@ -226,3 +226,7 @@
 	bus-width = <4>;
 	ti,non-removable;
 };
+
+&twlusb {
+	usb-supply = <&vusb>;
+};
arch/arm/boot/dts/twl6030.dtsi +5 -0
index 3b2f351..8e3aac9 100644
@@ -83,4 +83,9 @@
 	clk32kg: regulator at 12 {
 		compatible = "ti,twl6030-clk32kg";
 	};
+
+	twlusb: twl6030-usb {
+		compatible = "ti,twl6030-usb";
+		interrupts = < 4 10 >;
+	};
 };
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 3/4 arm/dts: Add twl4030-usb data

In reply to Kishon Vijay Abraham I

Add twl4030-usb data node in twl4030 device tree file.

---
 arch/arm/boot/dts/twl4030.dtsi |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/twl4030.dtsi +21 -0
index 22f4d13..761a5a5 100644
@@ -37,6 +37,18 @@
 		regulator-max-microvolt = <3150000>;
 	};
 
+	vusb1v5: regulator-vusb1v5 {
+		compatible = "ti,twl4030-vusb1v5";
+	};
+
+	vusb1v8: regulator-vusb1v8 {
+		compatible = "ti,twl4030-vusb1v8";
+	};
+
+	vusb3v1: regulator-vusb3v1 {
+		compatible = "ti,twl4030-vusb3v1";
+	};
+
 	twl_gpio: gpio {
 		compatible = "ti,twl4030-gpio";
 		gpio-controller;
@@ -44,4 +56,13 @@
 		interrupt-controller;
 		#interrupt-cells = <1>;
 	};
+
+	twl4030-usb {
+		compatible = "ti,twl4030-usb";
+		interrupts = < 10 4 >;
+		usb1v5-supply = <&vusb1v5>;
+		usb1v8-supply = <&vusb1v8>;
+		usb3v1-supply = <&vusb3v1>;
+		usb_mode = <1>;
+	};
 };
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 4/4 arm/dts: omap: Add usb_otg and glue data

In reply to Kishon Vijay Abraham I

Add usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting in omapx-<board>.dts file.

---
 arch/arm/boot/dts/omap3-beagle.dts |    6 ++++++
 arch/arm/boot/dts/omap3-evm.dts    |    6 ++++++
 arch/arm/boot/dts/omap3.dtsi       |    8 ++++++++
 arch/arm/boot/dts/omap4-panda.dts  |    6 ++++++
 arch/arm/boot/dts/omap4-sdp.dts    |    6 ++++++
 arch/arm/boot/dts/omap4.dtsi       |    8 ++++++++
 6 files changed, 40 insertions(+)
arch/arm/boot/dts/omap3-beagle.dts +6 -0
index cdcb98c..6d6a7a4 100644
@@ -67,3 +67,9 @@
 &mmc3 {
 	status = "disabled";
 };
+
+&usb_otg_hs {
+	interface_type = <0>;
+	mode = <3>;
+	power = <50>;
+};
arch/arm/boot/dts/omap3-evm.dts +6 -0
index f349ee9..c4ac75e 100644
@@ -46,3 +46,9 @@
 		reg = <0x5c>;
 	};
 };
+
+&usb_otg_hs {
+	interface_type = <0>;
+	mode = <3>;
+	power = <50>;
+};
arch/arm/boot/dts/omap3.dtsi +8 -0
index 8109471..2501416 100644
@@ -220,5 +220,13 @@
 			compatible = "ti,omap3-wdt";
 			ti,hwmods = "wd_timer2";
 		};
+
+		usb_otg_hs: usb_otg_hs {
+			compatible = "ti,omap3-musb";
+			ti,hwmods = "usb_otg_hs";
+			multipoint = <1>;
+			num_eps = <16>;
+			ram_bits = <12>;
+		};
 	};
 };
arch/arm/boot/dts/omap4-panda.dts +6 -0
index 2999eba..8cded95 100644
@@ -130,3 +130,9 @@
 &twlusb {
 	usb-supply = <&vusb>;
 };
+
+&usb_otg_hs {
+	interface_type = <1>;
+	mode = <3>;
+	power = <50>;
+};
arch/arm/boot/dts/omap4-sdp.dts +6 -0
index d8290c0..24f4bfd 100644
@@ -230,3 +230,9 @@
 &twlusb {
 	usb-supply = <&vusb>;
 };
+
+&usb_otg_hs {
+	interface_type = <1>;
+	mode = <3>;
+	power = <50>;
+};
arch/arm/boot/dts/omap4.dtsi +8 -0
index d774733..a855d13 100644
@@ -308,5 +308,13 @@
 				      <0x4a002300 0x1>;
 			};
 		};
+
+		usb_otg_hs: usb_otg_hs {
+			compatible = "ti,omap4-musb";
+			ti,hwmods = "usb_otg_hs";
+			multipoint = <1>;
+			num_eps = <16>;
+			ram_bits = <12>;
+		};
 	};
 };
Signature · 1 line
1.7.9.5
#5 lore raw
In reply to Kishon Vijay Abraham I

Hi,

Quoted 9 lines · Kishon Vijay Abraham I

This patch series adds dt data for MUSB and related modules to get MUSB working

These patches were initially part of
[PATCH v6 00/11] omap: musb: Add device tree support

These patches can be tested by applying it over [PATCH v7 0/7] omap: musb: Add device tree support

Quoted 8 lines

These patches were developed on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git

If it needs to be rebased on some other tree, pls let me know.

Performed MUSB device mode testing on omap4 panda, omap4 sdp and omap3 beagle

Grant, we already lost two merge windows on this patchset. Is it possible for you to take a look here so we don't loose another merge window ? Can Benoit just take these patches on his tree, so it goes upstream through the linux-omap tree ?

cheers

Quoted 19 lines

Kishon Vijay Abraham I (4):
arm/dts: omap: Add omap-usb2 dt data arm/dts: Add twl6030-usb data
arm/dts: Add twl4030-usb data
arm/dts: omap: Add usb_otg and glue data

 arch/arm/boot/dts/omap3-beagle.dts |    6 ++++++
 arch/arm/boot/dts/omap3-evm.dts    |    6 ++++++
 arch/arm/boot/dts/omap3.dtsi       |    8 ++++++++
 arch/arm/boot/dts/omap4-panda.dts  |   10 ++++++++++
 arch/arm/boot/dts/omap4-sdp.dts    |   10 ++++++++++
 arch/arm/boot/dts/omap4.dtsi       |   13 +++++++++++++
 arch/arm/boot/dts/twl4030.dtsi     |   21 +++++++++++++++++++++
 arch/arm/boot/dts/twl6030.dtsi     |    5 +++++
 8 files changed, 79 insertions(+)
Signature · 1 line
1.7.9.5
Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120906/ba8b8f13/attachment-0001.sig>