public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks
@ 2021-08-24 18:40 Adam Ford
  2021-08-24 18:40 ` [PATCH V2 2/2] ARM: dts: rmobile: beacon-renesom: Enable Ethernet Adam Ford
  2021-08-30 13:20 ` [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Ford @ 2021-08-24 18:40 UTC (permalink / raw)
  To: u-boot; +Cc: marek.vasut+renesas, biju.das.jz, iwamatsu, Adam Ford

There are two versaclock programmable clock chips used to provide
reference clocks for both USB and Ethernet.  Enable the driver
in the configs to run these clocks.

Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2: Move from defconfig to kconfig

diff --git a/arch/arm/mach-rmobile/Kconfig.64 b/arch/arm/mach-rmobile/Kconfig.64
index a6dcce180b..c90ea06692 100644
--- a/arch/arm/mach-rmobile/Kconfig.64
+++ b/arch/arm/mach-rmobile/Kconfig.64
@@ -76,18 +76,24 @@ config TARGET_BEACON_RZG2H
 	select R8A774E1
 	select RZ_G2
 	select PINCTRL_PFC_R8A774E1
+	select CLK_CCF
+	select CLK_VERSACLOCK
 
 config TARGET_BEACON_RZG2M
 	bool "Beacon EmbeddedWorks RZ/G2M Dev Kit"
 	select R8A774A1
 	select RZ_G2
 	select PINCTRL_PFC_R8A774A1
+	select CLK_CCF
+	select CLK_VERSACLOCK
 
 config TARGET_BEACON_RZG2N
 	bool "Beacon EmbeddedWorks RZ/G2N Dev Kit"
 	select R8A774B1
 	select RZ_G2
 	select PINCTRL_PFC_R8A774B1
+	select CLK_CCF
+	select CLK_VERSACLOCK
 
 config TARGET_CONDOR
 	bool "Condor board"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH V2 2/2] ARM: dts: rmobile: beacon-renesom: Enable Ethernet
  2021-08-24 18:40 [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford
@ 2021-08-24 18:40 ` Adam Ford
  2021-08-30 13:20 ` [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Ford @ 2021-08-24 18:40 UTC (permalink / raw)
  To: u-boot; +Cc: marek.vasut+renesas, biju.das.jz, iwamatsu, Adam Ford

Now that the versaclock driver is available, point the ethernet
node at these clocks and configure the RGMII to enable Ethernet.

Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2:  Fix subject heading

diff --git a/arch/arm/dts/beacon-renesom-som.dtsi b/arch/arm/dts/beacon-renesom-som.dtsi
index d30bab3c8b..9fe541b607 100644
--- a/arch/arm/dts/beacon-renesom-som.dtsi
+++ b/arch/arm/dts/beacon-renesom-som.dtsi
@@ -60,8 +60,11 @@
 	pinctrl-0 = <&avb_pins>;
 	pinctrl-names = "default";
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-txid";
 	rx-internal-delay-ps = <1800>;
 	tx-internal-delay-ps = <2000>;
+	clocks = <&cpg CPG_MOD 812>, <&versaclock5 4>;
+	clock-names = "fck", "refclk";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks
  2021-08-24 18:40 [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford
  2021-08-24 18:40 ` [PATCH V2 2/2] ARM: dts: rmobile: beacon-renesom: Enable Ethernet Adam Ford
@ 2021-08-30 13:20 ` Adam Ford
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Ford @ 2021-08-30 13:20 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Marek Vasut, Biju Das, Nobuhiro Iwamatsu

On Tue, Aug 24, 2021 at 1:41 PM Adam Ford <aford173@gmail.com> wrote:
>
> There are two versaclock programmable clock chips used to provide
> reference clocks for both USB and Ethernet.  Enable the driver
> in the configs to run these clocks.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---

Go ahead and drop this now.
I have FIT working with multiple DTB's from one config file. I'll push
a new series to unify M/N/H boards into one defconfig, then add new
the functions to the one remaining board.  That should eliminate a lot
of duplicated entries.

adam
> V2: Move from defconfig to kconfig
>
> diff --git a/arch/arm/mach-rmobile/Kconfig.64 b/arch/arm/mach-rmobile/Kconfig.64
> index a6dcce180b..c90ea06692 100644
> --- a/arch/arm/mach-rmobile/Kconfig.64
> +++ b/arch/arm/mach-rmobile/Kconfig.64
> @@ -76,18 +76,24 @@ config TARGET_BEACON_RZG2H
>         select R8A774E1
>         select RZ_G2
>         select PINCTRL_PFC_R8A774E1
> +       select CLK_CCF
> +       select CLK_VERSACLOCK
>
>  config TARGET_BEACON_RZG2M
>         bool "Beacon EmbeddedWorks RZ/G2M Dev Kit"
>         select R8A774A1
>         select RZ_G2
>         select PINCTRL_PFC_R8A774A1
> +       select CLK_CCF
> +       select CLK_VERSACLOCK
>
>  config TARGET_BEACON_RZG2N
>         bool "Beacon EmbeddedWorks RZ/G2N Dev Kit"
>         select R8A774B1
>         select RZ_G2
>         select PINCTRL_PFC_R8A774B1
> +       select CLK_CCF
> +       select CLK_VERSACLOCK
>
>  config TARGET_CONDOR
>         bool "Condor board"
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-30 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-24 18:40 [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford
2021-08-24 18:40 ` [PATCH V2 2/2] ARM: dts: rmobile: beacon-renesom: Enable Ethernet Adam Ford
2021-08-30 13:20 ` [PATCH V2 1/2] ARM: dts: rmobile: beacon-renesom: Enable USB and ethernet ref clocks Adam Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox