From patchwork Wed Jan 4 13:34:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 89839 Delivered-To: patch@linaro.org Received: by 10.182.224.138 with SMTP id rc10csp215117obc; Wed, 4 Jan 2017 05:35:27 -0800 (PST) X-Received: by 10.84.140.133 with SMTP id 5mr110617544plt.162.1483536927815; Wed, 04 Jan 2017 05:35:27 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t135si72445619pgc.127.2017.01.04.05.35.27; Wed, 04 Jan 2017 05:35:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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 linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S967782AbdADNfR (ORCPT + 9 others); Wed, 4 Jan 2017 08:35:17 -0500 Received: from mail-wj0-f176.google.com ([209.85.210.176]:35314 "EHLO mail-wj0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759167AbdADNfL (ORCPT ); Wed, 4 Jan 2017 08:35:11 -0500 Received: by mail-wj0-f176.google.com with SMTP id i20so10193102wjn.2 for ; Wed, 04 Jan 2017 05:35:11 -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=FzYAfmRGTWkTe5aCC3E0MH+SAmGZfSjx5GwueCto2H4=; b=TotDOJrRm4C5r4jWt/Zpsv3y1PL4rt0ONHteQByibNi7rdHMOafss4q0DeHEyWzF3V ASV75OpUSExZ4lOHU8Fg13vMx1AOnWL25Q2vH3Ze6qvMEo1eK0mpC/bBSUHdVi7pW69K x8OktiD+LBB9YsTGG+ICfANs4F6pVYkNnkVUg= 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=FzYAfmRGTWkTe5aCC3E0MH+SAmGZfSjx5GwueCto2H4=; b=EHB5P3Vie3m372zHJnM61dBkrcT4M5kKmc1Dj3BcOsObdnYsidpGcRG2EhkfFqTUaI di3q9E6aj7KY+ZYh0owPlbFgfal5gmwU+6HX0kX3p5Qr1+Lv7laRwlceAbsZfqnUSUi9 H86VAuzxBR+ysiSm+yQBNzJQswa+2o0m2p4zEOIVP3prla1WiuawK9MJWMoTpUICktsk vJOHoCyrYUayhM1a753QcaIyHLnd2fGuioJy81WBynjfqSHEZ+VCwzuntCrws/uupnA2 sUyXxphsuhVoV19S01uL03pPCnLSQvr3FtKILAsRl/KhB321xVd3T68LBSTXWY5mZaql EWkg== X-Gm-Message-State: AIkVDXI3UYZ++Y4LpdoZ0b73OVO+gqXrBqSVxGM2ANfi43lHOd7jMmpO5DoaOpwsFplAYzZc X-Received: by 10.194.58.7 with SMTP id m7mr45653763wjq.73.1483536910517; Wed, 04 Jan 2017 05:35:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jan 2017 05:35:09 -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, "Ivan T. Ivanov" Subject: [PATCH 3/6] arm64: dts: apq8016-sbc: Add Volume Up key device node Date: Wed, 4 Jan 2017 13:34:59 +0000 Message-Id: <1483536902-21450-4-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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: "Ivan T. Ivanov" VOL/ZOOM+ button on DB410c is connected to SoC GPIO 104. Add support for it. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 13 +++++++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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/apq8016-sbc-soc-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi index e1e6c6b..185388d 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi @@ -72,4 +72,17 @@ bias-disable; }; }; + + msm_key_volp_n_default: msm_key_volp_n_default { + pinmux { + function = "gpio"; + pins = "gpio107"; + }; + pinconf { + pins = "gpio107"; + drive-strength = <8>; + input-enable; + bias-pull-up; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 5ab277f..d05382a 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -15,6 +15,8 @@ #include "pm8916.dtsi" #include "apq8016-sbc-soc-pins.dtsi" #include "apq8016-sbc-pmic-pins.dtsi" +#include +#include #include / { @@ -341,6 +343,22 @@ }; }; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&msm_key_volp_n_default>; + + button@0 { + label = "Volume Up"; + linux,code = ; + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; + }; + }; }; &wcd_codec {