clk: sunxi-ng: h6-r: Add RTC gate clock
authorAndre Przywara <andre.przywara@arm.com>
Thu, 28 Apr 2022 23:09:28 +0000 (00:09 +0100)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Fri, 6 May 2022 16:02:40 +0000 (18:02 +0200)
commit38d321b61bda32624bde46f662faac039905e3db
tree3af9836808de6dc807521170bb2a5959a31b8845
parent3123109284176b1532874591f7c81f3837bbdc17
clk: sunxi-ng: h6-r: Add RTC gate clock

The H6 and H616 feature an (undocumented) bus clock gate for accessing
the RTC registers. This seems to be enabled at reset (or by the BootROM),
so we got away without it so far, but exists regardless.
Since the new RTC clock binding for the H616 requires this "bus" clock
to be specified in the DT, add this to R_CCU clock driver and expose it
on the DT side with a new number.
We do this for both the H6 and H616, but mark it as IGNORE_UNUSED, as we
cannot reference it in any H6 DTs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220428230933.15262-2-andre.przywara@arm.com
drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c
drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
include/dt-bindings/clock/sun50i-h6-r-ccu.h