mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
rtc: rzn1: Add support for Renesas RZ/T2H and RZ/N2H SoCs
Add support for the RTC block found on the Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs. These SoCs integrate a closely related variant of the RZ/N1 RTC IP, but do not implement the RTCA0SUBU register. Use variant-specific match data to disable SUBU support for these SoCs. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://patch.msgid.link/20260821211032.13554-18-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
8af6331c6e
commit
b418fa370e
@@ -523,11 +523,16 @@ static int rzn1_rtc_probe(struct platform_device *pdev)
|
||||
return devm_rtc_register_device(rtc->rtcdev);
|
||||
}
|
||||
|
||||
static const struct rzn1_rtc_data rzn1_rtc_rzt2h_data = {
|
||||
.has_subu = false,
|
||||
};
|
||||
|
||||
static const struct rzn1_rtc_data rzn1_rtc_rzn1_data = {
|
||||
.has_subu = true,
|
||||
};
|
||||
|
||||
static const struct of_device_id rzn1_rtc_of_match[] = {
|
||||
{ .compatible = "renesas,r9a09g077-rtc", .data = &rzn1_rtc_rzt2h_data },
|
||||
{ .compatible = "renesas,rzn1-rtc", .data = &rzn1_rtc_rzn1_data },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user