From: Gilles Doffe <gilles.doffe@savoirfairelinux.com>
To: shawnguo <shawnguo@kernel.org>
Cc: devicetree <devicetree@vger.kernel.org>,
rennes <rennes@savoirfairelinux.com>,
"Jérome Oufella" <jerome.oufella@savoirfairelinux.com>,
robh+dt <robh+dt@kernel.org>,
"mark rutland" <mark.rutland@arm.com>,
"s hauer" <s.hauer@pengutronix.de>,
kernel <kernel@pengutronix.de>, festevam <festevam@gmail.com>,
linux-imx <linux-imx@nxp.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] ARM: dts: imx6qdl-rex: add gpio expander pca9535
Date: Wed, 16 Oct 2019 05:21:25 -0400 (EDT) [thread overview]
Message-ID: <1837032218.9373931.1571217685548.JavaMail.zimbra@savoirfairelinux.com> (raw)
In-Reply-To: <20191007112430.GD7150@dragon>
----- Le 7 Oct 19, à 13:24, shawnguo shawnguo@kernel.org a écrit :
> On Mon, Sep 16, 2019 at 12:43:53PM +0200, Gilles DOFFE wrote:
>> The pca9535 gpio expander is present on the Rex baseboard, but missing
>> from the dtsi.
>> The pca9535 is on i2c2 bus which is common to the three SOM
>> variants (Basic/Pro/Ultra), thus it is activated by default.
>>
>> Add also 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..8a748ca1b108 100644
>> --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi
>> +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi
>> @@ -132,6 +132,19 @@
>> pinctrl-0 = <&pinctrl_i2c2>;
>> status = "okay";
>>
>> + pca9535: gpio8@27 {
>
> gpio-expander might be a better node name?
>
> Shawn
Indeed, v4 incoming. ;)
Thank you Shawn.
>
>> + 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>;
>> + };
>> +
>> eeprom@57 {
>> compatible = "atmel,24c02";
>> reg = <0x57>;
>> @@ -237,6 +250,12 @@
>> >;
>> };
>>
>> + pinctrl_pca9535: pca9535 {
>> + fsl,pins = <
>> + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x17059
>> + >;
>> + };
>> +
>> pinctrl_uart1: uart1grp {
>> fsl,pins = <
>> MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
>> --
>> 2.20.1
prev parent reply other threads:[~2019-10-16 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-16 10:43 [PATCH v3] ARM: dts: imx6qdl-rex: add gpio expander pca9535 Gilles DOFFE
2019-10-07 11:24 ` Shawn Guo
2019-10-16 9:21 ` Gilles Doffe [this message]
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=1837032218.9373931.1571217685548.JavaMail.zimbra@savoirfairelinux.com \
--to=gilles.doffe@savoirfairelinux.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=jerome.oufella@savoirfairelinux.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rennes@savoirfairelinux.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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