* [PATCH v2 1/6] arm64: renesas: r8a7795: add usb2_phy device nodes
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
[not found] ` <1451044361-5896-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2015-12-25 11:52 ` [PATCH v2 2/6] arm64: renesas: r8a7795: add USB2.0 Host (EHCI/OHCI) " Yoshihiro Shimoda
` (5 subsequent siblings)
6 siblings, 1 reply; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 34 ++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index bb353cd..89393ea 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -775,5 +775,39 @@
clocks = <&cpg CPG_MOD 815>;
status = "disabled";
};
+
+ usb2_phy0: usb-phy@ee080200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee080200 0 0x700>, <0 0xe6590100 0 0x100>;
+ reg-names = "usb2_host", "hsusb";
+ interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
+ clock-names = "usb2", "hsusb";
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+
+ usb2_phy1: usb-phy@ee0a0200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee0a0200 0 0x700>;
+ reg-names = "usb2_host";
+ clocks = <&cpg CPG_MOD 702>;
+ clock-names = "usb2";
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+
+ usb2_phy2: usb-phy@ee0c0200 {
+ compatible = "renesas,usb2-phy-r8a7795";
+ reg = <0 0xee0c0200 0 0x700>;
+ reg-names = "usb2_host";
+ clocks = <&cpg CPG_MOD 701>;
+ clock-names = "usb2";
+ power-domains = <&cpg>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 2/6] arm64: renesas: r8a7795: add USB2.0 Host (EHCI/OHCI) device nodes
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 1/6] arm64: renesas: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 3/6] arm64: renesas: r8a7795: add HS-USB device node Yoshihiro Shimoda
` (4 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, 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 89393ea..499e158 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -809,5 +809,71 @@
#phy-cells = <0>;
status = "disabled";
};
+
+ ehci0: usb@ee080100 {
+ compatible = "renesas,ehci-r8a7795", "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 = "renesas,ehci-r8a7795", "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 = "renesas,ehci-r8a7795", "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 = "renesas,ohci-r8a7795", "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 = "renesas,ohci-r8a7795", "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 = "renesas,ohci-r8a7795", "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] 11+ messages in thread
* [PATCH v2 3/6] arm64: renesas: r8a7795: add HS-USB device node
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 1/6] arm64: renesas: r8a7795: add usb2_phy device nodes Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 2/6] arm64: renesas: r8a7795: add USB2.0 Host (EHCI/OHCI) " Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 4/6] arm64: renesas: salvator-x: enable usb2_phy Yoshihiro Shimoda
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 499e158..e027314 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -875,5 +875,18 @@
power-domains = <&cpg>;
status = "disabled";
};
+
+ hsusb: usb@e6590000 {
+ compatible = "renesas,usbhs-r8a7795",
+ "renesas,rcar-gen3-usbhs";
+ reg = <0 0xe6590000 0 0x100>;
+ interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 704>;
+ renesas,buswait = <11>;
+ phys = <&usb2_phy0>;
+ phy-names = "usb";
+ power-domains = <&cpg>;
+ status = "disabled";
+ };
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 4/6] arm64: renesas: salvator-x: enable usb2_phy
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
` (2 preceding siblings ...)
2015-12-25 11:52 ` [PATCH v2 3/6] arm64: renesas: r8a7795: add HS-USB device node Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 5/6] arm64: renesas: salvator-x: enable USB 2.0 Host channel 1 and 2 Yoshihiro Shimoda
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 34 +++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 265d12f..7353407 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -122,8 +122,22 @@
"audio_clkout_a", "audio_clkout3_a";
renesas,function = "audio_clk";
};
-};
+ usb0_pins: usb0 {
+ renesas,groups = "usb0";
+ renesas,function = "usb";
+ };
+
+ usb1_pins: usb1 {
+ renesas,groups = "usb1";
+ renesas,function = "usb";
+ };
+
+ usb2_pins: usb2 {
+ renesas,groups = "usb2";
+ renesas,function = "usb";
+ };
+};
&scif1 {
pinctrl-0 = <&scif1_pins>;
pinctrl-names = "default";
@@ -249,3 +263,21 @@
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
};
};
+
+&usb2_phy0 {
+ status = "okay";
+ pinctrl-0 = <&usb0_pins>;
+ pinctrl-names = "default";
+};
+
+&usb2_phy1 {
+ status = "okay";
+ pinctrl-0 = <&usb1_pins>;
+ pinctrl-names = "default";
+};
+
+&usb2_phy2 {
+ status = "okay";
+ pinctrl-0 = <&usb2_pins>;
+ pinctrl-names = "default";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 5/6] arm64: renesas: salvator-x: enable USB 2.0 Host channel 1 and 2
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
` (3 preceding siblings ...)
2015-12-25 11:52 ` [PATCH v2 4/6] arm64: renesas: salvator-x: enable usb2_phy Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
2015-12-25 11:52 ` [PATCH v2 6/6] arm64: renesas: salvator-x: enable HS-USB Yoshihiro Shimoda
2016-01-03 22:19 ` [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Simon Horman
6 siblings, 0 replies; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, Yoshihiro Shimoda
This patch doesn't enable USB2.0 Host channel 0 because it is connected
to MAX3355 and cannot control the SHDN pin for now.
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 7353407..8e9cd31 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -281,3 +281,19 @@
pinctrl-0 = <&usb2_pins>;
pinctrl-names = "default";
};
+
+&ehci1 {
+ status = "okay";
+};
+
+&ehci2 {
+ status = "okay";
+};
+
+&ohci1 {
+ status = "okay";
+};
+
+&ohci2 {
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 6/6] arm64: renesas: salvator-x: enable HS-USB
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
` (4 preceding siblings ...)
2015-12-25 11:52 ` [PATCH v2 5/6] arm64: renesas: salvator-x: enable USB 2.0 Host channel 1 and 2 Yoshihiro Shimoda
@ 2015-12-25 11:52 ` Yoshihiro Shimoda
2016-01-03 22:19 ` [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Simon Horman
6 siblings, 0 replies; 11+ messages in thread
From: Yoshihiro Shimoda @ 2015-12-25 11:52 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-sh, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 8e9cd31..eb16403 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -297,3 +297,7 @@
&ohci2 {
status = "okay";
};
+
+&hsusb {
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795
2015-12-25 11:52 [PATCH v2 0/6] arm64: renesas: add USB 2.0 device nodes for r8a7795 Yoshihiro Shimoda
` (5 preceding siblings ...)
2015-12-25 11:52 ` [PATCH v2 6/6] arm64: renesas: salvator-x: enable HS-USB Yoshihiro Shimoda
@ 2016-01-03 22:19 ` Simon Horman
6 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2016-01-03 22:19 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: magnus.damm, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, linux-arm-kernel, linux-sh
On Fri, Dec 25, 2015 at 08:52:35PM +0900, Yoshihiro Shimoda wrote:
> This patch set is based on the renesas.git / 20151221renesas-devel-20151221-v4.4-rc6 tag.
> (commit id = fe0e8e675dedf1877709a17258e88151c2614b77)
>
> Changed from v1:
> - Fix register size from 0xff to 0x100 in patch 2
Thanks, I have queued these up for v4.6.
^ permalink raw reply [flat|nested] 11+ messages in thread