Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2773338rdb; Mon, 5 Feb 2024 18:21:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHP+pNZTmaijYyz79bn6j36DfWuq3UmgNKuNlla6JpuugBWs66oh/34eQjiv9qYCUuWXCs X-Received: by 2002:aa7:c2d3:0:b0:55f:95ac:d698 with SMTP id m19-20020aa7c2d3000000b0055f95acd698mr490215edp.32.1707186104987; Mon, 05 Feb 2024 18:21:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707186104; cv=pass; d=google.com; s=arc-20160816; b=Hj2TNE9gucINK89Dx5eFsxElxW9c2HoEf4+35s8rZM7LqNaXv+ENLXObQjVF0PNRca hNnvgWxYe/z+2FVlYq1/hy1QKKSWHwarAJaANtToYKucuIA1eVeScBbFKqfP8rKI2av4 vYxUcFhzBPFw5uQ0Hzd0L85NIGAszsu1XATI2cYnk2/TWkEKk+zTw/TuJ6GCn/6sYNwj AaTDbzI6RW4cINhmAHGxdhBqXaJXTZpYmYOpYwLfIYSdrkl4FzMNbd+rCIUS7zyBYNqM fz3CvwzO9D3UHO9QJdGMBmvt+rMxvbgvjFmXe82F90Ys+WTD3n862eCJa+woLzxdGTyw 0kVw== 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=YFx9Kd7DIgkXmqHJ/EsWOD3dE4D375G1OAb4tZz3rRw=; fh=cR88oBv/vNSldcayf0rcvSTYXY8iDlbCWaZAXkCHipQ=; b=m21v8UQNWL8RXg1OHs/2GmLD4plekSEMKR/zGjm/iWzT+SIpTc1eLuQ+Cu2FfiE6BW ZsBSdCOS3IB5zqQKvcGZbZ6+L1AlXD6LAuneWmyJvd/njuHWOJcITtibDDKIUC9xh2e+ nXLw1AFOS218Gr5XAZsc7Sj0bTQyWuqXMmkp49muamZhgfUkvu5xhMrWNuYeHpjbIrs+ y9AaJZn0TEG5X0GZ54wk7V231O+07i8PCfblYDAi1JL2cedklMhQDhqio/CdjpR3rmi2 EpEoi3yL4p7Bg4XgyLRGTfajuVWN408LW9onGgFnoNpzBuMn9oJw7ZQEpl599OwKqWTd PhEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WuA5eNF+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCW+8Tw1eIet+VRf9pXl2oZx+5dhwiVhZ8RrJegXlGzZCcFxyVVdRXlDpMZxV/kor//wwZTVVzS7XfbwScS3Pd2+tpHF7WQtX8mYqzs4pA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e24-20020a50ec98000000b0056053103589si552988edr.359.2024.02.05.18.21.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 18:21:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54197-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=@kernel.org header.s=k20201202 header.b=WuA5eNF+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54197-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 8EF311F24793 for ; Tue, 6 Feb 2024 02:21:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A113D57334; Tue, 6 Feb 2024 02:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WuA5eNF+" 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 B4ADB57300; Tue, 6 Feb 2024 02:21:20 +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=1707186080; cv=none; b=myN+R+rmimOxVbaOHf22akHbZ2yP8oVudiKUfJznnSAKlelMcSKLA7pM+XU+l6qaEJmsFVd3RllmsF5sCAH3jCbQ+I9n9OdeuBMwYmjZXIHKbBbbnj9dn07Ac8QKffPUJD049oFUHD9hX3+WsHSd8UGMY3ngkk3DyJTlEnGDrOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707186080; c=relaxed/simple; bh=YqaP2sUi86aQgnoYv0irulc1gLJ/5wSXYz+6MP0M6Vk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=fHZXT/dD687X9lUGDJkvMyi0MJsIXaKcMXGasC9+nl+JRBdXsC3NGrO+6TopIUJ6WAOlBwfV8zCI6kPqvdqJLaSkW4aMpc4x4TAnp9vJtVYyy1oZ4QWPWzGuIFmNh//akSVfA3X8SGqFagKREy0+qEsNoAbl3+H9zCjvu6AbJoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WuA5eNF+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 238BAC43390; Tue, 6 Feb 2024 02:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707186080; bh=YqaP2sUi86aQgnoYv0irulc1gLJ/5wSXYz+6MP0M6Vk=; h=From:Date:Subject:To:Cc:Reply-To:From; b=WuA5eNF+MA7MNN4gz2rYsMCMlD3St9eZXDnan5UzMInnODPVcPsHku+cz4KXqH3kf TG6xhpbhZ/+0JPRc6UIBI/+qqI/2GT6TMI1V87psbSTb24eE5IiEW5IaBHq+42KsPt RvFXFB3q02LUtEgvaICWTeRhEGYOmStSi0Cfae3Cqd4IQxOv2t2l6n97BdZI//+ppf n20KMtS5muxtWZ0jPs3Xo/ToBM6nbyK4FnVXvmdl8+3rIT+n525faGyV/C7Xt9guKs 9jgB8UIQxWj+X/Vs19pxV99k001UH4GlaNtA69VRSqBE+fUF3gm/CDlIfmrwazB+HV p18OXFBIpeEPQ== 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 0B12EC48260; Tue, 6 Feb 2024 02:21:20 +0000 (UTC) From: Hui Liu via B4 Relay Date: Tue, 06 Feb 2024 10:21:13 +0800 Subject: [PATCH] arm64: dts: qcom: qcm6490-idp: Add configurations for gpio-keys 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: <20240206-gpio-keys-v1-1-7683799daf8d@quicinc.com> X-B4-Tracking: v=1; b=H4sIAJmXwWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDIwMz3fSCzHzd7NTKYl1DY4ukpBQLUwMjSwsloPqCotS0zAqwWdGxtbU AgwS/EVsAAAA= 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=1707186079; l=2004; i=quic_huliu@quicinc.com; s=20230823; h=from:subject:message-id; bh=lvOnmsAUNOMzpmFklkrkm1uAXyOcYWnM0tUChPIUfy4=; b=Mr7rYRZPB2Z85vFiulk2wuzYyyb/Tj0QCPYNqaSSMGR6qa2Wn3Kma7VIyJPvdKMc1oo0w+K3P IjPWXhabhOACyXRNwElY+0BUl5XCANQZEbwPARiKNujBkQERcMtKbaT 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 Add configurations for gpio-keys to enable pon_key and pon_resin key. 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>; + + 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