[PATCH 6/7] rtc: sun6i: Add support for A733 RTC
Junhui Liu
junhui.liu at pigmoral.tech
Wed Jan 21 02:59:12 PST 2026
The RTC in the Allwinner A733 SoC is compatible with the H616 in terms
of its time storage and alarm functionality. However, its internal CCU
is different, with additional DCXO handling logic.
Add new match data to register a new auxiliary device for its CCU part.
Signed-off-by: Junhui Liu <junhui.liu at pigmoral.tech>
---
drivers/rtc/rtc-sun6i.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
index b4489e0a09ce..a58d9c6b917c 100644
--- a/drivers/rtc/rtc-sun6i.c
+++ b/drivers/rtc/rtc-sun6i.c
@@ -865,6 +865,11 @@ static const struct sun6i_rtc_match_data sun6i_rtc_match_data = {
.flags = RTC_LINEAR_DAY,
};
+static const struct sun6i_rtc_match_data sun60i_rtc_match_data = {
+ .adev_name = "sun60i",
+ .flags = RTC_LINEAR_DAY,
+};
+
/*
* As far as RTC functionality goes, all models are the same. The
* datasheets claim that different models have different number of
@@ -883,6 +888,8 @@ static const struct of_device_id sun6i_rtc_dt_ids[] = {
.data = &sun6i_rtc_match_data },
{ .compatible = "allwinner,sun50i-r329-rtc",
.data = &sun6i_rtc_match_data },
+ { .compatible = "allwinner,sun60i-a733-rtc",
+ .data = &sun60i_rtc_match_data },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids);
--
2.52.0
More information about the linux-arm-kernel
mailing list