From: Primoz Fiser <primoz.fiser@norik.com>
To: Frank Li <Frank.li@nxp.com>
Cc: 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-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, upstream@lists.phytec.de
Subject: Re: [PATCH v2 10/15] arm64: dts: freescale: imx93-phyboard-segin: Add RTC support
Date: Wed, 16 Apr 2025 14:42:01 +0200 [thread overview]
Message-ID: <6839cdfa-3086-459f-b318-4f3f2bbf0a4e@norik.com> (raw)
In-Reply-To: <Z/6pkVPh5Rn9oOPY@lizhi-Precision-Tower-5810>
Hi Frank,
On 15. 04. 25 20:46, Frank Li wrote:
> On Tue, Apr 15, 2025 at 06:33:06AM +0200, Primoz Fiser wrote:
>> Add support for RTC connected via I2C on phyBOARD-Segin-i.MX93. Set
>> default RTC by configuring the aliases.
>>
>> Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
>> ---
>> Changes in v2:
>> - reword commit message
>>
>> .../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 = "phytec,imx93-phyboard-segin", "phytec,imx93-phycore-som",
>> "fsl,imx93";
>>
>> + aliases {
>> + rtc0 = &i2c_rtc;
>> + rtc1 = &bbnsm_rtc;
>> + };
>> +
>> chosen {
>> stdout-path = &lpuart1;
>> };
>> @@ -33,6 +38,24 @@ reg_usdhc2_vmmc: regulator-usdhc2 {
>> };
>> };
>>
>> +/* I2C2 */
>
> nit: needn't it
>
>> +&lpi2c2 {
>> + clock-frequency = <400000>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_lpi2c2>;
>> + status = "okay";
>> +
>> + /* RTC */
>
> the same here, not name is rtc.
>
I would like to keep the above comments.
This is just helpful for customers using this board as reference when
designing their own carrier boards.
Thank you for understanding,
BR,
Primoz
> Frank
>
>> + i2c_rtc: rtc@68 {
>> + compatible = "microcrystal,rv4162";
>> + reg = <0x68>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_rtc>;
>> + interrupt-parent = <&gpio4>;
>> + interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
>> + };
>> +};
>> +
>> /* Console */
>> &lpuart1 {
>> pinctrl-names = "default";
>> @@ -56,6 +79,13 @@ &usdhc2 {
>> };
>>
>> &iomuxc {
>> + pinctrl_lpi2c2: lpi2c2grp {
>> + fsl,pins = <
>> + MX93_PAD_I2C2_SCL__LPI2C2_SCL 0x40000b9e
>> + MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e
>> + >;
>> + };
>> +
>> pinctrl_uart1: uart1grp {
>> fsl,pins = <
>> MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
>> @@ -69,6 +99,12 @@ MX93_PAD_SD2_RESET_B__GPIO3_IO07 0x31e
>> >;
>> };
>>
>> + pinctrl_rtc: rtcgrp {
>> + fsl,pins = <
>> + MX93_PAD_ENET2_RD2__GPIO4_IO26 0x31e
>> + >;
>> + };
>> +
>> pinctrl_usdhc2_cd: usdhc2cdgrp {
>> fsl,pins = <
>> MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e
>> --
>> 2.34.1
>>
--
Primoz Fiser
phone: +386-41-390-545
email: primoz.fiser@norik.com
--
Norik systems d.o.o.
Your embedded software partner
Slovenia, EU
phone: +386-41-540-545
email: info@norik.com
next prev parent reply other threads:[~2025-04-16 12:42 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-15 4:32 [PATCH v2 00/15] Update PHYTEC i.MX93 DTS Primoz Fiser
2025-04-15 4:32 ` [PATCH v2 01/15] arm64: dts: freescale: imx93-phycore-som: Add PMIC support Primoz Fiser
2025-04-15 4:32 ` [PATCH v2 02/15] arm64: dts: freescale: imx93-phycore-som: Add EEPROM support Primoz Fiser
2025-04-15 18:30 ` Frank Li
2025-04-15 4:32 ` [PATCH v2 03/15] arm64: dts: freescale: imx93-phycore-som: Disable LED pull-up Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 04/15] arm64: dts: freescale: imx93-phycore-som: Enhance eMMC pinctrl Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 05/15] arm64: dts: freescale: imx93-phycore-som: Add eMMC no-1-8-v by default Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 06/15] arm64: dts: freescale: imx93-phyboard-segin: Drop eMMC no-1-8-v flag Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 07/15] arm64: dts: freescale: imx93-phyboard-segin: Disable SD-card write-protect Primoz Fiser
2025-04-15 18:31 ` Frank Li
2025-04-15 4:33 ` [PATCH v2 08/15] arm64: dts: freescale: imx93-phyboard-segin: Fix SD-card pinctrl Primoz Fiser
2025-04-15 18:38 ` Frank Li
2025-04-15 4:33 ` [PATCH v2 09/15] arm64: dts: freescale: imx93-phyboard-segin: Fix for ERR052021 errata Primoz Fiser
2025-04-15 18:42 ` Frank Li
2025-04-16 12:38 ` Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 10/15] arm64: dts: freescale: imx93-phyboard-segin: Add RTC support Primoz Fiser
2025-04-15 18:46 ` Frank Li
2025-04-16 12:42 ` Primoz Fiser [this message]
2025-04-15 4:33 ` [PATCH v2 11/15] arm64: dts: freescale: imx93-phyboard-segin: Add CAN support Primoz Fiser
2025-04-15 18:44 ` Frank Li
2025-04-15 4:33 ` [PATCH v2 12/15] arm64: dts: freescale: imx93-phyboard-segin: Add USB support Primoz Fiser
2025-04-15 18:47 ` Frank Li
2025-04-15 4:33 ` [PATCH v2 13/15] arm64: dts: freescale: imx93-phyboard-segin: Add I2S audio Primoz Fiser
2025-04-15 6:58 ` Daniel Baluta
2025-04-15 4:33 ` [PATCH v2 14/15] arm64: dts: freescale: imx93-phyboard-segin: Add EQOS Ethernet Primoz Fiser
2025-04-15 4:33 ` [PATCH v2 15/15] arm64: dts: freescale: imx93-phyboard-segin: Order node alphabetically Primoz Fiser
2025-04-15 18:48 ` Frank Li
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=6839cdfa-3086-459f-b318-4f3f2bbf0a4e@norik.com \
--to=primoz.fiser@norik.com \
--cc=Frank.li@nxp.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 \
--cc=upstream@lists.phytec.de \
/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