Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp116847lqg; Thu, 29 Feb 2024 23:03:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgx/ivQwsVR+wOjAOZZHkVVIbmj671xBKjhd5UF9V/j/r9N6FP/4OnPuvcrbQSPjv+762RFK+XYBitFBQgiPvJv3ZFFaGCc0eI3fNJpw== X-Google-Smtp-Source: AGHT+IFigvUI/0f14YF3eKyRZU0YyNUAhu7DzZ1bRj40GIavOEKluLxJZr8pipwFuJ0BaUydtxrh X-Received: by 2002:a17:906:1b4f:b0:a3f:3acf:c58b with SMTP id p15-20020a1709061b4f00b00a3f3acfc58bmr526177ejg.13.1709276608194; Thu, 29 Feb 2024 23:03:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709276608; cv=pass; d=google.com; s=arc-20160816; b=F61nhVLxP+asQ/MT9Ij1WA79WSplp26FvXyNy1n+fibcDsy0Y3dy2vOVk0vjhU9uOU QE5fQaUGpCQIoiOulY5A7hkR+NxfPo7rIZap+Lgbcw6IWA/ehxeWWAnA69Uov23iFaFT IiXZx1DMZsHl7/Qc24m8svNy4NUwsq/HxAKk38hbrOM8oyGN7FF/X2NhkaY/bkqbdejp RKad9HTBEhEcAHLv4Yzx70fcx7/XWcHv2q+z0ZRGcJEemK9fII89s2UN+K6s80BKErRR /IfAnFS597h7cdQgV907xFEKXZ4A/oWi549AdqdW+ozdj+rwBeC5sOJFLq0RFyVQsDzN 1KpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=rkrf3Upi92FvYnyDJyL1qbj5k8+wIYXJBUtWQwQAwCA=; fh=yvOo0u3ELPTbw8Jh6bcX2WkAJuykteMKkoaGkFN3Z5s=; b=a+xphjaKCe8Z/n6nmC6uRyTR5FU8Qioge11kG2bIlZDvfRkXCpZqgmiQGTYkFPzgmN C6HL2DfHBBMbRu7yt9VL7I+w442c30f3gRL3AGs12RzjbwDeZniLuUWZwdmgPY3xGOaH KKXvL/JNtNn9OMJ04Gl18DWg0Zj7qGXX+ThRHYqTDbwukzx5JNLya8XdVhcCu3mHVzBM zYEaGsFV98TlvX6NPiHr6YHFmwcDR4bmrKTFY5CFQdOqBP5gQpMPgZdVHCfxZVMP5LQS ObPr5tJXponb73LzAY/8axiXIhMiLcqWaznJLKT5NqxuIea61Q0Wa8vleO0KDGD5gvIW 8F5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kn4dWbHn; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-87985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g16-20020a17090613d000b00a4397f583dbsi1188512ejc.11.2024.02.29.23.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 23:03:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kn4dWbHn; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-87985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 B4ABE1F26206 for ; Fri, 1 Mar 2024 07:03:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C30166931B; Fri, 1 Mar 2024 07:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="kn4dWbHn" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 242308464; Fri, 1 Mar 2024 07:03:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709276597; cv=none; b=e6d9a97NzZ97mIMdGdG3B+1HnBIUaqiScMmQCgk36e2HI1LfCloXQxCoLzBS+QULcGFjNOElmyxt8vIEhS8HCMHvnx9ajY6jpHYp48o+SPofOymRaxLsIZXAEP2I/ocsx/ykE7l6l51PIkT1ksV++MwJrqKMk5NYFKMA5JFC3dM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709276597; c=relaxed/simple; bh=Jp2tHeRRc8dd+EZCimAuq4LfWDzTcaPj7pzUv5vapT4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=JPE+Tdd4yHt34fkT/ndk++8z9BBGmUUaWYujQezJqf4B09qfJ4a4FR2A0AKfhTiR+bJOIKl9YKlYPMvYhSq6sceiGQtftxiVp4r+Fp+IJGCx/sQuIH428ww6mh90gzCeqmKrXaA/p54SoPF+slQ5+0+mPSmVZmCmpBVS3WX/GSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=kn4dWbHn; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4216fPLJ030785; Fri, 1 Mar 2024 07:03:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=rkrf3Upi92FvYnyDJyL1qbj5k8+wIYXJBUtWQwQAwCA=; b=kn 4dWbHnt4P7BmuFLrMl8fCTMt/Ndvsu7DkgN65MEOndHyZCQkXnf6ST7ruW/Dg+94 5G3cpb03kJGSSSyUy+0rGO7hfR9sRtqOiSFj+3v/VfLuP9SZDHtd551RSGCtrEEf topUbTQYmc8xibF5HPl6/h3k8l/MnXawYwitKGksr7U/0P6qpsuJPhWihGCZce17 NFHNpZXoLkbf5KJgbGgTyfX3he0HOtV6XcY9nI+L9ehxpg9wRHERe0tnMUT271Bk M+hGQ0ZQOdzjz8g2NDZHa4NFrpZixn5sKXnLQhHrGMyX1kftXKEU879qWwA63uR2 x+olMUpd11TgLZt4aAgQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wjx9y1tj8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Mar 2024 07:03:05 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 421734uR003269 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Mar 2024 07:03:04 GMT Received: from [10.238.139.231] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 29 Feb 2024 23:03:01 -0800 Message-ID: <482ac768-ab2d-4f19-9245-df6b5ae5164a@quicinc.com> Date: Fri, 1 Mar 2024 15:02:52 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND v2] arm64: dts: qcom: qcm6490-idp: enable pwrkey and volume-up/down function To: Dmitry Baryshkov CC: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , References: <20240228-gpio-keys-v2-1-3beb60225abe@quicinc.com> From: hui liu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: csChZRxnKCfmSdZIbljLMKym2Ap6SAzT X-Proofpoint-ORIG-GUID: csChZRxnKCfmSdZIbljLMKym2Ap6SAzT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-01_04,2024-02-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1011 impostorscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403010057 On 2/29/2024 9:21 AM, Dmitry Baryshkov wrote: > On Wed, 28 Feb 2024 at 11:57, Hui Liu via B4 Relay > wrote: >> >> From: Hui Liu >> >> Add configurations to enable pwrkey, volume-up and volume-down function. > > Please take a look at how similar patches describe the changes. E.g. > commit bb47bfbd5aa8 ("arm64: dts: qcom: sm8550-qrd: enable PMIC Volume > and Power buttons") Sure, I will refer to this description to update it. > > > >> >> Signed-off-by: Hui Liu >> --- >> Changes in v2: >> - Update the commit description. >> - Link to v1: https://lore.kernel.org/r/20240206-gpio-keys-v1-1-7683799daf8d@quicinc.com >> --- >> 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>; >> + >> + 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>; > > Why is this property required? Anyway, it should use the defined name > rather than just numeric value. I will remove power-source defination, because the default value is 0. And "qcom, driver-strength" will update to "PMIC_GPIO_STRENGTH_LOW", it's a special value for pm7325. > >> + }; >> +}; >> + >> &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 >> >> > >