From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 138CE32E134 for ; Mon, 27 Oct 2025 19:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592139; cv=none; b=LJuGLDUbJSddY2XykZYiLzD9MXlLl3jGK9DcYRJ9TSrGElIUo4ktPK1mXl691fw+MMgn+WuG1q+9bbzQ2TF5FyCUxDeaDRn51dUT2DygOVOW7lC6G7xRu0JmvTZxOgVp/UC6OmMX1cy/TdnCMdm9Gwihh3iRnnwLIA6f4C8QPtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592139; c=relaxed/simple; bh=QxAPAArJ2hq4vlV57zKRp02JLjE4TuXvuBh4ghAfuXI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ARvGU5V1k7eXwsMPfGl43c9cEmSPCq6N4AYCw7rH8CRCU1w9CFA6u79RkyqsnDPYQTgqjp6HjTN/7DjAp+kuJUMqB2+lwdPK7u4uLS/DBjzUhutJGGYeLSPcKb2shEz0mWZEmY71gUcmnUuKJMSad6e1Y2SbgKmjoY+zG1BtkcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AVDAqVFe; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AVDAqVFe" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4710683a644so42304545e9.0 for ; Mon, 27 Oct 2025 12:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761592136; x=1762196936; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xrrBuaV/kWzQy3h0bP5iIsIcB+cyHk6dwoM0ppsVeCg=; b=AVDAqVFexAXuywH6VVGtaRJVIJi2WR+acsspYhpLIhrthz3pfUqj3mM8XULAofhDRl qgaxXrfU91EClNffpX0sk/uSm7110B6UbZ92j3KmKmreZ9eyi8lciaQ7Ub5NyBy/9pbv Qqkg64Jtb57Z87Rv39efksoK0Lur3wLKIWcqCVPPANkpJCQansOznMFnuj+U7PQ8iTca Ka0h9aMVhN6cyClwuU6keEnuW48Dh5qi64tNGIoJzTunUt0gYdczcJtSbj/aSSpluJOe PpXzAYC4NmOUOPoDVvnsza3MfySQAi/3QnrU+SSH0JqZiSsLi0D28nqZ3bvhWj0Pet/s e0EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761592136; x=1762196936; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xrrBuaV/kWzQy3h0bP5iIsIcB+cyHk6dwoM0ppsVeCg=; b=nANApCI19lxnMXuVov/kpMUCGSMyyXkCGWFCoaY6c/ZnH1bAdBa5+rkka0c5k4nJru /5Li8sCAiTM5PwlmDTxNKvYDxL4KqvzplP26yKAOb9d5i8+M1lU1LGX3JLDVhwzDNg6E Po4DE3IB11rVJTS5+kGc9e4hjmHmGAu/YjKjPOCOrhxVBNBQWC94O+qHquj2vDgOT+Q4 G+by1DT5mOKpQGrVEyedJ6kcFg2PXCtoZbFrDdz02SHLaRnCMDnCUGU334w22gyNPnt6 szqXNdStmBqNSLYYgdDSDor60IHyJ65FhvbWeIqedc5B64os335MsFL3my+yTrrfF2I3 /2Dw== X-Forwarded-Encrypted: i=1; AJvYcCUZcW3CCk36WAdYjJqQe/O7jqTbKDoWqRbdzltzlk6Cmr1lUB7dgA0Bhci22Qk8fd0G47xAfIb4s83P@vger.kernel.org X-Gm-Message-State: AOJu0YxJuitlZbYaNmrQucZTG3RU+tmdefumiEWLaTNlCgF/yNqjiBdf rKOZgNoExl27bOl1i4fUJIWUu/V47Zo/cMod1JCnsMISgbnQnU6WVuIz X-Gm-Gg: ASbGnctY8ay3dk+Xosy9fDYMS4hgsw6SLz0+mBAx4JZrMOImMMjtDU9jnnpPhul/CJC A8XcoiQqYHnU8lrABtO8B4hXzfNb0JLyEWFmYovFZ+vm1RuPcN8YYsVV70CNyFcmzNUgcngWkD0 1dvTmfbJk1NQyPSbRz2bbSDyS6xqYv0LOivBqPX6GuqkCVRBA/Hb+KGAn7mSvCMGarKjIJjLWWG XJVrfVVwL1w0GuaF1/MfcKPVpg5ws8cLQ+lInC34nvOgRaTyX+Tm9mMulqUENScCqpGgkD6TbWC wFxxODkiu/g1hVDrR91VrQoKQAY2/+OAlbQztvULof1uTTiD/P2fYG/Yhjq0BTkBmQn5qN+YIin pkUXnpopG/OxhmtyZzY0fAZUBrXO97cXbw88ymxCmZzGTS4ue4M8mVJ2r22oVKpCzkJS5yNHBpQ pHQ+B85jP+vWd2XQttrDtAjN33WqwSTvJz1IzJHwMzXlOXjfiNZvrnWGXOT2g2jxdaLV9ybbbbn B0777zVtx3uvB2McW/3 X-Google-Smtp-Source: AGHT+IHQpujKOrXJVzT+iAH4rHZKqaP7yZUXY5b+4r1SO7Gypfz170ZMy3c7//TDLo+TKI0txclzNA== X-Received: by 2002:a05:600c:871b:b0:45f:29eb:2148 with SMTP id 5b1f17b1804b1-47718d7bfa0mr665135e9.7.1761592136000; Mon, 27 Oct 2025 12:08:56 -0700 (PDT) Received: from ?IPV6:2a02:8010:6606:0:1cb3:1c74:2f0b:e9ac? ([2a02:8010:6606:0:1cb3:1c74:2f0b:e9ac]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477184e4006sm2064515e9.5.2025.10.27.12.08.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Oct 2025 12:08:55 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2025 19:08:53 +0000 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: rockchip: pwm-fan overlay for NanoPC-T6 To: Alexey Charkov Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20251026194858.92461-1-sigmaris@gmail.com> Content-Language: en-GB From: Hugh Cole-Baker In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 27/10/2025 09:14, Alexey Charkov wrote: > Hi Hugh, > > On Mon, Oct 27, 2025 at 1:09 PM Hugh Cole-Baker wrote: >> >> FriendlyELEC offers an optional heatsink and fan addon for the NanoPC-T6 >> and T6 LTS. Add an overlay which can be applied if the fan is fitted and >> configures the fan as an active cooling device for the SoC package. >> >> Signed-off-by: Hugh Cole-Baker >> --- >> FriendlyELEC heatsink with fan addon: >> https://www.friendlyelec.com/index.php?route=product/product&product_id=305 >> Vendor DT with trip points and PWM duty cycle values: >> https://github.com/friendlyarm/kernel-rockchip/blob/4944602540b62f5aad139fe602a76cf7c3176128/arch/arm64/boot/dts/rockchip/rk3588-nanopi6-rev01.dts#L75-L90 Hi Alexey, > Is there any downside to enabling this unconditionally in the board > .dts? Only that it goes against the principle that the DT should describe the hardware; the board .dts would describe a cooling device that doesn't actually exist on the base board. I guess then in theory, an OS might allow the SoC to reach undesirably high temperatures if it's relying on the nonexistent fan to cool it down. But I don't think this would be an issue on Linux, at least, in practice. > Overlays require more user configuration, and not all > bootloaders support them directly (e.g. systemd-boot users would > struggle). Compiling with overlays enabled also makes .dtb's a lot > larger due to added symbols information. Nowadays (on Debian at least) using overlays is pretty easy, I'm using the u-boot-menu package in Debian, I just copy the overlay(s) to /boot/dtbo/ and it detects them automatically and adds them to extlinux.conf for u-boot to apply. Couldn't systemd-boot users just use rk3588-nanopc-t6-(lts-)with-fan.dtb as their single DT to load, if it doesn't support applying overlays and they want to use the fan addon? FWIW, I haven't noticed any problems with having a larger .dtb (using mainline U-Boot to load it) and several other RK3588 boards are also compiled with symbols enabled already, and I haven't seen any issues reported with them. Best regards, Hugh