Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp610840lqg; Fri, 1 Mar 2024 15:39:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3jB2Uc1JR0OeMc/h/7ljMpPVEQlr2yy96DYbM+7ErEm8+zdxruQPwT6PCQ+dmXzt/o1y36DPdsoi3vUBK3Im77fpFBbEB5mRB92pzmQ== X-Google-Smtp-Source: AGHT+IGKK1Ndo0qrlfyPzwP5nsXG+JwJ7vBftMWkQAoRSv2mawfg4GUZ/4zRbDXYuYexx1k3lNAH X-Received: by 2002:a17:906:ccc8:b0:a43:8468:ac0a with SMTP id ot8-20020a170906ccc800b00a438468ac0amr2360889ejb.71.1709336397182; Fri, 01 Mar 2024 15:39:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709336397; cv=pass; d=google.com; s=arc-20160816; b=GTwFW88OqxwYfY9AWOH0blYWULyBcVgdJXKyHr1DojSp1aTNS3EMSjqp0Z0p48MfO5 iSJCgxRB+ryA80rke+Z9kiv6guszMtE2SMV4LLYYIK4+HLpQubi9Fa9Nvm13VofoqMA0 erR6Zu6tiXIx72/+50BS3esbQLyfC67n/nkhTNtxFpQz0hjmiMs1PHa/QvTB1F7pb5Ph 5B+sVc2N9uRmbHzef135wE1ZDcNXeQa2QwLNxmgnIKByGlXPoHJv1VNreo19zw7qMiM4 xsaxSbYaeRxmD9ojLYCVhSfAxUwHDEkBipHv4otZOAh03fqhr8TR7cku6zWw2w2fGrV1 S83A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rZpbtAHaDLOh7hkUppnoKAJWYa12PIQsO1N/wH+8xTA=; fh=7+OMtI3E1hq9+Kqq1epZ2eIRgYer4IHbozEvYSC7X30=; b=p9FBKe4sEoxHhNhNqgGWAvGiAoYwYL9XG6lW38D9IL7snspLol1Vu8pv8CmzXgyj+B chaJH6GUIjzG+2xiOfGZ9vv69MrLZX6pqRA9cSIM09yaftHpYttBsSIj2XZyMt7ukLbJ DjYeNjt22o26hv+X3R5C0whHhPJEmfrYS480TRecSMMrBOIxkPEQNgjGRqDSMYXtzDc7 fFyTKojGmfnzuMxPfgq5pjP8u3Xz1wlgdQPdJsB9xG+QR7vJFk+fDDerwdEK7jyqnKfQ qXMytVQLfX6I6I98zP5jPMZLWDBjkx2lptU6ClM/Y3IwYtTkQlm+lzfmzKLXMZcjebpM JK7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZUiVvp9b; 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-89229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d19-20020a1709061f5300b00a3d991c4f5dsi1826024ejk.954.2024.03.01.15.39.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 15:39:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89229-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=@linaro.org header.s=google header.b=ZUiVvp9b; 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-89229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89229-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 63A971F233EA for ; Fri, 1 Mar 2024 23:39:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E72F35F471; Fri, 1 Mar 2024 23:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZUiVvp9b" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 2A9815EE91 for ; Fri, 1 Mar 2024 23:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709336376; cv=none; b=mtmGB4W1+ugsOqHCC7Mw80m02TnkUpVGpys9TIi7kByc7XoXBKITzsY6TqWRIxzdcQpDDyEMgLJ+1X3Buk+zmtpB8ZLtR4zWkXaU4N4zwfV1sE3/7Fg/pj8vM7BUn+SwTd0wfH6OQZMyMIwQ4AFAICpQFp/nu4LvES/LtrbObdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709336376; c=relaxed/simple; bh=+3ZyH2gNlIIhNS8WA0Ai83YZJC3WVXzM7YGqvJwqanw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K+ZWSKS4dOCayucVilniJlGVOG5RIcg2CJmgm/34cKabFnmErceWiDnHF2XXRCOfTfMHQ4ykm9oHYgByaJTnJ3RxrSLdkxmwVhCc5mfC8TId/O8t4QdnVu8ac/nFL9U+K7XVYMLG7o87EN434YIvh9ja922iLvGnWq7Swy4Jjn0= 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=ZUiVvp9b; arc=none smtp.client-ip=209.85.218.52 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-ej1-f52.google.com with SMTP id a640c23a62f3a-a26fa294e56so497244066b.0 for ; Fri, 01 Mar 2024 15:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709336373; x=1709941173; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rZpbtAHaDLOh7hkUppnoKAJWYa12PIQsO1N/wH+8xTA=; b=ZUiVvp9bzhE5YMVnvfFTccMdUKpeUB8Y+wpi4nMw63MB9NvBnyYxWblhqOkPxakgbc dXoYIik0HUlmJbLUn0ET8DtXK121adrD14mpJJsh5RiOr04yPnIzBs0SHkqB8jTsOkCo N4FW33hRvhT52JeSEBKrKe9BJDN2/bZjG7B/GEnic8VHAMggNh60HZK0qs9Y9jwSlJwp 2HtHRUogfCmdvyB4sel04DPHevjT3erHJ+jYuya7BWqrc+OeGX5Pb4pukIfrVCb8UZES 0OEB8/IDnnTHacTA5u9H3u/HncPZssvILFSCPcmSzwm87Fe7Gh1o8XVq3kbXY2eNepZR NRsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709336373; x=1709941173; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rZpbtAHaDLOh7hkUppnoKAJWYa12PIQsO1N/wH+8xTA=; b=vlM4ry/GcFlj5m2KWOI42EeB/j8kQl+tbwx4FyCIJEz1xJ9ItzuQC3Eb2Rjb/VLWng 0KbPwJasKYg/oOcPonzA9JRSiPFEvm4Pdmcho2v9IUijCRr86fli8s8NoybIOOMIIVY6 2Q04UhRZmOBgVqEFKjYK2aWW5DRqyKmzyXCdpNwjsfQscVOnvbAWZNn5BNMRLsA2aUWH 8alzRnZPYFV9VE5amRrHjzmKqlvo72PqZSSYeO4O5jHTi45Q3mc2bgY1zY0XAEQLgwqy EnIEOw2e8USIic9VO7DJoyUebpV7VfRVgg/QofCNC76jX+fYR9tCzjLl4JXYcpMQMfki YtYA== X-Forwarded-Encrypted: i=1; AJvYcCUhcqLvOZZkJEg5USC9Qhz3EvmicISRVA+Ysj62GopDx6algs0YOr+DvWvyn+4OQwsrVeMst1byYS757vz3thkDwSRdJiWLav/y92FI X-Gm-Message-State: AOJu0YyS0bAQs7S2wnsvbmCAxEzLs2DeE8MWQcmAx04bvp+kt8kPl4U3 4IPh6GBpTzNeoFpkXNXFxnJyzBhZISWPGnlR2SkzesFT7CFcAWod8CPC8FnZC7Q= X-Received: by 2002:a17:906:ca4a:b0:a3f:5c5c:33ac with SMTP id jx10-20020a170906ca4a00b00a3f5c5c33acmr2452296ejb.62.1709336373496; Fri, 01 Mar 2024 15:39:33 -0800 (PST) Received: from [192.168.216.32] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a13-20020a1709066d4d00b00a44256373afsm2122841ejt.200.2024.03.01.15.39.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 15:39:33 -0800 (PST) Message-ID: <7ac26eb7-2442-4578-9fa8-e1bb59756e6e@linaro.org> Date: Sat, 2 Mar 2024 00:39:31 +0100 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 v3] arm64: dts: qcom: qcm6490-idp: enable PMIC Volume and Power buttons Content-Language: en-US To: quic_huliu@quicinc.com, Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240301-gpio-keys-v3-1-ca664de8775c@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4K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9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240301-gpio-keys-v3-1-ca664de8775c@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1.03.2024 08:16, Hui Liu via B4 Relay wrote: > From: Hui Liu > > The Volume Down & Power buttons are controlled by the PMIC via > the PON hardware, and the Volume Up is connected to a PMIC gpio. > > Enable the necessary hardware and setup the GPIO state for the > Volume Up gpio key. > > Signed-off-by: Hui Liu > --- > Changes in v3: > - Update the commit more concise and explicit. > - remove "power-source" property and update the numeric value to defined > name for "qcom,drive-strength". > - Link to v2: https://lore.kernel.org/r/20240223-gpio-keys-v2-1-19f48b3d8762@quicinc.com > > 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..cf8f6d48bfc2 100644 > --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > @@ -9,7 +9,9 @@ > #define PM7250B_SID 8 > #define PM7250B_SID1 9 > > +#include > #include > +#include > #include > #include "sc7280.dtsi" > #include "pm7250b.dtsi" > @@ -39,6 +41,24 @@ chosen { > stdout-path = "serial0:115200n8"; > }; > > + gpio-keys { > + compatible = "gpio-keys"; > + label = "gpio-keys"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&key_vol_up_default>; These are backwards > + > + key-volume-up { > + label = "volume_up"; "Volume Up"? > + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; > + linux,input-type = <1>; Documentation/devicetree/bindings/input/gpio-keys.yaml: linux,input-type: default: 1 # EV_KEY Konrad