Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp129642lqg; Thu, 29 Feb 2024 23:38:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdCGPUdw0T6ZSFITjmaMKgowXEfU+5+uJXiWRUWO7/mqOeTvYm8FcbLrOqSz8/ms+U9t4uL8hYS2APJ93KHPsg6xwtd0MXs3+AmMux0Q== X-Google-Smtp-Source: AGHT+IHd5SB7fIJZd5322VmG1iydTh1kjcpuKSX22I1xqYQcRcBZ8+owySIzwVr6E5/2MlzwH+Lc X-Received: by 2002:a50:c88b:0:b0:564:f6d5:f291 with SMTP id d11-20020a50c88b000000b00564f6d5f291mr574825edh.34.1709278684345; Thu, 29 Feb 2024 23:38:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709278684; cv=pass; d=google.com; s=arc-20160816; b=yNOUsZU/N3Y7Akh8G27guVAg5AG/oBOPxmTF1VhzS6wiaDGVC/Y4JURv/LyfGLfMAu y1W+YtOkEeG9VTBX2UA1451jeJRYuYULtBv5FkMGFF0jNJzbNIDUBmEKCVVP0z0sxtOf q7NqN0s5DRsgvJjs5feFevEq65u0uDP8l1vFaV/tRKorYjKggvKtwIe6w7IBry+MgCsd c7OQHIbih47dQjgg+PGXjCPRxYe5ZbyPGoJvag/wz6/Q42ZOQnLMQlx1xkv78dKCdQQU jBo6pCL+H3OQWBm3eoU4XANAgzrRheNfiW7c2oDE2CWprQfjoi4iMlgj3EkILlvfk6H6 Dz5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=+tCN0Hk5Qn1QWh7IxrO3DueEhf5fXZGlQefbhfPXGuQ=; fh=r8i+U82cndHysm46d/piJjLb5GyuGzFZk3haf6SL8Zg=; b=KDiud7LLnyuaMDhWn9vDJm+DKZJ2VJtPTibeQdHAqe5a1lahzWi2e4AdZymMR6GUMl BL/HxCLRi5SfUaRmSBYqN6uuiKsS+8Ek+LY+TaPbtb4xS+dgvRigTrXS+kvUHJyGl0/2 +emnSCbCYAEtlLao+YJstwlTZOGL7oLvHLy9U2+u+WcOJhVMlq6F0oyar4nzScSbMrFU xKZ4ddSnCwoh4P2CqcPuGKRv7ExCcF9xGM+6vMjjWWMj0tDmHAoRJn323S9jP/Yli4zf dq5xQd4RvudSAsBAeNPndjItelE4cOE9Bf9IQDH17Zf4Io3dF1Y//m92H+oTT6bAfVET SyPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DCBYd8Im; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v7-20020a056402174700b0056535855ff4si1201963edx.668.2024.02.29.23.38.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 23:38:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88013-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=@kernel.org header.s=k20201202 header.b=DCBYd8Im; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 E07E71F21D99 for ; Fri, 1 Mar 2024 07:38:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B6669963; Fri, 1 Mar 2024 07:37:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DCBYd8Im" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D5566200C3; Fri, 1 Mar 2024 07:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709278675; cv=none; b=GLLaok+uYxraBYCIJ/cP+mwpUZcowBIAeuN56yMna4Wqh21b1P4xtG7CSMDhXw/sHRBKezCnm+EdBVloB25k9rkiPvr2jOQbv4P18waU0t7RmmUFTyYsa6iki9Odggd05EXt82ATSCA3zsSO4wsgFLnKlnG3DcCgEHueg8/eJnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709278675; c=relaxed/simple; bh=S41V4Rg+5A+/H6j5q+KJKdnhp7A+2pV2Ka4RM2AmyGw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=a+powcHdFzhceJunp/K7Zq2sT3nhErgpGLCFB/Eyu+PZ2RcDnxUbGZ2MNrfusGlP8R5LCyX1bdWLk2opMvszYwR6B6SMjyp87xNWhwLXiaRKX4w0WVU1vN7XDado1wzrjyUAwQQJW6la1NAZK62rT7cyh/YuOVcwSNHl4JvK/Ik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DCBYd8Im; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 5AA0AC433F1; Fri, 1 Mar 2024 07:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709278674; bh=S41V4Rg+5A+/H6j5q+KJKdnhp7A+2pV2Ka4RM2AmyGw=; h=From:Date:Subject:To:Cc:Reply-To:From; b=DCBYd8ImUE5PBwPUzAzWb2ntH/DUQHhzZjZaKG/4aKp6UQ8gosU++rcy9oJmxSix+ FHTBZ9+HOzDRJKGidozF5gPkqPcRO0auGm0d0cLFd8EmHlALgV/QPBS7SD7qfdMpuv ur0XlMMeE5cOKvQJz/Mc0NDhT+rZR0i2rOt9+FAAq1LVKBwcQApE+3crSfU9ozJcLm eo7mxwOAhdIggs8LPpVw+kRPruTbOv54y5HHb8AFaG6ULU1hwkM2ZYAhr7pvtqXKAU R9Nd/+yJMc7xm+L8ZWvCtJ0AjLYvUZyL8D9S/UdEnPw8SNRNE4vC4da2zLZoeg6I7R VQXUbz7DQpuHw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A698C5475B; Fri, 1 Mar 2024 07:37:54 +0000 (UTC) From: Hui Liu via B4 Relay Date: Fri, 01 Mar 2024 15:16:33 +0800 Subject: [PATCH v3] arm64: dts: qcom: qcm6490-idp: enable PMIC Volume and Power buttons Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240301-gpio-keys-v3-1-ca664de8775c@quicinc.com> X-B4-Tracking: v=1; b=H4sIANGA4WUC/22M0Q6CIBhGX8VxHQ1+TKGr3qN1oYD6ryUGxXKOd w+9sq3L8+07ZyHBerSBnIuFeBsxoBsziENB9NCMvaVoMhNgUDJgFe0ndPRu50C5kG1r5ImBkiT /J287/Gyt6y3zgOHl/LylI1/Xf5XIKad1JUWtlGk6aS7PN2oc9VG7B1k7EXYuiL0L2eWqK2Urj Kwr+HVTSl8XNyPY4AAAAA== To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Hui Liu X-Mailer: b4 0.13-dev-83828 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709278672; l=2630; i=quic_huliu@quicinc.com; s=20230823; h=from:subject:message-id; bh=Vp4G+fbSlkb2JMufpBHQUvIun8hxc98pkwDSckQhTpA=; b=adwBBQ0ZZt/zCSk4WrpPjo2YcwF+PcjY3Mpz6Xj/DW0QpvmkQ1r+8O5jnrwjrLA1H1KJ/DfgV ggFdU7Xh3HZAkx4pQygcYIG/Fl+nJXs77c5ibMkB4z/atJiSiWJz7SC X-Developer-Key: i=quic_huliu@quicinc.com; a=ed25519; pk=1z+A50UnTuKe/FdQv2c0W3ajDsJOYddwIHo2iivhTTA= X-Endpoint-Received: by B4 Relay for quic_huliu@quicinc.com/20230823 with auth_id=80 X-Original-From: Hui Liu Reply-To: 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>; + + 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 +441,16 @@ vreg_bob_3p296: bob { }; }; +&pm7325_gpios { + key_vol_up_default: key-vol-up-state { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + qcom,drive-strength = ; + }; +}; + &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