[PATCH 03/18] dt-bindings: iio: adc: ad4170-4: Allow running from the internal oscillator only
From: Janani Sunil
Date: Thu Dec 03 2026 - 10:21:04 EST
The binding requires exactly one of clocks and #clock-cells, so a node
that neither takes an external clock nor provides the internal clock
output is rejected, although the driver supports running from the
internal oscillator without exposing it.
Keep the two properties mutually exclusive, since the external clock
input and the internal clock output share the same pin, but allow both
to be absent.
Fixes: 1b3cee41235b ("dt-bindings: iio: adc: Add AD4170-4")
Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
---
.../devicetree/bindings/iio/adc/adi,ad4170-4.yaml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4170-4.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4170-4.yaml
index 90ca4e39c216..cf4064b4def9 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4170-4.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4170-4.yaml
@@ -231,14 +231,14 @@ allOf:
required:
- interrupt-names
- # If an external clock is set, the internal clock cannot go out and vice versa
- - oneOf:
- - required: [clocks]
- properties:
- '#clock-cells': false
- - required: ['#clock-cells']
- properties:
- clocks: false
+ # An external clock input and the internal clock output share the same
+ # pin, so they cannot be used at the same time. Neither is needed when
+ # running from the internal oscillator.
+ - if:
+ required: [clocks]
+ then:
+ properties:
+ '#clock-cells': false
required:
- compatible
--
2.43.0