From patchwork Tue Jan 24 11:39:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13113842 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 68CAEC25B50 for ; Tue, 24 Jan 2023 11:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: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=ZET4gcX1IjSb9Yql+evLcO8iH7vJP2lPMSkHIAPvHP0=; b=NXs0yi3Xv6hp1Y Vc0GHVKxJjNwFuEm7a2zv+GPhfvuBwrWqOLchzgQyga1ilrN5nnWkdlINqShBXEYmBPbNB8otVdDt 0Y9heSjAPBrx6SMSHUam7csaMXZ2t+6GoqVbeDysuHVYkPf+UVVvAorzIfDegXLLq4FzLl3iVmQu1 pL2yvO2hrtcQUQp92UrTPZJlGP6VeYjfQyOuKhtm5OR6DqL6LGdTJ05Jp2ODiOuVjPgCz/sxijsRx frh+EpH6s9SPFWwxP42mR0NaSumWDIgESHM8HyZfwkAjQhvv9lFgR/gYpUg1HfIZLeaUJ3IFo9ViW cnPw/VNrbMobWw3+tWbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKHe2-003Trl-9S; Tue, 24 Jan 2023 11:39:18 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKHdz-003Toi-Bt for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2023 11:39:16 +0000 Received: by mail-wr1-x431.google.com with SMTP id h12so9581271wrv.10 for ; Tue, 24 Jan 2023 03:39:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=pO0gnmqvMi8936RpUesIY7OLCwa7UX2sbv4nhIVFZOo=; b=qrraxzm55ZKdMTAZAllssEM+P/T7uUUYIArvwS0NOTYcEbnttpPOODv55uihgxbUpl vfe57htQgJFyoaldmcIqg7GYdvDhb2IDwH9rraMn2iy9wP8rPlUiVmIz4TEENGmHndIQ RE0G6xQcpSShL4ncExiHb9xKzaMSNgm+QxqV8Si8xauzbtQVgBIzUiI4HZmBl2xp5VRL UG0QUuAtnkDG/YCHMbp1lkKya28onrwDEqDrnDJmN+Rve2R4Sk2vk5qz9VGZ3C9UcHcv 0qmxFdYYBULW1NcuKBeTxFmZPKuU76FEcRFlZKDzYj6xEv50CGm/EjpFSDRX5hQATVmQ WK9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pO0gnmqvMi8936RpUesIY7OLCwa7UX2sbv4nhIVFZOo=; b=sk2h7eXBKmFIOw2xWnKueVu4T1EzjTwSGcaevEzzMk+Tu/01XrO0ZNCWbBry3enGA0 f0MOnLC25kzLsHI47MCFortxuecrurfMV8e5jH5p6htwwXBsoqzkBUZ30/Rv4jMCCxal KOCqu/E3/4XVTdXXldffBmodqNlpic6pRCO3wCsbU1R0X43dmtsYi+F77uig86x0oAz4 Pnb4Df6/LwbfAQ1mo7FkeEThbRXW8gsWJ05+4OIkqYJ8D4XNpBtaVjRvEmjqETcgzpk5 wsiRActaDNFBGUu5K56PcrrGoJMiRgBMkAyxXLFuf+qqjIhsswzKXucCwxph569Mr2cx ou4g== X-Gm-Message-State: AO0yUKVuk2dVNqrptZsZTaTz2lVMVSV3k53W2JLlVKtIuLGoD4nticIN cRkX5/ZFF4WZzooMw3PBTIBiLw== X-Google-Smtp-Source: AK7set8MJPdBctzje+F7wc+VYwjJ28N0Us/KhM9TGGZSY0l7Zl1LQJhfGgUFqg/uPmMzuFP/eaWrwg== X-Received: by 2002:adf:f345:0:b0:2bf:aee3:394b with SMTP id e5-20020adff345000000b002bfaee3394bmr1935520wrp.50.1674560349695; Tue, 24 Jan 2023 03:39:09 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id i9-20020a5d5849000000b002bddac15b3dsm1006482wrf.33.2023.01.24.03.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 03:39:09 -0800 (PST) From: Neil Armstrong Date: Tue, 24 Jan 2023 12:39:08 +0100 Subject: [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: fix active fan thermal trip MIME-Version: 1.0 Message-Id: <20230124-topic-odroid-hc4-upstream-fix-fan-trip-v1-1-b0c6aa355d93@linaro.org> X-B4-Tracking: v=1; b=H4sIAFvDz2MC/x2NQQrDIBBFrxJcd0BNuulVShc6TupAqjKaUAi5e 4cu34P//mk6CVM3j+k0Qgd3rkXB3SaDOZQ3ASdl462frfMLjNoYoSapnCDjAnvrQyh8YOUvrKH AEG5gnb1HdIhz9EZjMXSCKKFg1lzZt01lE9LR//35uq4fJRsyfo0AAAA= To: Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Christian Hewitt Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Ricardo Pardini , Neil Armstrong X-Mailer: b4 0.12.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_033915_437246_013DCFC7 X-CRM114-Status: GOOD ( 12.04 ) 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 an active trip tied to the on-board fan cooling device, which is better than describing it along the passive cooling maps. Fixes: 33b14f663df8 ("arm64: dts: meson: add initial device-tree for ODROID-HC4") Reported-by: Ricardo Pardini Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- base-commit: 7bf70dbb18820b37406fdfa2aaf14c2f5c71a11a change-id: 20230124-topic-odroid-hc4-upstream-fix-fan-trip-0105bc1cc3b2 Best regards, diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts index a1f0c38ccadd..74088e7280fe 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts @@ -76,9 +76,17 @@ sound { }; &cpu_thermal { + trips { + cpu_active: cpu-active { + temperature = <60000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "active"; + }; + }; + cooling-maps { map { - trip = <&cpu_passive>; + trip = <&cpu_active>; cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; };