From: icenowy-h8G6r0blFSE@public.gmane.org
To: techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Re: [PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T
Date: Tue, 27 Jun 2017 23:29:10 +0800 [thread overview]
Message-ID: <24845446a80e3542d90a1111a6141415@aosc.io> (raw)
In-Reply-To: <CAAST=9x+fS41tznuJ9hQ-cQxecKN751=61YkhEt31DvpeqeEcA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
在 2017-06-27 23:18,Ziping Chen 写道:
> 2017-06-27 1:15 GMT+08:00 Maxime Ripard
> <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>:
>> Hi,
>>
>> On Sat, Jun 24, 2017 at 10:45:14AM +0800, Ziping Chen wrote:
>>> From: Ziping Chen <techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>>
>>> Allwinner A83T SoC has a low res adc like the one
>>> in Allwinner A10 SoC.
>>>
>>> Add binding for it.
>>>
>>> Signed-off-by: Ziping Chen <techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>>> ---
>>> Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt | 6
>>> ++++--
>>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
>>> b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
>>> index 4357e498ef04..525d85e3043f 100644
>>> --- a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
>>> +++ b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
>>> @@ -2,12 +2,14 @@ Allwinner sun4i low res adc attached tablet keys
>>> ------------------------------------------------
>>>
>>> Required properties:
>>> - - compatible: "allwinner,sun4i-a10-lradc-keys"
>>> + - compatible: should be one of the following string:
>>> + "allwinner,sun4i-a10-lradc-keys"
>>> + "allwinner,sun8i-a83t-r-lradc-keys"
>>
>> This doesn't really have anything related to keys, and can be used
>> purely as an ADC.
>>
>> I know this is the compatible that was used for the A10, but I'd
>> rather drop the keys for the the new compatible.
>>
>
> Hi,
> LRADC is named KEYADC in some other SoCs' User Manual(such as R40 User
> Manual V1.0), thus LRADC is related to keys.
>
> Without keys there is another driver named sun4i-gpadc-iio which is
> located at driver/iio/adc/sun4i-gpadc-iio.c
Nope. The general purpose LRADC driver still doesn't land in mainline,
and this driver is for the GPADC related to thermal and resistive
touch screen.
However, the LRADC is possible to be used in general purpose, and
more and more boards are wiring the LRADC pin as a pin on the pinout
(e.g. Pine64 and Lichee Pi Zero) and it may be useful.
And the hardware is not bound to keys -- it's only the Allwinner
reference design which bind the LRADC to keys. Device vendors can
change it if needed.
So it's suggested to have a binding without "-keys".
Maxime, here's another problem: if we have already a GP LRADC driver,
how can we tell the kernel to use it as IIO ADC rather than keys?
Should we introduce a new property for this once ready?
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2017-06-27 15:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-24 2:45 [PATCH v3 0/3] Allwinner A83T R_LRADC support Ziping Chen
2017-06-24 2:45 ` [PATCH v3 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Ziping Chen
[not found] ` <20170624024515.4669-2-techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-26 17:13 ` Maxime Ripard
[not found] ` <20170626171342.pdr7xdiaki4i5bdt-ZC1Zs529Oq4@public.gmane.org>
2019-03-26 20:26 ` 'Ondřej Jirman' via linux-sunxi
2017-06-24 2:45 ` [PATCH v3 2/3] dt-bindings: input: Add R_LRADC " Ziping Chen
[not found] ` <20170624024515.4669-3-techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-26 17:15 ` Maxime Ripard
[not found] ` <20170626171524.cqfyasetpsfr6xfg-ZC1Zs529Oq4@public.gmane.org>
2017-06-27 15:18 ` Ziping Chen
[not found] ` <CAAST=9x+fS41tznuJ9hQ-cQxecKN751=61YkhEt31DvpeqeEcA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-27 15:29 ` icenowy-h8G6r0blFSE [this message]
[not found] ` <24845446a80e3542d90a1111a6141415-h8G6r0blFSE@public.gmane.org>
2017-06-27 17:36 ` Maxime Ripard
2017-06-27 18:15 ` [linux-sunxi] " Alexandre Belloni
2017-06-29 4:45 ` Ziping Chen
[not found] ` <CAAST=9yWEO7qdZvZJPDKhYnqSwT_fJLcyN_f3eGrLQ15EMvSzQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-29 7:53 ` [linux-sunxi] " Maxime Ripard
2017-06-29 12:19 ` Ziping Chen
2017-06-27 17:31 ` Maxime Ripard
2017-06-29 4:35 ` Ziping Chen
[not found] ` <CAAST=9wKRA=EiU6U85N7k9mtnbkfDwa-N5DyfkF88zYk5-EDiQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-29 7:52 ` Maxime Ripard
2017-06-24 2:45 ` [PATCH v3 3/3] ARM: dts: sunxi: " Ziping Chen
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=24845446a80e3542d90a1111a6141415@aosc.io \
--to=icenowy-h8g6r0blfse@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=techping.chan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=wens-jdAy2FN1RRM@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).