Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1672313
| From | Ziping Chen <techping.chan@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T |
| Date | 2017-06-22 07:50 +0200 |
| Message-ID | <tV3a9-kd-5@gated-at.bofh.it> (permalink) |
| References | <tUrHz-Q2-3@gated-at.bofh.it> <tUrHA-Q2-11@gated-at.bofh.it> <tUUzU-2OU-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2017-06-22 4:35 GMT+08:00 Maxime Ripard <maxime.ripard@free-electrons.com>: > On Tue, Jun 20, 2017 at 09:44:43PM +0800, Ziping Chen wrote: >> From: Ziping Chen <techping.chan@gmail.com> >> >> Allwinner A83T SoC has a low res adc like the one >> in Allwinner A10 SoC, however, the A10 SoC's vref >> of lradc internally is divided by 2/3 and the A83T >> SoC's isn't, thus add a hardware variant for it to >> be compatible with various devices. > > Where did you get that info from? > > Judging from the user manual, the threshold is actually set to 3/4, > and not 2/3, but there's still one. In the top of page 266 of the A10 User Manual V1.50, it said "2/3 ADC_REF (Level A)" which mean Level A is 2/3 of the vref. In the bottom of page 230 of the A83T User Manual V1.5.1, it said "1.35V (Level A)" meaning that Level A is 1.35V. Oh, it's my fault... It's 3/4 of the vref (A83T's ADC_REF is fixed at 1.8V). So... i will change r_lradc_variant_a83t.divisor_numerator to 3 and r_lradc_variant_a83t.divisor_denominator to 4... Is there any other problems? Thanks, Ziping > > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/3] Allwinner A83T R_LRADC support Ziping Chen <techping.chan@gmail.com> - 2017-06-20 15:50 +0200
[PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Ziping Chen <techping.chan@gmail.com> - 2017-06-20 15:50 +0200
Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-21 22:40 +0200
Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Ziping Chen <techping.chan@gmail.com> - 2017-06-22 07:50 +0200
Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-23 16:50 +0200
Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T Ziping Chen <techping.chan@gmail.com> - 2017-06-23 17:20 +0200
[PATCH v2 3/3] ARM: dts: sunxi: add R_LRADC support for A83T Ziping Chen <techping.chan@gmail.com> - 2017-06-20 15:50 +0200
[PATCH v2 2/3] dt-bindings: input: Add DT bindings documentation for Allwinner A83T R_LRADC Ziping Chen <techping.chan@gmail.com> - 2017-06-20 15:50 +0200
Re: [PATCH v2 2/3] dt-bindings: input: Add DT bindings documentation for Allwinner A83T R_LRADC Rob Herring <robh@kernel.org> - 2017-06-24 00:00 +0200
Re: [PATCH v2 2/3] dt-bindings: input: Add DT bindings documentation for Allwinner A83T R_LRADC Ziping Chen <techping.chan@gmail.com> - 2017-06-24 04:20 +0200
csiph-web