From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD3DC3B27DE; Sat, 4 Jul 2026 12:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783169231; cv=none; b=kVjeLcDy8th/+t8A7HQSLt2idnTMzzJ7JEgXJPVdtbU1AnOuL3etn7iiSXyQHl1+sD6LEnfANcULDbaiyT1miikjQdapweJvyBrsJTuIo5JjwNRhtbCWJYqVTc6/aRcVC1oLWxCdkfmEYgacwQYj+ll4EqMMQOlUj8F1juW5pRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783169231; c=relaxed/simple; bh=ziuyR55W+h2otLyuwKE5T8P+RLr06IgeGcVWwMZ+AOo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=uljLeeQCKkmTY9zta+HVk9UnJ7WtRadQfIpk0kxb9c+oYrN/wPbm5vsW4WloshkkUdBo7M5YSwqdldoW2JNxFX9pPIvh9UGJjmYm+iusIhK+zEFk6y+eVCJb+dCNQv1IRLN7ueqX71IJ8g6IJoVEZZq/0yomrYcjGFGMXV+kYrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mm.st; spf=pass smtp.mailfrom=mm.st; dkim=pass (2048-bit key) header.d=mm.st header.i=@mm.st header.b=eMsI5LtM; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=MgRylLIg; arc=none smtp.client-ip=202.12.124.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mm.st Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mm.st Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mm.st header.i=@mm.st header.b="eMsI5LtM"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="MgRylLIg" Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 4F6A41D00066; Sat, 4 Jul 2026 08:46:57 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Sat, 04 Jul 2026 08:46:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mm.st; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1783169217; x=1783255617; bh=DSopaZRgPpL0KY92Lt0HxUz65nngHTif /3wvnAu5v0w=; b=eMsI5LtMgPSmOZR9XlwDS73uj1zvGaPqDbCFB6Wk+DmtX5GI 4osRs+h2KoSrKs0ZeWM31185xOgVHWYryCp3NqGmjJklbcGVUlu9ZEDZHN9THo91 aKt69TslCHE8q2tsX0Ya/nxNPYhZahdiQ7CGEke2bgTXMl+fYdO+8CcRU6/dkLbM bbOJ4qXUncVAToM31AUT7v8aXhqAeY87iXsNQBdrn1EYIuIKM39TUj8zMiX2v7dZ au6hzxkopqM+hxbC7bH6ID6SypPJXmhiQ1HnfK4kpEc8TNdBnaiy77gVhnqxvhtX 4Yhj0mqukZoCojCClgTSAcE7g6Vj0xfoY+lpSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1783169217; x= 1783255617; bh=DSopaZRgPpL0KY92Lt0HxUz65nngHTif/3wvnAu5v0w=; b=M gRylLIgI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ME-Proxy: Feedback-ID: i4e034308:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Jul 2026 08:46:55 -0400 (EDT) Date: Sat, 4 Jul 2026 15:46:52 +0300 From: Vsevolod Kozlov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Petry , Cristian Ciocaltea Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: fan speed control for FriendlyELEC CM3588 NAS Message-ID: Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline The FriendlyELEC CM3588 NAS kit is often supplied with a case and a fan. Enable control of the speed of the fan using the trip points and cooling maps from rk3588-nanopc-t6.dtsi as a reference. Signed-off-by: Vsevolod Kozlov --- .../rk3588-friendlyelec-cm3588-nas.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts b/arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts index 0dce96ca8c28..f4c34da61c4d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts @@ -12,6 +12,7 @@ #include #include #include +#include #include #include "rk3588-friendlyelec-cm3588.dtsi" @@ -457,6 +458,36 @@ &i2c8 { status = "okay"; }; +&package_thermal { + polling-delay = <1000>; + + trips { + package_warm: package-warm { + temperature = <55000>; + hysteresis = <2000>; + type = "active"; + }; + + package_hot: package-hot { + temperature = <65000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + map0 { + trip = <&package_warm>; + cooling-device = <&fan THERMAL_NO_LIMIT 1>; + }; + + map1 { + trip = <&package_hot>; + cooling-device = <&fan 2 THERMAL_NO_LIMIT>; + }; + }; +}; + &pcie2x1l0 { /* 2. M.2 socket, CON14: pcie30phy port0 lane1, @fe170000 */ max-link-speed = <3>; -- 2.47.3