From patchwork Thu Sep 27 15:12:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11769 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2632E23E54 for ; Thu, 27 Sep 2012 15:12:30 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id CB2CCA18852 for ; Thu, 27 Sep 2012 15:12:29 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so4450868iej.11 for ; Thu, 27 Sep 2012 08:12:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=L6g9uO1QmVbodCDMLEinUoWX2AAgSd2y5g6hjT+9MDQ=; b=Qe4857J4dYl0LaN5JarIQ09b2tGK55uOxyQ70J59rhqaCrPzlJF/yV9njYAH6qlS5b CkK2/K2dLdqsFzYn2aa6E8ZAYuwB014WVYqh/cuChv+o7+5zak0pO4wy2RakZuj03/Fs DxWMfmGCOnv3y2/RZTxT+kEpgyx4At5Xj7DRVDyK3/WdHeDfQ6KQgLpFVur0PaO1dKRt bNx5URxxgr2l9fuIhjo/0QhLXVULlOIIBvehsdyv2zRwJWu+0bnL/Sm5ImoDLiFrciq5 /njdz+NVAWNgz1CxLjPv69iNI3wvgZSXpYagrgywimW+EJWjFM81jcjj7lBreoBr7xKv nVTA== Received: by 10.50.150.198 with SMTP id uk6mr3845283igb.43.1348758749471; Thu, 27 Sep 2012 08:12:29 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp420842igc; Thu, 27 Sep 2012 08:12:28 -0700 (PDT) Received: by 10.216.228.39 with SMTP id e39mr1696845weq.197.1348758747914; Thu, 27 Sep 2012 08:12:27 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id a6si41108522wix.26.2012.09.27.08.12.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 08:12:27 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f50.google.com with SMTP id 16so1362375wgi.31 for ; Thu, 27 Sep 2012 08:12:27 -0700 (PDT) Received: by 10.180.91.169 with SMTP id cf9mr4757177wib.1.1348758747302; Thu, 27 Sep 2012 08:12:27 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id t7sm13643780wix.6.2012.09.27.08.12.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 08:12:26 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 6/7] ARM: ux500: Add support for gpio-keys and Proximity Sensor for HREF Date: Thu, 27 Sep 2012 16:12:05 +0100 Message-Id: <1348758726-25336-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1348758726-25336-1-git-send-email-lee.jones@linaro.org> References: <1348758726-25336-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkoL7N6mvWR/8EKjxPjB3j/3Bc3vcI9zW4RXzg7rJIeQq/OJUyCNEBDw0DdNDqkPoDgeOb4 Here we ensure the SFH7741 Proximity Sensor is registered through gpio-keys when booting with Device Tree enabled. Acked-by: Linus Walleij Signed-off-by: Lee Jones --- arch/arm/boot/dts/href.dtsi | 11 +++++++++++ arch/arm/boot/dts/hrefprev60.dts | 6 ++++++ arch/arm/boot/dts/hrefv60plus.dts | 6 ++++++ 3 files changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/href.dtsi b/arch/arm/boot/dts/href.dtsi index 27baa44..592fb9d 100644 --- a/arch/arm/boot/dts/href.dtsi +++ b/arch/arm/boot/dts/href.dtsi @@ -16,6 +16,17 @@ reg = <0x00000000 0x20000000>; }; + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + button@1 { + linux,code = <11>; + label = "SFH7741 Proximity Sensor"; + }; + }; + soc-u9500 { uart@80120000 { status = "okay"; diff --git a/arch/arm/boot/dts/hrefprev60.dts b/arch/arm/boot/dts/hrefprev60.dts index 2dd28b9..128cf1c 100644 --- a/arch/arm/boot/dts/hrefprev60.dts +++ b/arch/arm/boot/dts/hrefprev60.dts @@ -17,6 +17,12 @@ model = "ST-Ericsson HREF (pre-v60) platform with Device Tree"; compatible = "st-ericsson,mop500"; + gpio_keys { + button@1 { + gpios = <&tc3589x_gpio 7 0x4>; + }; + }; + soc-u9500 { i2c@80004000 { tps61052@33 { diff --git a/arch/arm/boot/dts/hrefv60plus.dts b/arch/arm/boot/dts/hrefv60plus.dts index 2a85893..1252d8a 100644 --- a/arch/arm/boot/dts/hrefv60plus.dts +++ b/arch/arm/boot/dts/hrefv60plus.dts @@ -16,4 +16,10 @@ / { model = "ST-Ericsson HREF (v60+) platform with Device Tree"; compatible = "st-ericsson,hrefv60+"; + + gpio_keys { + button@1 { + gpios = <&gpio6 25 0x4>; + }; + }; };