Received: by 2002:ac8:4b50:0:b0:42d:ce8e:db0a with SMTP id e16csp745371qts; Fri, 23 Feb 2024 03:28:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWzAvqapub74duEeFUjwZUW3q6epGPveg9G/kcCr6h5wgwqzvYfR0KXAE0yNOYAAy0DbX97Vrruw9eb9flH17r4ygNYV1GMNYMxdiu4Fw== X-Google-Smtp-Source: AGHT+IF1qN4JKexftB+SibJeVuOHRorLjoaedBpK0Hvj7NyqHlTO14yFbHKh1K6S4Wat7nufMlah X-Received: by 2002:a05:6a20:e68f:b0:1a0:e191:f08a with SMTP id mz15-20020a056a20e68f00b001a0e191f08amr1085922pzb.17.1708687128233; Fri, 23 Feb 2024 03:18:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708687128; cv=pass; d=google.com; s=arc-20160816; b=f1I5Nkeklcym8MEcgTurbCwQgw/xzvWwH0x3TDGyi1B9RDG734zXdwDEDIv2Hkfn7n r91RLcaL9z33iv1F6bpJpbnI3ebaBu7ngiv+wW2lvZ67WUXUFe9mp9E/7AOimUkHI30E VWmeeCUcSP0tr5WktU340iWDMEMOxcSmu/ck4vgaAotTsiL0txLsjPEq6r1ngWGgHu8m i7yXIxt8eC0rDLaFosLYVRVNAuiV3rLwd3Jk8f6WoPyM5jo+nHM6C/57uFk1+T2fZMc6 I7NDUrcG2sVHY9Jtjg/WC3WN5pk64HXzJMGjKLfRGtFRHC93QmlRWR1v2HTh0dgPINBk ymug== 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=Bd8+pa9Y8fMaEsfU5vXWWJcoLl3YVu8PWxuCvGzENkY=; fh=r8i+U82cndHysm46d/piJjLb5GyuGzFZk3haf6SL8Zg=; b=eT8mm8gxucBq+ZQfD02lPXB0W4j5D67oku0yN5L/hqTpXKSI570JdChbwy82PqfPh+ sIgAgSR0AtpgyTuF18Z0185+yjjBVH3wU8dsGhFeDwpQyftZVjDg5ciI7MSPUnmEbPik NcFIYAFPQSl8Z+WZFouSbHB3rtErOR70RFWwbVYLK+3HyBgahrhibngAAKgWLnPA+Pom qXYYn8SDFgDwJ4FE7UQ7bOHfJh72ufmGbLrLEx5da7PCpStaFRa1p2LxEeDrt0ePrfFO zWbmjJji99ZgRxj9gOKtv1YHB4h7oAoHNoG/x0quhqqxUru+wUAsD6vOdQ8Pj/4vD6l3 CMlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdqA70He; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k190-20020a6384c7000000b005dcab90d688si11863679pgd.526.2024.02.23.03.18.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 03:18:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdqA70He; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78203-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CC6812868D3 for ; Fri, 23 Feb 2024 11:18:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36D55763F0; Fri, 23 Feb 2024 11:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UdqA70He" 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 544735C911; Fri, 23 Feb 2024 11:18:38 +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=1708687119; cv=none; b=cYHGrb2jPOtyBU+iWm1F9rHZBKP8cfdB5LCFZgervrYhnX9M0JWu5uz6zpGjAPMo5x+5y0jOCzVE3WzTFGV4Bnl/xReWvTGuoZElUvIjPN3pPSTPPydZ48w04vdKWbMXJ4EB0IP7qTVvOByl+9OrNzSkAi2NaHnZDdGFJ/tol3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708687119; c=relaxed/simple; bh=WqWwgEoSuM/1pfV16dEakkeAH3YcAqhmmNupq9ppA1Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ncwOtCz1S2qqkNryx++crP6RXqQ74SNEiagYAfNyGaJzw46Parl21Z9Wq/3AThG0YqHA1BQGb1ruunb2Po/vAQwny3uNw9b842Iqo3MEQWwix10ApI0lEaV+zhTHu5m884wzF8Udg++wsCPTCeJLggSY2CYor56hcSalSDMGUbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UdqA70He; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B557BC433F1; Fri, 23 Feb 2024 11:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708687118; bh=WqWwgEoSuM/1pfV16dEakkeAH3YcAqhmmNupq9ppA1Y=; h=From:Date:Subject:To:Cc:Reply-To:From; b=UdqA70HeRjCxiNtSJmZh3McG5HyShAQSx7OcaEfrQI/wMzmdrz0BOKriZFbwmYnvT 0s+yv7HxvsYDMy7aYeixVmfsCfpf3RzLrZ3zjqgrOteT5kbOmgQO5xjdU3iL4ASgK3 qFCJz/m65OugLmDtEVOmVEpQbMEFl0OVV7iEm9YW44nvkQrN91O+R9s8dN81c/hOOr rqIvn3m1fWUoKTDdlVds+QymKLUDmgAJkV5rnDZYM205amTstAQh0eWhze+Uztt3PN pr6f65GvM8Fk3xlgqzjnSpRr5Af7EeSGEa1JAJ9/ldHtE0tbRh3ZzkDWn9Wlw0yBbD FEgxR00zo0s/w== 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 98738C5478C; Fri, 23 Feb 2024 11:18:38 +0000 (UTC) From: Hui Liu via B4 Relay Date: Fri, 23 Feb 2024 19:18:06 +0800 Subject: [PATCH v2] arm64: dts: qcom: qcm6490-idp: enable pwrkey and volume-up/down function 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: <20240223-gpio-keys-v2-1-19f48b3d8762@quicinc.com> X-B4-Tracking: v=1; b=H4sIAO5+2GUC/23MQQ7CIBCF4as0sxYDVFtw5T1MFy1M24kRKiixa bi72LXL/+Xl2yBiIIxwqTYImCiSdyXkoQIz925CRrY0SC5PXPKGTQt5dsc1MlGrYbDqzKVWUP5 LwJE+u3XrSs8UXz6sO53Eb/2nJMEEaxtVt1rbflT2+nyTIWeOxj+gyzl/AbdBbyGkAAAA 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=1708687117; l=2151; i=quic_huliu@quicinc.com; s=20230823; h=from:subject:message-id; bh=uxn7urf55wldvs+MTDmzxYHE9lWSCWgorQZPNSBSB4Q=; b=gFwfI20rOvMU+88wBhjVvCNwQwZr+PNJ5pJs+3SVsZpZJBYjmgkcPnn+WzZ1ym208s046PcXO HN2QoWGkSEkDzkFnRj2GQIpR340qTwpsJkYp9L3kJ0NE+rVE21fPiBP 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 to enable pwrkey, volume-up and volume-down function. 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>; + }; +}; + &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