From: Ioana Ciornei <ioana.ciornei@nxp.com>
To: shawnguo@kernel.org
Cc: leoyang.li@nxp.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, rmk+kernel@armlinux.org.uk,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Ioana Ciornei <ioana.ciornei@nxp.com>
Subject: [PATCH 3/3] arm64: dts: ls208xa: specify clock frequencies for the MDIO controllers
Date: Tue, 25 Oct 2022 17:41:17 +0300 [thread overview]
Message-ID: <20221025144117.1010488-4-ioana.ciornei@nxp.com> (raw)
In-Reply-To: <20221025144117.1010488-1-ioana.ciornei@nxp.com>
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
next prev parent reply other threads:[~2022-10-25 14:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-10-29 12:31 ` [PATCH 0/3] arch: dts: specify the MDC frequency on Layerscape DPAA2 devices Shawn Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221025144117.1010488-4-ioana.ciornei@nxp.com \
--to=ioana.ciornei@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@armlinux.org.uk \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).