From patchwork Thu Aug 8 09:09:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Te Yuan X-Patchwork-Id: 13757129 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 207FEC3DA4A for ; Thu, 8 Aug 2024 09:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=L6K1xKrigqLUKfosZWg5PePAmCLxQRgMDc7IWF6RGgE=; b=JMVC+GSWRB3R37G4DlbjPnQdJc 7RC50sOj4HLUudBX8so+zh/ohV8PWgK7fFyHCtJ3hxboaliF41CPqmRH6vHii/FyHYB9eS5BfvNOu sBdvTEgmwXRXwoRRIyuVtJfusdlRlmK+k+SMoyGD6BAxu6XZisd+dS2LOjU8Y9EwhRQ22J217Fnpi MHcjYZMCbd4WTNGOmE42J+fukNDV+TwzHUTWafyEoItPuecDeWFjZmsyhPhJXA/0nSJavqwMagpcv Qm5Appm7NluCHRd4bqUhTFGfO0jpbxaY17i95IyDewUKdcjb7Y6jqrktSbQhZrq/fX7jMWVHI/xCR KrvqGBKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbz9s-00000007fzE-0J1c; Thu, 08 Aug 2024 09:10:08 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbz9J-00000007frp-2DhV for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 09:09:34 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7a1be7b5d70so597437a12.0 for ; Thu, 08 Aug 2024 02:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1723108171; x=1723712971; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=L6K1xKrigqLUKfosZWg5PePAmCLxQRgMDc7IWF6RGgE=; b=eI1VefowN3XYb+27Bv8RwHOyxtWnRktgvgQRi3hx85AAvYNgek0m71SPiy2P1n1U5g fY9o+6vHI01gQJeFHNER/1Nvy+69bMAr+kOoBJlczivKWBYqP06wbbWXykqeCKC2xB3x b6e5+C1eFozS44HRQ9H/3DpaC1i3sYl1nHbuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723108171; x=1723712971; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L6K1xKrigqLUKfosZWg5PePAmCLxQRgMDc7IWF6RGgE=; b=MkwYndvfpu5DAJOOdm448wnedsf8uH2yhHDNqj6/jGoFpFY8+CbuDerJ136ompvXAR ooLNhZXcorxENt3i3+H2Q8OMxXAAxxKpCOTSEuwDEX6k+6aAMbKgBShC0L7oFM+K4yLq TUYkUpeE6STTCO5t/N9wRbtIU1NNqvvy202ky9wl59hobEk0n80SpRFD5cDKOdEwxJX+ jmEVkofUMX6t7r1YLrFeue3A9S+nNiCL/8UsYE3qhaoJVg8yaCOjHlfX2WbAvkAcYsDV DL12cMHHATW1sWyDfykUA+wJgUJJBgY/jlZRSle2RMn9Tqx6+E7jxiLPl4BcJw90aozA lEQg== X-Forwarded-Encrypted: i=1; AJvYcCVWK4RCxdDvwbCYHskNG4syE7uK3JlOc9vOOxo48xyk0TwhO2WUhfh9+dc4XaEPl52yyiHdLeXrJrKQ2b44RL1Na05yqzNZe1t9jhGJRYkqfVhrP/I= X-Gm-Message-State: AOJu0Yz0e693klrEbk0nsZg0SUtQEfyWmg+8lE2AJepAAVMOAP3gUpKz FX/vaIEQOHvgd4XSrAY1+Ri1SeXU868U7CmPC07MZOP1kqpnYcqimmgEj/G+fb8Qw2ZIsDo5GHI = X-Google-Smtp-Source: AGHT+IEpIPr/0CxKkHq6jZNXwMVmpNr4/DF3EQ3KKvxR+I1+GgdpapQxRaKB/YWa0tZ6ccU9yAFqBg== X-Received: by 2002:a17:902:d488:b0:1fd:7ff5:c673 with SMTP id d9443c01a7336-200967f6b7cmr16916805ad.2.1723108170942; Thu, 08 Aug 2024 02:09:30 -0700 (PDT) Received: from yuanhsinte.c.googlers.com (46.165.189.35.bc.googleusercontent.com. [35.189.165.46]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff5927f40dsm119661445ad.229.2024.08.08.02.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 02:09:30 -0700 (PDT) From: Hsin-Te Yuan Date: Thu, 08 Aug 2024 09:09:25 +0000 Subject: [PATCH] arm64: dts: mt8183-kukui: Add trip points to each thermal zone MIME-Version: 1.0 Message-Id: <20240808-kukui_trip-v1-1-6a73c8e0b79a@chromium.org> X-B4-Tracking: v=1; b=H4sIAESLtGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDCwND3ezS7NLM+JKizAJdMzMj02SDRFOTZFMDJaCGgqLUtMwKsGHRsbW 1AEhUmk5cAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Hsin-Te Yuan X-Mailer: b4 0.15-dev-37811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_020933_577631_67410555 X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add trip points to the tboard1 and tboard2 thermal zones to ensure they are registered successfully. Signed-off-by: Hsin-Te Yuan --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) --- base-commit: 21b136cc63d2a9ddd60d4699552b69c214b32964 change-id: 20240801-kukui_trip-6625c0a54c50 Best regards, diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index 6345e969efae..1593ea14f81f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -978,12 +978,38 @@ tboard1 { polling-delay = <1000>; /* milliseconds */ polling-delay-passive = <0>; /* milliseconds */ thermal-sensors = <&tboard_thermistor1>; + trips { + tboard1_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + tboard1_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; }; tboard2 { polling-delay = <1000>; /* milliseconds */ polling-delay-passive = <0>; /* milliseconds */ thermal-sensors = <&tboard_thermistor2>; + trips { + tboard2_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + tboard2_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; }; };