arm64: dts: rockchip: assign rate to clk_rtc_32k on rk356x
authorJonas Karlman <jonas@kwiboo.se>
Tue, 10 Jan 2023 22:55:50 +0000 (22:55 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 11 Jan 2023 10:19:21 +0000 (11:19 +0100)
clk_rtc_32k and its child clock clk_hdmi_cec detauls to a rate of 24 MHz
and not to 32 kHz on RK356x.

Fix this by assigning clk_rtc_32k a rate of 32768, also assign the parent
to clk_rtc32k_frac.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://lore.kernel.org/r/20230110225547.1563119-2-jonas@kwiboo.se
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk356x.dtsi

index 5706c3e..e319699 100644 (file)
                clock-names = "xin24m";
                #clock-cells = <1>;
                #reset-cells = <1>;
-               assigned-clocks = <&cru PLL_GPLL>, <&pmucru PLL_PPLL>;
-               assigned-clock-rates = <1200000000>, <200000000>;
+               assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>, <&pmucru PLL_PPLL>;
+               assigned-clock-rates = <32768>, <1200000000>, <200000000>;
+               assigned-clock-parents = <&pmucru CLK_RTC32K_FRAC>;
                rockchip,grf = <&grf>;
        };