From patchwork Tue Jul 19 05:04:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhushan Shah X-Patchwork-Id: 9235917 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 CE3DA6075D for ; Tue, 19 Jul 2016 05:07:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BED62201F5 for ; Tue, 19 Jul 2016 05:07:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3A5626D08; Tue, 19 Jul 2016 05:07:06 +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 54836201F5 for ; Tue, 19 Jul 2016 05:07:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbcGSFHF (ORCPT ); Tue, 19 Jul 2016 01:07:05 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:34072 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbcGSFHE (ORCPT ); Tue, 19 Jul 2016 01:07:04 -0400 Received: by mail-pa0-f68.google.com with SMTP id hh10so600503pac.1; Mon, 18 Jul 2016 22:07:03 -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=V0IOjQZOnWEwcyFTzm4I2pHfQRsiZhh60T+CyRNf5Pg=; b=V4KE5wlI4iDbwmNffL26uiQ9me9gJIMu2kcxTnRog6sDL0Gu+v+zfLg1xALWgISvJP Nen+n/ecn83g4VevWAS+ZI1SFifMAqcNvCbe97g2uBrX0duXsq01IxTdi80/TKCvtFvl qvjjCrRvuVr/ajVtUlA7mGf4o84b7LtsHxvSIwIqyB9hj0He/lolTS95wt1GRxPoUUrs M5lpCsHjSErxQYxUXPYFGi5rzNaMPCo+Zun7hEeSHI6kjYnGWqUxW1cm50HBAEzYjECB /ipJnyhQSd6ERiVtww1c3LebE9NzP4W1cLD6wh7/PHUN6YhC+x6diIEUvJVsmNPNIJz0 g3oA== X-Gm-Message-State: ALyK8tKIo7znNL/OUEl5mrDzSfpcmGelvJpctvYL4+68NIx+IXfYeZsoH1A7fxJRAhD+1Q== X-Received: by 10.66.122.33 with SMTP id lp1mr61887574pab.80.1468904823518; Mon, 18 Jul 2016 22:07:03 -0700 (PDT) Received: from localhost.localdomain ([1.22.81.2]) by smtp.gmail.com with ESMTPSA id e10sm1596605pay.39.2016.07.18.22.06.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 22:07:02 -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 v2 5/5] ARM: dts: msm8974-hammerhead: Introduce gpio-keys nodes Date: Tue, 19 Jul 2016 10:34:14 +0530 Message-Id: <20160719050414.31704-6-bshah@kde.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160719050414.31704-1-bshah@kde.org> References: <20160719050414.31704-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 066a8dc..68f071f 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 / { @@ -232,4 +233,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 = ; + }; + }; + }; };