[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e65b8b6b14c8083a48915a7bc40b7521fc246860.1756511030.git.marcelo.schmitt@analog.com>
Date: Fri, 29 Aug 2025 21:44:45 -0300
From: Marcelo Schmitt <marcelo.schmitt@...log.com>
To: <linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-doc@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-spi@...r.kernel.org>
CC: <jic23@...nel.org>, <Michael.Hennerich@...log.com>, <nuno.sa@...log.com>,
<eblanc@...libre.com>, <dlechner@...libre.com>, <andy@...nel.org>,
<corbet@....net>, <robh@...nel.org>, <krzk+dt@...nel.org>,
<conor+dt@...nel.org>, <broonie@...nel.org>,
<Jonathan.Cameron@...wei.com>, <andriy.shevchenko@...ux.intel.com>,
<ahaslam@...libre.com>, <sergiu.cuciurean@...log.com>,
<marcelo.schmitt1@...il.com>
Subject: [PATCH 12/15] dt-bindings: iio: adc: adi,ad4030: Add adi,dual-data-rate
On echo and host clock modes, AD4030 and similar devices can do two data
bit transitions per clock cycle per active lane. Document how to specify
dual data rate (DDR) feature for AD4030 series devices in device tree.
Co-developed-by: Sergiu Cuciurean <sergiu.cuciurean@...log.com>
Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@...log.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@...log.com>
---
.../bindings/iio/adc/adi,ad4030.yaml | 27 +++++++++++++++----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
index 1e4e025b835f..9adb60629631 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
@@ -90,6 +90,13 @@ properties:
host - Host. The Host clock mode uses an internal oscillator to clock out
the data bits. In this mode, the spi controller is not driving SCLK.
+ adi,dual-data-rate:
+ description:
+ Enable dual data rate (DDR) in which two bits (per active lane) are
+ transmitted in one clock cycle. This can reduce the serial clock to
+ 10 MHz while operating at a sample rate of 2 MSPS.
+ type: boolean
+
required:
- compatible
- reg
@@ -98,11 +105,21 @@ required:
- vio-supply
- cnv-gpios
-oneOf:
- - required:
- - ref-supply
- - required:
- - refin-supply
+allOf:
+ - oneOf:
+ - required:
+ - ref-supply
+ - required:
+ - refin-supply
+ # DDR is available only for echo clock mode and host clock mode.
+ - if:
+ properties:
+ adi,clock-mode:
+ contains:
+ const: spi
+ then:
+ properties:
+ adi,dual-data-rate: false
unevaluatedProperties: false
--
2.39.2
Powered by blists - more mailing lists