Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1440796pxb; Thu, 16 Sep 2021 07:34:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhIP+ZSPravSLeyDRj5957EJro8L6CM6XVdlWgThVCzIX/eAPLpAFWBkkUqOY0Cklibacq X-Received: by 2002:a92:a307:: with SMTP id a7mr4110258ili.308.1631802871532; Thu, 16 Sep 2021 07:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631802871; cv=none; d=google.com; s=arc-20160816; b=D6CoLEUk/uAQL902G6GWE6vksuFciyJzsUXIjD/cBHA7LfVyGLODtAlvD7cdxezLeb zyM8QYCXZ5IfIme0vEb2FxUc8EJUZbHxQM+h5ftcQiWvGV2BuN7780UoKb6qhgj6ErA7 ODUmFMPCjq2wNMpU7T3pcmRz0EqLKz0rrHW9QlDP5kEwChWX2fURB72Houl79en3xANZ azbUtU5fNN9PdXFZ04ibrspx6NAgo2kuJ65yO8g8Jf9rzQJCI34s4i5gq4W82pPYvtDV ctqLLJ7YrYrVeGDorWypbE8Kpwk8IU1spjAceDJZho8HxJH6dPKJpmzmE83Q/5x2PP5p xWsw== 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=nYmHtnaJnRX3DKKJGsGu55xp7f3R16urc/f5JAa9xk8=; b=grhBdxfixaUJfXSp9iJRIMOBqcjSM9LcRgGdw1MSO7P4tXSfEjOqpbVUWuE+JAjsg3 bCPIgdr4SzEWh8IsuK6RVr2f1eyQMeDUl0i3zf/CwYAdnhtUpNOdHcYqQMHILcwnaTH6 FTowNQc5GoUabI8fIDJ8va3FKhTcSmaf0zivOdsEK2rwQO3dqAwgQsO2kT2UOfpfp3j3 O6YkQqMwsX/++wssXdOgTZuRW6zxpJ415OSxyoOfIFPUNlFwMl6CkwsqjGVa3z5ADYh/ CS9SCX0xlZoKexxlMgsDwEL3Yj09tpRJQwZvfYWa5Wt5V6wlQ7OiNf/cVB6jiIRPbDLi QZGg== 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 r4si3086797ilb.106.2021.09.16.07.34.13; Thu, 16 Sep 2021 07:34:31 -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 S240086AbhIPNXf (ORCPT + 99 others); Thu, 16 Sep 2021 09:23:35 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:20068 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240077AbhIPNXb (ORCPT ); Thu, 16 Sep 2021 09:23:31 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 16 Sep 2021 06:22:11 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 16 Sep 2021 06:22:08 -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; 16 Sep 2021 18:51:46 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 48D6651FF; Thu, 16 Sep 2021 18:51:47 +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 V5 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp Date: Thu, 16 Sep 2021 18:51:38 +0530 Message-Id: <1631798498-10864-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631798498-10864-1-git-send-email-skakit@codeaurora.org> References: <1631798498-10864-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 Changes in V5: - Moved the gpio-keys node under root node. 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..cbbb0ee 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -12,6 +12,26 @@ #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"; @@ -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