2014-04-25 11:31:40

by Vivek Gautam

[permalink] [raw]
Subject: [PATCH v7 0/2] dts: Add usb2phy to Exynos 5250

Next version of patch for Kamil's patch:
[PATCH v6 4/8] dts: Add usb2phy to Exynos 5250
https://lkml.org/lkml/2014/1/29/302

Based on 'for-next' branch of Kgene's linux-samsung tree.
Tested with driver side patches:
[PATCH 0/2] usb: ehci/ohci-exynos: Move to generic phy framework
https://www.mail-archive.com/[email protected]/msg41246.html

Changes from v6:
- Splitted the patch into two:
adding syscon nodes to Exynos5250 and Exynos5420 in first;
and phy entry change in the second.
- Changed the name of phandle for usb2phy from 'usb2_phy_new'
to 'usb2_phy_gen' indicating generic phy.
- Using clock macros in dt entries.

Kamil Debski (1):
ARM: dts: Add usb2phy to Exynos 5250

Vivek Gautam (1):
ARM: dts: Add sysreg sytem controller node to exynos5250 and
exynos5420

arch/arm/boot/dts/exynos5250.dtsi | 31 +++++++++++++++++++++++++++++++
arch/arm/boot/dts/exynos5420.dtsi | 5 +++++
2 files changed, 36 insertions(+)

--
1.7.10.4


2014-04-25 11:31:50

by Vivek Gautam

[permalink] [raw]
Subject: [PATCH v7 2/2] ARM: dts: Add usb2phy to Exynos 5250

From: Kamil Debski <[email protected]>

Add support to PHY of USB2 of the Exynos 5250 SoC.

Signed-off-by: Kamil Debski <[email protected]>
[[email protected]: Split the usb phy entries from
syscon entries from earlier patch: dts: Add usb2phy to Exynos 5250]
[[email protected]: Added phy entry for OHCI also along with EHCI]
Signed-off-by: Vivek Gautam <[email protected]>
---
arch/arm/boot/dts/exynos5250.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 70f0cd5..51e554c 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -563,6 +563,14 @@

clocks = <&clock CLK_USB2>;
clock-names = "usbhost";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ port@0 {
+ reg = <0>;
+ phys = <&usb2_phy_gen 1>;
+ phy-names = "host";
+ status = "ok";
+ };
};

usb@12120000 {
@@ -572,6 +580,14 @@

clocks = <&clock CLK_USB2>;
clock-names = "usbhost";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ port@0 {
+ reg = <0>;
+ phys = <&usb2_phy_gen 1>;
+ phy-names = "host";
+ status = "ok";
+ };
};

usb2_phy: usbphy@12130000 {
@@ -589,6 +605,16 @@
};
};

+ usb2_phy_gen: phy@12130000 {
+ compatible = "samsung,exynos5250-usb2-phy";
+ reg = <0x12130000 0x100>;
+ clocks = <&clock CLK_USB2>, <&clock CLK_FIN_PLL>;
+ clock-names = "phy", "ref";
+ #phy-cells = <1>;
+ samsung,sysreg-phandle = <&sysreg_system_controller>;
+ samsung,pmureg-phandle = <&pmu_system_controller>;
+ };
+
pwm: pwm@12dd0000 {
compatible = "samsung,exynos4210-pwm";
reg = <0x12dd0000 0x100>;
--
1.7.10.4

2014-04-25 11:32:22

by Vivek Gautam

[permalink] [raw]
Subject: [PATCH v7 1/2] ARM: dts: Add sysreg sytem controller node to exynos5250 and exynos5420

This patch adds sysreg-syscon node to exynos5250 and exynos5420 device
tree, to access System Register's registers using syscon driver.

Signed-off-by: Kamil Debski <[email protected]>
[[email protected]: Split this syreg-syscon dts entry from
dts: Add usb2phy to Exynos 5250 patch]
[[email protected]: added similar syscon entry for exynos5420]
Signed-off-by: Vivek Gautam <[email protected]>
---
arch/arm/boot/dts/exynos5250.dtsi | 5 +++++
arch/arm/boot/dts/exynos5420.dtsi | 5 +++++
2 files changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 3742331..70f0cd5 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -175,6 +175,11 @@
reg = <0x10040000 0x5000>;
};

+ sysreg_system_controller: syscon@10050000 {
+ compatible = "samsung,exynos5250-sys", "syscon";
+ reg = <0x10050000 0x5000>;
+ };
+
watchdog@101D0000 {
compatible = "samsung,exynos5250-wdt";
reg = <0x101D0000 0x100>;
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index c3a9a66..cfa3755 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -675,6 +675,11 @@
reg = <0x10040000 0x5000>;
};

+ sysreg_system_controller: syscon@10050000 {
+ compatible = "samsung,exynos5420-sys", "syscon";
+ reg = <0x10050000 0x5000>;
+ };
+
tmu_cpu0: tmu@10060000 {
compatible = "samsung,exynos5420-tmu";
reg = <0x10060000 0x100>;
--
1.7.10.4