[PATCH v3 1/2] dt-bindings: iio: adf4377: add adf4378 support

Antoniu Miclaus posted 2 patches 1 year, 4 months ago
[PATCH v3 1/2] dt-bindings: iio: adf4377: add adf4378 support
Posted by Antoniu Miclaus 1 year, 4 months ago
The adf4378 provides only one output channel. Therefore there is only
one gpio available to enable the output. Reflect that into the bindings
using property conditions.

Add product link for the adf4378.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
changes in v3:
 - update commit description
 .../devicetree/bindings/iio/frequency/adi,adf4377.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,adf4377.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,adf4377.yaml
index aa6a3193b4e0..5f950ee9aec7 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,adf4377.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,adf4377.yaml
@@ -17,6 +17,7 @@ description: |
    applications.
 
    https://www.analog.com/en/products/adf4377.html
+   https://www.analog.com/en/products/adf4378.html
 
 properties:
   compatible:
@@ -73,6 +74,15 @@ required:
 
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - adi,adf4378
+    then:
+      properties:
+        clk2-enable-gpios: false
 
 unevaluatedProperties: false
 
-- 
2.45.2
Re: [PATCH v3 1/2] dt-bindings: iio: adf4377: add adf4378 support
Posted by Krzysztof Kozlowski 1 year, 4 months ago
On 29/07/2024 11:50, Antoniu Miclaus wrote:
> The adf4378 provides only one output channel. Therefore there is only
> one gpio available to enable the output. Reflect that into the bindings
> using property conditions.
> 
> Add product link for the adf4378.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof