From: Markus Pargmann <mpa@pengutronix.de>
To: Chen Bough <Haibo.Chen@freescale.com>
Cc: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"pawel.moll@arm.com" <pawel.moll@arm.com>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
"galak@codeaurora.org" <galak@codeaurora.org>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"sbranden@broadcom.com" <sbranden@broadcom.com>,
"arnd@arndb.de" <arnd@arndb.de>,
"mchehab@osg.samsung.com" <mchehab@osg.samsung.com>,
"christian.gmeiner@gmail.com" <christian.gmeiner@gmail.com>,
"scott.liu@emc.com.tw" <scott.liu@emc.com.tw>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"hdegoede@redhat.com" <hdegoede@redhat.com>,
"jonathar@broadcom.com" <jonathar@broadcom.com>,
"benjamin.tissoires@redhat.com" <benjamin.tissoires@redhat.com>,
"hans.verkuil@cisco.com" <hans.verkuil@cisco.com>,
"hadess@hadess.net" <hadess@hadess.net>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"geert@linux-m68k.org" <geert@linux-m68k.org>,
"sebastien.szymanski@armadeus.com"
<sebastien.szymanski@armadeus.com>,
"mamlinav@gmail.com" <mamlinav@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc
Date: Fri, 21 Aug 2015 11:27:25 +0200 [thread overview]
Message-ID: <20150821092725.GB706@pengutronix.de> (raw)
In-Reply-To: <BY1PR03MB1388BBEF576297D76E7E3F839A650@BY1PR03MB1388.namprd03.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 5297 bytes --]
On Fri, Aug 21, 2015 at 08:30:16AM +0000, Chen Bough wrote:
> Hi Markus,
>
> > -----Original Message-----
> > From: Markus Pargmann [mailto:mpa@pengutronix.de]
> > Sent: Wednesday, August 19, 2015 1:55 PM
> > To: Chen Haibo-B51421
> > Cc: robh+dt@kernel.org; pawel.moll@arm.com; mark.rutland@arm.com;
> > ijc+devicetree@hellion.org.uk; galak@codeaurora.org; shawnguo@kernel.org;
> > kernel@pengutronix.de; linux@arm.linux.org.uk; dmitry.torokhov@gmail.com;
> > devicetree@vger.kernel.org; sbranden@broadcom.com; arnd@arndb.de;
> > mchehab@osg.samsung.com; christian.gmeiner@gmail.com;
> > scott.liu@emc.com.tw; linux-kernel@vger.kernel.org; hdegoede@redhat.com;
> > jonathar@broadcom.com; benjamin.tissoires@redhat.com;
> > hans.verkuil@cisco.com; hadess@hadess.net; linux-input@vger.kernel.org;
> > geert@linux-m68k.org; sebastien.szymanski@armadeus.com;
> > mamlinav@gmail.com; linux-arm-kernel@lists.infradead.org
> > Subject: Re: [PATCH v2 2/5] Documentation: Detail permitted DT properties
> > for the imx6ul_tsc
> >
> > Hi,
> >
> > On Tue, Jul 28, 2015 at 05:58:38PM +0800, Haibo Chen wrote:
> > > Here we apply required documentation for the imx6ul touch screen
> > > controller driver which describe available properties and how to use
> > > them.
> > >
> > > Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
> > > ---
> > > .../bindings/input/touchscreen/imx6ul_tsc.txt | 36
> > ++++++++++++++++++++++
> > > 1 file changed, 36 insertions(+)
> > > create mode 100644
> > > Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt
> > >
> > > diff --git
> > > a/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt
> > > b/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt
> > > new file mode 100644
> > > index 0000000..ac41c32
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.t
> > > +++ xt
> > > @@ -0,0 +1,36 @@
> > > +* Freescale i.MX6UL Touch Controller
> > > +
> > > +Required properties:
> > > +- compatible: must be "fsl,imx6ul-tsc".
> > > +- reg: this touch controller address and the ADC2 address.
> >
> > This suggests that this driver is using a unit ADC2. Which also means
> > that there are more than one ADC which are probably identical?
> >
> > Shouldn't these ADCs be properly described by their own device nodes
> > instead of these two register ranges, two interrupts and two clocks?
> >
> > Is 'ADC2' usable without tsc? Then ADC1/ADC2 should perhaps get a proper
> > IIO driver.
>
> For i.MX6UL, there are two ADC. ADC1 is a normal ADC, and ADC2 can only works for
> TSC, the channels of ADC2 are connected to TSC directly. TSC and ADC2 should work
> together as a touch screen controller.
But as I understand these are two different units. Wouldn't it be better
to abstract it that way in the DT?
Best regards,
Markus
>
> For ADC1, it share the driver vf610_adc.c (drivers/iio/adc/vf610_adc.c).
>
> Best Regards
>
> Haibo
>
> >
> > Unfortunately I don't have the reference manual to have a look how this
> > all works.
> >
> > Best regards,
> >
> > Markus
> >
> > > +- interrupts: the interrupt of this touch controller and ADC2.
> > > +- clocks: the root clock of touch controller and ADC2.
> > > +- clock-names; must be "tsc" and "adc".
> > > +- xnur-gpio: the X- gpio this controller connect to.
> > > + This xnur-gpio returns to high once the finger leave the touch
> > > +screen (The
> > > + last touch event the touch controller capture).
> > > +
> > > +Optional properties:
> > > +- measure-delay-time: the value of measure delay time.
> > > + Before X-axis or Y-axis measurement, the screen need some time
> > > +before
> > > + even potential distribution ready.
> > > + This value depends on the touch screen.
> > > +- pre-charge-time: the touch screen need some time to precharge.
> > > + This value depends on the touch screen.
> > > +
> > > +Example:
> > > + tsc: tsc@02040000 {
> > > + compatible = "fsl,imx6ul-tsc";
> > > + reg = <0x02040000 0x4000>, <0x0219c000 0x4000>;
> > > + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
> > > + <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
> > > + clocks = <&clks IMX6UL_CLK_IPG>,
> > > + <&clks IMX6UL_CLK_ADC2>;
> > > + clock-names = "tsc", "adc";
> > > + pinctrl-names = "default";
> > > + pinctrl-0 = <&pinctrl_tsc>;
> > > + xnur-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
> > > + measure-delay-time = <0xfff>;
> > > + pre-charge-time = <0xffff>;
> > > + status = "okay";
> > > + };
> > > --
> > > 1.9.1
> > >
> > >
> > >
> >
> > --
> > 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
> > |
--
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 |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-08-21 9:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 9:58 [PATCH v2 0/5] Add imx6ul touch screen controller support Haibo Chen
2015-07-28 9:58 ` [PATCH v2 1/5] input: touchscreen: add imx6ul_tsc driver support Haibo Chen
2015-08-19 5:11 ` Dmitry Torokhov
2015-08-21 8:08 ` Chen Bough
2015-08-21 9:26 ` Markus Pargmann
2015-08-24 8:24 ` Chen Bough
2015-07-28 9:58 ` [PATCH v2 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc Haibo Chen
2015-08-19 5:54 ` Markus Pargmann
2015-08-21 8:30 ` Chen Bough
2015-08-21 9:27 ` Markus Pargmann [this message]
2015-08-24 8:34 ` Chen Bough
2015-07-28 9:58 ` [PATCH v2 3/5] ARM: imx_v6_v7_defconfig: enable imx6ul_tsc Haibo Chen
2015-07-28 9:58 ` [PATCH v2 4/5] ARM: dts: imx6ul.dtsi: add TSC support Haibo Chen
2015-07-28 9:58 ` [PATCH v2 5/5] ARM: dts: imx6ul-14x14-evk.dts: add tsc support Haibo Chen
2015-08-12 7:26 ` [PATCH v2 0/5] Add imx6ul touch screen controller support Chen Bough
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150821092725.GB706@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=Haibo.Chen@freescale.com \
--cc=arnd@arndb.de \
--cc=benjamin.tissoires@redhat.com \
--cc=christian.gmeiner@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=galak@codeaurora.org \
--cc=geert@linux-m68k.org \
--cc=hadess@hadess.net \
--cc=hans.verkuil@cisco.com \
--cc=hdegoede@redhat.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jonathar@broadcom.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mamlinav@gmail.com \
--cc=mark.rutland@arm.com \
--cc=mchehab@osg.samsung.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sbranden@broadcom.com \
--cc=scott.liu@emc.com.tw \
--cc=sebastien.szymanski@armadeus.com \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®