Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Pufan Jin" <2254650260@qq.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: rockchip: Add EmbedFire LubanCat 4 board
Date: Thu, 16 Jul 2026 16:49:33 +0000	[thread overview]
Message-ID: <20260716164933.65B6E1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <tencent_D22A164B3AEEA50562C1EC988862BA827A09@qq.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The PWM fan period is configured to 5000 ns (200 kHz), which is likely a typo for 50000 ns (20 kHz).
- [Medium] The PWM fan is not bound to any SoC thermal zones, rendering automatic thermal management non-functional.
--

--- Patch [2]: [PATCH v2 2/2] arm64: dts: rockchip: Add EmbedFire LubanCat 4 board ---
commit 1f3302a5304b9bff69dfd891bf8f0a9d2c32995c
Author: Pufan Jin <2254650260@qq.com>

arm64: dts: rockchip: Add EmbedFire LubanCat 4 board

Add device tree for the EmbedFire LubanCat 4 single board computer,
featuring the Rockchip RK3588S SoC.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts b/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts
> new file mode 100644
> index 0000000000000..0eae4b7d85e54
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts
[ ... ]
> +	fan: pwm-fan {
> +		compatible = "pwm-fan";
> +		cooling-levels = <0 100 150 200 255>;
> +		pwms = <&pwm0 0 5000 0>;

[Severity: Medium]
Is the PWM period here intended to be 5000 ns (200 kHz)?

This is far above the standard 21-28 kHz range specified for 4-wire cooling
fans, which can cause the fan's internal controller to misinterpret the signal.
This can result in the fan either running at 100% speed continuously or
failing to spin at all.

Could this be a typo for 50000 ns (20 kHz)?

[Severity: Medium]
Does this node also need to be bound to the SoC's thermal zones via a
&package_thermal override?

The fan defines cooling-levels and #cooling-cells, but without being bound to
any SoC thermal zones, the kernel's thermal subsystem will not automatically
adjust the fan speed when the SoC temperature rises.

> +		#cooling-cells = <2>;
> +	};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260705135014.1004166-1-2254650260@qq.com?part=2

  reply	other threads:[~2026-07-16 16:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260705135014.1004166-1-2254650260@qq.com>
2026-07-05 13:50 ` [PATCH 1/2] dt-bindings: arm: rockchip: Add EmbedFire LubanCat 4 board LemonFan-maker
2026-07-05 14:37   ` Conor Dooley
2026-07-05 14:38     ` Conor Dooley
2026-07-06 21:24       ` Pufan Jin
2026-07-07 16:02         ` Conor Dooley
2026-07-05 13:50 ` [PATCH 2/2] arm64: dts: " LemonFan-maker
2026-07-05 14:00   ` sashiko-bot
2026-07-05 15:11   ` Andrew Lunn
2026-07-06 21:20     ` Pufan Jin
2026-07-06 21:34       ` Andrew Lunn
2026-07-16 16:36 ` [PATCH v2 0/2] Add support for " Pufan Jin
2026-07-16 16:36 ` [PATCH v2 1/2] dt-bindings: arm: rockchip: Add " Pufan Jin
2026-07-16 16:36 ` [PATCH v2 2/2] arm64: dts: " Pufan Jin
2026-07-16 16:49   ` sashiko-bot [this message]
2026-07-16 17:29   ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260716164933.65B6E1F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=2254650260@qq.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox