Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323226

Re: [PATCH v2 3/3] input: touchscreen: ad7879: add device tree support

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 3/3] input: touchscreen: ad7879: add device tree support
Date 2016-02-01 16:20 +0100
Message-ID <qXoqL-4K8-27@gated-at.bofh.it> (permalink)
References <qWqXE-2e9-1@gated-at.bofh.it> <qWqXE-2e9-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jan 29, 2016 at 03:48:15PM -0800, Stefan Agner wrote:
> Add device tree support for the I2C and SPI variant of AD7879(-1).
> This allows to specify the touchscreen controller as a I2C client
> node or SPI slave device. Most of the options available in platform
> data are also available as device tree properties, the only exception
> being GPIO capabilities, which can not be activated through device
> tree currently.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
> Changes since v1:
> - Move device tree parsing to main driver file ad7879.c
> - Use common touchscreen_parse_properties for common properties
> - Use device_property_* API
> - Use struct ad7879 directly to store parsed values
> - Support SPI variant through device tree too (untested)
> - Add vendor prefix to vendor specific dt properties
> 
>  .../bindings/input/touchscreen/ad7879.txt          |  53 ++++++++

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

>  drivers/input/touchscreen/ad7879-i2c.c             |  10 ++
>  drivers/input/touchscreen/ad7879-spi.c             |  10 ++
>  drivers/input/touchscreen/ad7879.c                 | 141 +++++++++++++--------
>  4 files changed, 160 insertions(+), 54 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ad7879.txt

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/3] input: touchscreen: ad7879: move header to platform_data directory Stefan Agner <stefan@agner.ch> - 2016-01-30 00:50 +0100
  [PATCH v2 3/3] input: touchscreen: ad7879: add device tree support Stefan Agner <stefan@agner.ch> - 2016-01-30 00:50 +0100
    Re: [PATCH v2 3/3] input: touchscreen: ad7879: add device tree  support Rob Herring <robh@kernel.org> - 2016-02-01 16:20 +0100
  [PATCH v2 2/3] input: touchscreen: ad7879: fix default x/y axis assignment Stefan Agner <stefan@agner.ch> - 2016-01-30 00:50 +0100

csiph-web