imx.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-17  3:14 ` [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add " Joy Zou
@ 2024-04-17  3:09   ` Fabio Estevam
  2024-04-17  3:26     ` [EXT] " Joy Zou
  2024-04-17  4:57   ` Marco Felsch
  1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2024-04-17  3:09 UTC (permalink / raw)
  To: Joy Zou
  Cc: m.felsch, frank.li, ping.bai, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, shawnguo, s.hauer, kernel, linux-imx, devicetree, imx,
	linux-arm-kernel, linux-kernel

On Wed, Apr 17, 2024 at 12:07 AM Joy Zou <joy.zou@nxp.com> wrote:
>
> Support rtc PCF2131 on imx93-11x11-evk.

s/rtc/RTC

> +&lpi2c3 {
> +       #address-cells = <1>;
> +       #size-cells = <0>;
> +       clock-frequency = <400000>;
> +       pinctrl-names = "default";
> +       pinctrl-0 = <&pinctrl_lpi2c3>;
> +       pinctrl-1 = <&pinctrl_lpi2c3>;

Why is the pinctrl-1 still here?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4 0/1] Add rtc PCF2131 support
@ 2024-04-17  3:14 Joy Zou
  2024-04-17  3:14 ` [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add " Joy Zou
  0 siblings, 1 reply; 8+ messages in thread
From: Joy Zou @ 2024-04-17  3:14 UTC (permalink / raw)
  To: m.felsch, frank.li, ping.bai, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, shawnguo, s.hauer
  Cc: kernel, festevam, linux-imx, devicetree, imx, linux-arm-kernel,
	linux-kernel

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(+)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-17  3:14 [PATCH v4 0/1] Add rtc PCF2131 support Joy Zou
@ 2024-04-17  3:14 ` Joy Zou
  2024-04-17  3:09   ` Fabio Estevam
  2024-04-17  4:57   ` Marco Felsch
  0 siblings, 2 replies; 8+ messages in thread
From: Joy Zou @ 2024-04-17  3:14 UTC (permalink / raw)
  To: m.felsch, frank.li, ping.bai, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, shawnguo, s.hauer
  Cc: kernel, festevam, linux-imx, devicetree, imx, linux-arm-kernel,
	linux-kernel

Support rtc PCF2131 on imx93-11x11-evk.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
---
Changes in v4:
1. remove the sleep from the pinctrl-names.

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(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
index 07e85a30a25f..bc3c9271d747 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
@@ -281,6 +281,23 @@ ldo5: LDO5 {
 	};
 };
 
+&lpi2c3 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	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
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* RE: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-17  3:09   ` Fabio Estevam
@ 2024-04-17  3:26     ` Joy Zou
  0 siblings, 0 replies; 8+ messages in thread
From: Joy Zou @ 2024-04-17  3:26 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: m.felsch, Frank Li, Jacky Bai, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, shawnguo, s.hauer, kernel, dl-linux-imx, devicetree,
	imx, linux-arm-kernel, linux-kernel



> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: 2024年4月17日 11:10
> To: Joy Zou <joy.zou@nxp.com>
> Cc: m.felsch@pengutronix.de; Frank Li <frank.li@nxp.com>; Jacky Bai
> <ping.bai@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org;
> shawnguo@kernel.org; s.hauer@pengutronix.de; kernel@pengutronix.de;
> dl-linux-imx <linux-imx@nxp.com>; devicetree@vger.kernel.org;
> imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org;
> linux-kernel@vger.kernel.org
> Subject: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc
> PCF2131 support
> 
> 
> On Wed, Apr 17, 2024 at 12:07 AM Joy Zou <joy.zou@nxp.com> wrote:
> >
> > Support rtc PCF2131 on imx93-11x11-evk.
> 
> s/rtc/RTC
Thanks for your comments!
Will change the format in next version.
> 
> > +&lpi2c3 {
> > +       #address-cells = <1>;
> > +       #size-cells = <0>;
> > +       clock-frequency = <400000>;
> > +       pinctrl-names = "default";
> > +       pinctrl-0 = <&pinctrl_lpi2c3>;
> > +       pinctrl-1 = <&pinctrl_lpi2c3>;
> 
> Why is the pinctrl-1 still here?
Yeah, Sorry for forgetting to delete the pinctrl-1, will delete in next version. 

BR
Joy Zou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-17  3:14 ` [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add " Joy Zou
  2024-04-17  3:09   ` Fabio Estevam
@ 2024-04-17  4:57   ` Marco Felsch
  2024-04-24  2:28     ` [EXT] " Joy Zou
  1 sibling, 1 reply; 8+ messages in thread
From: Marco Felsch @ 2024-04-17  4:57 UTC (permalink / raw)
  To: Joy Zou
  Cc: frank.li, ping.bai, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, devicetree, imx,
	linux-arm-kernel, linux-kernel

Hi Joy,

On 24-04-17, Joy Zou wrote:
> Support rtc PCF2131 on imx93-11x11-evk.
> 
> Signed-off-by: Joy Zou <joy.zou@nxp.com>
> ---
> Changes in v4:
> 1. remove the sleep from the pinctrl-names.
> 
> 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(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> index 07e85a30a25f..bc3c9271d747 100644
> --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> @@ -281,6 +281,23 @@ ldo5: LDO5 {
>  	};
>  };
>  
> +&lpi2c3 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;

while reading your patch I also noticed that you had to specify these
cells here. It is very common to specify it within the base dtsi file
imx93.dtsi. Can you please provde an extra patch which adds this to the
base dtsi followed by this patch, which of course do need to specify it
again.

Thanks you,
  Marco

> +	clock-frequency = <400000>;
> +	pinctrl-names = "default";
> +	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
> -- 
> 2.37.1
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-17  4:57   ` Marco Felsch
@ 2024-04-24  2:28     ` Joy Zou
  2024-04-24  8:59       ` Marco Felsch
  0 siblings, 1 reply; 8+ messages in thread
From: Joy Zou @ 2024-04-24  2:28 UTC (permalink / raw)
  To: Marco Felsch
  Cc: Frank Li, Jacky Bai, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	shawnguo, s.hauer, kernel, festevam, dl-linux-imx, devicetree,
	imx, linux-arm-kernel, linux-kernel


> -----Original Message-----
> From: Marco Felsch <m.felsch@pengutronix.de>
> Sent: 2024年4月17日 12:57
> To: Joy Zou <joy.zou@nxp.com>
> Cc: Frank Li <frank.li@nxp.com>; Jacky Bai <ping.bai@nxp.com>;
> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org;
> conor+dt@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de;
> kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; devicetree@vger.kernel.org; imx@lists.linux.dev;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc
> PCF2131 support
> 
> 
> Hi Joy,
> > diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > index 07e85a30a25f..bc3c9271d747 100644
> > --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > @@ -281,6 +281,23 @@ ldo5: LDO5 {
> >       };
> >  };
> >
> > +&lpi2c3 {
> > +     #address-cells = <1>;
> > +     #size-cells = <0>;
> 
> while reading your patch I also noticed that you had to specify these cells
> here. It is very common to specify it within the base dtsi file imx93.dtsi. Can
> you please provde an extra patch which adds this to the base dtsi followed by
> this patch, which of course do need to specify it again.
> 
> Thanks you,
>   Marco
> 
Thanks for your comments!
Have checked the base dtsi file imx93.dtsi. The these cells already existed.
The current cells is same with the lpi2c3 node in imx93.dtsi. So should remove
these cells in order to keep terse?
BR
Joy Zou


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-24  2:28     ` [EXT] " Joy Zou
@ 2024-04-24  8:59       ` Marco Felsch
  2024-04-24  9:04         ` Joy Zou
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Felsch @ 2024-04-24  8:59 UTC (permalink / raw)
  To: Joy Zou
  Cc: Frank Li, Jacky Bai, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	shawnguo, s.hauer, kernel, festevam, dl-linux-imx, devicetree,
	imx, linux-arm-kernel, linux-kernel

On 24-04-24, Joy Zou wrote:
> 
> > -----Original Message-----
> > From: Marco Felsch <m.felsch@pengutronix.de>
> > Sent: 2024年4月17日 12:57
> > To: Joy Zou <joy.zou@nxp.com>
> > Cc: Frank Li <frank.li@nxp.com>; Jacky Bai <ping.bai@nxp.com>;
> > robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org;
> > conor+dt@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de;
> > kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> > <linux-imx@nxp.com>; devicetree@vger.kernel.org; imx@lists.linux.dev;
> > linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> > Subject: [EXT] Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc
> > PCF2131 support
> > 
> > 
> > Hi Joy,
> > > diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > index 07e85a30a25f..bc3c9271d747 100644
> > > --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > @@ -281,6 +281,23 @@ ldo5: LDO5 {
> > >       };
> > >  };
> > >
> > > +&lpi2c3 {
> > > +     #address-cells = <1>;
> > > +     #size-cells = <0>;
> > 
> > while reading your patch I also noticed that you had to specify these cells
> > here. It is very common to specify it within the base dtsi file imx93.dtsi. Can
> > you please provde an extra patch which adds this to the base dtsi followed by
> > this patch, which of course do need to specify it again.
> > 
> > Thanks you,
> >   Marco
> > 
> Thanks for your comments!
> Have checked the base dtsi file imx93.dtsi. The these cells already existed.

You're right, not sure why I didn't saw it in the first place.

> The current cells is same with the lpi2c3 node in imx93.dtsi. So should remove
> these cells in order to keep terse?

Yes please remove it.

Regards,
  Marco

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE:  Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc PCF2131 support
  2024-04-24  8:59       ` Marco Felsch
@ 2024-04-24  9:04         ` Joy Zou
  0 siblings, 0 replies; 8+ messages in thread
From: Joy Zou @ 2024-04-24  9:04 UTC (permalink / raw)
  To: Marco Felsch
  Cc: Frank Li, Jacky Bai, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	shawnguo, s.hauer, kernel, festevam, dl-linux-imx, devicetree,
	imx, linux-arm-kernel, linux-kernel


> -----Original Message-----
> From: Marco Felsch <m.felsch@pengutronix.de>
> Sent: 2024年4月24日 17:00
> To: Joy Zou <joy.zou@nxp.com>
> Cc: Frank Li <frank.li@nxp.com>; Jacky Bai <ping.bai@nxp.com>;
> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org;
> conor+dt@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de;
> kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; devicetree@vger.kernel.org; imx@lists.linux.dev;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: Re: Re: [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add rtc
> PCF2131 support
> 
> On 24-04-24, Joy Zou wrote:
> > > > diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > > b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > > index 07e85a30a25f..bc3c9271d747 100644
> > > > --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > > +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> > > > @@ -281,6 +281,23 @@ ldo5: LDO5 {
> > > >       };
> > > >  };
> > > >
> > > > +&lpi2c3 {
> > > > +     #address-cells = <1>;
> > > > +     #size-cells = <0>;
> > >
> > > while reading your patch I also noticed that you had to specify
> > > these cells here. It is very common to specify it within the base
> > > dtsi file imx93.dtsi. Can you please provde an extra patch which
> > > adds this to the base dtsi followed by this patch, which of course do need
> to specify it again.
> > >
> > > Thanks you,
> > >   Marco
> > >
> > Thanks for your comments!
> > Have checked the base dtsi file imx93.dtsi. The these cells already existed.
> 
> You're right, not sure why I didn't saw it in the first place.
> 
> > The current cells is same with the lpi2c3 node in imx93.dtsi. So
> > should remove these cells in order to keep terse?
> 
> Yes please remove it.
> 
> Regards,
>   Marco

Thanks for your comments!
Will change it in next version.
BR
Joy Zou

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-24  9:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17  3:14 [PATCH v4 0/1] Add rtc PCF2131 support Joy Zou
2024-04-17  3:14 ` [PATCH v4 1/1] arm64: dts: imx93-11x11-evk: add " Joy Zou
2024-04-17  3:09   ` Fabio Estevam
2024-04-17  3:26     ` [EXT] " Joy Zou
2024-04-17  4:57   ` Marco Felsch
2024-04-24  2:28     ` [EXT] " Joy Zou
2024-04-24  8:59       ` Marco Felsch
2024-04-24  9:04         ` Joy Zou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).