* [PATCH v4 1/3] ARM: shmobile: r8a7791: add HS-USB device node
2014-10-24 10:45 [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Yoshihiro Shimoda
@ 2014-10-24 10:45 ` Yoshihiro Shimoda
2014-10-24 10:45 ` [PATCH v4 2/3] ARM: shmobile: koelsch: enable HS-USB Yoshihiro Shimoda
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Yoshihiro Shimoda @ 2014-10-24 10:45 UTC (permalink / raw)
To: horms, sergei.shtylyov, magnus.damm, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, galak, linux
Cc: devicetree, linux-usb, linux-sh, Yoshihiro Shimoda
Define the R8A7791 generic part of the HS-USB device node. It is up to the board
file to enable the device.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
[Sergei: fixed summary, added changelog]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
index 1f4b6db..51a1b84 100644
--- a/arch/arm/boot/dts/r8a7791.dtsi
+++ b/arch/arm/boot/dts/r8a7791.dtsi
@@ -637,6 +637,17 @@
status = "disabled";
};
+ hsusb: usb@e6590000 {
+ compatible = "renesas,usbhs-r8a7791";
+ reg = <0 0xe6590000 0 0x100>;
+ interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
+ renesas,buswait = <4>;
+ phys = <&usb0 1>;
+ phy-names = "usb";
+ status = "disabled";
+ };
+
usbphy: usb-phy@e6590100 {
compatible = "renesas,usb-phy-r8a7791";
reg = <0 0xe6590100 0 0x100>;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v4 2/3] ARM: shmobile: koelsch: enable HS-USB
2014-10-24 10:45 [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Yoshihiro Shimoda
2014-10-24 10:45 ` [PATCH v4 1/3] ARM: shmobile: r8a7791: add HS-USB device node Yoshihiro Shimoda
@ 2014-10-24 10:45 ` Yoshihiro Shimoda
2014-10-24 10:45 ` [PATCH v4 3/3] ARM: shmobile: henninger: " Yoshihiro Shimoda
2014-10-27 0:22 ` [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Yoshihiro Shimoda @ 2014-10-24 10:45 UTC (permalink / raw)
To: horms, sergei.shtylyov, magnus.damm, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, galak, linux
Cc: devicetree, linux-usb, linux-sh, Yoshihiro Shimoda
Enable HS-USB device for the Koelsch board, defining the GPIO that the driver
should check when probing (which is the ID output from MAX3355 OTG chip).
Note that there will be pinctrl-related error messages if both internal PCI
and HS-USB drivers are enabled but they should be just ignored.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
[Sergei: added pin function/group and prop, moved device node, fixed summary,
added changelog]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791-koelsch.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index 5318463..6e63200 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -464,6 +464,13 @@
pinctrl-names = "default";
};
+&hsusb {
+ status = "okay";
+ pinctrl-0 = <&usb0_pins>;
+ pinctrl-names = "default";
+ renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
+};
+
&usbphy {
status = "okay";
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v4 3/3] ARM: shmobile: henninger: enable HS-USB
2014-10-24 10:45 [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Yoshihiro Shimoda
2014-10-24 10:45 ` [PATCH v4 1/3] ARM: shmobile: r8a7791: add HS-USB device node Yoshihiro Shimoda
2014-10-24 10:45 ` [PATCH v4 2/3] ARM: shmobile: koelsch: enable HS-USB Yoshihiro Shimoda
@ 2014-10-24 10:45 ` Yoshihiro Shimoda
2014-10-27 0:22 ` [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Yoshihiro Shimoda @ 2014-10-24 10:45 UTC (permalink / raw)
To: horms, sergei.shtylyov, magnus.damm, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, galak, linux
Cc: devicetree, linux-usb, linux-sh, Yoshihiro Shimoda
Enable HS-USB device for the Henninger board, defining the GPIO that the driver
should check when probing (which is the ID output from MAX3355 OTG chip).
Note that there will be pinctrl-related error messages if both internal PCI
and HS-USB drivers are enabled but they should be just ignored.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
[Sergei: added pin function/group and prop, moved device node, fixed summary,
added changelog]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791-henninger.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts
index ef2cb92..740e386 100644
--- a/arch/arm/boot/dts/r8a7791-henninger.dts
+++ b/arch/arm/boot/dts/r8a7791-henninger.dts
@@ -272,6 +272,13 @@
pinctrl-names = "default";
};
+&hsusb {
+ status = "okay";
+ pinctrl-0 = <&usb0_pins>;
+ pinctrl-names = "default";
+ renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
+};
+
&usbphy {
status = "okay";
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board
2014-10-24 10:45 [PATCH v4 0/3] HS-USB device tree support for R8A7791/Koelsch/Henninger board Yoshihiro Shimoda
` (2 preceding siblings ...)
2014-10-24 10:45 ` [PATCH v4 3/3] ARM: shmobile: henninger: " Yoshihiro Shimoda
@ 2014-10-27 0:22 ` Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-10-27 0:22 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: sergei.shtylyov, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, linux, devicetree, linux-usb, linux-sh
On Fri, Oct 24, 2014 at 07:45:05PM +0900, Yoshihiro Shimoda wrote:
> Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20141024-v3.18-rc1' tag. Here we add the HS-USB device tree
> support on the R8A7791/Koelsch/Henninger reference boards. The patchset
> requires the USB PHY driver (already merged by Kishon and Greg) and the
> generic PHY support patches for the HS-USB driver posted by Yoshihiro Shimoda
> in order to work...
>
> Changes from v3:
> - rebase the repository.
Thanks, I have queued these up.
>
> Yoshihiro Shimoda (3):
> ARM: shmobile: r8a7791: add HS-USB device node
> ARM: shmobile: koelsch: enable HS-USB
> ARM: shmobile: henninger: enable HS-USB
>
> arch/arm/boot/dts/r8a7791-henninger.dts | 7 +++++++
> arch/arm/boot/dts/r8a7791-koelsch.dts | 7 +++++++
> arch/arm/boot/dts/r8a7791.dtsi | 11 +++++++++++
> 3 files changed, 25 insertions(+)
>
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 5+ messages in thread