Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp649542pxb; Tue, 14 Sep 2021 05:57:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkw9LPICXqZl0PvHxVzyW6wWdmOGohuT3u9yke1NDiP85lfx/T7QgVPd/jA0EVs068oRa7 X-Received: by 2002:a05:6512:3d8e:: with SMTP id k14mr13451727lfv.430.1631624264633; Tue, 14 Sep 2021 05:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631624264; cv=none; d=google.com; s=arc-20160816; b=u+LA0/gCW7FU+3C4mOq8HaYPiiV+7QCBAzBLQ6o0ed+js9mlQVTwgz7/5kb5291b8+ 3GsBWaDl/+bnVwK/7/aP1luwAxvoFI/22SQpEO1aiDjETxD2GV/1BF6pfEy9ZqOcImKq wRS0u94DfR9fcR3xuGhcV03HG33JTamvvmNNdjMZOkxyO0SRpHMJJ2EcR7bjqxdYhxC/ daBoiw7z05PteLPPWNQNUJ/LDz4mdXZAYX/6UaTCj+ny/NB9LsJorxpKaSeJjiZT0o6D 7F51LXZB4jCiuid6/IUJVsMG12AJBxKVZfzd4rcH9InZ71Gn609jlnVcMVERJXbIzodw QVgA== 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=EtdeB/Tp1n4oQVBmsIEau3RshuqhfaNKzMLOivZyJlk=; b=AsmM6cGexTgQuXI3dWFGrWpgEvhONuNAl0kbqXbTcVRvpgzCGBTW+2XO0JVJcC9YVA QNm4YE4LoZZ7P8kP9yVgsuc8P/h1MCJeKHW8QhOzyRlYhRBSSOor03QxLzUUqY4T9OYX 2SnJ846Qw2JSOtrvCPncfcyRaamZd1ovuYdpJkUHgQg0JEQK5tRMXBjaPk+kouEDaSwb XsIz+5T0Fwrvz3LS3Ufl5UMmd4xAXRk4ejtIlCD+8/cBO+ylYeULDxytjhYWKgWvsWaV bSs7Bz9NdwtKW1CVCEypFinAFDCDRfHFOBRkFJZar7qVyHGEuVmfOEv+yI9ITRsbvCip ltpg== 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 x33si13764096lfa.357.2021.09.14.05.57.17; Tue, 14 Sep 2021 05:57:44 -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 S233086AbhINM4s (ORCPT + 99 others); Tue, 14 Sep 2021 08:56:48 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:62166 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233048AbhINM4r (ORCPT ); Tue, 14 Sep 2021 08:56:47 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 14 Sep 2021 05:55:30 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 14 Sep 2021 05:55:28 -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; 14 Sep 2021 18:25:11 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 9A86B54C7; Tue, 14 Sep 2021 18:25:10 +0530 (IST) From: Satya Priya To: Linus Walleij , Rob Herring , Andy Gross , Bjorn Andersson Cc: swboyd@chromium.org, 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 V4 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Tue, 14 Sep 2021 18:25:08 +0530 Message-Id: <1631624108-15491-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631624108-15491-1-git-send-email-skakit@codeaurora.org> References: <1631624108-15491-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: satya priya 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. Changes in V4: - Updated the node names to replace underscores with hipens 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..003112f 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>; + + volume-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