.../iio/adc/amlogic,meson-saradc.yaml | 4 ++++ .../amlogic/meson-s4-s905y4-khadas-vim1s.dts | 19 +++++++++++++++++++ arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 14 ++++++++++++++ drivers/iio/adc/meson_saradc.c | 8 ++++++++ 4 files changed, 45 insertions(+)
This series adds support for the SARADC IP block found in the Amlogic
Meson S4 (S905Y4) SoC and enables it for the Khadas VIM1S board to
support the onboard ADC 'Function' key.
There are no known hardware differences between the SARADC on the S4
and the previous G12A generation. The S4 bindings utilize a fallback
to G12A, but a dedicated driver match entry is included to ensure the
correct part name is exposed to the userspace ABI.
Changes in v3:
- Patch 1: Updated the commit message to explicitly explain why the
comment regarding the generic fallback was added.
- Patch 2: Retained the driver patch and updated the commit message to
clarify that the dedicated match entry is kept specifically for
userspace ABI naming purposes.
- Link to v2: https://lore.kernel.org/all/20260323013408.429701-1-nick@khadas.com/
Changes in v2:
- Addressed feedback from Krzysztof Kozlowski:
- Updated dt-bindings commit message to explain the hardware compatibility.
- Separated the S4 compatible string in the YAML bindings to ensure it
correctly falls back to the specific "amlogic,meson-g12a-saradc" rather
than the generic "amlogic,meson-saradc".
- Updated the S4 SoC dtsi to use the correct G12A fallback.
- Added Martin's Reviewed-by tags where appropriate.
- Link to v1: https://lore.kernel.org/all/20260228065840.702651-1-nick@khadas.com/
Nick Xie (4):
dt-bindings: iio: adc: amlogic,meson-saradc: add S4 compatible
iio: adc: meson-saradc: add support for Meson S4
arm64: dts: amlogic: meson-s4: add internal SARADC controller
arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: add Function key
support
.../iio/adc/amlogic,meson-saradc.yaml | 4 ++++
.../amlogic/meson-s4-s905y4-khadas-vim1s.dts | 19 +++++++++++++++++++
arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 14 ++++++++++++++
drivers/iio/adc/meson_saradc.c | 8 ++++++++
4 files changed, 45 insertions(+)
--
2.34.1
On Wed, 25 Mar 2026 15:06:14 +0800 Nick Xie <nick@khadas.com> wrote: > This series adds support for the SARADC IP block found in the Amlogic > Meson S4 (S905Y4) SoC and enables it for the Khadas VIM1S board to > support the onboard ADC 'Function' key. > > There are no known hardware differences between the SARADC on the S4 > and the previous G12A generation. The S4 bindings utilize a fallback > to G12A, but a dedicated driver match entry is included to ensure the > correct part name is exposed to the userspace ABI. > Applied patches 1 and 2 to the togreg branch of iio.git. > Changes in v3: > - Patch 1: Updated the commit message to explicitly explain why the > comment regarding the generic fallback was added. > - Patch 2: Retained the driver patch and updated the commit message to > clarify that the dedicated match entry is kept specifically for > userspace ABI naming purposes. > - Link to v2: https://lore.kernel.org/all/20260323013408.429701-1-nick@khadas.com/ > > Changes in v2: > - Addressed feedback from Krzysztof Kozlowski: > - Updated dt-bindings commit message to explain the hardware compatibility. > - Separated the S4 compatible string in the YAML bindings to ensure it > correctly falls back to the specific "amlogic,meson-g12a-saradc" rather > than the generic "amlogic,meson-saradc". > - Updated the S4 SoC dtsi to use the correct G12A fallback. > - Added Martin's Reviewed-by tags where appropriate. > - Link to v1: https://lore.kernel.org/all/20260228065840.702651-1-nick@khadas.com/ > > > Nick Xie (4): > dt-bindings: iio: adc: amlogic,meson-saradc: add S4 compatible > iio: adc: meson-saradc: add support for Meson S4 > arm64: dts: amlogic: meson-s4: add internal SARADC controller > arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: add Function key > support > > .../iio/adc/amlogic,meson-saradc.yaml | 4 ++++ > .../amlogic/meson-s4-s905y4-khadas-vim1s.dts | 19 +++++++++++++++++++ > arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 14 ++++++++++++++ > drivers/iio/adc/meson_saradc.c | 8 ++++++++ > 4 files changed, 45 insertions(+) >
Hi,
On Wed, 25 Mar 2026 15:06:14 +0800, Nick Xie wrote:
> This series adds support for the SARADC IP block found in the Amlogic
> Meson S4 (S905Y4) SoC and enables it for the Khadas VIM1S board to
> support the onboard ADC 'Function' key.
>
> There are no known hardware differences between the SARADC on the S4
> and the previous G12A generation. The S4 bindings utilize a fallback
> to G12A, but a dedicated driver match entry is included to ensure the
> correct part name is exposed to the userspace ABI.
>
> [...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v7.1/arm64-dt)
[3/4] arm64: dts: amlogic: meson-s4: add internal SARADC controller
https://git.kernel.org/amlogic/c/3b095e9b3674da0666aea3021167ca44097ed7fa
[4/4] arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: add Function key support
https://git.kernel.org/amlogic/c/97c4d4b7de6ef264fbd45300a168c2a0874d6c75
These changes has been applied on the intermediate git tree [1].
The v7.1/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
--
Neil
© 2016 - 2026 Red Hat, Inc.