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

From: Chen-Yu Tsai

Date: Mon Jun 29 2026 - 11:50:07 EST


On Mon, Jun 29, 2026 at 8:42 PM Jerome Brunet <jbrunet@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>

Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxxxx>