From patchwork Fri Apr 21 13:20:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1068771vqo; Fri, 21 Apr 2023 06:31:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEOgL/rWzq8oQAP/CdThG8XmBqVGidmOi4jeBnMcWM9geQy1ZtNJ3OeGh3TYab2GIleyzK X-Received: by 2002:a17:902:f544:b0:1a6:84be:a08f with SMTP id h4-20020a170902f54400b001a684bea08fmr6122827plf.64.1682083865623; Fri, 21 Apr 2023 06:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083865; cv=none; d=google.com; s=arc-20160816; b=NdXHmIm0tOc8rmMP9bOg34pqJ1gKHK9VJRrqAArzxo+2bezFdLta+RsIJtN45wJzmk RsnArFGgRmfz40J+WW8i4tku8SvVnba0sJEpuvaxg0ldZacTtoPWwTEpV/Oir0QRBNei 0X6/NzetVIYuBlB17spE63k9fQibuqli7gFH97ByLVVFp25WXdQP2e6jILMMLnREFlL9 eGejv0ocuHnuPeJsweNaoPwxm9uc1iKFRsLMLQOrjVZZ7K86enq7xURlmQvEq3WFjD0f 0luvWXNsE22CRs3QmwPv+2e8bBaMgJEuKjYqkqMzewzubHlQeptfMNxEnkNbwWUxKVhd APIQ== 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 :dkim-signature; bh=G0r0DPCZt1EU488fl2GZEqSoMWdqqn9V2ojnp3z0FnE=; b=uTHAvUxDcDe1Z5JXvEvM1UwdDJX5s7BtakL9szmEmLKIF+pbtNurPuL/UbyKR6PfNx CWAJozXC4CQ9KNtOo7D22Qqt8FBcmc429JF8MJS7SBtvmabfvvB9Kzn+27C2nJpaZ1mD e1PVSK+5ouxbv7O15+H0MBc+CxfsTAv3f9hOQmAoE3kjQkIib8Upg4TMva4E42CmZNhG D26Gd81HAwOFt15X5J1ZcO2Ls50xql0bj9V1CXtBR9s3RyWnUUnNAQDfl522Js7qjmI3 6Qz49IFRDVcDgGON/lJpjyTdQKEL78Rvo8E2eiTgt89OsvNH6lmJuJHlu6soIEAuqNIw gZSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=UR4nsX1r; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij18-20020a170902ab5200b001a1b454e535si4163678plb.257.2023.04.21.06.30.52; Fri, 21 Apr 2023 06:31:05 -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=@mailerdienst.de header.s=20200217 header.b=UR4nsX1r; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232440AbjDUNaB (ORCPT + 99 others); Fri, 21 Apr 2023 09:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbjDUN3x (ORCPT ); Fri, 21 Apr 2023 09:29:53 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F736F2; Fri, 21 Apr 2023 06:29:52 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 1C172403F3; Fri, 21 Apr 2023 13:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G0r0DPCZt1EU488fl2GZEqSoMWdqqn9V2ojnp3z0FnE=; b=UR4nsX1r2aXnxpPuEaO65hov5YFHqI6djkFgTMhrnWyj63ZWLuhJlewOo5544FPp1+UgP4 N6WAsS3x0rWze0vX0EseVtLBI5ZPUGU4jJBZpqERpBYsQISLw1Uh0JJv0RXYjQ8XEemfRa +ruFmmCim29eRZGRt1EDMjERyp7xULQ= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 119EE10072A; Fri, 21 Apr 2023 13:20:58 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Srinivas Kandagatla , "Hui.Liu" , Zhiyong Tao , Andrew-CT Chen , Lala Lin , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Golle Subject: [PATCH v1 6/7] arm64: dts: mt7986: add thermal-zones Date: Fri, 21 Apr 2023 15:20:46 +0200 Message-Id: <20230421132047.42166-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230421132047.42166-1-linux@fw-web.de> References: <20230421132047.42166-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 5d68a617-c55d-461a-a20f-0eeaabed9417 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1763792771617498868?= X-GMAIL-MSGID: =?utf-8?q?1763792771617498868?= From: Daniel Golle Add thermal-zones to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index a409d5e845c2..845b29a9664a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -603,4 +603,44 @@ wifi: wifi@18000000 { memory-region = <&wmcpu_emi>; }; }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu_trip_crit: crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu_trip_hot: hot { + temperature = <120000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu_trip_active_high: active-high { + temperature = <115000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_low: active-low { + temperature = <85000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_passive: passive { + temperature = <40000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + }; + }; };