This patch-set is in continuation with patch-series:
[PATCH v4 0/4] Enable ehci, ohci and dwc3 devices on exynos5250
out of which follwowing patches have been picked up:
ARM: Exynos5250: Enabling ehci-s5p driver
ARM: Exynos5250: Enabling ohci-exynos driver
Based on following patch-set for Samsung's usb PHY enablement:
[PATCH v4 0/2] ARM: Exynos5250: Enabling samsung usb phy
and further depends on dwc3-exynos driver patch-set:
[PATCH 0/2] dwc3: exynos: Device tree fixes
Changes from v4:
- Aligning with the recently merged common clock framework, thereby
no place for clock file changes. ;-)
- Adding proper binding documentation as per latest bindings changes in
dwc3 driver (dwc3/core.c as well as for dwc3-exynos.c change reflected
by above patch-set.
- Bifurcating the patch to separate our Documentation, arch and dts changes.
Vivek Gautam (3):
usb: Add device tree bindings for dwc3-exynos
ARM: exynos5250: dts: Enabling dwc3-exynos driver
ARM: exynos5: Enable XHCI support on exynos5
.../devicetree/bindings/usb/exynos-usb.txt | 34 ++++++++++++++++++++
arch/arm/boot/dts/exynos5250.dtsi | 20 ++++++++++-
arch/arm/mach-exynos/Kconfig | 1 +
3 files changed, 53 insertions(+), 2 deletions(-)
--
1.7.6.5
This patch enables support for XHCI on exynos5 series of SOCs,
to support host side USB 3.0 support.
Signed-off-by: Vivek Gautam <[email protected]>
---
arch/arm/mach-exynos/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index ef3b69a..1c582cf 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -420,6 +420,7 @@ config MACH_EXYNOS5_DT
depends on ARCH_EXYNOS5
select ARM_AMBA
select CLKSRC_OF
+ select USB_ARCH_HAS_XHCI
select USE_OF
help
Machine support for Samsung EXYNOS5 machine with device tree enabled.
--
1.7.6.5
Adding DWC3 device tree node for Exynos5250 needed to
parse device tree data.
Signed-off-by: Vivek Gautam <[email protected]>
---
arch/arm/boot/dts/exynos5250.dtsi | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 5b6f8c8..e0feedb 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -398,7 +398,23 @@
dma-names = "tx", "rx";
};
- usbphy@12100000 {
+ usb@12000000 {
+ compatible = "samsung,exynos5250-dwusb3";
+ clocks = <&clock 286>;
+ clock-names = "usbdrd30";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ dwc3 {
+ compatible = "synopsys,dwc3";
+ reg = <0x12000000 0x10000>;
+ interrupts = <0 72 0>;
+ usb-phy = <&usb2_phy &usb3_phy>;
+ };
+ };
+
+ usb3_phy: usbphy@12100000 {
compatible = "samsung,exynos5250-usb3phy";
reg = <0x12100000 0x100>;
clocks = <&clock 1>, <&clock 286>;
@@ -430,7 +446,7 @@
clock-names = "usbhost";
};
- usbphy@12130000 {
+ usb2_phy: usbphy@12130000 {
compatible = "samsung,exynos5250-usb2phy";
reg = <0x12130000 0x100>;
clocks = <&clock 1>, <&clock 285>;
--
1.7.6.5
Document device tree binding information as required by the
Samsung' USB 3.0 controller.
Signed-off-by: Vivek Gautam <[email protected]>
---
.../devicetree/bindings/usb/exynos-usb.txt | 34 ++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt
index b3abde7..d967ba1 100644
--- a/Documentation/devicetree/bindings/usb/exynos-usb.txt
+++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt
@@ -48,3 +48,37 @@ Example:
clocks = <&clock 285>;
clock-names = "usbhost";
};
+
+DWC3
+Required properties:
+ - compatible: should be "samsung,exynos5250-dwusb3" for USB 3.0 DWC3
+ controller.
+ - #address-cells, #size-cells : should be '1' if the device has sub-nodes
+ with 'reg' property.
+ - ranges: allows valid 1:1 translation between child's address space and
+ parent's address space
+ - clocks: Clock IDs array as required by the controller.
+ - clock-names: names of clocks correseponding to IDs in the clock property
+
+Sub-nodes:
+The dwc3 core should be added as subnode to Exynos dwc3 glue.
+- dwc3 :
+ The binding details of dwc3 can be found in:
+ Documentation/devicetree/bindings/usb/dwc3.txt
+
+Example:
+ usb@12000000 {
+ compatible = "samsung,exynos5250-dwusb3";
+ clocks = <&clock 286>;
+ clock-names = "usbdrd30";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ dwc3 {
+ compatible = "synopsys,dwc3";
+ reg = <0x12000000 0x10000>;
+ interrupts = <0 72 0>;
+ usb-phy = <&usb2_phy &usb3_phy>;
+ };
+ };
--
1.7.6.5
Hi Kukjin,
On Fri, Mar 15, 2013 at 1:32 PM, Vivek Gautam <[email protected]> wrote:
> This patch-set is in continuation with patch-series:
> [PATCH v4 0/4] Enable ehci, ohci and dwc3 devices on exynos5250
> out of which follwowing patches have been picked up:
> ARM: Exynos5250: Enabling ehci-s5p driver
> ARM: Exynos5250: Enabling ohci-exynos driver
>
> Based on following patch-set for Samsung's usb PHY enablement:
> [PATCH v4 0/2] ARM: Exynos5250: Enabling samsung usb phy
>
> and further depends on dwc3-exynos driver patch-set:
> [PATCH 0/2] dwc3: exynos: Device tree fixes
>
> Changes from v4:
> - Aligning with the recently merged common clock framework, thereby
> no place for clock file changes. ;-)
> - Adding proper binding documentation as per latest bindings changes in
> dwc3 driver (dwc3/core.c as well as for dwc3-exynos.c change reflected
> by above patch-set.
> - Bifurcating the patch to separate our Documentation, arch and dts changes.
>
> Vivek Gautam (3):
> usb: Add device tree bindings for dwc3-exynos
> ARM: exynos5250: dts: Enabling dwc3-exynos driver
> ARM: exynos5: Enable XHCI support on exynos5
>
> .../devicetree/bindings/usb/exynos-usb.txt | 34 ++++++++++++++++++++
> arch/arm/boot/dts/exynos5250.dtsi | 20 ++++++++++-
> arch/arm/mach-exynos/Kconfig | 1 +
> 3 files changed, 53 insertions(+), 2 deletions(-)
Waiting for your review on this patch-set. :-)
--
Thanks & Regards
Vivek
Vivek Gautam wrote:
>
> This patch-set is in continuation with patch-series:
> [PATCH v4 0/4] Enable ehci, ohci and dwc3 devices on exynos5250
> out of which follwowing patches have been picked up:
> ARM: Exynos5250: Enabling ehci-s5p driver
> ARM: Exynos5250: Enabling ohci-exynos driver
>
> Based on following patch-set for Samsung's usb PHY enablement:
> [PATCH v4 0/2] ARM: Exynos5250: Enabling samsung usb phy
>
> and further depends on dwc3-exynos driver patch-set:
> [PATCH 0/2] dwc3: exynos: Device tree fixes
>
> Changes from v4:
> - Aligning with the recently merged common clock framework, thereby
> no place for clock file changes. ;-)
> - Adding proper binding documentation as per latest bindings changes in
> dwc3 driver (dwc3/core.c as well as for dwc3-exynos.c change reflected
> by above patch-set.
> - Bifurcating the patch to separate our Documentation, arch and dts
> changes.
>
> Vivek Gautam (3):
> usb: Add device tree bindings for dwc3-exynos
> ARM: exynos5250: dts: Enabling dwc3-exynos driver
> ARM: exynos5: Enable XHCI support on exynos5
>
> .../devicetree/bindings/usb/exynos-usb.txt | 34
> ++++++++++++++++++++
> arch/arm/boot/dts/exynos5250.dtsi | 20 ++++++++++-
> arch/arm/mach-exynos/Kconfig | 1 +
> 3 files changed, 53 insertions(+), 2 deletions(-)
>
> --
> 1.7.6.5
Applied this series, thanks.
- Kukjin