summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Xie <nick@khadas.com>2026-03-25 10:06:15 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-26 22:56:43 +0300
commitab8293caad03a6a0cc83c7451ecfbe31f5f257f6 (patch)
tree6d9cb1334f1987536d53fc75de51e0d2ad20edcd
parent7913c1de9c3cbe3018fc29ce25a4d462ac2eaa82 (diff)
downloadlinux-ab8293caad03a6a0cc83c7451ecfbe31f5f257f6.tar.xz
dt-bindings: iio: adc: amlogic,meson-saradc: add S4 compatible
Add the compatible string for the SARADC (Successive Approximation Register ADC) IP block found in the Amlogic Meson S4 SoC. There are no known differences between the SARADC on S4 and the one on G12A. Therefore, it uses "amlogic,meson-g12a-saradc" as a proper specific fallback. Also add a comment indicating that "amlogic,meson-saradc" must not be used for new devices. It's a made up compatible string that does not correspond to a specific hardware generation and is not used to match any driver. For old devices we keep it as it's part of the ABI. Signed-off-by: Nick Xie <nick@khadas.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
index bb9825e7346d..70ab4e140e71 100644
--- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
@@ -27,7 +27,11 @@ properties:
- amlogic,meson-gxm-saradc
- amlogic,meson-axg-saradc
- amlogic,meson-g12a-saradc
+ # Usage of this generic fallback is not allowed for new devices
- const: amlogic,meson-saradc
+ - items:
+ - const: amlogic,meson-s4-saradc
+ - const: amlogic,meson-g12a-saradc
reg:
maxItems: 1