From patchwork Mon Nov 19 14:45:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1765011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id CC2E33FCDE for ; Mon, 19 Nov 2012 14:49:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TaScO-0005L5-Hx; Mon, 19 Nov 2012 14:46:37 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TaSbe-0004yA-L7 for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2012 14:45:52 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDQ004GPP088SI0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2012 23:45:47 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-3b-50aa461ba93e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9E.2C.01231.B164AA05; Mon, 19 Nov 2012 23:45:47 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDQ009O9OZWSZ80@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2012 23:45:47 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: exynos4210-trats: Add nodes for GPIO keys available on Trats Date: Mon, 19 Nov 2012 15:45:26 +0100 Message-id: <1353336329-20818-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1353336329-20818-1-git-send-email-t.figa@samsung.com> References: <1353336329-20818-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jAV1pt1UBBvOnG1lsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6Mp0f6mQtWcVVMbnrL0sDYxNHFyMkhIWAicXjlDmYIW0ziwr31 bF2MXBxCAosYJVoftrJDOJuZJNYuPMUCUsUmoCbxueERG4gtIqAq8bltAVgRs8A+Rol3N2eD FQkLxEq0f/0IZrMAFU18sZIJxOYVcJJYO+UZK8Q6eYmn9/vABnEKOEu837IIzBYCqjlx6zHz BEbeBYwMqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNzNzGCvf5MagfjygaLQ4wCHIxKPLwX9qwM EGJNLCuuzD3EKMHBrCTC+0ppVYAQb0piZVVqUX58UWlOavEhRmkOFiVx3maPlAAhgfTEktTs 1NSC1CKYLBMHp1QDYzlTW/3XVtV5ykcc7m9aJvBWLOXp/Je+P3wXJCp0VK1avvT1L4kHjRlX RPdU++648piJ4RDbj1tr9S5t3OivFvC5U2DG7v2R13f2P2ifNEny5luZZ1Vt/crsokxJj2Yd aFt+KCUmaPujBP5vf3s3CQkdUsywP/L6O9P0I8k2Dgu27Pu3JLf2z0QlluKMREMt5qLiRAAn b0F19gEAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121119_094551_068392_BC73222B X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, t.figa@samsung.com, tomasz.figa@gmail.com, kyungmin.park@samsung.com, thomas.abraham@linaro.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch extends dts file of Samsung Trats board to add support for available GPIO keys using gpio-keys driver. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- arch/arm/boot/dts/exynos4210-trats.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index 661854b..dcfa04b 100644 --- a/arch/arm/boot/dts/exynos4210-trats.dts +++ b/arch/arm/boot/dts/exynos4210-trats.dts @@ -65,6 +65,39 @@ status = "okay"; }; + gpio-keys { + compatible = "gpio-keys"; + + vol-down-key { + gpios = <&gpx2 1 1>; + linux,code = <114>; + label = "volume down"; + debounce-interval = <10>; + }; + + vol-up-key { + gpios = <&gpx2 0 1>; + linux,code = <115>; + label = "volume up"; + debounce-interval = <10>; + }; + + power-key { + gpios = <&gpx2 7 1>; + linux,code = <116>; + label = "power"; + debounce-interval = <10>; + gpio-key,wakeup; + }; + + ok-key { + gpios = <&gpx3 5 1>; + linux,code = <352>; + label = "ok"; + debounce-interval = <10>; + }; + }; + i2c@138B0000 { samsung,i2c-sda-delay = <100>; samsung,i2c-slave-addr = <0x10>;