# Re: \[PATCH v6\] input: add ADC resistor ladder driver

- From: Rob Herring \<robh@kernel.org\>
- Date: 2016-08-29 00:33:28 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2016/08/8127218
- Thread: https://ratatoskr.run/linux-devicetree/2016/08/8126939/t.md

```text
On Tue, Aug 23, 2016 at 02:18:16PM +0200, Alexandre Belloni wrote:
> A common way of multiplexing buttons on a single input in cheap devices is
> to use a resistor ladder on an ADC. This driver supports that configuration
> by polling an ADC channel provided by IIO.
> 
> Acked-by: Jonathan Cameron <jic23@kernel.org>
> Signed-off-by: Alexandre Belloni <redacted>
> ---
> Changes in v6:
>  - switched to microvolts
> 
> Changes in v5:
>  - Dmitry's changes
>  - s/mvolt/millivolt/
> 
> 
>  .../devicetree/bindings/input/adc-keys.txt         |  49 +++++

Acked-by: Rob Herring <robh@kernel.org>

>  drivers/input/keyboard/Kconfig                     |  15 ++
>  drivers/input/keyboard/Makefile                    |   1 +
>  drivers/input/keyboard/adc-keys.c                  | 210 +++++++++++++++++++++
>  4 files changed, 275 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/adc-keys.txt
>  create mode 100644 drivers/input/keyboard/adc-keys.c
```
