[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1463648641-6931-3-git-send-email-vigneshr@ti.com>
Date: Thu, 19 May 2016 14:34:01 +0530
From: Vignesh R <vigneshr@...com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Tony Lindgren <tony@...mide.com>
CC: Jonathan Corbet <corbet@....net>, Johan Hovold <johan@...nel.org>,
Sylvain Rochet <sylvain.rochet@...secur.com>,
Vignesh R <vigneshr@...com>,
Masanari Iida <standby24x7@...il.com>,
Ezequiel Garcia <ezequiel@...guardiasur.com.ar>,
S Twiss <stwiss.opensource@...semi.com>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Moritz Fischer <moritz.fischer@...us.com>,
Arnd Bergmann <arnd@...db.de>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Timo Teras <timo.teras@....fi>,
Guido Martinez <guido@...guardiasur.com.ar>,
Clifton Barnes <clifton.a.barnes@...il.com>,
Uwe Kleine-Konig <u.kleine-koenig@...gutronix.de>,
<linux-input@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: [RFC PATCH 2/2] ARM: dts: am335x-icev2: Add rotary-encoder node
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@...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
Powered by blists - more mailing lists