summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2026-10-12 11:08:11 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-10-19 22:00:44 +0200
commit3784706c87c2d00a1b56f01092dc4e4695c29d1b (patch)
tree8dadcef09f3aba44eb57fce79470eae2311ca5bf /drivers
parent51f30cb855f0f51b359f42cc9d658d4b450124cc (diff)
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 <pmazzini@gmail.com> Link: https://patch.msgid.link/20261012100816.331033-7-pmazzini@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-sun6i.c5
1 files changed, 5 insertions, 0 deletions
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" },