Message ID | 1383916659-9988-3-git-send-email-denis@eukrea.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 14:17 Fri 08 Nov , Denis Carikli wrote: > Cc: Rob Herring <rob.herring@calxeda.com> > Cc: Pawel Moll <pawel.moll@arm.com> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Stephen Warren <swarren@wwwdotorg.org> > Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> > Cc: Grant Likely <grant.likely@linaro.org> > Cc: devicetree@vger.kernel.org > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> > Cc: linux-input@vger.kernel.org > Cc: Sascha Hauer <kernel@pengutronix.de> > Cc: linux-arm-kernel@lists.infradead.org > Cc: Lothar Waßmann <LW@KARO-electronics.de> > Cc: Shawn Guo <shawn.guo@linaro.org> > Cc: Eric Bénard <eric@eukrea.com> > Signed-off-by: Denis Carikli <denis@eukrea.com> > --- > ChangeLog v8->v9: > - Added Grant Likely in the cc list. > - Adapted to the removal of the pinctrl properties in the tsc2007 documentation. > - Fixed the gpios property (before, it was set to active high by error). > > ChangeLog v7->v8: > - Added Shawn Guo in the cc list. > --- > arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > index b9cb5a5..f25a40f 100644 > --- a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > +++ b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > @@ -36,6 +36,27 @@ > compatible = "nxp,pcf8563"; > reg = <0x51>; > }; > + > + tsc2007: tsc2007@48 { > + compatible = "ti,tsc2007"; > + reg = <0x48>; > + interrupt-parent = <&gpio3>; > + interrupts = <0x2 0x8>; > + gpios = <&gpio3 2 1>; as explain on the binding drop this gpios this is an IRQ not a gpio NACK Best Regards, J. > + ti,x-plate-ohms = <180>; > + }; > + > +}; > + > +&iomuxc { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_hog>; > + > + imx35-eukrea { > + pinctrl_hog: hoggrp { > + fsl,pins = <MX35_PAD_ATA_DA2__GPIO3_2 0x80000000>; > + }; > + }; > }; > > &nfc { > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 14:17 Fri 08 Nov , Denis Carikli wrote: > > Cc: Rob Herring <rob.herring@calxeda.com> > > Cc: Pawel Moll <pawel.moll@arm.com> > > Cc: Mark Rutland <mark.rutland@arm.com> > > Cc: Stephen Warren <swarren@wwwdotorg.org> > > Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> > > Cc: Grant Likely <grant.likely@linaro.org> > > Cc: devicetree@vger.kernel.org > > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> > > Cc: linux-input@vger.kernel.org > > Cc: Sascha Hauer <kernel@pengutronix.de> > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: Lothar Waßmann <LW@KARO-electronics.de> > > Cc: Shawn Guo <shawn.guo@linaro.org> > > Cc: Eric Bénard <eric@eukrea.com> > > Signed-off-by: Denis Carikli <denis@eukrea.com> > > --- > > ChangeLog v8->v9: > > - Added Grant Likely in the cc list. > > - Adapted to the removal of the pinctrl properties in the tsc2007 documentation. > > - Fixed the gpios property (before, it was set to active high by error). > > > > ChangeLog v7->v8: > > - Added Shawn Guo in the cc list. > > --- > > arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi | 21 +++++++++++++++++++++ > > 1 file changed, 21 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > > index b9cb5a5..f25a40f 100644 > > --- a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > > +++ b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi > > @@ -36,6 +36,27 @@ > > compatible = "nxp,pcf8563"; > > reg = <0x51>; > > }; > > + > > + tsc2007: tsc2007@48 { > > + compatible = "ti,tsc2007"; > > + reg = <0x48>; > > + interrupt-parent = <&gpio3>; > > + interrupts = <0x2 0x8>; > > + gpios = <&gpio3 2 1>; > as explain on the binding drop this gpios this is an IRQ not a gpio > > NACK The driver needs an interrupt to get notified about pendown events and needs to poll the pendown signal to find out when the pen has been lifted. Both the interrupt and the pendown signal happen to be signalled on the same pin. Thus, IMO it is perfectly well to have the interrupt property as well as the gpios property here. How would you tell the driver which pin to poll for detecting the pen up event? Having a platform callback with hardcoded GPIO numbers is not an option. Lothar Waßmann
Le Thu, 21 Nov 2013 06:09:22 +0100, Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> a écrit : > > + tsc2007: tsc2007@48 { > > + compatible = "ti,tsc2007"; > > + reg = <0x48>; > > + interrupt-parent = <&gpio3>; > > + interrupts = <0x2 0x8>; > > + gpios = <&gpio3 2 1>; > as explain on the binding drop this gpios this is an IRQ not a gpio > > NACK > please read the tsc2007's code, in the patch there is : +static int tsc2007_get_pendown_state_dt(struct tsc2007 *ts) +{ + return !gpio_get_value(ts->gpio); +} + http://www.mail-archive.com/linux-input@vger.kernel.org/msg06765.html Eric -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi index b9cb5a5..f25a40f 100644 --- a/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi +++ b/arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi @@ -36,6 +36,27 @@ compatible = "nxp,pcf8563"; reg = <0x51>; }; + + tsc2007: tsc2007@48 { + compatible = "ti,tsc2007"; + reg = <0x48>; + interrupt-parent = <&gpio3>; + interrupts = <0x2 0x8>; + gpios = <&gpio3 2 1>; + ti,x-plate-ohms = <180>; + }; + +}; + +&iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + imx35-eukrea { + pinctrl_hog: hoggrp { + fsl,pins = <MX35_PAD_ATA_DA2__GPIO3_2 0x80000000>; + }; + }; }; &nfc {
Cc: Rob Herring <rob.herring@calxeda.com> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Grant Likely <grant.likely@linaro.org> Cc: devicetree@vger.kernel.org Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: linux-input@vger.kernel.org Cc: Sascha Hauer <kernel@pengutronix.de> Cc: linux-arm-kernel@lists.infradead.org Cc: Lothar Waßmann <LW@KARO-electronics.de> Cc: Shawn Guo <shawn.guo@linaro.org> Cc: Eric Bénard <eric@eukrea.com> Signed-off-by: Denis Carikli <denis@eukrea.com> --- ChangeLog v8->v9: - Added Grant Likely in the cc list. - Adapted to the removal of the pinctrl properties in the tsc2007 documentation. - Fixed the gpios property (before, it was set to active high by error). ChangeLog v7->v8: - Added Shawn Guo in the cc list. --- arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)