Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp410568rdb; Fri, 17 Nov 2023 02:19:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlW7Un+Qt4fWaMmzxvjwOwzOxvHTMD7QXuGvVT26YqVSu1z/M764cx3IykX8iOkHTyfeRD X-Received: by 2002:a17:90b:1c07:b0:283:2789:9548 with SMTP id oc7-20020a17090b1c0700b0028327899548mr15717537pjb.14.1700216393012; Fri, 17 Nov 2023 02:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216392; cv=none; d=google.com; s=arc-20160816; b=vDvLwSScu2GFQe7HYe8GhodIIc6AYbumDhraliCm/TG0W6huYZIIxISyqYc76rC49A xC9L+vMs6cfAbGJXbhtVfE2z7VVXIukUXFTapiei3E9lZ6pTlkdPNdKMEgIPwRO0pcb8 A3P4/ymOyhw+25W/8WfnxsNaDPb0wxLZ6ylRhVQ4yF/uT8J085secKaI3FIGEwRaMdKs Kg5y8m2r9nLRELoETVd8xpIl6gOrTjOshD3c+4Jt+kZ3OSKSuCH42qRxbK1nfnOfXKpg 83c3DEs/ygn09Vrh5q4A/U8/osJYwjs0c4ZipwVFU2ZIt08sJAuR3JljjBT9Q/YXttdj 29TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TMjaupVF/P0EzKKz+Gas04TEZ967twPNmKC2IZ6vh8I=; fh=2n2Y+RYHubIkscSnYAqg/mDqVSW4ayNK5xPy63dfWj4=; b=gvkW1Ca1iwdHfm0dDQOLPx5ezV6GA3BHekf8bceN89yC7paRhVDDw3weLzM8QQ3ixw mDjmne0A7RqNkNV5QzlkWfD1uhiXwlRuXjQ9Sbgj+8CHc49xygAxBByR/7R4THvUpZWg N+DVxFHfbgg40XAmfv4qmzVFI3HiiViw9J7RCMWOBdqjF+3CPuVy8PEGfby/gz8ygXG1 EZ0URSCAIAp4NCyAG7obB/UAhahgTE/BqoLPwoOuXT4GUWl+BUGeap+jGhVzicL75vn+ NpS8FQK1sxrLCze51FTWhdGWlKQTwHOBDxxzEctUeA1MDpW1hvdfHg7f4J59RqXlgT8C VdXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eEhsApTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id e12-20020a65678c000000b005be0f40b55csi1582045pgr.488.2023.11.17.02.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:19:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eEhsApTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8286481DDBF5; Fri, 17 Nov 2023 02:19:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345842AbjKQKTl (ORCPT + 99 others); Fri, 17 Nov 2023 05:19:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345853AbjKQKTd (ORCPT ); Fri, 17 Nov 2023 05:19:33 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1065D5D; Fri, 17 Nov 2023 02:19:29 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH9aQnY025106; Fri, 17 Nov 2023 10:19:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=TMjaupVF/P0EzKKz+Gas04TEZ967twPNmKC2IZ6vh8I=; b=eEhsApTaPeLqipt4bPmnNaUtstB28jQoeJ1CN+fgIyzzPPbx0PESZcNYwsPXIiQ6nUtM R/1KRsS+1HR6uvP+GEqRgsKOftOYf+ejD//SFGGQQYXZOHw2atUmsCl28nB8VNO9SSXJ eMQmdq6CkLIhun6cFnnf298EUym/svOagMQBsUZuJm7jz3prW5xKow26/KWOnUdCblq6 1BCRR0MrUbJie+5rgZIcPA7Zlwydif3Rs12GGQT6Xigtf/gXNHCbccKcOjNCFTIz8jE8 TmJuBtCScWZ/bmywK7hx8xoPNjudcPMS98fYxFbmF6Owl9XC4PSZd+4v0qXu6zijpjeb Tw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue5per2rr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:25 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJMXB012988 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:22 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 17 Nov 2023 02:19:19 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 12/16] arm64: dts: qcom: sm8550-aim300: enable PMIC Volume and Power buttons Date: Fri, 17 Nov 2023 18:18:13 +0800 Message-ID: <20231117101817.4401-13-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231117101817.4401-1-quic_tengfan@quicinc.com> References: <20231117101817.4401-1-quic_tengfan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: j5AEMTHMD-j7TOQNkutLiOkkjtQ15Miy X-Proofpoint-ORIG-GUID: j5AEMTHMD-j7TOQNkutLiOkkjtQ15Miy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_08,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 mlxlogscore=751 clxscore=1015 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170076 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 02:19:46 -0800 (PST) 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: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts index 40132073038d..c3f49527b9ad 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts @@ -56,6 +56,22 @@ stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&volume_up_n>; + pinctrl-names = "default"; + + key-volume-up { + label = "Volume Up"; + debounce-interval = <15>; + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,can-disable; + wakeup-source; + }; + }; + pmic-glink { compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink"; #address-cells = <1>; @@ -517,6 +533,16 @@ }; }; +&pm8550_gpios { + volume_up_n: volume-up-n-state { + pins = "gpio6"; + function = "normal"; + power-source = <1>; + bias-pull-up; + input-enable; + }; +}; + &pm8550_pwm { status = "okay"; @@ -549,6 +575,17 @@ vdd3-supply = <&vreg_l5b_3p1>; }; + +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + linux,code = ; + + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; -- 2.17.1