[PATCH 9/9] arm64: dts: imx8mn-beacon: Enable RTC interrupt and wakeup-source
Adam Ford
aford173 at gmail.com
Wed Apr 9 17:59:03 PDT 2025
The external RTC has the ability to be used as an alarm when
interrupts are enabled and configured as a wakeup-source.
Signed-off-by: Adam Ford <aford173 at gmail.com>
---
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi
index b3692b367a42..987c14d3af9d 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi
@@ -245,7 +245,12 @@ eeprom at 50 {
rtc: rtc at 51 {
compatible = "nxp,pcf85263";
reg = <0x51>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_rtc>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
quartz-load-femtofarads = <12500>;
+ wakeup-source;
};
};
@@ -365,6 +370,12 @@ MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141
>;
};
+ pinctrl_rtc: rtcgrp {
+ fsl,pins = <
+ MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x146
+ >;
+ };
+
pinctrl_uart1: uart1grp {
fsl,pins = <
MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
--
2.48.1
More information about the linux-arm-kernel
mailing list