Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp37589rdh; Tue, 6 Feb 2024 18:21:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHL4KS3nls5lJpYOGqaLGJBH7Hkg59b5g8GSIzYI2BTMDwvyn7g8AQR3GcnSuNrJsCbYGs X-Received: by 2002:a17:907:7f17:b0:a37:69d6:af17 with SMTP id qf23-20020a1709077f1700b00a3769d6af17mr4208323ejc.50.1707272465149; Tue, 06 Feb 2024 18:21:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707272465; cv=pass; d=google.com; s=arc-20160816; b=Ed+/JjbZ2gU3pui716bTcTYS3OmZF4XjbnWlhmxvIsC1G68xfxhrRXnj/99gjUNIwS 74m85K08WnghempKe2yuP2pzkD56h08+fJlDDtDy4maxD/ZzmMRmcTNeviXK9l1HHq3O bSUI3XpDZ+iScEUvOSnaOR0EIsUB6OHtQpp1PuqGONzjeMAINouLk/HMldSCVD/r/uRK B91eE0yJ8XKp26rNZQY8BPEwMS3A57kJ1nSJuUk/BSFqhbuc5H7Rx+U2tA4DOvdF+AT+ k6dZG08PosJIfzm7MuKw434WYILyfui2EKoqcBKsH9U/3sTgJTrAXKe4tChK/cIwjBUU 6jTA== 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=9QXtNKq4I3TBfat6HvMurueK9bBBSRepYLI4I1syHAU=; fh=f+Rjoo+33QhNDoZpdPDQ6yQ9NxWhzyOoJIQX4VInfFk=; b=gyu6xIiPwmQFYl2rhP0vGxOnZ7VlmH/366kk8ZThCTiqRB7HozBGkE2SwO+UmcMPJO 26JGLdwQgOhhxx7tpluTDDDbk9YQiJ95zzi/g6g27GocLEGFkPDZH+pgVKD9F8wy+Kjb GpQHm/pBZLkIId1gpAU+xCDGFfyd4f86Jcjylhcpjnf3Q16epFh3QiPPDiJjA3+9W8HN kx/ctJJIvfiaTO+Mbj2DXJMVyyf/e4EdHkQP4oO/jIcuPq0WbxTAClWcxJTC1233zHiF yYvrT94ZZ/h5hJDqBl5dQgRT8T8i+/wZFosghzkcZqpt+1zl6JXoMQroMRRmZqQ3Ni0w gFGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=btjl8GTE; 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-55846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCV4D/Xn1jUF1PxHrihujydmCgDdK6hzuJdMnMm9nfGWRlIE2oikDgNBKcyrHbhBG/MpRMy4II745WN5Fd76Y7f/WCj381B9t1EidWfaew== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lf13-20020a170906ae4d00b00a37af38b834si263135ejb.32.2024.02.06.18.21.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 18:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55846-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=btjl8GTE; 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-55846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55846-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 B7FE81F250B2 for ; Wed, 7 Feb 2024 02:21:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22A80EED9; Wed, 7 Feb 2024 02:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="btjl8GTE" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 B6B621CD1E; Wed, 7 Feb 2024 02:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707272457; cv=none; b=mpCRGjmZYCHBicko86TJWaVXCIdkOxZLMdXoQ4aIEIangWboutTRMPjsw2WOZYJx16gyJQ3nXNdYY2b7nI+PDqX6e226urg7g8k4igWktdPp2jwB/lWrpYWcsM0E5qsrlEyRxQ/56Y5xggv4qJxuWc0CDCfMflEHCThp06xEYKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707272457; c=relaxed/simple; bh=pPmjLZQk/syRJBZPIvptZzEbOgte7u2NJek0+dwN9uI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=aAVeMGgca/RrhqJo9JMpiUQbelkM8d5NafDXyGD531u1eN0T2JA4dIdiZBU1XVoblM6H+EhHr4zCkB3qUNcjXeKaVlOQOcGDxXxOHewdnJooD8E2ZjFR6klO+8wySP7/kq8diZkWh0gB4vxE51hL7GEnkJCVczLEXYQl2FT3olY= 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=btjl8GTE; arc=none smtp.client-ip=205.220.168.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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4172GFsb021935; Wed, 7 Feb 2024 02:20:52 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=9QXtNKq4I3TBfat6HvMurueK9bBBSRepYLI4I1syHAU=; b=bt jl8GTEmvoepvnpfU3SEoguLqLnokI9p0408idwXGVO+tvgmC2fvpVupDLgPdT2mp jDxgGF6G4Avk7IXvVFJygFBTjSs626wsIaEpGHAR8BgMgYa1Z5kpLJbmOXtk3oHf lCR9i6Lgoxox98amX30L2nBmLnKISPn52PZGNDZK0zn2orztMC+WDM/T/tCRKOp9 mxifYGLmKw0Q64SHHstOTQnb6vxwM8yrYrgEiBbk/oWN/EFFcWEOt+PXJivsAr/x WGTXWxigHNmoGfA9fNRn0ty7VQIkQQ2tzrsCRAJLeWvlC8kBWVlmJ2FjchAOxHW6 moPnzTcRGFdVf9ur7PJg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w3k6g9s8g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Feb 2024 02:20:51 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4172KpIK023475 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Feb 2024 02:20:51 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; Tue, 6 Feb 2024 18:20:47 -0800 Message-ID: Date: Wed, 7 Feb 2024 10:20:37 +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] arm64: dts: qcom: qcm6490-idp: Add configurations for gpio-keys To: Dmitry Baryshkov CC: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , References: <20240206-gpio-keys-v1-1-7683799daf8d@quicinc.com> From: hui liu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 9G6tJPLMzklHsEzX-k594KXxO8iN0zux X-Proofpoint-GUID: 9G6tJPLMzklHsEzX-k594KXxO8iN0zux 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-02-06_16,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 priorityscore=1501 clxscore=1011 impostorscore=0 mlxscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402070016 On 2/6/2024 1:57 PM, Dmitry Baryshkov wrote: > 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. Hi Dmitry, This change is used to enable pwrkey, volume-up and volume-down function, and the gpio-keys configuration is used to enable volume-up. So can I update the commit message as below: arm64: dts: qcom: qcm6490-idp: enable pwrkey and volume-up/down function Add configurations to enable pwrkey, volume-up and volume-down function. Thanks, Hui > > > > >> >> 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 I will update it in next change > > 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