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: 9497851 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 404D6606A9 for ; Wed, 4 Jan 2017 21:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3907E282E2 for ; Wed, 4 Jan 2017 21:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C8F928339; Wed, 4 Jan 2017 21:32:51 +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 B0D38282E2 for ; Wed, 4 Jan 2017 21:32:50 +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 1cOt8k-0005io-OD; Wed, 04 Jan 2017 21:30:34 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cOsqA-0000Is-V6 for linux-arm-kernel@bombadil.infradead.org; Wed, 04 Jan 2017 21:11:23 +0000 Received: from mail-wj0-x22b.google.com ([2a00:1450:400c:c01::22b]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cOlj1-0000CR-Vm for linux-arm-kernel@lists.infradead.org; Wed, 04 Jan 2017 13:35:33 +0000 Received: by mail-wj0-x22b.google.com with SMTP id c11so264351913wjx.3 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=JCSclxkVEVAzbNinr9cuZsrZsUiXQRYQhhTG+4NJRuNIRi1lwb08pRnuBojBY6kCqa B31nFxf7J4tdsB+Z7TsAU3bWDTvBKVvk3XVvXN/lablcaq1AU/5gTbSAurGLlUOJYsA5 mdrHpOVxeWAI6RKDu0Pr5pVm8jJPM1FyXNawEIREeh5W6Rfz9Upz3fyVzOT0fYkcjsll kfpIfyqMOWUwALIuRwJkXWpo5vqP00HRCnYabfTORI56VRJnag6h0YbRf6DcHZ0Rlasq vVWW/FV8CM4bLSxeBS49qjwnj3IfwhketHdvvC2C3x8UbuOymE4LfTTBSvmEYSZkRYb7 MkbQ== X-Gm-Message-State: AIkVDXL1sNOUtoVzXYupXHOAh2cws2AWqLyvWX6/G+oc1Or8tyzND98+kjcVClGDuQuLZcsf 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170104_133532_065097_EBA48FE5 X-CRM114-Status: GOOD ( 12.49 ) 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 , "Ivan T. Ivanov" , 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 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(+) 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 {