From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh R Subject: [PATCH v2 0/2] AM335x-ICE: Add support for rotary switch Date: Tue, 23 Aug 2016 11:46:47 +0530 Message-ID: <20160823061649.3394-1-vigneshr@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Dmitry Torokhov Cc: Mark Rutland , Moritz Fischer , John Stultz , Vignesh R , Arnd Bergmann , devicetree@vger.kernel.org, Tony Lindgren , Daniel Hung-yu Wu , Russell King , linux-kernel@vger.kernel.org, Grant Grundler , Rob Herring , S Twiss , linux-input@vger.kernel.org, Jorge Ramirez-Ortiz , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-input@vger.kernel.org This series adds support for rotary-switch on AM335x-ICE that is connected to TI PCA9536 I2C GPIO expander. First patch adds new generic driver to read status of group of GPIO lines and report the value as an input event. The second patch adds DT entries for the same. v1: https://lkml.org/lkml/2016/8/12/7 Vignesh R (2): input: misc: Add generic input driver to read encoded GPIO lines ARM: dts: am335x-icev2: Add nodes for gpio-decoder .../devicetree/bindings/input/gpio-decoder.txt | 23 ++++ arch/arm/boot/dts/am335x-icev2.dts | 9 ++ drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio_decoder.c | 130 +++++++++++++++++++++ 5 files changed, 175 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio-decoder.txt create mode 100644 drivers/input/misc/gpio_decoder.c -- 2.9.2