Skip to contentSkip to conversation

Add USB PHY device tree support for R8A7791/Koelsch/Henninger board

PATCH Superseded Sergei Shtylyov 2 participants 5 messages Sep 26, 2014 – Sep 30, 2014

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover Add USB PHY device tree support for R8A7791/Koelsch/Henninger board

Hello.

Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree support on the R8A7791/Koelsch/Henninger boards. The patchset requires the USB PHY driver already merged by Kishon and Greg in order to work, so can be applied at last...

[1/3] ARM: shmobile: r8a7791: add USB PHY DT support [2/3] ARM: shmobile: koelsch: enable USB PHY [3/3] ARM: shmobile: henninger: enable USB PHY

WBR, Sergei

#1 lore raw

PATCH v4 1/3 ARM: shmobile: r8a7791: add USB PHY DT support

Define the R8A7791 generic part of the USB PHY device node. It is up to the board file to enable the device.

---
Changes in version 4:
- refreshed the patch.

Changes in version 3:
- changed subnodes of the USB PHY node to be per-channel;
- changed "renesas,phy-select" property to "reg" in the subnodes, and thus added "#address-cells" and "#size-cells" properties to the parent node;
- moved "#phy-cells" property from the parent node to the subnodes, changing its value to <1>;
- refreshed the patch.

Changes in version 2:
- added subnodes to the USB PHY node;
- refreshed the patch.

 arch/arm/boot/dts/r8a7791.dtsi |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/boot/dts/r8a7791.dtsi +19 -0
Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
@@ -637,6 +637,25 @@
 		status = "disabled";
 	};
 
+	usbphy: usb-phy at e6590100 {
+		compatible = "renesas,usb-phy-r8a7791";
+		reg = <0 0xe6590100 0 0x100>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
+		clock-names = "usbhs";
+		status = "disabled";
+
+		usb0: usb-channel at 0 {
+			reg = <0>;
+			#phy-cells = <1>;
+		};
+		usb2: usb-channel at 2 {
+			reg = <2>;
+			#phy-cells = <1>;
+		};
+	};
+
 	clocks {
 		#address-cells = <2>;
 		#size-cells = <2>;
#2 lore raw

PATCH v4 2/3 ARM: shmobile: koelsch: enable USB PHY

In reply to Sergei Shtylyov

Enable USB PHY device for the Koelsch board.

---
Changes in version 4:
- refreshed the patch.

Changes in version 3:
- refreshed the patch.

Changes in version 2:
- fixed the wrong board name in the changelog;
- refreshed the patch.

 arch/arm/boot/dts/r8a7791-koelsch.dts |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/r8a7791-koelsch.dts +4 -0
Index: renesas/arch/arm/boot/dts/r8a7791-koelsch.dts
===================================================================
@@ -463,6 +463,10 @@
 	pinctrl-names = "default";
 };
 
+&usbphy {
+	status = "okay";
+};
+
 &pcie_bus_clk {
 	status = "okay";
 };
#3 lore raw

PATCH v4 3/3 ARM: shmobile: henninger: enable USB PHY

In reply to Sergei Shtylyov

Enable USB PHY device for the Henninger board.

---
Changes in version 4:
- refreshed the patch.

Changes in version 3:
- refreshed the patch.

 arch/arm/boot/dts/r8a7791-henninger.dts |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/r8a7791-henninger.dts +4 -0
Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts
===================================================================
@@ -271,6 +271,10 @@
 	pinctrl-names = "default";
 };
 
+&usbphy {
+	status = "okay";
+};
+
 &pcie_bus_clk {
 	status = "okay";
 };
#4 lore raw

v4 cover Add USB PHY device tree support for R8A7791/Koelsch/Henninger board

In reply to Sergei Shtylyov
Quoted 11 lines · Sergei Shtylyov

Hello.

Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree support on the R8A7791/Koelsch/Henninger boards. The patchset requires the USB PHY driver already merged by Kishon and Greg in order to work, so can be applied at last...

[1/3] ARM: shmobile: r8a7791: add USB PHY DT support [2/3] ARM: shmobile: koelsch: enable USB PHY [3/3] ARM: shmobile: henninger: enable USB PHY

Thanks, I have queued these up.