From patchwork Fri Oct 28 14:08:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Marussi X-Patchwork-Id: 12326 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp860750wru; Fri, 28 Oct 2022 07:23:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WGVavW1nyh/RMerRbq59HFJdF2V6bZ3jlpCjHl2qKzP38jpJnlHEhgG3icwHsW9Q/hcXF X-Received: by 2002:a17:90b:254b:b0:200:a860:5bf9 with SMTP id nw11-20020a17090b254b00b00200a8605bf9mr16330109pjb.176.1666966984368; Fri, 28 Oct 2022 07:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666966984; cv=none; d=google.com; s=arc-20160816; b=mBcHr1lKopJEBBmj/Ig02ZK5REGtGbZskl9D7jNcZJU3kriXnbjOtN090KoPsXxtU5 QaLp8bXPthccOOoL2tGObsgQYBPrTCAkOkvGnsa+Dc8iOc7anvLqnrtGsq5SXY97Cmju A45rG77/nb5xN+rxgZBnsi91fiVaRmq9UjKBrofXBZNDyrXswqGxr0l5pgd7eQ1gk4R1 OsHDdmz35lDv7QOG4GmPPgY2HT3+uHd0DyRRZ3Mc9DHdrFla2fKgW3OwXRcKFKshxqFU BgA+jz4km08yHiCUiNiOgWN9RqHlAWPS5StZCHUOlRE6aa6lIq/mZ+il2R81dqu4/VL9 CQxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=94hMpI73PIO0h/3Vty+XMO2zi3C0gyTkN9HJvjrlbOc=; b=trY8ZBthIa1x4IA/VTRydND0n7beI51K4MDxTdqenrUgcIAoHM8FjROBSodkYfRx5H XQb8B9DYwc8kb9Pp28SsmJFEAgWx28/DLXxZJqsVobyMVzMedjxpGk0vSvg4KP7qhYfZ 8OF6iFVrttY60h1g/3w1C1zedj4QGFawVjizJpjq7by11n3r7P0mqlFWcwQGRtvGEfPj gK16a6674nebU6p8Q70JkklKC+VNnDrxqhnv07ATU3ysVUfDKQLoBY99YXzBJF5Wo0ad YOP/TyCU/V4D6mwJlauGSgqQWNdPzzNnCGFrGRoV283kunfOApD3G/yyWB0IV7rylypv 5BZw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902f54a00b00186b6a32284si6145584plf.548.2022.10.28.07.22.50; Fri, 28 Oct 2022 07:23:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbiJ1OJj (ORCPT + 99 others); Fri, 28 Oct 2022 10:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbiJ1OJQ (ORCPT ); Fri, 28 Oct 2022 10:09:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3EE51E047D; Fri, 28 Oct 2022 07:09:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E499512FC; Fri, 28 Oct 2022 07:09:18 -0700 (PDT) Received: from e120937-lin.. (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 935F53F534; Fri, 28 Oct 2022 07:09:11 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, cristian.marussi@arm.com, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: [PATCH 8/8] arm64: dts: juno: Add Thermal critical trip points Date: Fri, 28 Oct 2022 15:08:33 +0100 Message-Id: <20221028140833.280091-8-cristian.marussi@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028140833.280091-1-cristian.marussi@arm.com> References: <20221028140833.280091-1-cristian.marussi@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747941572683793260?= X-GMAIL-MSGID: =?utf-8?q?1747941572683793260?= When thernal zones are defined, trip points definitions are mandatory. Define a couple of critical trip points for monitoring of existing PMIC and SOC thermale zones. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Signed-off-by: Cristian Marussi ---- Not sure if we want to add a: Fixes: f7b636a8d83c ("arm64: dts: juno: add thermal zones for scpi sensors") --- arch/arm64/boot/dts/arm/juno-base.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index 2f27619d8abd..8b4d280b1e7e 100644 --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -751,12 +751,26 @@ pmic { polling-delay = <1000>; polling-delay-passive = <100>; thermal-sensors = <&scpi_sensors0 0>; + trips { + pmic_crit0: trip0 { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; }; soc { polling-delay = <1000>; polling-delay-passive = <100>; thermal-sensors = <&scpi_sensors0 3>; + trips { + soc_crit0: trip0 { + temperature = <80000>; + hysteresis = <2000>; + type = "critical"; + }; + }; }; big_cluster_thermal_zone: big-cluster {