From: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Chen Bough <Haibo.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: "robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"pawel.moll-5wv7dgnIgG8@public.gmane.org"
<pawel.moll-5wv7dgnIgG8@public.gmane.org>,
"mark.rutland-5wv7dgnIgG8@public.gmane.org"
<mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org"
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
"galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org"
<galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
"shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org"
<kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org"
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
"dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org"
<sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
"arnd-r2nGTMty4D4@public.gmane.org"
<arnd-r2nGTMty4D4@public.gmane.org>,
"mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org"
<mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>,
"christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"scott.liu-9cfG7bMpBgR9nmWX13WWKA@public.gmane.org"
<scott.liu-9cfG7bMpBgR9nmWX13WWKA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org"
<hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
jonathar-dY08KVG/lbpWk0Htik3J/w@public.gmane.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-+AXFdSrsDrYz5L6Zd4zdsmP7xZHs9kq/vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 6025 bytes --]
On Fri, Aug 21, 2015 at 08:30:16AM +0000, Chen Bough wrote:
> Hi Markus,
>
> > -----Original Message-----
> > From: Markus Pargmann [mailto:mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org]
> > Sent: Wednesday, August 19, 2015 1:55 PM
> > To: Chen Haibo-B51421
> > Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org; pawel.moll-5wv7dgnIgG8@public.gmane.org; mark.rutland-5wv7dgnIgG8@public.gmane.org;
> > ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org; galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org; shawnguo-DgEjT+Ai2yhQFI55V6+gNQ@public.gmane.orgg;
> > kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org; linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org; dmitry.torokhov-Re5JQEeQqe8@public.gmane.orgm;
> > devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org; arnd-r2nGTMty4D4@public.gmane.org;
> > mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org; christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org;
> > scott.liu-9cfG7bMpBgR9nmWX13WWKA@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org;
> > jonathar-dY08KVG/lbpWk0Htik3J/w@public.gmane.org; benjamin.tissoires-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org;
> > hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org; hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org; linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
> > geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org; sebastien.szymanski-d2DlULPkwbNWk0Htik3J/w@public.gmane.org;
> > mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.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-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> > > ---
> > > .../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:27 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
[not found] ` <1438077521-12857-2-git-send-email-haibo.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-08-21 9:26 ` Markus Pargmann
[not found] ` <20150821092607.GA706-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
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
[not found] ` <1438077521-12857-3-git-send-email-haibo.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-08-19 5:54 ` Markus Pargmann
[not found] ` <20150819055434.GF11161-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2015-08-21 8:30 ` Chen Bough
[not found] ` <BY1PR03MB1388BBEF576297D76E7E3F839A650-+AXFdSrsDrYz5L6Zd4zdsmP7xZHs9kq/vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
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-bicnvbalz9megne8c9+irq@public.gmane.org \
--cc=Haibo.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=jonathar-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
--cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=scott.liu-9cfG7bMpBgR9nmWX13WWKA@public.gmane.org \
--cc=shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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;
as well as URLs for NNTP newsgroup(s).