From: Vignesh R <vigneshr@ti.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Tony Lindgren <tony@atomide.com>,
Russell King <linux@armlinux.org.uk>,
Arnd Bergmann <arnd@arndb.de>,
Daniel Hung-yu Wu <hywu@google.com>,
Grant Grundler <grundler@chromium.org>,
S Twiss <stwiss.opensource@diasemi.com>,
Vignesh R <vigneshr@ti.com>,
Moritz Fischer <moritz.fischer@ettus.com>,
Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>,
John Stultz <john.stultz@linaro.org>,
"Andrew F . Davis" <afd@ti.com>,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder
Date: Wed, 24 Aug 2016 13:28:59 +0530 [thread overview]
Message-ID: <20160824075859.30979-3-vigneshr@ti.com> (raw)
In-Reply-To: <20160824075859.30979-1-vigneshr@ti.com>
AM335x ICE board has a rotary-switch connected to PCA9536 I2C GPIO
expander. The position of the rotary-switch is reflected by status of
GPIO lines. Add gpio-decoder node to read these GPIO line status via
gpio-decoder driver and report it as an input event to the system.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
v3: s/decoder,max-value/decoder-max-value
arch/arm/boot/dts/am335x-icev2.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index bc0190e4f10f..426022ee85c7 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -139,6 +139,15 @@
default-state = "off";
};
};
+ gpio-decoder {
+ compatible = "gpio-decoder";
+ gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
+ <&pca9536 2 GPIO_ACTIVE_HIGH>,
+ <&pca9536 1 GPIO_ACTIVE_HIGH>,
+ <&pca9536 0 GPIO_ACTIVE_HIGH>;
+ linux,axis = <0>; /* ABS_X */
+ decoder-max-value = <9>;
+ };
};
&am33xx_pinmux {
--
2.9.2
next prev parent reply other threads:[~2016-08-24 7:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-24 7:58 [PATCH v3 0/2] AM335x-ICE: Add support for rotary switch Vignesh R
2016-08-24 7:58 ` [PATCH v3 1/2] input: misc: Add generic input driver to read encoded GPIO lines Vignesh R
2016-08-25 16:56 ` Dmitry Torokhov
2016-08-29 4:20 ` Vignesh R
2016-08-30 3:25 ` Dmitry Torokhov
2016-08-30 18:45 ` Tony Lindgren
2016-08-24 7:58 ` Vignesh R [this message]
2016-08-24 8:35 ` [PATCH v3 0/2] AM335x-ICE: Add support for rotary switch Daniel Mack
2016-08-24 9:15 ` Vignesh R
[not found] ` <5294e820-4946-a196-549f-76a349b6606d-l0cyMroinI0@public.gmane.org>
2016-08-24 11:01 ` Daniel Mack
2016-09-05 7:50 ` Uwe Kleine-König
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=20160824075859.30979-3-vigneshr@ti.com \
--to=vigneshr@ti.com \
--cc=afd@ti.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=grundler@chromium.org \
--cc=hywu@google.com \
--cc=john.stultz@linaro.org \
--cc=jorge.ramirez-ortiz@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=moritz.fischer@ettus.com \
--cc=robh+dt@kernel.org \
--cc=stwiss.opensource@diasemi.com \
--cc=tony@atomide.com \
/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).