* [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices
@ 2022-10-25 14:41 Ioana Ciornei
2022-10-25 14:41 ` [PATCH 1/3] arm64: dts: lx2160a: specify clock frequencies for the MDIO controllers Ioana Ciornei
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ioana Ciornei @ 2022-10-25 14:41 UTC (permalink / raw)
To: shawnguo
Cc: leoyang.li, robh+dt, krzysztof.kozlowski+dt, rmk+kernel,
devicetree, linux-kernel, Ioana Ciornei
Up until now, the external MDIO controller frequency values relied
either on the default ones out of reset or on those setup by u-boot.
Let's just properly specify the MDC frequency in the DTS so that even
without u-boot's intervention Linux can drive the MDIO bus.
This patch set adds the needed properties on all DPAA2 based SoCs.
Ioana Ciornei (3):
arm64: dts: lx2160a: specify clock frequencies for the MDIO
controllers
arm64: dts: ls1088a: specify clock frequencies for the MDIO
controllers
arm64: dts: ls208xa: specify clock frequencies for the MDIO
controllers
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 6 ++++++
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 6 ++++++
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 6 ++++++
3 files changed, 18 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] arm64: dts: lx2160a: specify clock frequencies for the MDIO controllers
2022-10-25 14:41 [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Ioana Ciornei
@ 2022-10-25 14:41 ` Ioana Ciornei
2022-10-25 14:41 ` [PATCH 2/3] arm64: dts: ls1088a: " Ioana Ciornei
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ioana Ciornei @ 2022-10-25 14:41 UTC (permalink / raw)
To: shawnguo
Cc: leoyang.li, robh+dt, krzysztof.kozlowski+dt, rmk+kernel,
devicetree, linux-kernel, Ioana Ciornei
Up until now, the external MDIO controller frequency values relied
either on the default ones out of reset or on those setup by u-boot.
Let's just properly specify the MDC frequency in the DTS so that even
without u-boot's intervention Linux can drive the MDIO bus.
Fixes: 6e1b8fae892d ("arm64: dts: lx2160a: add emdio1 node")
Fixes: 5705b9dcda57 ("arm64: dts: lx2160a: add emdio2 node")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
index 6680fb2a6dc9..8c76d86cb756 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -1385,6 +1385,9 @@ emdio1: mdio@8b96000 {
#address-cells = <1>;
#size-cells = <0>;
little-endian;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(2)>;
status = "disabled";
};
@@ -1395,6 +1398,9 @@ emdio2: mdio@8b97000 {
little-endian;
#address-cells = <1>;
#size-cells = <0>;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(2)>;
status = "disabled";
};
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: ls1088a: specify clock frequencies for the MDIO controllers
2022-10-25 14:41 [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Ioana Ciornei
2022-10-25 14:41 ` [PATCH 1/3] arm64: dts: lx2160a: specify clock frequencies for the MDIO controllers Ioana Ciornei
@ 2022-10-25 14:41 ` Ioana Ciornei
2022-10-25 14:41 ` [PATCH 3/3] arm64: dts: ls208xa: " Ioana Ciornei
2022-10-29 12:31 ` [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Ioana Ciornei @ 2022-10-25 14:41 UTC (permalink / raw)
To: shawnguo
Cc: leoyang.li, robh+dt, krzysztof.kozlowski+dt, rmk+kernel,
devicetree, linux-kernel, Ioana Ciornei
Up until now, the external MDIO controller frequency values relied
either on the default ones out of reset or on those setup by u-boot.
Let's just properly specify the MDC frequency in the DTS so that even
without u-boot's intervention Linux can drive the MDIO bus.
Fixes: bbe75af7b092 ("arm64: dts: ls1088a: add external MDIO device nodes")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
index 421d879013d7..260d045dbd9a 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
@@ -779,6 +779,9 @@ emdio1: mdio@8b96000 {
little-endian;
#address-cells = <1>;
#size-cells = <0>;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(1)>;
status = "disabled";
};
@@ -788,6 +791,9 @@ emdio2: mdio@8b97000 {
little-endian;
#address-cells = <1>;
#size-cells = <0>;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(1)>;
status = "disabled";
};
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: ls208xa: specify clock frequencies for the MDIO controllers
2022-10-25 14:41 [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Ioana Ciornei
2022-10-25 14:41 ` [PATCH 1/3] arm64: dts: lx2160a: specify clock frequencies for the MDIO controllers Ioana Ciornei
2022-10-25 14:41 ` [PATCH 2/3] arm64: dts: ls1088a: " Ioana Ciornei
@ 2022-10-25 14:41 ` Ioana Ciornei
2022-10-29 12:31 ` [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Ioana Ciornei @ 2022-10-25 14:41 UTC (permalink / raw)
To: shawnguo
Cc: leoyang.li, robh+dt, krzysztof.kozlowski+dt, rmk+kernel,
devicetree, linux-kernel, Ioana Ciornei
Up until now, the external MDIO controller frequency values relied
either on the default ones out of reset or on those setup by u-boot.
Let's just properly specify the MDC frequency in the DTS so that even
without u-boot's intervention Linux can drive the MDIO bus.
Fixes: 0420dde30a90 ("arm64: dts: ls208xa: add the external MDIO nodes")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
index f1b9cc8714dc..348d9e3a9125 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
@@ -532,6 +532,9 @@ emdio1: mdio@8b96000 {
little-endian;
#address-cells = <1>;
#size-cells = <0>;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(2)>;
status = "disabled";
};
@@ -541,6 +544,9 @@ emdio2: mdio@8b97000 {
little-endian;
#address-cells = <1>;
#size-cells = <0>;
+ clock-frequency = <2500000>;
+ clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+ QORIQ_CLK_PLL_DIV(2)>;
status = "disabled";
};
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices
2022-10-25 14:41 [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Ioana Ciornei
` (2 preceding siblings ...)
2022-10-25 14:41 ` [PATCH 3/3] arm64: dts: ls208xa: " Ioana Ciornei
@ 2022-10-29 12:31 ` Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2022-10-29 12:31 UTC (permalink / raw)
To: Ioana Ciornei
Cc: leoyang.li, robh+dt, krzysztof.kozlowski+dt, rmk+kernel,
devicetree, linux-kernel
On Tue, Oct 25, 2022 at 05:41:14PM +0300, Ioana Ciornei wrote:
> Up until now, the external MDIO controller frequency values relied
> either on the default ones out of reset or on those setup by u-boot.
> Let's just properly specify the MDC frequency in the DTS so that even
> without u-boot's intervention Linux can drive the MDIO bus.
>
> This patch set adds the needed properties on all DPAA2 based SoCs.
>
> Ioana Ciornei (3):
> arm64: dts: lx2160a: specify clock frequencies for the MDIO
> controllers
> arm64: dts: ls1088a: specify clock frequencies for the MDIO
> controllers
> arm64: dts: ls208xa: specify clock frequencies for the MDIO
> controllers
Applied all, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-29 12:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-25 14:41 [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Ioana Ciornei
2022-10-25 14:41 ` [PATCH 1/3] arm64: dts: lx2160a: specify clock frequencies for the MDIO controllers Ioana Ciornei
2022-10-25 14:41 ` [PATCH 2/3] arm64: dts: ls1088a: " Ioana Ciornei
2022-10-25 14:41 ` [PATCH 3/3] arm64: dts: ls208xa: " Ioana Ciornei
2022-10-29 12:31 ` [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Shawn Guo
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).