Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7281993ybp; Wed, 16 Oct 2019 06:34:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPtgcM7xO/WJ2gFPazvpu12XiuYGa60+F8J93+W9Uh8+m0YHly3rT7uI6E0yk6evK8D0q1 X-Received: by 2002:a17:906:5907:: with SMTP id h7mr19376926ejq.328.1571232876028; Wed, 16 Oct 2019 06:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571232876; cv=none; d=google.com; s=arc-20160816; b=P9zeVCE5kp7oFmgsa55cyu8PbavymZEKv3/exV36FQotYG8z/ib903eMKL1VsopFoA +u8HUQF7b2oNz5wZa1xEfxvxQ7jh05hcuQNOnFfr3U6qERtnijUZ1NM2l9706QKr1VKh 0pmKfO0bfqXOQhFS2v/kV2aYymcUKuifncMettPdFg0Nm3YP4EyDEYxXJuG4aONxaVrD 1aH7XSH7ttg4he9VHNPVqyDEI9lu0MBSb/VyfpdpB+XvkvE50HVVaZd0v0hqxeEOCp8N UttXQLsvL9A/mfWh6+9pcU1BOVHTEuBD5LzaW0ChQyUBsUktkUZg90CUFUKpKwo5ZEr8 6sog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=S7Zy6Q2lm8+1pydKvg37E0UaFseoDfhZU6Wde8c1qew=; b=GXhwhOGr5wafGE9WxQxkQBBjqhXn21JhaZX6oef406AYYOZ6xUUwAxwnx8+SGKXHMA ac960thYfBVBMwnlTKwClYjpJb358rLIWjY5jFmUCBDE38u7I2gjP3R7mZuzN9UJd28i 6b1AeZHKRjHfrLV+LwfllzC3VaUg9mml8c7LwOqMVdUEx4pywIAFHzo383SIpy1WGrx5 vjeduLCawD0sRnE6XEMph+shGvp0WO5jg2FUdOPUfTAA48rQ6hYyE/R3Q0zf2b1ZRyOu DPodWeEnML8EiK6vH4qeLNiqGEsHkQZcI1bnIHBuy5fNGSHfOOyxjvjhhD7JsD5mEAlq e4pw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si15119408edv.134.2019.10.16.06.34.12; Wed, 16 Oct 2019 06:34:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391886AbfJPJV2 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Oct 2019 05:21:28 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:55206 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfJPJV2 (ORCPT ); Wed, 16 Oct 2019 05:21:28 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 7DD609C02F3; Wed, 16 Oct 2019 05:21:26 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HYlKbr2B05BK; Wed, 16 Oct 2019 05:21:25 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id CCB989C03A3; Wed, 16 Oct 2019 05:21:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DtRpUWLBM3Fo; Wed, 16 Oct 2019 05:21:25 -0400 (EDT) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [192.168.48.237]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 900CB9C02F3; Wed, 16 Oct 2019 05:21:25 -0400 (EDT) Date: Wed, 16 Oct 2019 05:21:25 -0400 (EDT) From: Gilles Doffe To: shawnguo Cc: devicetree , rennes , =?utf-8?Q?J=C3=A9rome?= Oufella , robh+dt , mark rutland , s hauer , kernel , festevam , linux-imx , linux-arm-kernel , linux-kernel Message-ID: <1837032218.9373931.1571217685548.JavaMail.zimbra@savoirfairelinux.com> In-Reply-To: <20191007112430.GD7150@dragon> References: <20190916104353.7278-1-gilles.doffe@savoirfairelinux.com> <20191007112430.GD7150@dragon> Subject: Re: [PATCH v3] ARM: dts: imx6qdl-rex: add gpio expander pca9535 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Mailer: Zimbra 8.8.11_GA_3737 (ZimbraWebClient - GC76 (Linux)/8.8.11_GA_3737) Thread-Topic: imx6qdl-rex: add gpio expander pca9535 Thread-Index: 0SgUHsAJvXpg4HUlY55gc/ziL2JF9g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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 >> --- >> 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