From: Vignesh R <vigneshr@ti.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Tony Lindgren <tony@atomide.com>
Cc: Jonathan Corbet <corbet@lwn.net>, Johan Hovold <johan@kernel.org>,
Sylvain Rochet <sylvain.rochet@finsecur.com>,
Vignesh R <vigneshr@ti.com>,
Masanari Iida <standby24x7@gmail.com>,
Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>,
S Twiss <stwiss.opensource@diasemi.com>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Moritz Fischer <moritz.fischer@ettus.com>,
Arnd Bergmann <arnd@arndb.de>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Timo Teras <timo.teras@iki.fi>,
Guido Martinez <guido@vanguardiasur.com.ar>,
Clifton Barnes <clifton.a.barnes@gmail.com>,
Uwe Kleine-Konig <u.kleine-koenig@pengutronix.de>,
<linux-input@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>,
<linux-omap@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: [RFC PATCH 2/2] ARM: dts: am335x-icev2: Add rotary-encoder node
Date: Thu, 19 May 2016 14:34:01 +0530 [thread overview]
Message-ID: <1463648641-6931-3-git-send-email-vigneshr@ti.com> (raw)
In-Reply-To: <1463648641-6931-1-git-send-email-vigneshr@ti.com>
AM335x ICE board has a rotary-encoder connected to PCA9536 I2C GPIO
expander. Add DT entry for the same.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
depends on patches to Add TI PCA9536 node posted to linux-gpio:
http://www.spinics.net/lists/arm-kernel/msg505194.html
arch/arm/boot/dts/am335x-icev2.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index 7d8b8fefdf08..672dccbf203d 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -139,6 +139,17 @@
default-state = "off";
};
};
+
+ rotary-in0 {
+ compatible = "rotary-encoder";
+ 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 */
+ rotary-encoder,steps = <10>;
+ rotary-encoder,absolute-encoder;
+ };
};
&am33xx_pinmux {
--
2.8.2
prev parent reply other threads:[~2016-05-19 9:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 9:03 [RFC PATCH 0/2] AM335x-ICE: Add support for rotary-encoder Vignesh R
2016-05-19 9:04 ` [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R
2016-05-19 11:25 ` Krzysztof Kozlowski
2016-05-19 11:44 ` Vignesh R
2016-05-20 16:34 ` Dmitry Torokhov
2016-05-23 9:18 ` R, Vignesh
2016-05-25 8:44 ` Vignesh R
2016-06-16 10:47 ` Vignesh R
2016-07-19 13:04 ` R, Vignesh
2016-05-20 21:49 ` Rob Herring
2016-05-22 10:26 ` Uwe Kleine-König
2016-05-23 11:18 ` R, Vignesh
2016-05-23 13:18 ` Uwe Kleine-König
2016-05-24 5:09 ` Vignesh R
2016-05-24 8:20 ` Uwe Kleine-König
2016-05-25 8:44 ` Vignesh R
2016-05-19 9:04 ` Vignesh R [this message]
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=1463648641-6931-3-git-send-email-vigneshr@ti.com \
--to=vigneshr@ti.com \
--cc=arnd@arndb.de \
--cc=clifton.a.barnes@gmail.com \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=ezequiel@vanguardiasur.com.ar \
--cc=geert@linux-m68k.org \
--cc=guido@vanguardiasur.com.ar \
--cc=johan@kernel.org \
--cc=k.kozlowski@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=moritz.fischer@ettus.com \
--cc=robh+dt@kernel.org \
--cc=standby24x7@gmail.com \
--cc=stwiss.opensource@diasemi.com \
--cc=sylvain.rochet@finsecur.com \
--cc=timo.teras@iki.fi \
--cc=tony@atomide.com \
--cc=u.kleine-koenig@pengutronix.de \
/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).