[PATCH 02/19] dt-bindings: iio: adc: Add AXP803 compatible

Maxime Ripard maxime at cerno.tech
Thu Jan 14 06:35:21 EST 2021


The AXP803 compatible was introduced recently with a fallback to the
AXP813, but it was never documented.

Cc: Jonathan Cameron <jic23 at kernel.org>
Cc: Lars-Peter Clausen <lars at metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw at pmeerw.net>
Signed-off-by: Maxime Ripard <maxime at cerno.tech>
---
 .../bindings/iio/adc/x-powers,axp209-adc.yaml        | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml b/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
index 5ccbb1f81960..e759a5da708d 100644
--- a/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
@@ -46,10 +46,14 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - x-powers,axp209-adc
-      - x-powers,axp221-adc
-      - x-powers,axp813-adc
+    oneOf:
+      - const: x-powers,axp209-adc
+      - const: x-powers,axp221-adc
+      - const: x-powers,axp813-adc
+
+      - items:
+          - const: x-powers,axp803-adc
+          - const: x-powers,axp813-adc
 
   "#io-channel-cells":
     const: 1
-- 
2.29.2




More information about the linux-arm-kernel mailing list