Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2315710pxb; Fri, 17 Sep 2021 07:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4GwJ6r82m8Ue/spaGsvtBTAcmWdjRRgXxrd27VfRJ4UlvsFHy0USy6EWolR2JZyUWgIuO X-Received: by 2002:a7b:c848:: with SMTP id c8mr7387726wml.187.1631887825248; Fri, 17 Sep 2021 07:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631887825; cv=none; d=google.com; s=arc-20160816; b=XjhJS1H5uWLtC1pgwtBM427Bs8TvOCbSLXwT3btDtzHl0mxRrfB3Gkzpj/vUaskHya 2cGv308ZnfqS2HF5fTmg37ORVszWQBGqfdty0x7d+9XptEYzp5yXbm6aCj6VRmLGMRHd Z2JaK8RvVXhnYIGRPqiHI7dAvSVW8qKeUETiMh9GyM9SiWE1/IpMOSRi9WfPzp1neamw gwJ9UsBs9cpFUhUkQpb3NTOFmVYVCnb+UrHjtjM5MnPfeoBjj8yjcHuaXxoNYSetYHQe pAfm/njVgXAkQ+ENaWf7ko25LtwQ18CjITPLFRdhL/k7sqAEiUbB3HnGJEQByIluqeuq YKrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=L5wv1kN4Zp52HEYkxQFKzuQawvt7vJvH4eIq3AwIYJs=; b=RebPyefPEm4U9c86pW+Mm8/FXHzw3T9XwNCis4qew4sMWCDAEuLN16pW4u9XG/rYma Oq+8g+Dj/K8tleekLhj51h8f1Qej8LSaz+wCXsNcGA7zcnMKrH+1w/xt9UpKLmD/2Qfr nSIYEXOUBa51oWjfkVNSSoUjRW/BK8wHtHt2Vrl4L90ejVQVpcyo49/5RLvnQJEV4lG9 p7GO/dSebjNlwt+mUMdZl0nkEmmGOjY01KEIDTtFO5n320tBZ9UVQ2Svx30nJ3RX/OAT 3FEcAZboTQgKCTL5W7E8wA+AbJ4PF4g1qCmP4Bre41YcefiCWeMbs/SnJujtSDnI87WD D9Jw== 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 a21si7125818eda.254.2021.09.17.07.10.00; Fri, 17 Sep 2021 07:10:25 -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 S243494AbhIQLM0 (ORCPT + 99 others); Fri, 17 Sep 2021 07:12:26 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:36644 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243123AbhIQLMZ (ORCPT ); Fri, 17 Sep 2021 07:12:25 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 17 Sep 2021 04:11:03 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 Sep 2021 04:11:01 -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; 17 Sep 2021 16:40:44 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 3D10C51D5; Fri, 17 Sep 2021 16:40:43 +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 V6] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Fri, 17 Sep 2021 16:40:40 +0530 Message-Id: <1631877040-26587-1-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 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 Reviewed-by: Stephen Boyd --- Changes in V2: - No changes. Changes in V3: - Sorted the nodes alphabetically. Changes in V4: - Updated the node names to replace underscores with hipens Changes in V5: - Moved the gpio-keys node under root node. Changes in V6: - Added linux-event-codes.h explicitly in sc7280-idp.dtsi arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index 99f9ee5..8f0958d 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -7,11 +7,32 @@ #include #include +#include #include "sc7280.dtsi" #include "pm7325.dtsi" #include "pm8350c.dtsi" #include "pmk8350.dtsi" +/ { + 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; + }; + }; +}; + &apps_rsc { pm7325-regulators { compatible = "qcom,pm7325-rpmh-regulators"; @@ -288,6 +309,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