* [PATCH 0/5] Add USB2.0 host support for R-Car H3
@ 2016-02-23 12:28 Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 1/5] arm64: dts: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
This patch set is based on renesas.git / renesas-devel-20160223-v4.5-rc5 tag.
(commit id = d0475e2b81af0f6a4e7a9785662173b5a995a164)
This patch set needs the following patches to use the usb 2.0 host:
http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/commit/?h=testing/next&id=cff0fef33d77bd7e98463029e5d0a4191d9bbb95
http://git.kernel.org/cgit/linux/kernel/git/kishon/linux-phy.git/commit/?h=next&id=c7af45e64087a4bebef955f0d005723c35f28176
http://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/commit/?h=sh-pfc-for-v4.6&id=76250a6c89673f63e37c59772e97cc72f4c8097b
Yesterday, I sent the following patch set as RFC.
http://thread.gmane.org/gmane.linux.kernel.renesas-soc/1087
Today's patch set is related to the yesterday's patches. But, today's
patch set is:
- not included about HSUSB node and USB 2.0 host channel 0 enabling because
these are under construction for now.
- included about defconfig for phy-rcar-gen3-usb2 driver.
Yoshihiro Shimoda (5):
arm64: dts: r8a7795: add usb2_phy device nodes
arm64: dts: r8a7795: add USB2.0 Host (EHCI/OHCI) device nodes
arm64: dts: salvator-x: enable usb2_phy of channel 1 and 2
arm64: dts: salvator-x: enable USB 2.0 Host of channel 1 and 2
arm64: defconfig: Add Renesas R-Car Gen3 USB 2.0 phy driver support
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 40 +++++++++
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 94 ++++++++++++++++++++++
arch/arm64/configs/defconfig | 1 +
3 files changed, 135 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/5] arm64: dts: r8a7795: add usb2_phy device nodes
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
@ 2016-02-23 12:28 ` Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 2/5] arm64: dts: r8a7795: add USB2.0 Host (EHCI/OHCI) " Yoshihiro Shimoda
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index c2bffd1..be64bb2 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -1023,5 +1023,33 @@
cap-mmc-highspeed;
status = "disabled";
};
+
+ usb2_phy0: usb-phy@ee080200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee080200 0 0x700>;
+ interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 703>;
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+
+ usb2_phy1: usb-phy@ee0a0200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee0a0200 0 0x700>;
+ clocks = <&cpg CPG_MOD 702>;
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+
+ usb2_phy2: usb-phy@ee0c0200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee0c0200 0 0x700>;
+ clocks = <&cpg CPG_MOD 701>;
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] arm64: dts: r8a7795: add USB2.0 Host (EHCI/OHCI) device nodes
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 1/5] arm64: dts: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
@ 2016-02-23 12:28 ` Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 3/5] arm64: dts: salvator-x: enable usb2_phy of channel 1 and 2 Yoshihiro Shimoda
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 66 ++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index be64bb2..594cb72 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -1051,5 +1051,71 @@
#phy-cells = <0>;
status = "disabled";
};
+
+ ehci0: usb@ee080100 {
+ compatible = "generic-ehci";
+ reg = <0 0xee080100 0 0x100>;
+ interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 703>;
+ phys = <&usb2_phy0>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
+
+ ehci1: usb@ee0a0100 {
+ compatible = "generic-ehci";
+ reg = <0 0xee0a0100 0 0x100>;
+ interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 702>;
+ phys = <&usb2_phy1>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
+
+ ehci2: usb@ee0c0100 {
+ compatible = "generic-ehci";
+ reg = <0 0xee0c0100 0 0x100>;
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 701>;
+ phys = <&usb2_phy2>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
+
+ ohci0: usb@ee080000 {
+ compatible = "generic-ohci";
+ reg = <0 0xee080000 0 0x100>;
+ interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 703>;
+ phys = <&usb2_phy0>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
+
+ ohci1: usb@ee0a0000 {
+ compatible = "generic-ohci";
+ reg = <0 0xee0a0000 0 0x100>;
+ interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 702>;
+ phys = <&usb2_phy1>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
+
+ ohci2: usb@ee0c0000 {
+ compatible = "generic-ohci";
+ reg = <0 0xee0c0000 0 0x100>;
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 701>;
+ phys = <&usb2_phy2>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] arm64: dts: salvator-x: enable usb2_phy of channel 1 and 2
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 1/5] arm64: dts: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 2/5] arm64: dts: r8a7795: add USB2.0 Host (EHCI/OHCI) " Yoshihiro Shimoda
@ 2016-02-23 12:28 ` Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 4/5] arm64: dts: salvator-x: enable USB 2.0 Host " Yoshihiro Shimoda
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
This board has a MAX3355 chip. However, we cannot use the extcon/max3355
driver because the ID pin doesn't connect to a gpio pin (in other words,
it connects to the SoC specific pin).
And, the phy-rcar-gen3-usb2 driver cannot handle such a chip for now.
So, this patch enables usb2_phy of channel 1 and 2.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 24 ++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 1af6757..e415535 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -188,6 +188,16 @@
"audio_clkout_a", "audio_clkout3_a";
renesas,function = "audio_clk";
};
+
+ usb1_pins: usb1 {
+ renesas,groups = "usb1";
+ renesas,function = "usb1";
+ };
+
+ usb2_pins: usb2 {
+ renesas,groups = "usb2";
+ renesas,function = "usb2";
+ };
};
&scif1 {
@@ -348,3 +358,17 @@
&xhci0 {
status = "okay";
};
+
+&usb2_phy1 {
+ pinctrl-0 = <&usb1_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&usb2_phy2 {
+ pinctrl-0 = <&usb2_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] arm64: dts: salvator-x: enable USB 2.0 Host of channel 1 and 2
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
` (2 preceding siblings ...)
2016-02-23 12:28 ` [PATCH 3/5] arm64: dts: salvator-x: enable usb2_phy of channel 1 and 2 Yoshihiro Shimoda
@ 2016-02-23 12:28 ` Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 5/5] arm64: defconfig: Add Renesas R-Car Gen3 USB 2.0 phy driver support Yoshihiro Shimoda
2016-02-24 1:26 ` [PATCH 0/5] Add USB2.0 host support for R-Car H3 Simon Horman
5 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
We should set SW15 to pin 2-3 side on the board before we use CN9
as USB host or peripheral.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index e415535..b992b1a 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -372,3 +372,19 @@
status = "okay";
};
+
+&ehci1 {
+ status = "okay";
+};
+
+&ehci2 {
+ status = "okay";
+};
+
+&ohci1 {
+ status = "okay";
+};
+
+&ohci2 {
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] arm64: defconfig: Add Renesas R-Car Gen3 USB 2.0 phy driver support
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
` (3 preceding siblings ...)
2016-02-23 12:28 ` [PATCH 4/5] arm64: dts: salvator-x: enable USB 2.0 Host " Yoshihiro Shimoda
@ 2016-02-23 12:28 ` Yoshihiro Shimoda
2016-02-24 1:26 ` [PATCH 0/5] Add USB2.0 host support for R-Car H3 Simon Horman
5 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2016-02-23 12:28 UTC (permalink / raw
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 86581f7..eaf738a 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -213,6 +213,7 @@ CONFIG_QCOM_SMD_RPM=y
CONFIG_ARCH_TEGRA_132_SOC=y
CONFIG_ARCH_TEGRA_210_SOC=y
CONFIG_HISILICON_IRQ_MBIGEN=y
+CONFIG_PHY_RCAR_GEN3_USB2=y
CONFIG_PHY_XGENE=y
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/5] Add USB2.0 host support for R-Car H3
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
` (4 preceding siblings ...)
2016-02-23 12:28 ` [PATCH 5/5] arm64: defconfig: Add Renesas R-Car Gen3 USB 2.0 phy driver support Yoshihiro Shimoda
@ 2016-02-24 1:26 ` Simon Horman
5 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2016-02-24 1:26 UTC (permalink / raw
To: Yoshihiro Shimoda
Cc: magnus.damm, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, linux-renesas-soc
On Tue, Feb 23, 2016 at 09:28:31PM +0900, Yoshihiro Shimoda wrote:
> This patch set is based on renesas.git / renesas-devel-20160223-v4.5-rc5 tag.
> (commit id = d0475e2b81af0f6a4e7a9785662173b5a995a164)
>
> This patch set needs the following patches to use the usb 2.0 host:
> http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/commit/?h=testing/next&id=cff0fef33d77bd7e98463029e5d0a4191d9bbb95
> http://git.kernel.org/cgit/linux/kernel/git/kishon/linux-phy.git/commit/?h=next&id=c7af45e64087a4bebef955f0d005723c35f28176
> http://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/commit/?h=sh-pfc-for-v4.6&id=76250a6c89673f63e37c59772e97cc72f4c8097b
>
> Yesterday, I sent the following patch set as RFC.
> http://thread.gmane.org/gmane.linux.kernel.renesas-soc/1087
>
> Today's patch set is related to the yesterday's patches. But, today's
> patch set is:
> - not included about HSUSB node and USB 2.0 host channel 0 enabling because
> these are under construction for now.
> - included about defconfig for phy-rcar-gen3-usb2 driver.
Thanks, I have queued these up for v4.6.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-02-24 1:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 12:28 [PATCH 0/5] Add USB2.0 host support for R-Car H3 Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 1/5] arm64: dts: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 2/5] arm64: dts: r8a7795: add USB2.0 Host (EHCI/OHCI) " Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 3/5] arm64: dts: salvator-x: enable usb2_phy of channel 1 and 2 Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 4/5] arm64: dts: salvator-x: enable USB 2.0 Host " Yoshihiro Shimoda
2016-02-23 12:28 ` [PATCH 5/5] arm64: defconfig: Add Renesas R-Car Gen3 USB 2.0 phy driver support Yoshihiro Shimoda
2016-02-24 1:26 ` [PATCH 0/5] Add USB2.0 host support for R-Car H3 Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).