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: 9497949 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 E1E3560237 for ; Wed, 4 Jan 2017 22:23:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C604727BFC for ; Wed, 4 Jan 2017 22:23:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAAAB2832D; Wed, 4 Jan 2017 22:23:58 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6AE2A27BFC for ; Wed, 4 Jan 2017 22:23:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cOtxE-0007cG-RL; Wed, 04 Jan 2017 22:22:44 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cOsq9-0007q6-OC for linux-arm-kernel@bombadil.infradead.org; Wed, 04 Jan 2017 21:11:22 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cOlj6-0000Ce-2U for linux-arm-kernel@lists.infradead.org; Wed, 04 Jan 2017 13:35:37 +0000 Received: by mail-wm0-x22a.google.com with SMTP id a197so408182846wmd.0 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=Yj92DeRmKeWqd06qS456tlCcsAcCmOIm5wI2L5X/sO0KYzy0foNXHA9fcRkC3k51dr mI2qnjr4H8cWHuOl0a02AKWAJ6kODTazp1e++0ZFVDHTEPg0gZm7GmB/2l/n6TiuaCq7 8BeRPkxrgPp4irca1DhEa+gojYWTBj6ngzVRPYN27vpQcbfORNJQNMNL9OpYMeIQNLME 4vtCxk5sFlvAPI0LcN++ZuZAdykXIu7SDB0kBoXPsaI7Uo0L2pDTEZsFVuVgZ9lAikz1 mI0DkHFZwCmeuEm/NFNnLKUN96srRpT4crwZ2WLqOFwL1wo5t7IJ6QmwRSfe2e5DvzaT XxUw== X-Gm-Message-State: AIkVDXKjx3T/NhKiB+ieUeOFdU6ICwTV5rlTYXPvPtwhheJs8UYFFiGC7iPbf7wIBrAnrkl4 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170104_133536_152341_3FDEA20A X-CRM114-Status: GOOD ( 13.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, David Brown , Rob Herring , Srinivas Kandagatla , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>; + }; + }; };