* [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 @ 2019-07-19 10:46 Gilles DOFFE 2019-07-22 7:53 ` Marco Felsch 0 siblings, 1 reply; 6+ messages in thread From: Gilles DOFFE @ 2019-07-19 10:46 UTC (permalink / raw) To: devicetree, linux-arm-kernel, linux-kernel Cc: mark.rutland, festevam, s.hauer, rennes, robh+dt, linux-imx, kernel, jerome.oufella, shawnguo The pca9535 gpio expander is present on the Rex baseboard, but missing from the dtsi. Add the new gpio controller and the associated interrupt line MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com> --- arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi b/arch/arm/boot/dts/imx6qdl-rex.dtsi index 97f1659144ea..b517efb22fcb 100644 --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi @@ -136,6 +136,19 @@ compatible = "atmel,24c02"; reg = <0x57>; }; + + pca9535: gpio8@27 { + compatible = "nxp,pca9535"; + reg = <0x27>; + gpio-controller; + #gpio-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pca9535>; + interrupt-parent = <&gpio6>; + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; &i2c3 { @@ -237,6 +250,12 @@ >; }; + pinctrl_pca9535: pca9535 { + fsl,pins = < + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x00017059 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1 -- 2.19.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 2019-07-19 10:46 [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 Gilles DOFFE @ 2019-07-22 7:53 ` Marco Felsch 2019-07-23 8:02 ` Shawn Guo 2019-09-12 10:01 ` Gilles Doffe 0 siblings, 2 replies; 6+ messages in thread From: Marco Felsch @ 2019-07-22 7:53 UTC (permalink / raw) To: Gilles DOFFE Cc: mark.rutland, devicetree, shawnguo, s.hauer, rennes, linux-kernel, robh+dt, linux-imx, kernel, jerome.oufella, festevam, linux-arm-kernel Hi Gilles, can you adapt the patch title, I assumed that the base dtsi is adding a gpio-expander which makes no sense. On 19-07-19 12:46, Gilles DOFFE wrote: > The pca9535 gpio expander is present on the Rex baseboard, but missing > from the dtsi. > > Add the new gpio controller and the associated interrupt line > MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. > > Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com> > --- Having a changelog would be nice too. > arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi b/arch/arm/boot/dts/imx6qdl-rex.dtsi > index 97f1659144ea..b517efb22fcb 100644 > --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi > @@ -136,6 +136,19 @@ > compatible = "atmel,24c02"; > reg = <0x57>; > }; > + > + pca9535: gpio8@27 { > + compatible = "nxp,pca9535"; > + reg = <0x27>; The i2c devices are orderd by their i2c-addresses starting from the lowest. > + gpio-controller; > + #gpio-cells = <2>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pca9535>; > + interrupt-parent = <&gpio6>; > + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > }; > > &i2c3 { > @@ -237,6 +250,12 @@ > >; > }; > > + pinctrl_pca9535: pca9535 { > + fsl,pins = < > + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x00017059 The pinmux below don't use the leading zero's if you are the first I would drop that. Regards, Marco > + >; > + }; > + > pinctrl_uart1: uart1grp { > fsl,pins = < > MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1 > -- > 2.19.1 > > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 2019-07-22 7:53 ` Marco Felsch @ 2019-07-23 8:02 ` Shawn Guo 2019-09-12 10:01 ` Gilles Doffe 1 sibling, 0 replies; 6+ messages in thread From: Shawn Guo @ 2019-07-23 8:02 UTC (permalink / raw) To: Marco Felsch Cc: mark.rutland, devicetree, Gilles DOFFE, s.hauer, rennes, linux-kernel, robh+dt, linux-imx, kernel, jerome.oufella, festevam, linux-arm-kernel On Mon, Jul 22, 2019 at 09:53:41AM +0200, Marco Felsch wrote: > Hi Gilles, > > can you adapt the patch title, I assumed that the base dtsi is adding a > gpio-expander which makes no sense. More specifically, the prefix should be something like: 'ARM: dts: imx6qdl-rex: ...' Shawn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 2019-07-22 7:53 ` Marco Felsch 2019-07-23 8:02 ` Shawn Guo @ 2019-09-12 10:01 ` Gilles Doffe 2019-09-12 10:12 ` Marco Felsch 1 sibling, 1 reply; 6+ messages in thread From: Gilles Doffe @ 2019-09-12 10:01 UTC (permalink / raw) To: Marco Felsch Cc: mark rutland, devicetree, shawnguo, s hauer, rennes, linux-kernel, robh+dt, linux-imx, kernel, Jérome Oufella, festevam, linux-arm-kernel Hi Marco, Thanks for your reply and sorry about the delay. ----- Le 22 Juil 19, à 9:53, Marco Felsch m.felsch@pengutronix.de a écrit : > Hi Gilles, > > can you adapt the patch title, I assumed that the base dtsi is adding a > gpio-expander which makes no sense. My first intent was to add the gpio-expander pca9535 into the imx6q-rex-pro.dts and in a future imx6qp-rex-ultra.dts However I noticed that the sgtl5000 was already in the dtsi. It is maybe due to the fact that like the pca9535, the sgtl5000 is present on the baseboard not on the SOM. Thus I guess that baseboard stuff common to all rex SOM should be in imx6qdl-rex.dtsi and not in the dts. Does-it seem correct to you ? > > On 19-07-19 12:46, Gilles DOFFE wrote: >> The pca9535 gpio expander is present on the Rex baseboard, but missing >> from the dtsi. >> >> Add the new gpio controller and the associated interrupt line >> MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. >> >> Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com> >> --- > > Having a changelog would be nice too. > >> arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi >> b/arch/arm/boot/dts/imx6qdl-rex.dtsi >> index 97f1659144ea..b517efb22fcb 100644 >> --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi >> +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi >> @@ -136,6 +136,19 @@ >> compatible = "atmel,24c02"; >> reg = <0x57>; >> }; >> + >> + pca9535: gpio8@27 { >> + compatible = "nxp,pca9535"; >> + reg = <0x27>; > > The i2c devices are orderd by their i2c-addresses starting from the > lowest. > Ack. >> + gpio-controller; >> + #gpio-cells = <2>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_pca9535>; >> + interrupt-parent = <&gpio6>; >> + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> }; >> >> &i2c3 { >> @@ -237,6 +250,12 @@ >> >; >> }; >> >> + pinctrl_pca9535: pca9535 { >> + fsl,pins = < >> + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x00017059 > > The pinmux below don't use the leading zero's if you are the first I > would drop that. > > Regards, > Marco > Ack. Regards, Gilles _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 2019-09-12 10:01 ` Gilles Doffe @ 2019-09-12 10:12 ` Marco Felsch 2019-09-13 8:38 ` Gilles Doffe 0 siblings, 1 reply; 6+ messages in thread From: Marco Felsch @ 2019-09-12 10:12 UTC (permalink / raw) To: Gilles Doffe Cc: mark rutland, devicetree, shawnguo, s hauer, rennes, linux-kernel, robh+dt, linux-imx, kernel, Jérome Oufella, festevam, linux-arm-kernel Hi Gilles, On 19-09-12 06:01, Gilles Doffe wrote: > Hi Marco, > > Thanks for your reply and sorry about the delay. No worries ;) > ----- Le 22 Juil 19, à 9:53, Marco Felsch m.felsch@pengutronix.de a écrit : > > > Hi Gilles, > > > > can you adapt the patch title, I assumed that the base dtsi is adding a > > gpio-expander which makes no sense. > > My first intent was to add the gpio-expander pca9535 into the imx6q-rex-pro.dts and in a future imx6qp-rex-ultra.dts > However I noticed that the sgtl5000 was already in the dtsi. > It is maybe due to the fact that like the pca9535, the sgtl5000 is present on the baseboard not on the SOM. > Thus I guess that baseboard stuff common to all rex SOM should be in imx6qdl-rex.dtsi and not in the dts. > Does-it seem correct to you ? Yes this is correct what Shawn and I mean is that you should adapt the commit title. Shawn already give you an example. > > > > On 19-07-19 12:46, Gilles DOFFE wrote: > >> The pca9535 gpio expander is present on the Rex baseboard, but missing > >> from the dtsi. > >> > >> Add the new gpio controller and the associated interrupt line > >> MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. > >> > >> Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com> > >> --- > > > > Having a changelog would be nice too. > > > >> arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ > >> 1 file changed, 19 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi > >> b/arch/arm/boot/dts/imx6qdl-rex.dtsi > >> index 97f1659144ea..b517efb22fcb 100644 > >> --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi > >> +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi > >> @@ -136,6 +136,19 @@ > >> compatible = "atmel,24c02"; > >> reg = <0x57>; > >> }; > >> + > >> + pca9535: gpio8@27 { > >> + compatible = "nxp,pca9535"; > >> + reg = <0x27>; > > > > The i2c devices are orderd by their i2c-addresses starting from the > > lowest. > > > > Ack. > > >> + gpio-controller; > >> + #gpio-cells = <2>; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <&pinctrl_pca9535>; > >> + interrupt-parent = <&gpio6>; > >> + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; > >> + interrupt-controller; > >> + #interrupt-cells = <2>; As you pointed out above this device isn't available on the imx6dl-rex-basic? You should add: 'status = "disabled";' if this is the case. Regards, Marco > >> + }; > >> }; > >> > >> &i2c3 { > >> @@ -237,6 +250,12 @@ > >> >; > >> }; > >> > >> + pinctrl_pca9535: pca9535 { > >> + fsl,pins = < > >> + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x00017059 > > > > The pinmux below don't use the leading zero's if you are the first I > > would drop that. > > > > Regards, > > Marco > > > > Ack. > > Regards, > Gilles > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 2019-09-12 10:12 ` Marco Felsch @ 2019-09-13 8:38 ` Gilles Doffe 0 siblings, 0 replies; 6+ messages in thread From: Gilles Doffe @ 2019-09-13 8:38 UTC (permalink / raw) To: Marco Felsch Cc: mark rutland, devicetree, shawnguo, s hauer, rennes, linux-kernel, robh+dt, linux-imx, kernel, Jérome Oufella, festevam, linux-arm-kernel Hi Marco, Ack for all, v3 incoming. Thank you, Gilles ----- Le 12 Sep 19, à 12:12, Marco Felsch m.felsch@pengutronix.de a écrit : > Hi Gilles, > > On 19-09-12 06:01, Gilles Doffe wrote: >> Hi Marco, >> >> Thanks for your reply and sorry about the delay. > > No worries ;) > >> ----- Le 22 Juil 19, à 9:53, Marco Felsch m.felsch@pengutronix.de a écrit : >> >> > Hi Gilles, >> > >> > can you adapt the patch title, I assumed that the base dtsi is adding a >> > gpio-expander which makes no sense. >> >> My first intent was to add the gpio-expander pca9535 into the imx6q-rex-pro.dts >> and in a future imx6qp-rex-ultra.dts >> However I noticed that the sgtl5000 was already in the dtsi. >> It is maybe due to the fact that like the pca9535, the sgtl5000 is present on >> the baseboard not on the SOM. >> Thus I guess that baseboard stuff common to all rex SOM should be in >> imx6qdl-rex.dtsi and not in the dts. >> Does-it seem correct to you ? > > Yes this is correct what Shawn and I mean is that you should adapt the > commit title. Shawn already give you an example. > >> > >> > On 19-07-19 12:46, Gilles DOFFE wrote: >> >> The pca9535 gpio expander is present on the Rex baseboard, but missing >> >> from the dtsi. >> >> >> >> Add the new gpio controller and the associated interrupt line >> >> MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. >> >> >> >> Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com> >> >> --- >> > >> > Having a changelog would be nice too. >> > >> >> arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ >> >> 1 file changed, 19 insertions(+) >> >> >> >> diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi >> >> b/arch/arm/boot/dts/imx6qdl-rex.dtsi >> >> index 97f1659144ea..b517efb22fcb 100644 >> >> --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi >> >> +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi >> >> @@ -136,6 +136,19 @@ >> >> compatible = "atmel,24c02"; >> >> reg = <0x57>; >> >> }; >> >> + >> >> + pca9535: gpio8@27 { >> >> + compatible = "nxp,pca9535"; >> >> + reg = <0x27>; >> > >> > The i2c devices are orderd by their i2c-addresses starting from the >> > lowest. >> > >> >> Ack. >> >> >> + gpio-controller; >> >> + #gpio-cells = <2>; >> >> + pinctrl-names = "default"; >> >> + pinctrl-0 = <&pinctrl_pca9535>; >> >> + interrupt-parent = <&gpio6>; >> >> + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; >> >> + interrupt-controller; >> >> + #interrupt-cells = <2>; > > As you pointed out above this device isn't available on the > imx6dl-rex-basic? You should add: 'status = "disabled";' if this is the > case. > > Regards, > Marco > >> >> + }; >> >> }; >> >> >> >> &i2c3 { >> >> @@ -237,6 +250,12 @@ >> >> >; >> >> }; >> >> >> >> + pinctrl_pca9535: pca9535 { >> >> + fsl,pins = < >> >> + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x00017059 >> > >> > The pinmux below don't use the leading zero's if you are the first I >> > would drop that. >> > >> > Regards, >> > Marco >> > >> >> Ack. >> >> Regards, >> Gilles >> > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- Gilles DOFFE Senior Product Engineering Consultant | Rennes, Fr Bureau [ tel:+33972468980 | (+33) 9 72 46 89 80 ] p. : 601 Cellulaire [ tel:+33660025866 | (+33) 6 60 02 58 66 ] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-09-13 8:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-07-19 10:46 [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 Gilles DOFFE 2019-07-22 7:53 ` Marco Felsch 2019-07-23 8:02 ` Shawn Guo 2019-09-12 10:01 ` Gilles Doffe 2019-09-12 10:12 ` Marco Felsch 2019-09-13 8:38 ` Gilles Doffe
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).