From patchwork Sun Jul 17 10:52:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhushan Shah X-Patchwork-Id: 9233629 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 582E5607FF for ; Sun, 17 Jul 2016 10:55:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48A9826254 for ; Sun, 17 Jul 2016 10:55:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D25F2674A; Sun, 17 Jul 2016 10:55:12 +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 D455626254 for ; Sun, 17 Jul 2016 10:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751108AbcGQKzK (ORCPT ); Sun, 17 Jul 2016 06:55:10 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35996 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbcGQKzJ (ORCPT ); Sun, 17 Jul 2016 06:55:09 -0400 Received: by mail-pa0-f66.google.com with SMTP id ez1so5717575pab.3; Sun, 17 Jul 2016 03:55:08 -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=FuCtAEGS3Vt/5X/zSzFoUM0qUw/LBT//OYDBciufZBc=; b=kT/PyPKsTRztBEvgL6EcWAZtQ4sYrakkjHKFd9DaQqLnnjaXgTQd0zPdLIOFmuWqdb FdV5GJSKuFExdlrFJfGjuXJWBRnlQl5qjOud40/jtooOlfQn4VKDxogef2aSzaedMnET XL3HAtTRJBoJTU9rl+aKnx1aZ1lU9oLYccpDJR3BdyIWj4D52TA91ga69+kF9H/PlaO4 Z6vpvPbws7/ZORUhX29AHrqqm2Dl2DL9Gn5zqxQ2gEdm1urS9cp8VjD/KeYXKNeuoNum 9nk9xNd84/LhE8FcPoELLPUgrfP/Z5i4j856MinJugRx2MgSJL39ab10UaP6TO8xOaX5 q9FQ== X-Gm-Message-State: ALyK8tJ6kj3iXTfoqywVCaS8g22OQdQSbf8EbQau+wbjSQQEDpYcGqItlujhgpOtGvi0Tw== X-Received: by 10.67.3.164 with SMTP id bx4mr47717634pad.9.1468752908331; Sun, 17 Jul 2016 03:55:08 -0700 (PDT) Received: from localhost.localdomain ([1.22.82.185]) by smtp.gmail.com with ESMTPSA id z189sm1108243pfb.34.2016.07.17.03.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jul 2016 03:55:07 -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 3/3] ARM: dts: msm8974-hammerhead: Introduce gpio-keys nodes Date: Sun, 17 Jul 2016 16:22:08 +0530 Message-Id: <20160717105208.9596-4-bshah@kde.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160717105208.9596-1-bshah@kde.org> References: <20160717105208.9596-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 | 30 ++++++++++++++++++++++ 1 file changed, 30 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 29fa0bb..12b6a14 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 / { @@ -252,6 +253,27 @@ 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 { @@ -261,6 +283,14 @@ pins = "gpio21"; function = "normal"; }; + + gpio_keys_pin_a: gpio-keys-active { + pins = "gpio2", "gpio3"; + function = "normal"; + + bias-pull-up; + power-source = ; + }; }; }; };