soc: arm: nxp_s32: s32k1: add support for RTC

Add support for the Real Time Clock (RTC) counter.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2024-01-28 16:51:12 +07:00 committed by Carles Cufí
commit 1b302f51ea
2 changed files with 10 additions and 0 deletions

View file

@ -317,5 +317,14 @@
prescaler = <1>;
status = "disabled";
};
rtc: rtc@4003d000 {
compatible = "nxp,kinetis-rtc";
reg = <0x4003d000 0x1000>;
interrupts = <46 0>, <47 0>;
interrupt-names = "alarm", "seconds";
clock-frequency = <32768>;
prescaler = <32768>;
};
};
};

View file

@ -19,5 +19,6 @@ config SOC_SERIES_S32K1XX
select HAS_MCUX_FTM
select HAS_MCUX_FLEXCAN
select HAS_MCUX_WDOG32
select HAS_MCUX_RTC
help
Enable support for NXP S32K1XX MCU series.