From 3784706c87c2d00a1b56f01092dc4e4695c29d1b Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Mon, 12 Oct 2026 11:08:11 +0100 Subject: [PATCH] rtc: sun6i: add Allwinner B288 compatible The 32 kHz clocks are the same as the A23's. Only one alarm interrupt is wired, which is all the driver uses. Signed-off-by: Pablo Mazzini Link: https://patch.msgid.link/20261012100816.331033-7-pmazzini@gmail.com Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-sun6i.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index dd293e8324b8..c6916edbf400 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -358,6 +358,10 @@ static void __init sun8i_a23_rtc_clk_init(struct device_node *node) CLK_OF_DECLARE_DRIVER(sun8i_a23_rtc_clk, "allwinner,sun8i-a23-rtc", sun8i_a23_rtc_clk_init); +/* The B288 RTC clocks are the same as the A23's */ +CLK_OF_DECLARE_DRIVER(sun8i_b288_rtc_clk, "allwinner,sun8i-b288-rtc", + sun8i_a23_rtc_clk_init); + static const struct sun6i_rtc_clk_data sun8i_h3_rtc_data = { .rc_osc_rate = 16000000, .fixed_prescaler = 32, @@ -867,6 +871,7 @@ static int sun6i_rtc_probe(struct platform_device *pdev) static const struct of_device_id sun6i_rtc_dt_ids[] = { { .compatible = "allwinner,sun6i-a31-rtc" }, { .compatible = "allwinner,sun8i-a23-rtc" }, + { .compatible = "allwinner,sun8i-b288-rtc" }, { .compatible = "allwinner,sun8i-h3-rtc" }, { .compatible = "allwinner,sun8i-r40-rtc" }, { .compatible = "allwinner,sun8i-v3-rtc" },