Add rtc PCF2131 support
Subsystems (2)
v3 cover Add rtc PCF2131 support
The patchset supports RTC PCF2131 on board dts. For the details, please check the patch commit log.
Joy Zou (1):
arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
.../boot/dts/freescale/imx93-11x11-evk.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
Signature · 1 line
2.37.1
PATCH v3 1/1 arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
Support rtc PCF2131 on imx93-11x11-evk.
---
Changes in v3:
1.adjust the indentation.
Changes in v2:
1. remove unnecessary status property.
--- .../boot/dts/freescale/imx93-11x11-evk.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +24 -0
@@ -281,6 +281,23 @@ ldo5: LDO5 { }; }; +&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3>; + status = "okay"; + + pcf2131: rtc@53 { + compatible = "nxp,pcf2131"; + reg = <0x53>; + interrupt-parent = <&pcal6524>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + }; +}; + &iomuxc { pinctrl_eqos: eqosgrp { fsl,pins = <
@@ -343,6 +360,13 @@ MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e >; }; + pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = < + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e + >; + }; + pinctrl_pcal6524: pcal6524grp { fsl,pins = < MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e
Signature · 1 line
2.37.1
Re: [PATCH v3 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
Quoted 18 lines · Joy Zou
Support rtc PCF2131 on imx93-11x11-evk.
Signed-off-by Joy Zou <[email protected]>---
Changes in v3:
1.adjust the indentation.Changes in v2:
1. remove unnecessary status property.--- .../boot/dts/freescale/imx93-11x11-evk.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +0
-0
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts ldo5: LDO5 { · line 290
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +7
-0@@ -281,6 +281,23 @@ ldo5: LDO5 { }; }; +&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3>;
Are both "default" and "sleep" pinctrl's required? It doesn't make any sense to provde a sleep state which uses the same pinctrl state.
Regards,
Marco
Quoted 32 lines
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +17
-0+ status = "okay"; + + pcf2131: rtc@53 { + compatible = "nxp,pcf2131"; + reg = <0x53>; + interrupt-parent = <&pcal6524>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + }; +}; + &iomuxc { pinctrl_eqos: eqosgrp { fsl,pins = <@@ -343,6 +360,13 @@ MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e >; }; + pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = < + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e + >; + }; + pinctrl_pcal6524: pcal6524grp { fsl,pins = < MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31eSignature · 1 line
2.37.1
RE: [EXT] Re: [PATCH v3 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
Quoted 37 lines
-----Original Message-----
From: Marco Felsch <[email protected]>
Sent: 2024年4月10日 15:40
To: Joy Zou <[email protected]>
Cc: Jacky Bai <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; dl-linux-imx <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [EXT] Re: [PATCH v3 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 supportQuoted 11 lines · Joy Zou
Support rtc PCF2131 on imx93-11x11-evk.
Signed-off-by Joy Zou <[email protected]>---
Changes in v3:
1.adjust the indentation.Changes in v2:
1. remove unnecessary status property.--- .../boot/dts/freescale/imx93-11x11-evk.dts | 24+++++++++++++++++++
Quoted 11 lines
1 file changed, 24 insertions(+)arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +0
-0@@ -281,6 +281,23 @@ ldo5: LDO5 { }; };
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts ldo5: LDO5 { · line 290
Quoted 7 lines
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +7
-0+&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3>;Are both "default" and "sleep" pinctrl's required? It doesn't make any sense to provde a sleep state which uses the same pinctrl state.
Thanks for your comments!
Currently, We only use default. Yeah, It's confused that a sleep state which uses the same pinctrl state. So will remove the sleep.
BR
Joy Zou
Quoted 4 lines
Regards,
Marco