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: 646170 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 354AAC25B50 for ; Tue, 24 Jan 2023 11:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234166AbjAXLjN (ORCPT ); Tue, 24 Jan 2023 06:39:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233442AbjAXLjM (ORCPT ); Tue, 24 Jan 2023 06:39:12 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307D116AC3 for ; Tue, 24 Jan 2023 03:39:11 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id y1so9086940wru.2 for ; Tue, 24 Jan 2023 03:39:11 -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=Bta08u18hKh075Km2NT9vmWd0oO4PqHbhD+WFn/NSqXIWIzNM+4zI/brkSKfmCqMJ+ +M4Rjaa4EnFScz0kf/XXiJvN9IHePDaLZBxbUTPDhXhQLXbyg/Bet27XYKKnFKU+5qAr TrmtG3L5Mw1ML1YPVFe293QoRMX5BuYZhFSZf9g0rG/zYBm50WEShUH0FNbMMMONSE7f 8t5secC0QiwI1w2xH4Zk/uwyb4Jcwer/luj5Bp+1scBzSm26/cI6Cbrp+Gm2HMGKmAYs m227xST3doIX8iWokmICeNYmrgexxkQ9BYDHPPi7MKhR5MiHpnr4mUvsxeMnNcuPa/iv O2JA== X-Gm-Message-State: AO0yUKWof+WiWmq3oA2LIza6peJlIW74rroYaiiww9kagszIu6YxnRLM zYn7dJ2sUreEDg9avF8tUL/nQUXnkkWRs5RwMRE= 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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>; }; };