Skip to contentSkip to conversation

ARM: dts: exynos: update the usbdrd_phy suspend clk

PATCH Superseded Anand Moon 2 participants 4 messages Nov 20, 2018 – Nov 26, 2018

Subsystems (2)
lore
Share & tools
lore

Anand Moon

author
#0 lore raw

PATCH v2 1/1 ARM: dts: exynos: update the usbdrd_phy suspend clk

As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds to SUSPEND_CLK so correct update the suspend clk.

---
[0] https://lkml.org/lkml/2017/10/6/12
changes from previous patch
fix the order of clk and update the commit message

FSYS block show in user manual

CLKMUX_USBDRD300/1----CLKDIV_USBDRD300/1----SCLK_USBDRD300/1-----SUSPEND_CLK

                   |
                   |--CLKDIV_USBPHY300/1----SCLK_USBPHY300/1-----USBDRD30_PHY_0/1
---
 arch/arm/boot/dts/exynos5410.dtsi | 4 ++--
 arch/arm/boot/dts/exynos5420.dtsi | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/exynos5410.dtsi +2 -2
index 57fc9c949e54..a92c765a7a84 100644
@@ -395,7 +395,7 @@
 };
 
 &usbdrd_phy0 {
-	clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
+	clocks = <&clock CLK_SCLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
 	clock-names = "phy", "ref";
 	samsung,pmu-syscon = <&pmu_system_controller>;
 };
@@ -410,7 +410,7 @@
 };
 
 &usbdrd_phy1 {
-	clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
+	clocks = <&clock CLK_SCLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
 	clock-names = "phy", "ref";
 	samsung,pmu-syscon = <&pmu_system_controller>;
 };
arch/arm/boot/dts/exynos5420.dtsi +2 -2
index aaff15880761..b84b44556efc 100644
@@ -1509,7 +1509,7 @@
 };
 
 &usbdrd_phy0 {
-	clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
+	clocks = <&clock CLK_SCLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
 	clock-names = "phy", "ref";
 	samsung,pmu-syscon = <&pmu_system_controller>;
 };
@@ -1524,7 +1524,7 @@
 };
 
 &usbdrd_phy1 {
-	clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
+	clocks = <&clock CLK_SCLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
 	clock-names = "phy", "ref";
 	samsung,pmu-syscon = <&pmu_system_controller>;
 };
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 ARM: dts: exynos: update the usbdrd_phy suspend clk

Quoted 10 lines · Anand Moon

As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds to SUSPEND_CLK so correct update the suspend clk.

---
[0] https://lkml.org/lkml/2017/10/6/12
changes from previous patch
fix the order of clk and update the commit message

Quoted 5 lines

FSYS block show in user manual

CLKMUX_USBDRD300/1----CLKDIV_USBDRD300/1----SCLK_USBDRD300/1-----SUSPEND_CLK

                   |
                   |--CLKDIV_USBPHY300/1----SCLK_USBPHY300/1-----USBDRD30_PHY_0/1

Your new clock - SCLK_USBD301 - is not mentioned here. I don't get the reason behind this change.

Best regards,
Krzysztof

Quoted 52 lines
---
 arch/arm/boot/dts/exynos5410.dtsi | 4 ++--
 arch/arm/boot/dts/exynos5420.dtsi | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/exynos5410.dtsi +2 -2
index 57fc9c949e54..a92c765a7a84 100644
@@ -395,7 +395,7 @@
 };
 
 &usbdrd_phy0 {
-       clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
+       clocks = <&clock CLK_SCLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
        clock-names = "phy", "ref";
        samsung,pmu-syscon = <&pmu_system_controller>;
 };
@@ -410,7 +410,7 @@
 };
 
 &usbdrd_phy1 {
-       clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
+       clocks = <&clock CLK_SCLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
        clock-names = "phy", "ref";
        samsung,pmu-syscon = <&pmu_system_controller>;
 };
arch/arm/boot/dts/exynos5420.dtsi +2 -3
index aaff15880761..b84b44556efc 100644
@@ -1509,7 +1509,7 @@
 };
 
 &usbdrd_phy0 {
-       clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
+       clocks = <&clock CLK_SCLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
        clock-names = "phy", "ref";
        samsung,pmu-syscon = <&pmu_system_controller>;
 };
@@ -1524,7 +1524,7 @@
 };
 
 &usbdrd_phy1 {
-       clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
+       clocks = <&clock CLK_SCLK_USBD301>, <&clock CLK_SCLK_USBPHY301>;
        clock-names = "phy", "ref";
        samsung,pmu-syscon = <&pmu_system_controller>;
 };
--

2.17.1

author
#2 lore raw

PATCH v2 1/1 ARM: dts: exynos: update the usbdrd_phy suspend clk

Hi Krzysztof,

Quoted 18 lines · Krzysztof Kozlowski
Quoted 10 lines · Anand Moon

As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds to SUSPEND_CLK so correct update the suspend clk.

---
[0] https://lkml.org/lkml/2017/10/6/12
changes from previous patch
fix the order of clk and update the commit message

Quoted 5 lines

FSYS block show in user manual

CLKMUX_USBDRD300/1----CLKDIV_USBDRD300/1----SCLK_USBDRD300/1-----SUSPEND_CLK

                   |
                   |--CLKDIV_USBPHY300/1----SCLK_USBPHY300/1-----USBDRD30_PHY_0/1
Quoted 6 lines

Your new clock - SCLK_USBD301 - is not mentioned here. I don't get the reason behind this change.

Best regards,
Krzysztof

As far as I could figure your from fsys clk structure

CLK_SCLK_USBD300/1 SUSPEND_CLK
CLK_SCLK_USBPHY300/1 PHY CLK
CLK_USBD300/1 DWC3 CLK

I sill have some dough from the schematic of Odroid XU4 we have two clk *USB_CLK* and *RTC_CLK* which is not configure and used.

Best Regards
-Anand

author
#3 lore raw

PATCH v2 1/1 ARM: dts: exynos: update the usbdrd_phy suspend clk

In reply to Krzysztof Kozlowski

Hi Krzysztof,

Quoted 18 lines · Krzysztof Kozlowski
Quoted 10 lines · Anand Moon

As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds to SUSPEND_CLK so correct update the suspend clk.

---
[0] https://lkml.org/lkml/2017/10/6/12
changes from previous patch
fix the order of clk and update the commit message

Quoted 5 lines

FSYS block show in user manual

CLKMUX_USBDRD300/1----CLKDIV_USBDRD300/1----SCLK_USBDRD300/1-----SUSPEND_CLK

                   |
                   |--CLKDIV_USBPHY300/1----SCLK_USBPHY300/1-----USBDRD30_PHY_0/1
Quoted 6 lines

Your new clock - SCLK_USBD301 - is not mentioned here. I don't get the reason behind this change.

Best regards,
Krzysztof

My patch was based on following block diagram.
[0] https://imgur.com/a/fmpk9aR

But looks like I am bit wrong with this patch again. Sorry for the noise.

Best Regards
-Anand