Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp235581pxb; Wed, 8 Sep 2021 23:04:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG5f69hBEmOC37SdD0uTn6iQ7hOF3EhYSbaXrtnDYEx2vdoAvcJ6hm0p1UcJ0ggUE93pab X-Received: by 2002:a17:906:b14d:: with SMTP id bt13mr1565767ejb.39.1631167447731; Wed, 08 Sep 2021 23:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631167447; cv=none; d=google.com; s=arc-20160816; b=wfZQs02U1oAN8B5ZkKRsseTFXFS6Ou83BWR8SD+ZPh6DVc8030cVJxY/ywBX98LiwZ tzYXQhX/qb9MwYPLNw7IRBEIBS2LQmm61qgxaMUcgSeJyb/jrmnaSjV7x/9xICwNHZ97 wZ3RkBX8Tmng2IPb1rltYRjYo3fuEt8zzL2e+aPHZPfPbbqUGfEarakpAGrhc60r/yQA fyg7ir5D4EYLVk2jj8xBPr5Q0qHfJwlBD+JruOD2VD+vy+wJdnPevC3GihFFEUDAHMSG VHRnq0W6jKe1Y0MAAtS+N3dMeAxIhf2y3TrKeMtLDg701JdpKaAPs7uCUi+HN86GRkbU R8rg== 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=x60suPK0Z9Dc4CkMDYnZAKcb5uIJD4vEKERpxk5xZeo=; b=HPnKjm2yx68GWv0wG7nZsRkQsyifOSYkvumyZTaQCLtNM4zpT8CtHBJs1qc/o2yhCe sy9qoKKc6/eiXcLJXFJmHvuY7Hm5HKFt9Q2fZr22PU+VOAzmDvIF3ASPVvcDHVh9+jTc prUR8Tuk0LJOCIyv80Eki7ZBU37+v+9uo2Z3g+Cj5O2nBcO5jpAzoTNhKT6ijyHFY070 vo6ituznoRXe+PXNow30zzzh1fQNtZOuKrDnXaYdCoLTI1N3Ujsz//UnJokr6csT2cxe WaAOoAEepHv8jGqtdgEu1y0hPSudZAJT+CyGUVxEh5knnLfRX2J/i63nOBVs8obkqXXP 9wig== 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 oz41si1121144ejc.175.2021.09.08.23.03.42; Wed, 08 Sep 2021 23:04:07 -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 S1350968AbhIIGDN (ORCPT + 99 others); Thu, 9 Sep 2021 02:03:13 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:42881 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350876AbhIIGDM (ORCPT ); Thu, 9 Sep 2021 02:03:12 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Sep 2021 23:02:03 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Sep 2021 23:02:01 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 09 Sep 2021 11:31:44 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 397935460; Thu, 9 Sep 2021 11:31:43 +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 V3 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Thu, 9 Sep 2021 11:31:28 +0530 Message-Id: <1631167288-27627-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631167288-27627-1-git-send-email-skakit@codeaurora.org> References: <1631167288-27627-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. Changes in V3: - Sorted the nodes alphabetically. 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..434c1c6 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -239,6 +239,26 @@ cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; }; +&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; + }; + }; +}; + &uart5 { status = "okay"; }; @@ -284,6 +304,17 @@ /* PINCTRL - additions to nodes defined in sc7280.dtsi */ +&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>; + }; +}; + &qup_uart5_default { tx { pins = "gpio46"; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation