Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2842768rdb; Mon, 5 Feb 2024 22:06:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVB5BidO63SZBHgBYGsefv4bsZYGb3ozYferTxD/nvDlmg7enn+/zLEvqFF8+ENI8O/5Og X-Received: by 2002:a05:6402:70c:b0:55f:c5b7:5855 with SMTP id w12-20020a056402070c00b0055fc5b75855mr852882edx.6.1707199591335; Mon, 05 Feb 2024 22:06:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707199591; cv=pass; d=google.com; s=arc-20160816; b=bsz1LKz9MjSmsozX1u38cEKRXojO4eIrjaTbiuMAObE4nO7X7S0VHlfAAdieUp/EWw /UtR6RiGhfbymI02HSOds71zv/4thhKGqC77GoQXrqWN93e0WduPLbuRZRob7ydgR/hL NpKSvL+qC2w0kEBsBDKIFhg62coi8/oxc50j+NIXzv942e6dmqUX80S366myzbPqZDrg smT0sWKs16ET4Jc7JZLOxsMe6240uLGOOnHHZPAcSWyrzLL7w2bE25tibVCYXG+imp4N C/T0bmWZGB++z5FiBUCXG73PntLIwmlSlehf5hT6Ivlhnjoe7Jg8lmb2a/LIp4+OS/AE dgcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Wmo8OZ+RD3WMbukSfHahLE4n7rr4rX9TbI2saroDAe0=; fh=tSSvhuLImjqBTEqCRWxzNoe1JKzaHyMK38dFj44RJIc=; b=dXYsFeAgHpLsd/xUamZ9lKXebFxoepA4nQjnHx/qU5+h5scirZ4D/T31sKEZmDyLBh iMqSwqu1+O2pUXafoF1o2WKQpFhkHIEpPSw15/o4UhYN/PUn5Ul2VG60ruCR+DStid6j LfBQtI35yyejDJu9lr5Xu4LIMR9avaBSDnBB1ebYH3rYsvE5LdXUs2+zkq2TEq5XxqdC EbtfCtRmcDKhXDq9emBwt4VSU0ARlouzfvOuU/wWEODZMDG4kDexsv6sjO0sBWC9HbrJ vjfTKHvbZvnZbcSMtgQyBR7+gA0mO1uskdOwemQEFtb+b+gajd1QRPZfBbDHGMT616hN bDWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h4RtbnBf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWCpMbDpb53CIn7X7VGqVSvC1ONVHuYTJqDlCgoIaEIL6jxFRaTf7YJ9moOc5E3/HV6/giB4dTrJhJYgx5X5RR47iSp5jI585VtkKiHHw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c30-20020a50f61e000000b0055ef9a173fdsi726137edn.546.2024.02.05.22.06.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 22:06:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h4RtbnBf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4B8061F23BAA for ; Tue, 6 Feb 2024 05:58:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C0B1839F2; Tue, 6 Feb 2024 05:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h4RtbnBf" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A9DC8003E for ; Tue, 6 Feb 2024 05:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707199071; cv=none; b=CYB+WkfyYTksBEeXG9FZYfbVYyl58npihZ+bPVq2hcYyH8xAniKqavfhJrROmacbV7yPfW3K9LEJkXE/8hSpIJ8Qu3v2FCShGMYsO2SIQnRbrw2PgEznOAPm34dwo15eRzGZgKbCJVPwN068uVwZxVNqkAq2tZHzQnlZlvVr4tY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707199071; c=relaxed/simple; bh=ysU08zj4Hg/RYgoGDggCvO60aVp5MmHmJq2MC6dL0VE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=En4BrtMLmtEUdo1nBglVeAwjjptZqDJx5LTvGS+bbNojaz7bZlFTGZJaF/GA01yaatH7vXia60dexeetkrfEj+dnHoR8YCC4ZC9Pt+ZynGR/SS7E0WBJ2Bl/Bwn/OcypQy5M9V0Udn/AYvf6ktgqqryfUv6hdLKIJGge9wWVl5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h4RtbnBf; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-6040d33380cso53953757b3.1 for ; Mon, 05 Feb 2024 21:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707199068; x=1707803868; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Wmo8OZ+RD3WMbukSfHahLE4n7rr4rX9TbI2saroDAe0=; b=h4RtbnBf/uLQ1ZRD7HxSb6mBzYQu3mAkqU9cQTbgxzMPx/pGpAbAJYSTlYMXwRGXND JIPRf3jhDnfqca3+yu4CeADEF1IZ2ApOSWRR99KbVYWaWFfATFGggxQetXJfYxLBmfgW ssZbBrIP/oOb3fSy29goQlQ6m3NFaNzse0bylewfER9h1HoGs9B/WH15ZSDeY8Oh6rB0 2E8o4byt0fIGH2B7mKq5B+mvWC1xgx8ebEbugI9bEWQo8YMsz2uZhS8HKegbn6VraONY 4BFxibQvTmYgu/Kf0pCui1PROFwWEXXwGaiDTTjH1ZjSLP6ZHk22lrsH24mmcwWzTH+G PZOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707199068; x=1707803868; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wmo8OZ+RD3WMbukSfHahLE4n7rr4rX9TbI2saroDAe0=; b=SgLnRIdJw+Yue+N07meWcOi0AxKZwrQwb0Pd9Or/q056t0xmB7z0kFSMNmqpikTuX7 7/bdBunbF1eG9SaLDV5veJNpXDqjtyYEe43s8Ux7mV0XogocIVdjky1Hh67xY4TSbgEz ZiC7SZwa2To3Hs9kRXn8GYckle6qBpyb4+evkVljCXNf8o56LWBjF6Ad5ncdqO69l1MF EhyEXX8AFikVbnKD9Ysi8YwRTyAmhzX0Yyn1TFjrpjdhZ3cfOdPhlIaUOuOIJs9J5J2/ +KSKsjAbTGbdgVp7mvFWflOOfaqfDnyOYqBjac56SH+qIPO08GuB7wyG8iK5CtsZVxw7 NXoQ== X-Gm-Message-State: AOJu0Yz2Ec5SWLNTORFzk80Tl+DGa/f/jQE4DfslFHsCVd0k8PQ2BsOA XvpUdGf4nBz2Mo3iLoJZw6VbGdmrvgb3homtv5ds0kXKzCzqt5CET1htLmraokCUhWL+C88liD7 Du+E2jodAmVufAXQ80SNC2393YRdD8vqZc5DdTw== X-Received: by 2002:a81:a882:0:b0:604:76c3:7b3c with SMTP id f124-20020a81a882000000b0060476c37b3cmr758325ywh.6.1707199068531; Mon, 05 Feb 2024 21:57:48 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206-gpio-keys-v1-1-7683799daf8d@quicinc.com> In-Reply-To: <20240206-gpio-keys-v1-1-7683799daf8d@quicinc.com> From: Dmitry Baryshkov Date: Tue, 6 Feb 2024 07:57:37 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: qcm6490-idp: Add configurations for gpio-keys To: quic_huliu@quicinc.com Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 6 Feb 2024 at 04:21, Hui Liu via B4 Relay wrote: > > From: Hui Liu > > Add configurations for gpio-keys to enable pon_key and pon_resin > key. Configuring gpio-keys is a requirement for enabling the pon_key and pon_resin, so the commit message is incorrect. > > Signed-off-by: Hui Liu > --- > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 43 ++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > index acf145d1d97c..4199ebf667af 100644 > --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > @@ -9,6 +9,7 @@ > #define PM7250B_SID 8 > #define PM7250B_SID1 9 > > +#include > #include > #include > #include "sc7280.dtsi" > @@ -39,6 +40,24 @@ chosen { > stdout-path = "serial0:115200n8"; > }; > > + gpio-keys { > + compatible = "gpio-keys"; > + label = "gpio-keys"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&key_vol_up_default>; pinctrl-names should come after pinctrl-0 LGTM otherwise > + > + key-volume-up { > + label = "volume_up"; > + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; > + linux,input-type = <1>; > + linux,code = ; > + wakeup-source; > + debounce-interval = <15>; > + linux,can-disable; > + }; > + }; > + > reserved-memory { > xbl_mem: xbl@80700000 { > reg = <0x0 0x80700000 0x0 0x100000>; > @@ -421,6 +440,17 @@ vreg_bob_3p296: bob { > }; > }; > > +&pm7325_gpios { > + key_vol_up_default: key-vol-up-state { > + pins = "gpio6"; > + function = "normal"; > + input-enable; > + bias-pull-up; > + power-source = <0>; > + qcom,drive-strength = <3>; > + }; > +}; > + > &pm8350c_pwm { > status = "okay"; > > @@ -448,6 +478,19 @@ led@3 { > }; > }; > > +&pmk8350_pon { > + status = "okay"; > +}; > + > +&pon_pwrkey { > + status = "okay"; > +}; > + > +&pon_resin { > + linux,code = ; > + status = "okay"; > +}; > + > &qupv3_id_0 { > status = "okay"; > }; > > --- > base-commit: 23e11d0318521e8693459b0e4d23aec614b3b68b > change-id: 20240206-gpio-keys-138bbd850298 > > Best regards, > -- > Hui Liu > > -- With best wishes Dmitry