From patchwork Mon May 29 20:42:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 100426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1762721vqr; Mon, 29 May 2023 14:01:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jNZaJ221C1y7aJK7IOKR5o35TD8OhTypQdXys1ARHO6IGenECk+NRyfBfJIuHX10uAd66 X-Received: by 2002:a17:902:e5d0:b0:1af:981b:eeff with SMTP id u16-20020a170902e5d000b001af981beeffmr285290plf.64.1685394079114; Mon, 29 May 2023 14:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685394079; cv=none; d=google.com; s=arc-20160816; b=zCKttDwmgcKxV/vht/KbapMItEPxwM0NnbJAPhNmgcnqaBjdRt1I3tTG34CwsGS9lz 2cS/43t8ZD9Y/Wj82tmFcermwi6gT8VofjKX3WMmuddNf3tWqv/oznKtkL8adHaBGcX3 xdRP8I4PrmbFD3jWRRXE5NT23QsLjzVZ/JhHJiKSz8UxPkWOx/pWmgQNUYjxlSj20qw4 AaCUmEoWIX7WpbEsc+D0306urcShHr8aBZtqjnAaw6s46iBOo4RmsFuIxdCRhO6LbMce MKoL4BaDzLZ0TU4qCWZanh0YFjE5YxGYC/2iDQJFpmjUacWqEvzhyEWISSEIPa26vTKG 6eZw== 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=cDhjjWLFoezZAi/uvwan8VYbJJegbs/FI4UlVYsQEcA=; b=kEkSL8XOAzahPfFCwu4Z00x2iNNdrXApnbz4uwyANYrnnLHjDRWTTT1LawEyOrmYen BOHwhm1IJlEwcds1IZ+NXCgHMITAkoMvXXeUYaW5Cee6Kb9M+hU3+QQ87EBSc5WariTr n72EvCPBkqp+hiJiJDRthy3lmGAhSWYXthzGxmAJWJyh9H9etSTfGmWHkWb2L4P6F+Em VSPQsvGTCYpUS2I647ikKtEtnogJ1pzXIhthJ/1vhoXGePe77qI5MBOoFV8e+B9VxI2N n+z/slbV/Wtm0uOZYXlWF0m4T0GQsKWYfrWoI7NTjgmmBB94LUCk68QkW9PvNSp1oowr ej7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=WzpP0SHn; 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 s13-20020a17090aad8d00b002402275fc56si10312489pjq.118.2023.05.29.14.01.04; Mon, 29 May 2023 14:01:19 -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=WzpP0SHn; 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 S229656AbjE2Uwo (ORCPT + 99 others); Mon, 29 May 2023 16:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjE2Uwm (ORCPT ); Mon, 29 May 2023 16:52:42 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FC97C7; Mon, 29 May 2023 13:52:41 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 54B9C5FBD8; Mon, 29 May 2023 20:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1685393014; 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=cDhjjWLFoezZAi/uvwan8VYbJJegbs/FI4UlVYsQEcA=; b=WzpP0SHn+OnZOkihcA/BoupceBtWe7QqKIQ1D4yILwJwnZxeZcAmBZO9N0brpsAL1vaMCo VNekBSXfHtErz5nvHTaLb9pym86CweVfQgVfiqCV7LQ3knRalaBMX45ijUVX9qdAiUOQ4d qYLV5hTKoPjFYsGqnTTBJAUHQM38Z2w= Received: from frank-G5.. (fttx-pool-217.61.156.2.bambit.de [217.61.156.2]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 6A3D6100AD7; Mon, 29 May 2023 20:43:33 +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 v2 3/4] arm64: dts: mt7986: add thermal-zones Date: Mon, 29 May 2023 22:42:57 +0200 Message-Id: <20230529204258.65238-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230529204258.65238-1-linux@fw-web.de> References: <20230529204258.65238-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 1e0afbdd-08cb-4eec-9e6e-32b2db403961 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 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?1767263781750682921?= X-GMAIL-MSGID: =?utf-8?q?1767263781750682921?= From: Daniel Golle Add thermal-zones to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes in v2: - drop top 2 thermal trips as suggested by matthias --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index a409d5e845c2..a059fcdaa8b7 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -603,4 +603,32 @@ 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_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"; + }; + }; + }; + }; };