From patchwork Sat Oct 29 05:14:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 619907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90569C38A02 for ; Sat, 29 Oct 2022 05:15:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbiJ2FPa (ORCPT ); Sat, 29 Oct 2022 01:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJ2FPW (ORCPT ); Sat, 29 Oct 2022 01:15:22 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6085B72681 for ; Fri, 28 Oct 2022 22:15:20 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso9280113pjn.0 for ; Fri, 28 Oct 2022 22:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xvKcD3l6/5U/0zNEk8IHW582eq6MJZUcXiJ8kdr7C7Q=; b=L6lV10orwhzNyzEtNBShFwUInB2CLYL9Ag5+S8uS14i2ILFIWCCS2zhDdr7lAVkjuP bvVTyNH1neNo7IbPr5sSuNTGl28gNA3FM+ociY+KsuAAV7Wt+jg0PMZy+wSGjRoE/y7G kxRS8smVY6QVglzKxMrU3xWa/YT7xNyR5i47GQjs1bGl77eyggzwJc+l6EWgfU+HYhW/ s7CRX1jIe2pa6RAxIiP91PRswbrliu1SIE6Ba66YhEQ/R7n/Vsf6btwKqOFDo1oKwraj HNqKeOBR5Lu9alxiVDYZlXz8fAiiEGOG/QfWoGQKMGg/FjvNyWH57GfMxdLiI0oYoxLA tjew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xvKcD3l6/5U/0zNEk8IHW582eq6MJZUcXiJ8kdr7C7Q=; b=CQGbqD+WRj0yFV1xhJl3B2Xv+bqTJkZd1wBg2YhfxS3HasCZ5EjLVbq7OdGP2DsFIo C67tJMhBN1VJa/5r2ibF5QvL5pBPxlh7OAYIuBTaRo1fmbP0eQxx8zMs7gywzqDZtNfr YaswQ6z1o3fYyv1AYxZYV3GCm8mvIW2DB0UU2kH/OS7r5UnHD4h46yi2xG4+F01ZyhL/ KwEnNiN7Phhr69/qyE7XgYzKfunpG1FM5sm92J++X9Dfqgi6hARtVN8FE1m42UkCXnzU f5zT8EsYSfZEP9+vlepeGqzu9MaySRucUda6zQusqSwPFdSP4kKD023zBoVWt/K+YOA6 2zBg== X-Gm-Message-State: ACrzQf1mkgmWJvAtAlnrK4kETLsZgA+6Wd5l5pDRkRgOPPoSi4ODg+/K wOgF/YGDzQ6oQbtmMEgw4xGj X-Google-Smtp-Source: AMsMyM6H9Ftr3BYbSd1RofzbaeEoisIRGSgo19CwBFMXqIz2RLgJVrJWTTzgq1KoGTDuXGzYstKcMA== X-Received: by 2002:a17:902:bb98:b0:186:988d:a0f0 with SMTP id m24-20020a170902bb9800b00186988da0f0mr2755451pls.10.1667020519823; Fri, 28 Oct 2022 22:15:19 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:19 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v2 03/12] arm64: dts: qcom: sc8280xp-pmics: Add thermal zones for PM8280_{1/2} PMICs Date: Sat, 29 Oct 2022 10:44:40 +0530 Message-Id: <20221029051449.30678-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add thermal zones for the PM8280_{1/2} PMICs by using the temperature alarm blocks as the thermal sensors. Temperature trip points are inherited from PM8350 PMIC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 5de47b1434a4..397ff4995003 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -7,6 +7,50 @@ #include #include +/ { + thermal-zones { + pm8280_1_thermal: pm8280-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8280_1_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + pm8280_2_thermal: pm8280-2-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8280_2_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmk8280: pmic@0 { compatible = "qcom,pmk8350", "qcom,spmi-pmic";