Re: [RFC] iio: magnetometer: mlx90393 - regmap vs command-based access
From: Andy Shevchenko
Date: Thu Apr 23 2026 - 13:46:41 EST
On Thu, Apr 23, 2026 at 05:55:35PM +0530, Nikhil Gautam wrote:
>
> Apologies for missing a few details in the previous mail.
>
> The MLX90393 supports both I2C and SPI interfaces.
>
> Commands include, for example:
> - SM (Start Measurement)
> - RM (Read Measurement)
> - RR (Read Register)
>
> Given this command-oriented interface over both I2C and SPI,
> I wanted to confirm whether a custom command abstraction layer
> would still be the preferred approach instead of regmap.
I found only 4 drivers for this vendor in the kernel and they seem
either register based or eeprom based. Perhaps the latter is the
case here? Have you checked existing implementations?
--
With Best Regards,
Andy Shevchenko