From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756022AbdCXH0N (ORCPT ); Fri, 24 Mar 2017 03:26:13 -0400 Received: from mail.kernel.org ([198.145.29.136]:54558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754026AbdCXHZ7 (ORCPT ); Fri, 24 Mar 2017 03:25:59 -0400 Date: Fri, 24 Mar 2017 15:25:15 +0800 From: Shawn Guo To: Jagan Teki Cc: Jagan Teki , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel , Matteo Lisi , Michael Trimarchi Subject: Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node Message-ID: <20170324072513.GL30608@dragon> References: <1490204897-14525-1-git-send-email-jagan@openedev.com> <1490204897-14525-6-git-send-email-jagan@openedev.com> <20170324051632.GD30608@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: > On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: > >> From: Jagan Teki > >> > >> Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL > >> modules, the touchscreen controlled 'st,stmpe-ts' connected via > >> i2c with st,stmpe811 mfb interface. > > > > s/mfb/mfd? > > > >> > >> Cc: Shawn Guo > >> Cc: Matteo Lisi > >> Cc: Michael Trimarchi > >> Signed-off-by: Jagan Teki > >> --- > >> arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 34 ++++++++++++++++++++++++++++++ > >> 1 file changed, 34 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> index 9660e20..b149b5e 100644 > >> --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> @@ -40,6 +40,34 @@ > >> * OTHER DEALINGS IN THE SOFTWARE. > >> */ > >> > >> +&i2c1 { > >> + touch: stmpe811@44 { > > > > Label a MFD device 'touch'? Also, the node name should be generic. Not > > sure what should be used for MFD device though. > > May be I can use stmpe811@41 the existing imx6qdl-apalis.dtsi using > the similar notation. Per application notes of stmpe811 below, I would suggest you name it gpio-expander. www.st.com/resource/zh/datasheet/CD00186725.pdf > > > > >> + compatible = "st,stmpe811"; > >> + reg = <0x44>; > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <&pinctrl_stmpe_ts>; > > > > If this is for stmpe-ts, shouldn't be put into touchscreen child node? > > Actually this is interrupt pad, for the touch controller via stmpe so > I can rename pinctrl_touch_int. Or just pinctrl_stmpe. > > > > >> + interrupt-parent = <&gpio1>; > >> + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; > >> + interrupt-controller; > >> + #interrupt-cells = <2>; > >> + > >> + stmpe_touchscreen { > > > > 'stmpe: touchscreen {' might be better. > > stmpe_touchscreen { > > This is also compatible with existing dtsi files We do not need to keep compatibility with something not good. Shawn From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Subject: Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node Date: Fri, 24 Mar 2017 15:25:15 +0800 Message-ID: <20170324072513.GL30608@dragon> References: <1490204897-14525-1-git-send-email-jagan@openedev.com> <1490204897-14525-6-git-send-email-jagan@openedev.com> <20170324051632.GD30608@dragon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jagan Teki Cc: Jagan Teki , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel , Matteo Lisi , Michael Trimarchi List-Id: devicetree@vger.kernel.org On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: > On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: > >> From: Jagan Teki > >> > >> Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL > >> modules, the touchscreen controlled 'st,stmpe-ts' connected via > >> i2c with st,stmpe811 mfb interface. > > > > s/mfb/mfd? > > > >> > >> Cc: Shawn Guo > >> Cc: Matteo Lisi > >> Cc: Michael Trimarchi > >> Signed-off-by: Jagan Teki > >> --- > >> arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 34 ++++++++++++++++++++++++++++++ > >> 1 file changed, 34 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> index 9660e20..b149b5e 100644 > >> --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> @@ -40,6 +40,34 @@ > >> * OTHER DEALINGS IN THE SOFTWARE. > >> */ > >> > >> +&i2c1 { > >> + touch: stmpe811@44 { > > > > Label a MFD device 'touch'? Also, the node name should be generic. Not > > sure what should be used for MFD device though. > > May be I can use stmpe811@41 the existing imx6qdl-apalis.dtsi using > the similar notation. Per application notes of stmpe811 below, I would suggest you name it gpio-expander. www.st.com/resource/zh/datasheet/CD00186725.pdf > > > > >> + compatible = "st,stmpe811"; > >> + reg = <0x44>; > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <&pinctrl_stmpe_ts>; > > > > If this is for stmpe-ts, shouldn't be put into touchscreen child node? > > Actually this is interrupt pad, for the touch controller via stmpe so > I can rename pinctrl_touch_int. Or just pinctrl_stmpe. > > > > >> + interrupt-parent = <&gpio1>; > >> + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; > >> + interrupt-controller; > >> + #interrupt-cells = <2>; > >> + > >> + stmpe_touchscreen { > > > > 'stmpe: touchscreen {' might be better. > > stmpe_touchscreen { > > This is also compatible with existing dtsi files We do not need to keep compatibility with something not good. Shawn -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawnguo@kernel.org (Shawn Guo) Date: Fri, 24 Mar 2017 15:25:15 +0800 Subject: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node In-Reply-To: References: <1490204897-14525-1-git-send-email-jagan@openedev.com> <1490204897-14525-6-git-send-email-jagan@openedev.com> <20170324051632.GD30608@dragon> Message-ID: <20170324072513.GL30608@dragon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: > On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: > >> From: Jagan Teki > >> > >> Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL > >> modules, the touchscreen controlled 'st,stmpe-ts' connected via > >> i2c with st,stmpe811 mfb interface. > > > > s/mfb/mfd? > > > >> > >> Cc: Shawn Guo > >> Cc: Matteo Lisi > >> Cc: Michael Trimarchi > >> Signed-off-by: Jagan Teki > >> --- > >> arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 34 ++++++++++++++++++++++++++++++ > >> 1 file changed, 34 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> index 9660e20..b149b5e 100644 > >> --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi > >> @@ -40,6 +40,34 @@ > >> * OTHER DEALINGS IN THE SOFTWARE. > >> */ > >> > >> +&i2c1 { > >> + touch: stmpe811 at 44 { > > > > Label a MFD device 'touch'? Also, the node name should be generic. Not > > sure what should be used for MFD device though. > > May be I can use stmpe811 at 41 the existing imx6qdl-apalis.dtsi using > the similar notation. Per application notes of stmpe811 below, I would suggest you name it gpio-expander. www.st.com/resource/zh/datasheet/CD00186725.pdf > > > > >> + compatible = "st,stmpe811"; > >> + reg = <0x44>; > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <&pinctrl_stmpe_ts>; > > > > If this is for stmpe-ts, shouldn't be put into touchscreen child node? > > Actually this is interrupt pad, for the touch controller via stmpe so > I can rename pinctrl_touch_int. Or just pinctrl_stmpe. > > > > >> + interrupt-parent = <&gpio1>; > >> + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; > >> + interrupt-controller; > >> + #interrupt-cells = <2>; > >> + > >> + stmpe_touchscreen { > > > > 'stmpe: touchscreen {' might be better. > > stmpe_touchscreen { > > This is also compatible with existing dtsi files We do not need to keep compatibility with something not good. Shawn