diff mbox series

[PATCHv2] ARM: dts: exynos: update the usbdrd_phy suspend clk

Message ID 20181120185536.1159-1-linux.amoon@gmail.com (mailing list archive)
State Changes Requested
Headers show
Series [PATCHv2] ARM: dts: exynos: update the usbdrd_phy suspend clk | expand

Commit Message

Anand Moon Nov. 20, 2018, 6:55 p.m. UTC
As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds
to SUSPEND_CLK so correct update the suspend clk.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
[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(-)

Comments

Krzysztof Kozlowski Nov. 22, 2018, 7:54 a.m. UTC | #1
On Tue, 20 Nov 2018 at 19:55, Anand Moon <linux.amoon@gmail.com> wrote:
>
> As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds
> to SUSPEND_CLK so correct update the suspend clk.
>
> Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> ---
> [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

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

Best regards,
Krzysztof

> ---
>  arch/arm/boot/dts/exynos5410.dtsi | 4 ++--
>  arch/arm/boot/dts/exynos5420.dtsi | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
> index 57fc9c949e54..a92c765a7a84 100644
> --- a/arch/arm/boot/dts/exynos5410.dtsi
> +++ b/arch/arm/boot/dts/exynos5410.dtsi
> @@ -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>;
>  };
> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
> index aaff15880761..b84b44556efc 100644
> --- a/arch/arm/boot/dts/exynos5420.dtsi
> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> @@ -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
>
Anand Moon Nov. 23, 2018, 10:02 a.m. UTC | #2
Hi Krzysztof,

On Thu, 22 Nov 2018 at 13:24, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On Tue, 20 Nov 2018 at 19:55, Anand Moon <linux.amoon@gmail.com> wrote:
> >
> > As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds
> > to SUSPEND_CLK so correct update the suspend clk.
> >
> > Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> > ---
> > [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
>
> 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
Anand Moon Nov. 26, 2018, 5:06 a.m. UTC | #3
Hi Krzysztof,

On Thu, 22 Nov 2018 at 13:24, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On Tue, 20 Nov 2018 at 19:55, Anand Moon <linux.amoon@gmail.com> wrote:
> >
> > As per FSYS usbdrd_phy clk setting CLK_SCLK_USBD300/1 binds
> > to SUSPEND_CLK so correct update the suspend clk.
> >
> > Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> > ---
> > [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
>
> 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
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
index 57fc9c949e54..a92c765a7a84 100644
--- a/arch/arm/boot/dts/exynos5410.dtsi
+++ b/arch/arm/boot/dts/exynos5410.dtsi
@@ -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>;
 };
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index aaff15880761..b84b44556efc 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -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>;
 };