Re: [PATCH] iio: light: cm32181: Add support for CM32183

From: Joshua Crofts

Date: Wed Nov 18 2026 - 10:20:31 EST


On Wed, 18 Nov 2026 23:11:00 +0800
NanamiKite <nanami@xxxxxxxxx> wrote:

> On the H3C MegaBook 14, the ACPI CPLM3218:00 node declares a Capella
> CM32183 ambient light sensor (CPM0 device ID 0x7db7 / 32183) at I2C
> address 0x29. Reading CM32181_REG_ADDR_ID (0x07) returns 0xc383, with
> chip ID 0x83 in the lower byte, causing cm32181_reg_init() to fail with
> -ENODEV.
>
> The CM32183 uses the same register layout and ACPI CPM0/CPM1 tables as
> the CM32181 and CM32182. Add chip ID 0x83 to cm32181_reg_init().
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: NanamiKite <nanami@xxxxxxxxx>
> ---

LGTM.

Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>

--
Kind regards,
Joshua Crofts