Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp679508ybg; Sat, 26 Oct 2019 05:28:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwslDRpVfYy3hfg77WIWUNjoKof/CPRFySPeWj1SDnaiUkrfPuB4R0PcQJoyIUoXnStGppj X-Received: by 2002:a17:906:494e:: with SMTP id f14mr6369861ejt.42.1572092920197; Sat, 26 Oct 2019 05:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572092920; cv=none; d=google.com; s=arc-20160816; b=JWeZtv+vM2V/CDPKCFsmP/4YZtLtEicNdvlc8A50efWWvWIAGdu2TZ3L6HGePR44eE Hs6xtQP31rp+hK1bvgMiyL2TlqL/t0Gjxm7bTXVRDTsLhbM1M7yrEEHt1bGirj2W296/ DuoXENyrFJFxnAzdBn9arYCHb1zanjAgyXh4S94v06HIMbgV5YErvvhfup5wT8RKejRz mHVORYsK1T4s7QKK/pIf0idJQo2yYChkIYLm5d/+w9rByP57/eU11MWdPkd8MQgSCfb6 57h2LLJUys5BOjeB2BGM7kwfpsV5w84ohVlOcg9MB22olO9wX7MbpGVZxGTIM7vkw7h7 HRnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jivFFkrUBfvwCEsKvbE0w0STlT5pn8W2irEYl1Xd0AQ=; b=S570ORwNsHcNksKvPC8uRuhsfqZeVITsfPUc8xQhj/kRbhZ6IwE7NAiH2CHm/PFo94 +AW8ZLIXyXm1fW1UnvvH0NrztBLgrmY+ivptI3qGZ1/sJ8F3CqGn7yEI8wWbcsO3vPen pGKpbTBHU0dOdX9csCvvi9JVE3zxzVSbqeqEIXWkD7Hty8zjhEjiactkOUpD9e8834+T Pb4IATCjEF/86dvp4wOqaRRkaW1/7O1VHnGespjfyP86SIGzWJJnTdV9mqroamTXw4oQ UPh91uy5E5i9/wJSwLmKWGsR2l8lvC3j8MFfNUHY1nFmqPoiY/2fslLJwaUvo3mxjwDh gl9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pRBaZ7Rx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si3158419ejb.340.2019.10.26.05.28.05; Sat, 26 Oct 2019 05:28:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pRBaZ7Rx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbfJZM0u (ORCPT + 99 others); Sat, 26 Oct 2019 08:26:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:32824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfJZM0t (ORCPT ); Sat, 26 Oct 2019 08:26:49 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D368720578; Sat, 26 Oct 2019 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572092808; bh=Tl/yYfCwTv1OF2qFO6c8Wx02cTYUgWo+y/EvJ8uVR2Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pRBaZ7RxMMILSI/1tSzGhKjYreclSed8AELjJoTAcydP7ULUXQBxJ4a3GdbLwRG9G zOJpD/YYw6T/R1dAypSwHOAz48Mx8sk1am3T5s6LRC/oOdbgmax92KSuNx1rL/Zh23 ZLToZMGahADs5BuA8ruf9j6b9ocddioNH2ondgms= Date: Sat, 26 Oct 2019 20:26:32 +0800 From: Shawn Guo To: Gilles DOFFE Cc: devicetree@vger.kernel.org, jerome.oufella@savoirfairelinux.com, rennes@savoirfairelinux.com, Rob Herring , Mark Rutland , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] ARM: dts: imx6qdl-rex: add gpio expander pca9535 Message-ID: <20191026122630.GM14401@dragon> References: <20191016092255.19223-1-gilles.doffe@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191016092255.19223-1-gilles.doffe@savoirfairelinux.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 11:22:55AM +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 > --- > 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..305b57fadc60 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: gpio-expander@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>; > + }; > + > eeprom@57 { > compatible = "atmel,24c02"; > reg = <0x57>; > @@ -237,6 +250,12 @@ > >; > }; > > + pinctrl_pca9535: pca9535 { For sake of consistency, the node name should be prefixed with 'grp', which tells this is a pinctrl group node. I fixed it up and applied the patch. Shawn > + 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 >