public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Cc: aford@beaconembedded.com, Frank.li@nxp.com,
	Adam Ford <aford173@gmail.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH V2 09/10] arm64: dts: imx8mn-beacon: Enable RTC interrupt and wakeup-source
Date: Tue, 15 Apr 2025 20:01:35 -0500	[thread overview]
Message-ID: <20250416010141.1785841-9-aford173@gmail.com> (raw)
In-Reply-To: <20250416010141.1785841-1-aford173@gmail.com>

Enable the interrupts and wakeup-source to allow the external RTC to be
used as an alarm.

Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2:  Update commit message. No active changes

 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@50 {
 	rtc: rtc@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



  parent reply	other threads:[~2025-04-16  1:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  1:01 [PATCH V2 01/10] arm64: dts: imx8mm-beacon: Fix RTC capacitive load Adam Ford
2025-04-16  1:01 ` [PATCH V2 02/10] arm64: dts: imx8mn-beacon: " Adam Ford
2025-04-16 14:40   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 03/10] arm64: dts: imx8mp-beacon: " Adam Ford
2025-04-16 14:41   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 04/10] arm64: dts: imx8mm-beacon: Set SAI5 MCLK direction to output for HDMI audio Adam Ford
2025-04-16 14:41   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 05/10] arm64: dts: imx8mn-beacon: " Adam Ford
2025-04-16 14:42   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 06/10] arm64: dts: imx8mm-beacon: Configure Ethernet PHY reset and GPIO IRQ Adam Ford
2025-04-16 14:42   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 07/10] arm64: dts: imx8mn-beacon: " Adam Ford
2025-04-16 14:43   ` Frank Li
2025-04-16  1:01 ` [PATCH V2 08/10] arm64: dts: imx8mm-beacon: Enable RTC interrupt and wakeup-source Adam Ford
2025-04-16 14:44   ` Frank Li
2025-04-16  1:01 ` Adam Ford [this message]
2025-04-16 14:44   ` [PATCH V2 09/10] arm64: dts: imx8mn-beacon: " Frank Li
2025-04-16  1:01 ` [PATCH V2 10/10] arm64: dts: imx8mp-beacon: " Adam Ford
2025-04-25  2:07 ` [PATCH V2 01/10] arm64: dts: imx8mm-beacon: Fix RTC capacitive load Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250416010141.1785841-9-aford173@gmail.com \
    --to=aford173@gmail.com \
    --cc=Frank.li@nxp.com \
    --cc=aford@beaconembedded.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox