From patchwork Wed Jan 4 13:35:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 89841 Delivered-To: patch@linaro.org Received: by 10.182.224.138 with SMTP id rc10csp215405obc; Wed, 4 Jan 2017 05:36:09 -0800 (PST) X-Received: by 10.98.36.4 with SMTP id r4mr60023744pfj.88.1483536969051; Wed, 04 Jan 2017 05:36:09 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g29si43203632plj.102.2017.01.04.05.36.08; Wed, 04 Jan 2017 05:36:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967832AbdADNgA (ORCPT + 7 others); Wed, 4 Jan 2017 08:36:00 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38572 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966653AbdADNfQ (ORCPT ); Wed, 4 Jan 2017 08:35:16 -0500 Received: by mail-wm0-f53.google.com with SMTP id k184so260927876wme.1 for ; Wed, 04 Jan 2017 05:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YEW4Isvgs7btabnQ+5usuuMv3DCby5hoWMd7akiJ7bA=; b=Sl+ylm9TZREfZdPyzKWN+RTUVpG3QnB71LKtVIUcj2miKXDBQdF4WE3FyXlgk9BQI/ +LOvAf1jK/cLDviHx7CVxkLICL2cH9emr7V6l6qGC8Q3jartZutdFw8cq/HoS4Z3A3Gu WZffmiJbGVz7Q8wvoK1MSs5APfWO7DDHFegLA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YEW4Isvgs7btabnQ+5usuuMv3DCby5hoWMd7akiJ7bA=; b=eaOEWHs6Dc0AfH/5IppPshIn4Jj9RwrqK0EoKgZahVWsk2kPybrf3WSkdqxiUIrOQf louVHF8Ie+LAkpcZ1dHbGSX/RRtFAAGX+BcsiEhPZgb0uL5LXwU9M+3ylSm1/Vu9nP8Q wb10TZegO6oGjICuBTu9hwXEYZ+ACQkYxgUfENUtQ9YszS49bXsnwgfA1p4wsAceRJwb lVuTT3L2D3hlSRQoq/aVElG2LOTD6y1kwDT3d/AyVef7wH2pKnQRnoqnfeV9lIuweHYs x+mw6Yz997+HFHqdnan28HWbKHWUm6i1yg/gTlKZMHNXnMdW58hIobwwIxcLmXIJ5q1U kFhw== X-Gm-Message-State: AIkVDXJKLntTIcYrwWJThxvr4VbGExbKp2EEYJZcJXWZ2XwG0k5PxG+Coa/ElqKQCrst0nvc X-Received: by 10.28.141.18 with SMTP id p18mr55858529wmd.31.1483536914599; Wed, 04 Jan 2017 05:35:14 -0800 (PST) Received: from localhost.localdomain (host-2-98-102-117.as13285.net. [2.98.102.117]) by smtp.gmail.com with ESMTPSA id kq6sm64861741wjc.7.2017.01.04.05.35.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jan 2017 05:35:13 -0800 (PST) From: Srinivas Kandagatla To: Andy Gross Cc: David Brown , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 6/6] arm64: dts: db820c: add support to volume up key Date: Wed, 4 Jan 2017 13:35:02 +0000 Message-Id: <1483536902-21450-7-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483536902-21450-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1483536902-21450-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds support to volume-up key found on the board. Signed-off-by: Srinivas Kandagatla --- .../arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi | 12 ++++++++++++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi index 6c1628c..b1142c4 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi @@ -12,4 +12,16 @@ power-source = <2>; // PM8994_GPIO_S4, 1.8V }; }; + + volume_up_gpio: pm8996_gpio2 { + pinconf { + pins = "gpio2"; + function = "normal"; + input-enable; + drive-push-pull; + bias-pull-up; + qcom,drive-strength = ; + power-source = ; // 1.8V + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 422959b..d2196fc 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -15,6 +15,8 @@ #include "pm8994.dtsi" #include "apq8096-db820c-pins.dtsi" #include "apq8096-db820c-pmic-pins.dtsi" +#include +#include / { aliases { @@ -87,4 +89,21 @@ status = "okay"; }; }; + + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&volume_up_gpio>; + + button@0 { + label = "Volume Up"; + linux,code = ; + gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>; + }; + }; };