Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp469061pxb; Thu, 12 Aug 2021 22:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcZMZafQe2hnmFBem/jCaWrbWzMwl5C7JrtiymLHp3PQjRvSU11MMvxaXizqPgAQntSIHl X-Received: by 2002:a05:6638:412a:: with SMTP id ay42mr548340jab.59.1628831667011; Thu, 12 Aug 2021 22:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628831667; cv=none; d=google.com; s=arc-20160816; b=dUl3Pu5/1Mpt+Z6RSBe1DiEc5yIwuLP2uL9qO9hRDdi9y7upgtEqMP7201rTNI8yK3 AwdUE8uB/35h4hignCd8tmTEuMn3HSbLAtz6N6zS/AxiAK8Cj99c8pkNoPIlAjhrx53c uq3oHGyjVkhy5mBtgM9c4VeMidiCae1lUQ9MvviiH33BPfE6IXYyBKhrhd2oTcQfiwAn /U45So5S2Lbu0iPT9Cbxy6rIPV06ygvgQIw584VoVKjm372PRDNgCPCTJfvvJXiqlhao 8UcZiaacU8cJ4EbXqSZrd6sjmPl1rybmyWcvSV6ffK3Q/pTXyzg7hE7MMGtASvW2/XNa QMhw== 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=iow4qBIkzh543oaX53rpvn8T3ecoua+SRqmfJdMOeDI=; b=LtGU1je6dT8jAWawI7CfeBaJPNqMLltYd+OlJxlHFOoLPxh1lR9udKa8cEgX4xq2xG SU3f/8m28oCKtMHpLQmqPCULC0CDyWeTuIpziQk9Ejyp2u9nJiCBlJd+MdXtxBOjY2it hnvw73RJOiXX5atCbczKxtC0/ASEQoO1m7kCPpjr8MKg3ofc5g7eNVKpEndNHviFHLds AYFGd2zp3bGmPQ3YoOg1q4DwtjMAXlLC/4SnPxL9PPZ9yYFhymbzTb57utTeH7gGFNdw dTxX5gAXBOja9ufOBxHxw4G4Qp5DfUlIgYMk22InwmHPcZOypPTqp/sjJytM5cUlECpR OTOQ== 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 p6si366716ilo.37.2021.08.12.22.13.52; Thu, 12 Aug 2021 22:14:27 -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 S234019AbhHME4n (ORCPT + 99 others); Fri, 13 Aug 2021 00:56:43 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:47348 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232790AbhHME4k (ORCPT ); Fri, 13 Aug 2021 00:56:40 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 12 Aug 2021 21:56:14 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Aug 2021 21:56:12 -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; 13 Aug 2021 10:25:48 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 3E9B753FF; Fri, 13 Aug 2021 10:25:47 +0530 (IST) From: satya priya To: Linus Walleij , Rob Herring , Andy Gross , Bjorn Andersson Cc: 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 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Fri, 13 Aug 2021 10:25:31 +0530 Message-Id: <1628830531-14648-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1628830531-14648-1-git-send-email-skakit@codeaurora.org> References: <1628830531-14648-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 --- 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