OSDN Git Service

arm64: dts: renesas: eagle: Add SCIF_CLK support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 9 Jan 2023 13:35:48 +0000 (14:35 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 26 Jan 2023 15:03:04 +0000 (16:03 +0100)
Describe the external SCIF clock crystal, which can be used as a clock
source for the (High Speed) Serial Communication Interfaces with FIFO.

This improves serial console accuracy from 115200-257 bps to
115200+0 bps.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/7dddaa362945118deab534ccfddfc0870abe8526.1673271243.git.geert+renesas@glider.be
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts

index 004a5ea..405404c 100644 (file)
 };
 
 &pfc {
+       pinctrl-0 = <&scif_clk_pins>;
+       pinctrl-names = "default";
+
        avb_pins: avb0 {
                groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
                function = "avb0";
                groups = "scif0_data";
                function = "scif0";
        };
+
+       scif_clk_pins: scif_clk {
+               groups = "scif_clk_b";
+               function = "scif_clk";
+       };
 };
 
 &rpc {
 
        status = "okay";
 };
+
+&scif_clk {
+       clock-frequency = <14745600>;
+};