[RFC] iio: magnetometer: mlx90393 - regmap vs command-based access

From: Nikhil Gautam

Date: Thu Apr 23 2026 - 08:25:43 EST


Hi,

I am working on adding support for the MLX90393 magnetometer.

The device uses a command-based protocol (e.g. SM, RM, RR)
rather than a traditional register map.

Before proceeding, I wanted to clarify the preferred design:

- Should regmap be used in such cases, even without a linear
register map?

- Or is it acceptable to implement a custom command-based
abstraction layer?

My understanding is that regmap may not be a good fit here,
but I would appreciate guidance before implementing.

Also, pointers to similar IIO drivers would be helpful.

Thanks,
Nikhil Gautam