Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2710757lqz; Wed, 3 Apr 2024 06:35:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFvbdZ2GZXHl9CmcUXGffsB6+0+/xTbabCA1wdlV6xeNInd5D/UDOSRD+NW1D67O4/hTcA+x34UUF1Fjkb4idxt2CW65DTd1gp7928Dw== X-Google-Smtp-Source: AGHT+IHzVXS5FAMpkB/OUGOmR2Tswy2oiI1hbwnDFRRx8mqbmGAUW5eVujjrzbHI+iydPyDuEVSJ X-Received: by 2002:a05:6a20:9184:b0:1a5:6cc2:8e20 with SMTP id v4-20020a056a20918400b001a56cc28e20mr3807832pzd.15.1712151331971; Wed, 03 Apr 2024 06:35:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712151331; cv=pass; d=google.com; s=arc-20160816; b=RNsfCn4CgxM6ZX/Vu89w894gBf10U66Tj/zL+UEVjC+bbv5FjimdNX/ughyta+OzNX hfr2ZMXYvHUBYHMX3brDcxG7NRz+w8N6GBk/CCphQSBNVIRf5qTj2mFCIOncLml/M6WR vIn7pzALIXLI63nfGfvao4Zx+fhMFFWEygXb8KwD6hilGcNqE10QOI1bQF4xguWTeriA KDrMpZoF40NdsZJErfKOLqJdeo6bv2AV9YNTHbbBnNhsCoNw835ZjGYpZsniEKS5Yw5q mbKt9FUEt/GeXmA88hLII4kwbuEb9VSQZcgSS91OmLxck6gXIZ1BkYgEK1n4rT/MDKFd X0ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=yZkO476vWnBXahdSSyoINxOnrUmV547YEJLIGTKnHJQ=; fh=fqkvSG27PzjCNNxOtaWFJdLJVq8BPow1GjNi74xtEBE=; b=cVin5G5S2swk8a12TDSQqdctgW3tGW0r+/PaBHc+e4lrs/94K945TrIZYIKOsuz8na g7fyfzpOUXO/ahsdjXpBqgITycKLsiCQ/UVPtbH8R839Dc5fnjLVeNtwoa4yus76vRn9 NiVGV0Ie7iRx9dt4vZTJ/+h8GR5IIjWJQ5xtOw7hIghUFqdY8sm5wZMarZToUEj5X387 bon0jMxbBFxPcl8594+wrTlp5bkCWGZcSTE3bHigwJbXsDS+PNhSEIEowRy4+Skhl/4K GBjnrtJ8Cm/xxCV3CLhdPs4RQuim3V6Hi6MJPi7DRHVKez7mlsxhs9R+TEg98a1mAWs9 WXNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CypjQZpT; 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-129839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b9-20020a631b49000000b005dc4a79c282si12543758pgm.530.2024.04.03.06.35.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:35:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129839-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=@quicinc.com header.s=qcppdkim1 header.b=CypjQZpT; 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-129839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129839-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8FD46290042 for ; Wed, 3 Apr 2024 13:31:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99AF314B086; Wed, 3 Apr 2024 13:29:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CypjQZpT" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 158FC1494D4; Wed, 3 Apr 2024 13:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150943; cv=none; b=hnWANY/YJlMkUussxLja9XZbY8DnUGJRR7mQ3vUV5bDGohCH0c9YrDldJOWj+Al63cD+0gzWIDZauT8UPS/SmYmcC0TpTJRPMUpBQ/JWTcbP/O+YBV3wLjmAwHlLBspg9njRZCwZzZ7W0wKuAXq6R9fs5D6QjwePtrYo3xCdl24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150943; c=relaxed/simple; bh=6BqKuQkKI7qqdSWP3RT3IfyKn2XXs/cwX6b6EcQFUXE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SQhnEJNGQYuHDvPfsb6z/kR2VrywRRsVQ/54BE26wzGjpw8OQrdKhHoBA3zIRCxw7nx2jGF3X7YIr8/APFAWmsK/ZcfadOr5jUu4imodWosLjwyJW1f5AgZ8b1eYLarxmf0J6rUjucpEwK1R5Ge4KZhpKLjOo+r71LJN91fuPu8= 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=CypjQZpT; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 433BcMDs021669; Wed, 3 Apr 2024 13:28:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=yZkO476 vWnBXahdSSyoINxOnrUmV547YEJLIGTKnHJQ=; b=CypjQZpTQzAo7kZGR0rI1lF ud4WVTpFqXtqGU/+Jy/rv/2VFZuD/WQbiZgdE+23vQy1Ra5Kp7dx3+qNpn/KBtjV zHYolLDB9J3R0FhlBqjHmOfGuia2DDa/FN67Ut4aI7urELtW25V3cAWaSML0QDIl d1ZDWp+6DCxIqpBogLxTRY31A8fCvnHa0tDgeejW6daXwCoyPsIDvlOD1H4sXnhP r6E64DsiU06yj7fTkn+eZeoqVRuSomL8vUWZVtIPTI8ZUERG938oo3IdSFRaGkf0 hBNY+tAfD3yVxwzXeN4xqFX0GFkPnv0CJRZUC98AhfqiZucS4kW2OoFlT/14crQ= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x93u58qq4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 Apr 2024 13:28:57 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 433DSubZ031548 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 3 Apr 2024 13:28:56 GMT Received: from hu-uchheda-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 3 Apr 2024 06:28:53 -0700 From: Umang Chheda To: Bjorn Andersson , Konrad Dybcio , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: , , , Subject: [PATCH RESEND] arm64: dts: qcom: qcs6490-rb3gen2: enable PMIC Volume and Power buttons Date: Wed, 3 Apr 2024 18:58:39 +0530 Message-ID: <20240403132839.2117675-1-quic_uchheda@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ClMBjIPmeguc9NnWh9BA8vznp7UQGBTp X-Proofpoint-ORIG-GUID: ClMBjIPmeguc9NnWh9BA8vznp7UQGBTp 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-04-03_12,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 bulkscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404030092 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: Umang Chheda --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 63ebe0774f1d..73f6d18d2331 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -9,6 +9,8 @@ #define PM7250B_SID 8 #define PM7250B_SID1 9 +#include +#include #include #include "sc7280.dtsi" #include "pm7250b.dtsi" @@ -39,6 +41,22 @@ chosen { stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_vol_up_default>; + pinctrl-names = "default"; + + key-volume-up { + label = "Volume_up"; + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + linux,can-disable; + }; + }; + reserved-memory { xbl_mem: xbl@80700000 { reg = <0x0 0x80700000 0x0 0x100000>; @@ -471,6 +489,25 @@ &gcc { ; }; +&pm7325_gpios { + key_vol_up_default: key-vol-up-state { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + qcom,drive-strength = ; + }; +}; + +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + linux,code = ; + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; -- 2.25.1