]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: dts: renesas: r8a73a4: Fix external clocks and clock rate
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 15 Jan 2024 11:03:03 +0000 (12:03 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:21 +0000 (18:19 -0400)
[ Upstream commit 090c4094574705b0afc7d37825cdc5d06f0e7e02 ]

External clocks should be defined as zero-Hz clocks in the SoC .dtsi,
and overridden in the board .dts when present.

Correct the clock rate of extal1 from 25 to 26 MHz, to match the crystal
oscillator present on the APE6-EVM board.

Fixes: a76809a329d6ebae ("ARM: shmobile: r8a73a4: Common clock framework DT description")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/1692bc8cd465d62168cbf110522ad62a7af3f606.1705315614.git.geert+renesas@glider.be
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/renesas/r8a73a4-ape6evm.dts
arch/arm/boot/dts/renesas/r8a73a4.dtsi

index e81a7213d3047753978e476cae8c1884c11360b1..4282bafbb504319a1d0aa58948aa58caea1b523a 100644 (file)
        status = "okay";
 };
 
+&extal1_clk {
+       clock-frequency = <26000000>;
+};
+
+&extal2_clk {
+       clock-frequency = <48000000>;
+};
+
+&extalr_clk {
+       clock-frequency = <32768>;
+};
+
 &pfc {
        scifa0_pins: scifa0 {
                groups = "scifa0_data";
index c39066967053f06b37e879ce4c147172ec249d7f..d1f4cbd099efb470fe3be42bd9e54c6acbbd5cf5 100644 (file)
                extalr_clk: extalr {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
-                       clock-frequency = <32768>;
+                       /* This value must be overridden by the board. */
+                       clock-frequency = <0>;
                };
                extal1_clk: extal1 {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
-                       clock-frequency = <25000000>;
+                       /* This value must be overridden by the board. */
+                       clock-frequency = <0>;
                };
                extal2_clk: extal2 {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
-                       clock-frequency = <48000000>;
+                       /* This value must be overridden by the board. */
+                       clock-frequency = <0>;
                };
                fsiack_clk: fsiack {
                        compatible = "fixed-clock";