From patchwork Fri Jul 29 06:09:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhushan Shah X-Patchwork-Id: 9252113 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0309060757 for ; Fri, 29 Jul 2016 06:10:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E80B127F89 for ; Fri, 29 Jul 2016 06:10:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB38A27F96; Fri, 29 Jul 2016 06:10:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7911527F89 for ; Fri, 29 Jul 2016 06:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752312AbcG2GKX (ORCPT ); Fri, 29 Jul 2016 02:10:23 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:36457 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbcG2GKV (ORCPT ); Fri, 29 Jul 2016 02:10:21 -0400 Received: by mail-pa0-f65.google.com with SMTP id ez1so4665690pab.3; Thu, 28 Jul 2016 23:10:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xwyRx4K8rObORmiDI2nWNoPgzvKUWQ3uNGig+mwwVPQ=; b=j9JmzRZ05PkAb1dW7XpY+zLBqOU641SSKnqaL/gdo6dDsjwYAtxPhKD0mVKuNVTYHM dB5od9QeGMQ57eC1rqTjCB9jERq8HHzH3DvX+C9/p0NphDTqE9IJGaN5XZhDfhfWxLg/ +tJ80BqvvhZnvh+g+BgyHzPWf1VOPg4suPIWTN4nz2MnUUsfalxqRMqE+qMxYjjwhD1X qA21xXG+2ER95qWL4SRg9yWOUyCClkUzOFI15EFvE2yGVJ3SaDTZcCWi+pSvwfZshr5a Zl6Z4Y8/qxlU00NOdZs6oPnufyLwlTEjpor/yzcXRDKIWpL3Lzs7gL0BQ8BiJ8xNaOrV P/jQ== X-Gm-Message-State: AEkoouv0MX2OOP78d0xYnEVCPg3hFJbyGruY4DdZgRI2CohQOD16kbcJUsI9E97PGYP+Zw== X-Received: by 10.66.142.43 with SMTP id rt11mr62258897pab.80.1469772620804; Thu, 28 Jul 2016 23:10:20 -0700 (PDT) Received: from localhost.localdomain ([1.22.81.179]) by smtp.gmail.com with ESMTPSA id c8sm21414082pfe.39.2016.07.28.23.10.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jul 2016 23:10:20 -0700 (PDT) From: Bhushan Shah Cc: Bhushan Shah , Andy Gross , Bjorn Andersson , David Brown , Rob Herring , Mark Rutland , Russell King , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 5/5] ARM: dts: msm8974-hammerhead: Introduce gpio-keys nodes Date: Fri, 29 Jul 2016 11:39:10 +0530 Message-Id: <20160729060910.16943-6-bshah@kde.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160729060910.16943-1-bshah@kde.org> References: <20160729060910.16943-1-bshah@kde.org> To: unlisted-recipients:; (no To-header on input) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the gpio-keys node for keys of hammerhead and pinctrl state associated with it. Cc: Andy Gross Cc: Bjorn Andersson Cc: David Brown Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: linux-arm-msm@vger.kernel.org Cc: linux-soc@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Bhushan Shah Reviewed-by: Bjorn Andersson --- .../dts/qcom-msm8974-lge-nexus5-hammerhead.dts | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index df957cb..c0fb4a6 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -2,6 +2,7 @@ #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" #include +#include #include / { @@ -223,4 +224,39 @@ status = "ok"; }; + gpio-keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pin_a>; + + volume-up { + label = "volume_up"; + gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + }; + + volume-down { + label = "volume_down"; + gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + }; + }; +}; + +&spmi_bus { + pm8941@0 { + gpios@c000 { + gpio_keys_pin_a: gpio-keys-active { + pins = "gpio2", "gpio3"; + function = "normal"; + + bias-pull-up; + power-source = ; + }; + }; + }; };