]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: meson-saradc: add support for Meson S4
authorNick Xie <nick@khadas.com>
Wed, 25 Mar 2026 07:06:16 +0000 (15:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Mar 2026 19:56:51 +0000 (19:56 +0000)
commit8175ffc989d51c383c044a07bb54179a6e93437e
tree3eccada00639f3f517c567fc8c79ad27c052657e
parentab8293caad03a6a0cc83c7451ecfbe31f5f257f6
iio: adc: meson-saradc: add support for Meson S4

Add support for the SARADC found on the Amlogic Meson S4 SoC.
According to the documentation and current testing, it is fully
compatible with the G12A parameter set, so we reuse
`meson_sar_adc_g12a_data` for this new compatible string.

Although the device tree fallback mechanism could handle the match,
a dedicated entry is added to ensure the userspace ABI correctly
reports the specific part name ("meson-s4-saradc"). This allows
userspace to accurately identify the exact device and maintains
consistency across different firmware types where automatic fallback
parsing might be problematic.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Nick Xie <nick@khadas.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c