Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4169525ybp; Mon, 7 Oct 2019 04:28:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpQZ02oZiUjP6tPJA1/1t26A+c4EH4Do8c7kD30uD17Td5EamxmnRosg+XCPUbGWfn8X+N X-Received: by 2002:a50:d096:: with SMTP id v22mr28434137edd.81.1570447682478; Mon, 07 Oct 2019 04:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570447682; cv=none; d=google.com; s=arc-20160816; b=JJf8ius6J4PDWWp0mMU5LO8ntQOz34aux/LC+TlfEKfgtAv0jRsoDFGh1o4Y9wZVTS VJhTVilR4iAYTSFvR1xrm2OMeJgYITngGOuzUNllED/9hpccEg3dhBt6HxBBUZfPcVAf dW0XX3UqhUXVL0jZq2rQlKi8AJz8/lclB6G/UT5WexKu+z3pAxC7cSNml/n0co9z/omZ /ESFqIp+bqSCgbrh+/PB8jr+jDuvrLfEHMxaQuZ9xORkQCJqVBYEERc3mSb5RPWO4xUF dzQNDUt6opazwyYe4zEMzqSjSWEL5hIsxgNsdieBrzNki5DYNUZAj181DRXgSFxQJeOc sTew== 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=iBu+T4tgsPeN2ur12pVwfYMlHZcb+KiClyIZIUPugK4=; b=zKGkXVRgxaFDed0AUa3lO3fjmMtZS5H/9sY5Gx6Nc5apRpAXzW1jOh4ZoxF9Y/M9rb I+oGj3Tzm+SAlc74rvX5vUv+5ulu8jlQwBpzmgGgby57Y+d0/HY/+nhuVJNoWsLxBqHg auGtL1Rqi3MXryDSAHqqojEVkSBNfhKZpvfUVByLdM0wTMl9HXT9IiAhRyu4Qp9eMVy4 f8UvuK+M8cWU3y3Q3zKWHUY5miUO8i4M0/z5+CASKcIhv206s25yx4uzlS0qoJ+bvkbH KjzaX2w0B7c5yXTJXaHzUNg5V3XVImnLCXU7tVxlRVjE9mk5s6aSF2UPyCQlfKZt4t21 d8WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KIMmA4Vn; 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 g90si8648415edd.329.2019.10.07.04.27.38; Mon, 07 Oct 2019 04:28:02 -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=KIMmA4Vn; 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 S1728138AbfJGLY4 (ORCPT + 99 others); Mon, 7 Oct 2019 07:24:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:50396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727442AbfJGLYz (ORCPT ); Mon, 7 Oct 2019 07:24:55 -0400 Received: from dragon (li937-157.members.linode.com [45.56.119.157]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A61D21655; Mon, 7 Oct 2019 11:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570447495; bh=hjXcVcJK0NpbQJa+f7TFWSRlvZy1ZIrFfr/Rfc4aJi8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KIMmA4Vnd/pzFe9G3L79Di5PxkxuNkTcFK3yqVQ0wttpfkZqZsqcg8VSnUBVD7xCt EcYK5jbHsg+pTfwnyNFSkjjbTAWlMgzD0CEmTngraSU8Rj0mn0nMBscnOp+VrFEei2 53Xf7WGQ2exUbFIaylOjOrVcmCWjpoC5nzEjxYeM= Date: Mon, 7 Oct 2019 19:24:32 +0800 From: Shawn Guo To: Gilles DOFFE Cc: devicetree@vger.kernel.org, rennes@savoirfairelinux.com, jerome.oufella@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 v3] ARM: dts: imx6qdl-rex: add gpio expander pca9535 Message-ID: <20191007112430.GD7150@dragon> References: <20190916104353.7278-1-gilles.doffe@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190916104353.7278-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 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 > --- > 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 > + 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 >