diff mbox series

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

Message ID 20210114113538.1233933-2-maxime@cerno.tech
State Accepted
Commit dcd80eaf74ef781ee6e2585622d7b4956c47bb9a
Headers show
Series [01/19] dt-bindings: sunxi: Fix the pinecube compatible | expand

Commit Message

Maxime Ripard Jan. 14, 2021, 11:35 a.m. UTC
The AXP803 compatible was introduced recently with a fallback to the
AXP813, but it was never documented.

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

Comments

Jernej Škrabec Jan. 14, 2021, 8:10 p.m. UTC | #1
Dne četrtek, 14. januar 2021 ob 12:35:21 CET je Maxime Ripard napisal(a):
> The AXP803 compatible was introduced recently with a fallback to the
> AXP813, but it was never documented.
> 
> Cc: Jonathan Cameron <jic23@kernel.org>
> Cc: Lars-Peter Clausen <lars@metafoo.de>
> Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>

Acked-by: Jernej Skrabec <jernej.skrabec@siol.net>

Best regards,
Jernej
Jonathan Cameron Jan. 17, 2021, 12:41 p.m. UTC | #2
On Thu, 14 Jan 2021 21:10:19 +0100
Jernej Škrabec <jernej.skrabec@siol.net> wrote:

> Dne četrtek, 14. januar 2021 ob 12:35:21 CET je Maxime Ripard napisal(a):

> > The AXP803 compatible was introduced recently with a fallback to the

> > AXP813, but it was never documented.

> > 

> > Cc: Jonathan Cameron <jic23@kernel.org>

> > Cc: Lars-Peter Clausen <lars@metafoo.de>

> > Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>

> > Signed-off-by: Maxime Ripard <maxime@cerno.tech>  

> 

> Acked-by: Jernej Skrabec <jernej.skrabec@siol.net>

Please make sure to cc linux-iio@vger.kernel.org on patches
like this.  If nothing else I read that a lot more often than
I catch up with patches that escaped all my filters!

This looks fine and I'm happy for it go with the rest of the series.

Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>


If preferred I can pick it up directly.

> 

> Best regards,

> Jernej

> 

>
diff mbox series

Patch

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