Re: [RFC] iio: magnetometer: mlx90393 - regmap vs command-based access
From: Nikhil Gautam
Date: Fri Apr 24 2026 - 08:58:11 EST
Hi Andy, Jonathan,
Thanks for taking a look and for the guidance.
The MLX90393 does indeed expose a mix of command-based operations
(SM, RM, etc.) along with limited register access (RR/WR), so it
does not map cleanly to a purely register-based model.
Based on your feedback, I will proceed with a custom command
abstraction layer instead of using regmap. The idea is to keep a
clean separation between command handling, register access, and
bus transport (I2C/SPI), while keeping the structure somewhat
regmap-like where it makes sense.
I will put together an RFC patch with the initial implementation
(I2C support first) and share it shortly for review.
Thanks again for the feedback.
Best regards,
Nikhil Gautam