[PATCH v8 0/8] Add VIM4 MCU/FAN support

Lee Jones lee at kernel.org
Thu Jul 16 08:24:20 PDT 2026


On Thu, 02 Jul 2026, Ronald Claveau via B4 Relay wrote:

> The Khadas VIM4 board features a different MCU variant compared to
> previous VIM boards.
> While it shares the same I2C-based communication model,
> it differs in some ways:
> 
>   - A distinct register map with its own volatile/writeable register set
>   - A fan control with 0–100 levels instead of the 0–3 levels previously
>   - A fan power supply gated through a regulator
> 
> This series adds support for this new variant by:
> 
>   1. Refactoring the khadas-mcu MFD driver to use per-variant data
>      structures (regmap config, cells, fan platform data),
>      and adding the khadas,vim4-mcu compatible string.
> 
>   2. Extending the fan thermal driver to retrieve the fan register
>      and maximum level from platform_data,
>      and to optionally manage a power regulator for the fan supply.
> 
>   3. Adding the corresponding DTS node for the VIM4, wiring the MCU to
>      the I2C AO_A bus and exposing it as a thermal cooling device.
> 
> Signed-off-by: Ronald Claveau <linux-kernel-dev at aliel.fr>

The MFD parts look okay.

I think the Thermal driver has a dep on us, right?

If so, let me know when you have the Acks and I'll merge it.

-- 
Lee Jones



More information about the linux-amlogic mailing list