From patchwork Thu May 19 09:04:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 9125111 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B18CD9F30C for ; Thu, 19 May 2016 09:06:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C631820219 for ; Thu, 19 May 2016 09:06:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1FC2201B9 for ; Thu, 19 May 2016 09:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754173AbcESJGA (ORCPT ); Thu, 19 May 2016 05:06:00 -0400 Received: from bear.ext.ti.com ([198.47.19.11]:41864 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbcESJF5 (ORCPT ); Thu, 19 May 2016 05:05:57 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id u4J94qOt020882; Thu, 19 May 2016 04:04:52 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u4J94pUO013228; Thu, 19 May 2016 04:04:52 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Thu, 19 May 2016 04:04:51 -0500 Received: from uda0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u4J94Su4016295; Thu, 19 May 2016 04:04:45 -0500 From: Vignesh R To: Dmitry Torokhov , Rob Herring , Tony Lindgren CC: Jonathan Corbet , Johan Hovold , Sylvain Rochet , Vignesh R , Masanari Iida , Ezequiel Garcia , S Twiss , Krzysztof Kozlowski , Moritz Fischer , Arnd Bergmann , Geert Uytterhoeven , Timo Teras , Guido Martinez , Clifton Barnes , Uwe Kleine-Konig , , , , , , Subject: [RFC PATCH 2/2] ARM: dts: am335x-icev2: Add rotary-encoder node Date: Thu, 19 May 2016 14:34:01 +0530 Message-ID: <1463648641-6931-3-git-send-email-vigneshr@ti.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463648641-6931-1-git-send-email-vigneshr@ti.com> References: <1463648641-6931-1-git-send-email-vigneshr@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP AM335x ICE board has a rotary-encoder connected to PCA9536 I2C GPIO expander. Add DT entry for the same. Signed-off-by: Vignesh R --- 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 {