[PATCH v2 2/6] clk: sunxi-ng: sun6i-rtc: clean up DT usage

Chen-Yu Tsai wens at kernel.org
Mon Jun 29 08:37:21 PDT 2026


On Mon, Jun 29, 2026 at 8:42 PM Jerome Brunet <jbrunet at baylibre.com> wrote:
>
> With sun6i-rtc compatible devices, the "ext-osc32k" clock input
> is optional for the devices that support this input (r329 and onward).
>
> Probably preparing for older SoC support, the driver does something funny
> when parsing DT. It check if "ext-osc32k" is present in the clock-names and
> if it is not, it uses the first clock as "ext-osc32k". This clock will
> actually be the rtc bus clock so what the driver does is wrong.
>
> At the moment, the driver does not support the older SoCs that would have
> an external 32k clock provided on index #0 so just remove this quirk.
>
> Signed-off-by: Jerome Brunet <jbrunet at baylibre.com>

Reviewed-by: Chen-Yu Tsai <wens at kernel.org>



More information about the linux-arm-kernel mailing list