Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2021219ybe; Thu, 12 Sep 2019 03:17:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwD+OILAnuNLyHUaP1Z3Tvl79dQRpGJRpBdGdHXm0vIJTF4i+6vzZTX4exb5iKRJZze16p X-Received: by 2002:a17:906:4f04:: with SMTP id t4mr34001935eju.190.1568283476104; Thu, 12 Sep 2019 03:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568283476; cv=none; d=google.com; s=arc-20160816; b=JzovaFC23iLFFlRN705qJc1b9lXbw+S9wLEcq6K+DJQnXJglUgADz4T7EisHaJ2zsf 2sYOU6biG750uQ7Vh4P2/v/yM6lCQ/VbRu0yMij/5uoV2HEYUQMqAdbb+vL8cEuibs+8 QdWPLVgYM0+gNsX6OcT6Wb24qrIHK0iyBnGXXEKu/3aIy4h/+H7I3FmoTU+WsaeHQSeZ lUjvqemIbHX//s0z/Cz8Oc8LcoTHMlMbukmvkc3qZI+QhHkwPmM95D2ZmBvaZIKOIymX bcVKgUBiDb3+5u6HWfv2HYluzjp58Dpz0szJRGU3TtsPbUS+6xi4Zl2ZR1EuHMv+T9HS H2oQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tsurWHoOSRQioK3gfcED6s997ymNl8NwQO8GaS9t0y8=; b=cJEdpAlbiF7NdjKk4WlAn/drUeC5iQ98K1cA4XT3QTYuIOAHvyPhuQdTJvuotPSX0N qVr+6BhC7qMIO1jpDvyJLazxldig69+Sj3ZqyzPlqCadKzNlRddplFrTkj+3KRfljMwL Gk+T7WFrphM6JW1B1tUkrtRMlnuwpVY4Tl2GaN9txWzVIpVlEPLRlRAUTIasX0wtsxGT S2BHLSt1hhjJnurVZ59thAriH9k+wuT0LVNJD9H+WMieJQnlRPl5dJOBizEdOc7vMdV5 8dJD9ri0bfQvl2gtqvXRL9EftG8zshp00QCshiZkWvBfpErE1w5FE4dkuvQ3UECNBzxJ +eOA== 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 s15si12328252ejz.241.2019.09.12.03.17.32; Thu, 12 Sep 2019 03:17:56 -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 S1731004AbfILKMo (ORCPT + 99 others); Thu, 12 Sep 2019 06:12:44 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:53795 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730386AbfILKMo (ORCPT ); Thu, 12 Sep 2019 06:12:44 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i8M5h-0001Ib-VH; Thu, 12 Sep 2019 12:12:41 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1i8M5g-0007GA-TS; Thu, 12 Sep 2019 12:12:40 +0200 Date: Thu, 12 Sep 2019 12:12:40 +0200 From: Marco Felsch To: Gilles Doffe Cc: devicetree , linux-arm-kernel , linux-kernel , mark rutland , festevam , s hauer , rennes , robh+dt , linux-imx , kernel , =?iso-8859-1?Q?J=E9rome?= Oufella , shawnguo Subject: Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535 Message-ID: <20190912101240.ml5jmdei5rvzesap@pengutronix.de> References: <20190719104615.5329-1-gilles.doffe@savoirfairelinux.com> <20190722075341.e4ve45rneusiogtk@pengutronix.de> <978100557.7721358.1568282514403.JavaMail.zimbra@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <978100557.7721358.1568282514403.JavaMail.zimbra@savoirfairelinux.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:08:06 up 117 days, 16:26, 67 users, load average: 0.19, 0.17, 0.09 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > >> --- > > > > 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 |