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

Lee Jones <[email protected]>
Newsgroups org.kernel.vger.linux-i2c,org.infradead.lists.linux-amlogic,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm
Message-ID <[email protected]>
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 <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.