From nobody Sun Dec 14 19:58:51 2025 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 414BF269AE3; Fri, 18 Apr 2025 06:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744957881; cv=none; b=Van2rLL1mHuARJKSjU5OPSpcQb5jtwJyKuSXNYl9/mUoM7hd50sSBGyzXmX2AHQxfqhwrV4BoRqAbGLYkfwdwSR5WqLGXRqfNOfV2ceFZuMWie01ViPwC+YTfQgSr9NsuEYuSG+EpFYlRrrsOZHaW2CB4rV1eBu765+49G+yBo8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744957881; c=relaxed/simple; bh=UXYPaFmPXaj2b098YcPU6DTwb8nCWlKWEAybM2MAnRM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZLfdf8mRjLWip4cP2IskyBWv0w6gILaxUl2+25xsuws5zyCTwZh7qHlNa4jvgXYRly1FNVj08gmoTSWO9kwui5KNapa7HiGRKGSYuvd6U9ZoGAKR2aYSlwMGbqUMcxYbIOiJNxrSV5/0egjOFEj5CFFMtnO9bL9ZUT3rvP2xeOw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=R0WU6Bpd; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b="R0WU6Bpd" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lfctJJbkEm6DO1IKYG0xNdxuUwUS/0B22DblND1pchw=; b=R0WU6BpdkEQ3DtzDOlOOjCrBr7 AQIndtJRRgwGT9czb60DqqlEY5b0wor1QOeBhQixLnl7tGl47ti1Lh/W8ChogpTZ8RPIRk9LNCU/6 MHVBX6FVVZxacEMGZ7Wyk/y49jgSuOyXIwAyregIL2ZOWfbnGHhy4MuQWbWRjSrl6P5Ca+bbNXimo prOf+hjMiztrxIvw9ciJBxoiCwn+l5LIhHiInyj8s20xbGdwBHwLK0D3ffd9ljHCh6wpBPjKETFrP Wgu5Xx0fKyPmswHaqq1Zs4/TgGutJ3pOZjP0rMNBt4ex1Js75/KGn/1PWZLGCb5uMrkQC3n0vj59+ hpeNN3tQ==; Received: from [89.212.21.243] (port=56446 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u5fFs-00AbM0-30; Fri, 18 Apr 2025 08:31:16 +0200 From: Primoz Fiser To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH v3 10/15] arm64: dts: freescale: imx93-phyboard-segin: Add RTC support Date: Fri, 18 Apr 2025 08:30:59 +0200 Message-Id: <20250418063104.2202085-11-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250418063104.2202085-1-primoz.fiser@norik.com> References: <20250418063104.2202085-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" Add support for RTC connected via I2C on phyBOARD-Segin-i.MX93. Set default RTC by configuring the aliases. Signed-off-by: Primoz Fiser --- Changes in v3: - no changes .../dts/freescale/imx93-phyboard-segin.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts b/arch/= arm64/boot/dts/freescale/imx93-phyboard-segin.dts index 525f52789f8b..38b89398e646 100644 --- a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts +++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts @@ -17,6 +17,11 @@ /{ compatible =3D "phytec,imx93-phyboard-segin", "phytec,imx93-phycore-som", "fsl,imx93"; =20 + aliases { + rtc0 =3D &i2c_rtc; + rtc1 =3D &bbnsm_rtc; + }; + chosen { stdout-path =3D &lpuart1; }; @@ -33,6 +38,24 @@ reg_usdhc2_vmmc: regulator-usdhc2 { }; }; =20 +/* I2C2 */ +&lpi2c2 { + clock-frequency =3D <400000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_lpi2c2>; + status =3D "okay"; + + /* RTC */ + i2c_rtc: rtc@68 { + compatible =3D "microcrystal,rv4162"; + reg =3D <0x68>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_rtc>; + interrupt-parent =3D <&gpio4>; + interrupts =3D <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + /* Console */ &lpuart1 { pinctrl-names =3D "default"; @@ -56,6 +79,13 @@ &usdhc2 { }; =20 &iomuxc { + pinctrl_lpi2c2: lpi2c2grp { + fsl,pins =3D < + MX93_PAD_I2C2_SCL__LPI2C2_SCL 0x40000b9e + MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e + >; + }; + pinctrl_uart1: uart1grp { fsl,pins =3D < MX93_PAD_UART1_RXD__LPUART1_RX 0x31e @@ -69,6 +99,12 @@ MX93_PAD_SD2_RESET_B__GPIO3_IO07 0x31e >; }; =20 + pinctrl_rtc: rtcgrp { + fsl,pins =3D < + MX93_PAD_ENET2_RD2__GPIO4_IO26 0x31e + >; + }; + pinctrl_usdhc2_cd: usdhc2cdgrp { fsl,pins =3D < MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e --=20 2.34.1