* [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems
@ 2014-05-14 14:01 Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 1/8] ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek gautam
From: Vivek gautam <gautam.vivek@samsung.com>
Based on 'for-next' branch of Kgene's linux-samsung tree;
along with dts patches for USB 2.0 phy[1], and Exynos5800 [2].
Also based on the latest USB 3.0 DRD phy driver patches posted [3].
Changes from v5:
- Added node reference names for new boards.
- Removed 'samsung,pmu-offset' porperty from nodes, since with latest driver
bindings this is not required.
- Added aliase nodes in Exynos5420 to facilitate latest driver bindings.
- Added patch to add VBUS regulator for peach-pi board also.
- Dropped patches removing older usb-phy driver:
usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver
ARM: exynos_defconfig: Remove SAMSUNG_USB3PHY config
as appeared in V5 version of this series.
Will post them separately after the new driver is merged.
[1] http://www.spinics.net/lists/linux-samsung-soc/msg30494.html
[2] http://comments.gmane.org/gmane.linux.kernel.samsung-soc/31133
[3] https://lkml.org/lkml/2014/5/13/285
Vivek Gautam (7):
ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller
ARM: dts: exynos5420: Enable support for DWC3 controller
ARM: dts: exynos5250: Enable support for generic USB DRD phy
ARM: dts: exynos5250: Update DWC3 usb controller to use new phy
driver
ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0
ARM: dts: exynos5420-peach-pit: Add Vbus regulator for USB 3.0
ARM: dts: exynos5420-smdk5420: Add Vbus regulator for USB 3.0
Vivek gautam (1):
ARM: dts: exynos5800-peach-pi: Add Vbus regulator for USB 3.0
arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++
arch/arm/boot/dts/exynos5250.dtsi | 20 +++++------
arch/arm/boot/dts/exynos5420-peach-pit.dts | 46 ++++++++++++++++++++++++
arch/arm/boot/dts/exynos5420-smdk5420.dts | 46 ++++++++++++++++++++++++
arch/arm/boot/dts/exynos5420.dtsi | 54 ++++++++++++++++++++++++++++
arch/arm/boot/dts/exynos5800-peach-pi.dts | 46 ++++++++++++++++++++++++
6 files changed, 222 insertions(+), 12 deletions(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v6 1/8] ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 2/8] ARM: dts: exynos5420: Enable support for DWC3 controller Vivek Gautam
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add device tree nodes for USB 3.0 PHY present alongwith
USB 3.0 controller Exynos 5420 SoC. This phy driver is
based on generic phy framework.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 6fe321b..8eebf7f 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -47,6 +47,8 @@
spi0 = &spi_0;
spi1 = &spi_1;
spi2 = &spi_2;
+ usbdrdphy0 = &usbdrd_phy0;
+ usbdrdphy1 = &usbdrd_phy1;
};
cpus {
@@ -802,4 +804,22 @@
samsung,sysreg-phandle = <&sysreg_system_controller>;
samsung,pmureg-phandle = <&pmu_system_controller>;
};
+
+ usbdrd_phy0: phy@12100000 {
+ compatible = "samsung,exynos5420-usbdrd-phy";
+ reg = <0x12100000 0x100>;
+ clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
+ clock-names = "phy", "ref";
+ samsung,pmu-syscon = <&pmu_system_controller>;
+ #phy-cells = <1>;
+ };
+
+ usbdrd_phy1: phy@12500000 {
+ compatible = "samsung,exynos5420-usbdrd-phy";
+ reg = <0x12500000 0x100>;
+ clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
+ clock-names = "phy", "ref";
+ samsung,pmu-syscon = <&pmu_system_controller>;
+ #phy-cells = <1>;
+ };
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 2/8] ARM: dts: exynos5420: Enable support for DWC3 controller
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 1/8] ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 3/8] ARM: dts: exynos5250: Enable support for generic USB DRD phy Vivek Gautam
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add device tree nodes for DWC3 controller present on
Exynos 5420 SoC, to enable support for USB 3.0.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/boot/dts/exynos5420.dtsi | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 8eebf7f..128829a 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -805,6 +805,23 @@
samsung,pmureg-phandle = <&pmu_system_controller>;
};
+ usbdrd3_0: usb@12000000 {
+ compatible = "samsung,exynos5250-dwusb3";
+ clocks = <&clock CLK_USBD300>;
+ clock-names = "usbdrd30";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ dwc3 {
+ compatible = "snps,dwc3";
+ reg = <0x12000000 0x10000>;
+ interrupts = <0 72 0>;
+ phys = <&usbdrd_phy0 0>, <&usbdrd_phy0 1>;
+ phy-names = "usb2-phy", "usb3-phy";
+ };
+ };
+
usbdrd_phy0: phy@12100000 {
compatible = "samsung,exynos5420-usbdrd-phy";
reg = <0x12100000 0x100>;
@@ -814,6 +831,23 @@
#phy-cells = <1>;
};
+ usbdrd3_1: usb@12400000 {
+ compatible = "samsung,exynos5250-dwusb3";
+ clocks = <&clock CLK_USBD301>;
+ clock-names = "usbdrd30";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ dwc3 {
+ compatible = "snps,dwc3";
+ reg = <0x12400000 0x10000>;
+ interrupts = <0 73 0>;
+ phys = <&usbdrd_phy1 0>, <&usbdrd_phy1 1>;
+ phy-names = "usb2-phy", "usb3-phy";
+ };
+ };
+
usbdrd_phy1: phy@12500000 {
compatible = "samsung,exynos5420-usbdrd-phy";
reg = <0x12500000 0x100>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 3/8] ARM: dts: exynos5250: Enable support for generic USB DRD phy
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 1/8] ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 2/8] ARM: dts: exynos5420: Enable support for DWC3 controller Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 4/8] ARM: dts: exynos5250: Update DWC3 usb controller to use new phy driver Vivek Gautam
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add device tree node for new usbdrd-phy driver, which
is based on generic phy framework.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/boot/dts/exynos5250.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 2fa6345..8303a42 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -574,6 +574,15 @@
};
};
+ usbdrd_phy: phy@12100000 {
+ compatible = "samsung,exynos5250-usbdrd-phy";
+ reg = <0x12100000 0x100>;
+ clocks = <&clock CLK_USB3>, <&clock CLK_FIN_PLL>;
+ clock-names = "phy", "ref";
+ samsung,pmu-syscon = <&pmu_system_controller>;
+ #phy-cells = <1>;
+ };
+
usb@12110000 {
compatible = "samsung,exynos4210-ehci";
reg = <0x12110000 0x100>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 4/8] ARM: dts: exynos5250: Update DWC3 usb controller to use new phy driver
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (2 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 3/8] ARM: dts: exynos5250: Enable support for generic USB DRD phy Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0 Vivek Gautam
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Removing the dt node for older usb3 phy driver from Exynos5250
device tree and updating the dt node for DWC3 controller to
use new phy driver based on generic phy framework.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/boot/dts/exynos5250.dtsi | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 8303a42..8deadc3 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -556,21 +556,8 @@
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 CLK_FIN_PLL>, <&clock CLK_USB3>;
- clock-names = "ext_xtal", "usbdrd30";
- #address-cells = <1>;
- #size-cells = <1>;
- ranges;
-
- usbphy-sys {
- reg = <0x10040704 0x8>;
+ phys = <&usbdrd_phy 0>, <&usbdrd_phy 1>;
+ phy-names = "usb2-phy", "usb3-phy";
};
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (3 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 4/8] ARM: dts: exynos5250: Update DWC3 usb controller to use new phy driver Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-19 11:26 ` Kukjin Kim
2014-05-14 14:01 ` [PATCH v6 6/8] ARM: dts: exynos5420-peach-pit: " Vivek Gautam
` (3 subsequent siblings)
8 siblings, 1 reply; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add required fixed-regulator for VBUS supply for USB 3.0
controller phy.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
---
arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index 1ce1088..fd9b3b3 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -37,6 +37,13 @@
sd3_bus4: sd3-bus-width4 {
samsung,pin-drv = <0>;
};
+
+ usb3_vbus_en: usb3-vbus-en {
+ samsung,pins = "gpx2-7";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
};
gpio-keys {
@@ -196,6 +203,21 @@
};
};
+ usb3_vbus_reg: regulator-usb3 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB3CON";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpx2 7 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb3_vbus_en>;
+ enable-active-high;
+ };
+
+ phy@12100000 {
+ vbus-supply = <&usb3_vbus_reg>;
+ };
+
usb@12110000 {
samsung,vbus-gpio = <&gpx1 1 0>;
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 6/8] ARM: dts: exynos5420-peach-pit: Add Vbus regulator for USB 3.0
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (4 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0 Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 7/8] ARM: dts: exynos5420-smdk5420: " Vivek Gautam
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add required fixed-regulator for VBUS supply for USB 3.0
controller phy.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
---
arch/arm/boot/dts/exynos5420-peach-pit.dts | 46 ++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts
index fae33dd..8402ec3 100644
--- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
+++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
@@ -58,6 +58,28 @@
pinctrl-0 = <&pwm0_out>;
pinctrl-names = "default";
};
+
+ usb300_vbus_reg: regulator-usb300 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB3CON0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gph0 0 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb300_vbus_en>;
+ enable-active-high;
+ };
+
+ usb301_vbus_reg: regulator-usb301 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB3CON1";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gph0 1 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb301_vbus_en>;
+ enable-active-high;
+ };
};
&pinctrl_0 {
@@ -76,6 +98,22 @@
};
};
+&pinctrl_3 {
+ usb300_vbus_en: usb300-vbus-en {
+ samsung,pins = "gph0-0";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+
+ usb301_vbus_en: usb301-vbus-en {
+ samsung,pins = "gph0-1";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+};
+
&rtc {
status = "okay";
};
@@ -137,6 +175,14 @@
};
};
+&usbdrd3_0 {
+ vbus-supply = <&usb300_vbus_reg>;
+};
+
+&usbdrd3_1 {
+ vbus-supply = <&usb301_vbus_reg>;
+};
+
/*
* Use longest HW watchdog in SoC (32 seconds) since the hardware
* watchdog provides no debugging information (compared to soft/hard
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 7/8] ARM: dts: exynos5420-smdk5420: Add Vbus regulator for USB 3.0
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (5 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 6/8] ARM: dts: exynos5420-peach-pit: " Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 8/8] ARM: dts: exynos5800-peach-pi: " Vivek Gautam
2014-05-15 21:53 ` [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Kukjin Kim
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek Gautam
Add required fixed-regulator for VBUS supply for USB 3.0
controller phy.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
---
arch/arm/boot/dts/exynos5420-smdk5420.dts | 46 +++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts
index 6910485..6053c9f 100644
--- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
+++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
@@ -140,6 +140,22 @@
};
};
+ pinctrl@14000000 {
+ usb300_vbus_en: usb300-vbus-en {
+ samsung,pins = "gpg0-5";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+
+ usb301_vbus_en: usb301-vbus-en {
+ samsung,pins = "gpg1-4";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+ };
+
hdmi@14530000 {
status = "okay";
hpd-gpio = <&gpx3 7 0>;
@@ -147,6 +163,36 @@
pinctrl-0 = <&hdmi_hpd_irq>;
};
+ usb300_vbus_reg: regulator-usb300 {
+ compatible = "regulator-fixed";
+ regulator-name = "VBUS0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpg0 5 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb300_vbus_en>;
+ enable-active-high;
+ };
+
+ usb301_vbus_reg: regulator-usb301 {
+ compatible = "regulator-fixed";
+ regulator-name = "VBUS1";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpg1 4 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb301_vbus_en>;
+ enable-active-high;
+ };
+
+ phy@12100000 {
+ vbus-supply = <&usb300_vbus_reg>;
+ };
+
+ phy@12500000 {
+ vbus-supply = <&usb301_vbus_reg>;
+ };
+
i2c_2: i2c@12C80000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v6 8/8] ARM: dts: exynos5800-peach-pi: Add Vbus regulator for USB 3.0
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (6 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 7/8] ARM: dts: exynos5420-smdk5420: " Vivek Gautam
@ 2014-05-14 14:01 ` Vivek Gautam
2014-05-15 21:53 ` [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Kukjin Kim
8 siblings, 0 replies; 11+ messages in thread
From: Vivek Gautam @ 2014-05-14 14:01 UTC (permalink / raw)
To: linux-samsung-soc, linux-usb, devicetree, kgene.kim
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han, Vivek gautam
From: Vivek gautam <gautam.vivek@samsung.com>
Add required fixed-regulator for VBUS supply for USB 3.0
controller phy.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
---
arch/arm/boot/dts/exynos5800-peach-pi.dts | 46 +++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts
index 4ed9ccc..8301bca 100644
--- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
+++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
@@ -56,6 +56,28 @@
pinctrl-0 = <&pwm0_out>;
pinctrl-names = "default";
};
+
+ usb300_vbus_reg: regulator-usb300 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB3CON0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gph0 0 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb300_vbus_en>;
+ enable-active-high;
+ };
+
+ usb301_vbus_reg: regulator-usb301 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB3CON1";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gph0 1 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb301_vbus_en>;
+ enable-active-high;
+ };
};
&pinctrl_0 {
@@ -74,6 +96,22 @@
};
};
+&pinctrl_3 {
+ usb300_vbus_en: usb300-vbus-en {
+ samsung,pins = "gph0-0";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+
+ usb301_vbus_en: usb301-vbus-en {
+ samsung,pins = "gph0-1";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+};
+
&rtc {
status = "okay";
};
@@ -134,6 +172,14 @@
};
};
+&usbdrd3_0 {
+ vbus-supply = <&usb300_vbus_reg>;
+};
+
+&usbdrd3_1 {
+ vbus-supply = <&usb301_vbus_reg>;
+};
+
/*
* Use longest HW watchdog in SoC (32 seconds) since the hardware
* watchdog provides no debugging information (compared to soft/hard
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
` (7 preceding siblings ...)
2014-05-14 14:01 ` [PATCH v6 8/8] ARM: dts: exynos5800-peach-pi: " Vivek Gautam
@ 2014-05-15 21:53 ` Kukjin Kim
8 siblings, 0 replies; 11+ messages in thread
From: Kukjin Kim @ 2014-05-15 21:53 UTC (permalink / raw)
To: Vivek Gautam
Cc: linux-samsung-soc, linux-usb, devicetree, kgene.kim, gregkh,
t.figa, jg1.han, linux-kernel, balbi, kishon, robh+dt,
linux-arm-kernel
On 05/14/14 23:01, Vivek Gautam wrote:
> From: Vivek gautam<gautam.vivek@samsung.com>
>
> Based on 'for-next' branch of Kgene's linux-samsung tree;
> along with dts patches for USB 2.0 phy[1], and Exynos5800 [2].
> Also based on the latest USB 3.0 DRD phy driver patches posted [3].
>
> Changes from v5:
> - Added node reference names for new boards.
> - Removed 'samsung,pmu-offset' porperty from nodes, since with latest driver
> bindings this is not required.
> - Added aliase nodes in Exynos5420 to facilitate latest driver bindings.
> - Added patch to add VBUS regulator for peach-pi board also.
> - Dropped patches removing older usb-phy driver:
> usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver
> ARM: exynos_defconfig: Remove SAMSUNG_USB3PHY config
> as appeared in V5 version of this series.
> Will post them separately after the new driver is merged.
>
> [1] http://www.spinics.net/lists/linux-samsung-soc/msg30494.html
> [2] http://comments.gmane.org/gmane.linux.kernel.samsung-soc/31133
> [3] https://lkml.org/lkml/2014/5/13/285
>
> Vivek Gautam (7):
> ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller
> ARM: dts: exynos5420: Enable support for DWC3 controller
> ARM: dts: exynos5250: Enable support for generic USB DRD phy
> ARM: dts: exynos5250: Update DWC3 usb controller to use new phy
> driver
> ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0
> ARM: dts: exynos5420-peach-pit: Add Vbus regulator for USB 3.0
> ARM: dts: exynos5420-smdk5420: Add Vbus regulator for USB 3.0
>
> Vivek gautam (1):
should be same guy.
Vivek Gautam ;-)
> ARM: dts: exynos5800-peach-pi: Add Vbus regulator for USB 3.0
>
> arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++
> arch/arm/boot/dts/exynos5250.dtsi | 20 +++++------
> arch/arm/boot/dts/exynos5420-peach-pit.dts | 46 ++++++++++++++++++++++++
> arch/arm/boot/dts/exynos5420-smdk5420.dts | 46 ++++++++++++++++++++++++
> arch/arm/boot/dts/exynos5420.dtsi | 54 ++++++++++++++++++++++++++++
> arch/arm/boot/dts/exynos5800-peach-pi.dts | 46 ++++++++++++++++++++++++
> 6 files changed, 222 insertions(+), 12 deletions(-)
>
Looks good to me.
Applied 1 to 4 patches, but for others 5 to 8 I need to get any review
or ack from dt guys.
Thanks,
Kukjin
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0
2014-05-14 14:01 ` [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0 Vivek Gautam
@ 2014-05-19 11:26 ` Kukjin Kim
0 siblings, 0 replies; 11+ messages in thread
From: Kukjin Kim @ 2014-05-19 11:26 UTC (permalink / raw)
To: 'Vivek Gautam', linux-samsung-soc, linux-usb, devicetree
Cc: linux-kernel, linux-arm-kernel, robh+dt, gregkh, t.figa, balbi,
kishon, jg1.han
Vivek Gautam wrote:
>
> Add required fixed-regulator for VBUS supply for USB 3.0
> controller phy.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> ---
> arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5250-snow.dts
> b/arch/arm/boot/dts/exynos5250-snow.dts
> index 1ce1088..fd9b3b3 100644
> --- a/arch/arm/boot/dts/exynos5250-snow.dts
> +++ b/arch/arm/boot/dts/exynos5250-snow.dts
> @@ -37,6 +37,13 @@
> sd3_bus4: sd3-bus-width4 {
> samsung,pin-drv = <0>;
> };
> +
> + usb3_vbus_en: usb3-vbus-en {
> + samsung,pins = "gpx2-7";
> + samsung,pin-function = <1>;
> + samsung,pin-pud = <0>;
> + samsung,pin-drv = <0>;
> + };
> };
>
> gpio-keys {
> @@ -196,6 +203,21 @@
> };
> };
>
> + usb3_vbus_reg: regulator-usb3 {
> + compatible = "regulator-fixed";
> + regulator-name = "P5.0V_USB3CON";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + gpio = <&gpx2 7 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&usb3_vbus_en>;
> + enable-active-high;
> + };
> +
> + phy@12100000 {
> + vbus-supply = <&usb3_vbus_reg>;
> + };
> +
> usb@12110000 {
> samsung,vbus-gpio = <&gpx1 1 0>;
> };
> --
> 1.7.10.4
Looks OK to me and applied 5 to 8 as well.
Thanks,
Kukjin
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-05-19 11:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 14:01 [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 1/8] ARM: dts: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 2/8] ARM: dts: exynos5420: Enable support for DWC3 controller Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 3/8] ARM: dts: exynos5250: Enable support for generic USB DRD phy Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 4/8] ARM: dts: exynos5250: Update DWC3 usb controller to use new phy driver Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 5/8] ARM: dts: exynos5250-snow: Add Vbus regulator for USB 3.0 Vivek Gautam
2014-05-19 11:26 ` Kukjin Kim
2014-05-14 14:01 ` [PATCH v6 6/8] ARM: dts: exynos5420-peach-pit: " Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 7/8] ARM: dts: exynos5420-smdk5420: " Vivek Gautam
2014-05-14 14:01 ` [PATCH v6 8/8] ARM: dts: exynos5800-peach-pi: " Vivek Gautam
2014-05-15 21:53 ` [PATCH v6 0/8] Enable USB 3.0 support on Exynos5 systems Kukjin Kim
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 NNTP newsgroup(s).