Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp208119pxb; Thu, 2 Sep 2021 02:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIxXmhMiMZuCsT6ipnccval5ku2alBG9dkXwDvhgl3dAPSPcu3uy1zQBsQXdw52gEUiDB4 X-Received: by 2002:a05:6e02:1846:: with SMTP id b6mr1694229ilv.264.1630574248196; Thu, 02 Sep 2021 02:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630574248; cv=none; d=google.com; s=arc-20160816; b=ZdsFjo7tGclILv8i9Bh0sIzHwqBGUsxXnD9K81IrV7ACf3gxThIq5PSjQFoRzqvgYD oEggDC+24dj4cwRbPz6p0rXLtENfXdXmCgiKwhHVEhZHKOwv/v0V0NJiaKQS2Zs7yR+m WncfPQENKZYBA1maTYoS4hqAe+0DsCvs4e9hxdzv4m9Nz1S+pDIaUv7AksuffMJ4PvQs NK7J6aiTYEbhMJCJh1qWidXshIoY68BN84U/337Qae2vO43sDGeeoVk/bCvFrn/XuQK4 EdVi/rAjov5PKAO/Dxfa1YVimdlaI6UNioIxF+A3b2lyqbDJOBA4FL3Ah9BTpvrXsarB +USw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=hAem0yXTW0fSScwqaOkOb7VfAFZ/O9j4145Miek5HeE=; b=HHoUQcr0vNu6rgaBpa95T8oFqyivAAz90Kq3XSwK/LLqs6SiRjfgRVAO9HiTVb302S k6EiTIOpSCdZuKAziJfo0hwu6+nE2/k84SEfYkNOsy8NJ0L13fMuOd3ZcuDsUNFMi0AW LADWrA3B1XaQbuyBlnK0veqsxwJWsSgguhNa1tSj134oOHBNPYxJSZfli5GAbVl0uNRL AFp/+S/rraHFDacE8oaCmY2HBPddRsXgFlH78mHpLTwUIf8+N5KAwVOesUro1t2j0H99 2Zugz+Eb9sjp1GlRuoxe8o0V6YrUHA2qgTkH3+tvHBAXh4m6CaihtZgxI0eO3A0Lazc+ uAGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si1529060ilr.109.2021.09.02.02.17.16; Thu, 02 Sep 2021 02:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245206AbhIBJQr (ORCPT + 99 others); Thu, 2 Sep 2021 05:16:47 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:52448 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245013AbhIBJQ3 (ORCPT ); Thu, 2 Sep 2021 05:16:29 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 02 Sep 2021 02:15:30 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Sep 2021 02:15:29 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 02 Sep 2021 14:45:09 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id A8B684FD2; Thu, 2 Sep 2021 14:45:08 +0530 (IST) From: satya priya To: Linus Walleij , Rob Herring , Andy Gross , Bjorn Andersson Cc: Stephen Boyd , David Collins , kgunda@codeaurora.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, satya priya Subject: [PATCH V2 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Thu, 2 Sep 2021 14:45:06 +0530 Message-Id: <1630574106-3394-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1630574106-3394-1-git-send-email-skakit@codeaurora.org> References: <1630574106-3394-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pm7325 PMIC gpio support for vol+ on sc7280-idp. Signed-off-by: satya priya --- Changes in V2: - No changes. arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index 371a2a9..52bcbbc 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -199,6 +199,37 @@ modem-init; }; +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +}; + +&pm7325_gpios { + key_vol_up_default: key_vol_up_default { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + power-source = <0>; + qcom,drive-strength = <3>; + }; +}; + &pmk8350_vadc { pmk8350_die_temp { reg = ; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation