Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp928748rwo; Wed, 2 Aug 2023 06:25:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEM5He6xvUaOyIMj/ud49dJKh6DesezzyiqdQvQpU7fZHYVKlMLapdHywXDVDch2KSNkYN+ X-Received: by 2002:a17:906:974b:b0:988:8efc:54fa with SMTP id o11-20020a170906974b00b009888efc54famr6911026ejy.37.1690982720772; Wed, 02 Aug 2023 06:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690982720; cv=none; d=google.com; s=arc-20160816; b=Vt2hBticKb6wiZjXuU2AWHZslPN5xQ7ln8qEtis/nYvZZbxN2hJ1yzY/hkbJgQyMUX E7kzvjmKbHLPsTkRv5w0VtdHzhMO8OPkXHf1T5tOP+vdv+2DfKWH0LuVxuYrjjI5yeIS SWkk06MBwZ3uH2R9pvVv9whACVDFUfDEDEn3iRMhHtonobcVy+kZ+L/b0NouVvy9A57F j8OIW1/PbEZOlBDqu/RSPe9CACUh9qmuiUuVKUJQiiHPFeYzj9GDAAgCWwZzm079e5Eg NrGqamwK7j2fp6fwlzoWkxwgPNMvL9CJjyMgEvVOGv6y8zFrWMd45qiJHW+XQ3dxWO83 z8Vw== 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=381fQTQzR03LVtnC3U8u6zKfXD5VsZoaKm+UDGYE+kU=; fh=FqIaZmJRa7M15GQeKUdLg2SE2zbDk9BBzU6UB9zaVuw=; b=S+QelcZ/lcekDuyiPz4orV4xXwlrvH3DzAu3HQUomYZ1tKzpIoggXd6CvbF9RxL2vU lqMHNpHSAbl9HS9jCJoLQOKLNXO7Y1rBNX6LGFQM9GCZ3MQPRYvmnD2QEXVOuE4t1zXE P9i2eFdQsYcIncdhdjjFSS1/Lw07dzH4NT9c1mtUwlMT3eRtPLJOowimdLYoAflPuPDz pj2Noxy0N6QSgEjx1+jpSHySCrKj9YN3uMB6OghqSLhRYfNQKcJ2flwhPR7AS7srFu5e nkeVPrycxGVqhxuGqK+IpPi0TqLssvJv3QdbEwph2zCfNRJw9uI7HXOJmZ+Xxw1zvYRw asHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gkv1YDKw; 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 s23-20020a1709066c9700b00997ba1c6f3dsi141308ejr.403.2023.08.02.06.24.54; Wed, 02 Aug 2023 06:25:20 -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=Gkv1YDKw; 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 S232579AbjHBKKB (ORCPT + 99 others); Wed, 2 Aug 2023 06:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231358AbjHBKJ4 (ORCPT ); Wed, 2 Aug 2023 06:09:56 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 194AB10D2; Wed, 2 Aug 2023 03:09:55 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3725laIE007187; Wed, 2 Aug 2023 09:59:33 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=381fQTQzR03LVtnC3U8u6zKfXD5VsZoaKm+UDGYE+kU=; b=Gkv1YDKwGrUQ+raF+TozK3V0+AanFgSGnhKKEB3Wj0VzAzoiqMQ6pcYz3F94dKSOHUPq rLFy86sTXr0xnbwetmsDumEj3lPNB2g9I7GwFArzoFzyEgrdyrGZHu+x3/iAoFsdkb8G JjT4lrn60xVRjnBOGGBy5FSu8pHeF1OeIFVD6MTm6hobSaUvX76dwF9xZ1UHmbYLMdLB qqPetd4RXofh3vCOInsLWcnDBcIJ322UrGR6pvo6eRYVT0Nb52ns7DyxNCxF4J2lK8Tj eff04v0ld0p3xunO726fD9hYmpP6/yhqFI7d7zlfw8rI/6jQcBHUebs6lMtOw4NxCIcN ag== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s7bp69a46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Aug 2023 09:59:32 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 3729xT1j006642; Wed, 2 Aug 2023 09:59:29 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3s4uuke10e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 02 Aug 2023 09:59:29 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3729xTPB006619; Wed, 2 Aug 2023 09:59:29 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-rohiagar-hyd.qualcomm.com [10.213.106.138]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3729xSf4006611; Wed, 02 Aug 2023 09:59:29 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id 6AC471A80; Wed, 2 Aug 2023 15:29:28 +0530 (+0530) From: Rohit Agarwal To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rohit Agarwal Subject: [PATCH 4/8] arm64: dts: qcom: Add PMIC pmx75 dtsi Date: Wed, 2 Aug 2023 15:29:22 +0530 Message-Id: <1690970366-30982-5-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1690970366-30982-1-git-send-email-quic_rohiagar@quicinc.com> References: <1690970366-30982-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: wEkqbyQSk2748kDjkwL7TRbl1fmQCxO3 X-Proofpoint-ORIG-GUID: wEkqbyQSk2748kDjkwL7TRbl1fmQCxO3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-02_04,2023-08-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 spamscore=0 mlxlogscore=443 bulkscore=0 suspectscore=0 clxscore=1015 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308020087 X-Spam-Status: No, score=-1.8 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 PMIC pmx75 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..28d99bc --- /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>; + + 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: 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