Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3025876rwb; Mon, 7 Aug 2023 07:13:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGI39hlpcFsBC22y+8S08yAI7kSO+AJPMEAkhd5hOPKv90OGY6O76HLUkVq7D1enuv99Tf7 X-Received: by 2002:a17:90a:9b18:b0:268:18d2:3e98 with SMTP id f24-20020a17090a9b1800b0026818d23e98mr6824873pjp.43.1691417600627; Mon, 07 Aug 2023 07:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691417600; cv=none; d=google.com; s=arc-20160816; b=whpgPvoSJcfph9N/4j9xbY+qSeVGsJKAyQfHWURD+9ODajPwGdpNR5cwwbr3YtKNZ8 YOoCimA1tze573ynjR7Hk5iSR33xPHDT1UJpe5Wsz1hlxNATZGTT55LQOQBm4YKRXDnC 7Rqc79s8+VLrYYueoZSrbNdDi9fNTWhe4jUUlUCUMYSiLF3d0CYxDSMujNXefBMsa78R SEZYmraYS7V9ITS8s/OzH4aqwBKozWWpFkPhBB8ojt1qQYqhogcQZR/uQGwObREvAUGm RPmK9VU+FFZK1vXs0ZMDGHU8YSUfU0DuPDvD64wq4zPfcq55XuP5ouWyph7+RoelrSlL MDOw== 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=CLKb9X/Gui5dG4Mp8HwNXMxauT67hKPfH2YnlvtbCrU=; b=v02ff5uWrurpsWxHuu52YCraoXTRmNOo1Hx6/iHIt+BQMuAHyeE+hrpkzzcu5wNZn6 LwIsvhpq7uwQ6KKnaQ84GW9gmpdHO284WnZo0MaXmb1X0DgrP24onI6uNSfKREKrfFlf YaV7IJButEZ9XnwWV7ocm6vMoCCggATSKUsIhoP97GAM3+G8PIN9Oi8sgovdGKf4Xv6H KI69qEL2VGQTPWzVdi5D28npM7M7Uu+bkI62EKNvvR9lexy6ifT1wkdG8HaWBECrSgKm U8S27wRSpZEvw7AUPdp2iNwABtHVi4wToXa5f8OwoO78Sho0aLbOJYDE6tcgf5cowknG EjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o1DiyFQU; 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 pi7-20020a17090b1e4700b002632a1243dbsi9173389pjb.104.2023.08.07.07.13.07; Mon, 07 Aug 2023 07:13: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=o1DiyFQU; 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 S234307AbjHGNjv (ORCPT + 99 others); Mon, 7 Aug 2023 09:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234241AbjHGNjc (ORCPT ); Mon, 7 Aug 2023 09:39:32 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4255EE54; Mon, 7 Aug 2023 06:39:29 -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 377AsOTQ010048; Mon, 7 Aug 2023 13:39:22 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=o1DiyFQU3UlbZBqKpKPlI/ESl3NSVin9UObhSomdqFKhLwvI/+krjJMOBPYTxg9cBGU4 MZBQv1tVL/VqHyOEvMzSwml/tuniODw3Nzwyk9HhT1rW/BJXZPYMWvES6RmyKtzMHRQP pnU0jl6ETfR/mkhrz3AzTDbSr4x6sClofrHOwXPQN87TQmx0v23xH4WVcXGfZe7gZtPf rZQGUnjcEg2a4zAdjzCLvCOJgOR3f7t9dV5sbf1CAv2qkgfoLY4mCDUqtrX4AQcjxhJV fRRJw9aEi8J+NMbzznA4lPdZY3JRaFhHQ+KHEcBbb4+XiWkYUrFVUXBJMv43ubLm07xV vg== 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 3sax18rh10-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 13:39:21 +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 377Dcvnu006258; Mon, 7 Aug 2023 13:38:58 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3s9fgkp5th-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 07 Aug 2023 13:38:58 +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 377DcvSq006294; Mon, 7 Aug 2023 13:38:58 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 377Dcv72006336; Mon, 07 Aug 2023 13:38:58 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id 466C31B67; Mon, 7 Aug 2023 19:08:57 +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, Rohit Agarwal Subject: [PATCH RESEND v2 5/9] arm64: dts: qcom: Add pmx75 PMIC dtsi Date: Mon, 7 Aug 2023 19:08:50 +0530 Message-Id: <1691415534-31820-6-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1691415534-31820-1-git-send-email-quic_rohiagar@quicinc.com> References: <1691415534-31820-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: 1TtmS8pYVYXVa15RQChZMf-RlpIbNqhZ X-Proofpoint-ORIG-GUID: 1TtmS8pYVYXVa15RQChZMf-RlpIbNqhZ 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_14,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-2308070127 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