Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3001116rwb; Mon, 7 Aug 2023 06:55:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA+h3k1+0+JvvXl2eVV8QTTzxRqHM97p8wuOJvcsuvEwqlTccvPKBl9FDwDV9OTlv5GmN8 X-Received: by 2002:a05:6a20:244b:b0:140:3554:3f44 with SMTP id t11-20020a056a20244b00b0014035543f44mr9797824pzc.22.1691416519481; Mon, 07 Aug 2023 06:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691416519; cv=none; d=google.com; s=arc-20160816; b=cbh29SezdpQfuXX26zN4AXRUWndR7P9wuPM22/MhuJ6gQJLR81jk+9DU8TlGtvBKxK N2sXVbE3RvRkttkF2VUNd/OduY5xwAstV8ITQlcsFDt57DnNuc4AvTV43LZE1zXoVKpo YO56fIxf1gXu2mUzmkNTbnqKUQPRODRtuXKenu8Ure4BxBw+9uNMocSpE1Y2B3DEWPQP 0b58dtfOPzDt+Gice9aucRwn552g8scJjsmcVf82TzwxTrAmjyxrkLsSjMt59tiV6mxw SGum5fBE89cf7TOBhcStAguaMfmxx8KLjYJ70KLz36y/H4AhjY5Q8RIEV+l698Ffz8HB VZPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=W16oT+2sW04dm/jRfSyh1arwi1EC0iZRt6B548ghO1k=; fh=AuPWtkft2QpSof+GFzbc3pi2uF0J8RaXyhSfvcIkZ3Q=; b=0ItPXP6Myb41vVMV8iREQlxiwbQC73dzXuzfO8TVh9v/b/KRmQx+4oqoLNWwR1KsGR iLdRajUqREoY7DzOxqVQFBB2Pev1FeK+sP+N0wbwVNtIJPMn/5WS8Dkg8XnBghJQKw43 TiRuWi+NbOD0id/SMzDKXMJVoGlcDUbkNVlONa9OhXiWrNDr5CE+MfHII7dlp7d+4Hnf TKjANr2bCw9xCv63K5KZmMvGLmqp+A5V9HCA7D5bHzcIuvDAIt/SrChbckevIGhcX7YO nOOG0Fu0zeEiPTHPD2czNYx4Rj3IZ3E3zS9WDozUVnmxmDIDv1SuCoJsyvmFS46Guu36 Pmzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bs+Vi1qV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020a632b05000000b00557622a044esi5560400pgr.805.2023.08.07.06.55.06; Mon, 07 Aug 2023 06:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bs+Vi1qV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233558AbjHGM3p (ORCPT + 99 others); Mon, 7 Aug 2023 08:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233556AbjHGM3i (ORCPT ); Mon, 7 Aug 2023 08:29:38 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24461721; Mon, 7 Aug 2023 05:29:26 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377CKlEJ017879; Mon, 7 Aug 2023 12:29:19 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; s=qcppdkim1; bh=W16oT+2sW04dm/jRfSyh1arwi1EC0iZRt6B548ghO1k=; b=bs+Vi1qVfhdPwdcDdXidfZZci5dqJEyP0GU3ic/8QdaxwMzA5XJVw1AozuZh4iX4JSBn sTkDfJW2et09KpbA8WNchXj8a2AFHSgjZ2xIT7Sp0zPZV6S8hK1bSEHkBmmdzJCOk3jQ r2Vac1dWSe8kGLIGETtfBVysLgGkOQKeFSiXMl3Xp8R5pVGjpVUeba+cRCsozbx9JyXr yh3d+o7Ls0KrHMPVyZ/a1Ed9KlvK9EP6MFDvp7ssxEuNu4PZygBDcacqqDD2C9h+waTl IvvVKWfhNnIvEnoV56t0kjH2490QyJkZ+BYuz7M/HZXSyY/BPsEiExezRuN1fV8bpYpR DA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3sax18rd8s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 12:29:18 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 377CSu21032568; Mon, 7 Aug 2023 12:28:56 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3s9fgkntw8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 07 Aug 2023 12:28:56 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377CStmv032396; Mon, 7 Aug 2023 12:28:56 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-rohiagar-hyd.qualcomm.com [10.213.106.138]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 377CSuhs032419; Mon, 07 Aug 2023 12:28:56 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id BA05E1B5B; Mon, 7 Aug 2023 17:58:55 +0530 (+0530) From: Rohit Agarwal To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, abel.vesa@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, quic_pkondeti@quicinc.com, Rohit Agarwal Subject: [PATCH v2 5/9] arm64: dts: qcom: Add pmx75 PMIC dtsi Date: Mon, 7 Aug 2023 17:58:49 +0530 Message-Id: <1691411333-1556-6-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1691411333-1556-1-git-send-email-quic_rohiagar@quicinc.com> References: <1691411333-1556-1-git-send-email-quic_rohiagar@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: VnxM3oOonQf37S9W8wgEfvJNhvhoBevh X-Proofpoint-ORIG-GUID: VnxM3oOonQf37S9W8wgEfvJNhvhoBevh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_12,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 phishscore=0 impostorscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=568 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070116 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dtsi for pmx75 PMIC found in Qualcomm platforms. Signed-off-by: Rohit Agarwal --- arch/arm64/boot/dts/qcom/pmx75.dtsi | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmx75.dtsi diff --git a/arch/arm64/boot/dts/qcom/pmx75.dtsi b/arch/arm64/boot/dts/qcom/pmx75.dtsi new file mode 100644 index 0000000..373e45f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmx75.dtsi @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include +#include + +/ { + thermal-zones { + pmx75-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmx75_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + +&spmi_bus { + pmx75: pmic@1 { + compatible = "qcom,pmx75", "qcom,spmi-pmic"; + reg = <1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmx75_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pmx75_gpios: gpio@8800 { + compatible = "qcom,pmx75-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmx75_gpios 0 0 16>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +}; -- 2.7.4