Skip to contentSkip to conversation

dt-bindings: iio: dds: Add AD9832/AD9835 binding

PATCH In review Hungyu Lin 3 participants 7 messages May 9 – May 12

Subsystems (3)
lore
Share & tools
lore

Hungyu Lin

author
#0 lore raw

v3 cover dt-bindings: iio: dds: Add AD9832/AD9835 binding

This series adds devicetree binding documentation for the Analog Devices AD9832 and AD9835 DDS devices.

v3:
- Require spi-cpol in binding and example
- Use generic node name (dds@0) in example

v2:
- Add SPI peripheral schema reference
- Fix example by adding clock and regulator providers
- Fix SPDX license format

Hungyu Lin (1):
dt-bindings: iio: dds: Add AD9832/AD9835 binding

 .../bindings/iio/dds/adi,ad9832.yaml          | 91 +++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 1/1 dt-bindings: iio: dds: Add AD9832/AD9835 binding

Add devicetree binding documentation for AD9832 and AD9835 DDS devices.

These devices are SPI-controlled direct digital synthesizers requiring AVDD, DVDD supplies and an external master clock.

Require spi-cpol since AD9832/AD9835 use SPI mode 2. Update the example to include spi-cpol and use a generic node name.

---
 .../bindings/iio/dds/adi,ad9832.yaml          | 91 +++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +91 -0
new file mode 100644
index 000000000000..9f3e41cb0a0d
@@ -0,0 +1,91 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/dds/adi,ad9832.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AD9832 / AD9835 DDS
+
+maintainers:
+  - Hungyu Lin <[email protected]>
+
+description: |
+  Binding for Analog Devices AD9832 and AD9835 SPI-controlled direct
+  digital synthesizers (DDS). The devices use an external master clock
+  and are controlled over a serial SPI-compatible interface.
+
+properties:
+  compatible:
+    enum:
+      - adi,ad9832
+      - adi,ad9835
+
+  reg:
+    maxItems: 1
+
+  spi-max-frequency:
+    maximum: 20000000
+
+  spi-cpol: true
+
+  clocks:
+    maxItems: 1
+    description:
+      External master clock input.
+
+  clock-names:
+    const: mclk
+
+  avdd-supply:
+    description:
+      Analog power supply.
+
+  dvdd-supply:
+    description:
+      Digital power supply.
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - avdd-supply
+  - dvdd-supply
+  - spi-cpol
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    mclk: clock {
+      compatible = "fixed-clock";
+      #clock-cells = <0>;
+      clock-frequency = <25000000>;
+    };
+
+    vdd_3v3: regulator {
+      compatible = "regulator-fixed";
+      regulator-name = "vdd_3v3";
+      regulator-min-microvolt = <3300000>;
+      regulator-max-microvolt = <3300000>;
+      regulator-always-on;
+    };
+
+    spi {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      dds@0 {
+        compatible = "adi,ad9832";
+        reg = <0>;
+        spi-max-frequency = <20000000>;
+        spi-cpol;
+        clocks = <&mclk>;
+        clock-names = "mclk";
+        avdd-supply = <&vdd_3v3>;
+        dvdd-supply = <&vdd_3v3>;
+      };
+    };
Signature · 1 line
2.34.1
#2 lore raw
Quoted 2 lines · Hungyu Lin

Add devicetree binding documentation for AD9832 and AD9835 DDS devices.

Hi,

It looks like you have sent multiple patch versions within 24 hours.

I would suggest taking some additional time for development and validation before sending updates to the mailing list. It is also good to allow reviewers enough time to provide feedback, atleast a minimum of 24 hours.

Please be patient and wait for a few days, or ideally upto week, so reviewers have sufficient time to review the changes properly.

Thanks, Sanjay

Quoted 109 lines

These devices are SPI-controlled direct digital synthesizers requiring AVDD, DVDD supplies and an external master clock.

Require spi-cpol since AD9832/AD9835 use SPI mode 2. Update the example to include spi-cpol and use a generic node name.

---
.../bindings/iio/dds/adi,ad9832.yaml | 91 +++++++++++++++++++

1 file changed, 91 insertions(+)

create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml

Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +91 -0
new file mode 100644
index 000000000000..9f3e41cb0a0d
@@ -0,0 +1,91 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/dds/adi,ad9832.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AD9832 / AD9835 DDS
+
+maintainers:
+  - Hungyu Lin <[email protected]>
+
+description: |
+  Binding for Analog Devices AD9832 and AD9835 SPI-controlled direct
+  digital synthesizers (DDS). The devices use an external master clock
+  and are controlled over a serial SPI-compatible interface.
+
+properties:
+  compatible:
+    enum:
+      - adi,ad9832
+      - adi,ad9835
+
+  reg:
+    maxItems: 1
+
+  spi-max-frequency:
+    maximum: 20000000
+
+  spi-cpol: true
+
+  clocks:
+    maxItems: 1
+    description:
+      External master clock input.
+
+  clock-names:
+    const: mclk
+
+  avdd-supply:
+    description:
+      Analog power supply.
+
+  dvdd-supply:
+    description:
+      Digital power supply.
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - avdd-supply
+  - dvdd-supply
+  - spi-cpol
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    mclk: clock {
+      compatible = "fixed-clock";
+      #clock-cells = <0>;
+      clock-frequency = <25000000>;
+    };
+
+    vdd_3v3: regulator {
+      compatible = "regulator-fixed";
+      regulator-name = "vdd_3v3";
+      regulator-min-microvolt = <3300000>;
+      regulator-max-microvolt = <3300000>;
+      regulator-always-on;
+    };
+
+    spi {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      dds@0 {
+        compatible = "adi,ad9832";
+        reg = <0>;
+        spi-max-frequency = <20000000>;
+        spi-cpol;
+        clocks = <&mclk>;
+        clock-names = "mclk";
+        avdd-supply = <&vdd_3v3>;
+        dvdd-supply = <&vdd_3v3>;
+      };
+    };
maintainer
#3 lore raw
In reply to Hungyu Lin
Quoted 9 lines · On Sat, 9 May 2026 01:37:45 +0000 Hungyu Lin <[email protected]> wrote:

Add devicetree binding documentation for AD9832 and AD9835 DDS devices.

These devices are SPI-controlled direct digital synthesizers requiring AVDD, DVDD supplies and an external master clock.

Require spi-cpol since AD9832/AD9835 use SPI mode 2. Update the example to include spi-cpol and use a generic node name.

As per v1 discussion that is ongoing - we haven't in the past put dt-bindings in place until we are ready to move the driver in question out of staging. IIRC these are a fair way from reaching that stage.

Anyhow with that in mind a few quick comments inline.

Thanks,

Jonathan

Quoted 38 lines
---
 .../bindings/iio/dds/adi,ad9832.yaml          | 91 +++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +27 -0
new file mode 100644
index 000000000000..9f3e41cb0a0d
@@ -0,0 +1,91 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/dds/adi,ad9832.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AD9832 / AD9835 DDS
+
+maintainers:
+  - Hungyu Lin <[email protected]>
+
+description: |
+  Binding for Analog Devices AD9832 and AD9835 SPI-controlled direct
+  digital synthesizers (DDS). The devices use an external master clock
+  and are controlled over a serial SPI-compatible interface.
+
+properties:
+  compatible:
+    enum:
+      - adi,ad9832
+      - adi,ad9835
+
+  reg:
+    maxItems: 1
+
+  spi-max-frequency:
+    maximum: 20000000

Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml line 37

Quoted 10 lines
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +10 -0
+
+  spi-cpol: true
+
+  clocks:
+    maxItems: 1
+    description:
+      External master clock input.
+
+  clock-names:
+    const: mclk

Do we need to name it if there is only one?

Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml line 45

Quoted 8 lines
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +8 -0
+
+  avdd-supply:
+    description:
+      Analog power supply.
+
+  dvdd-supply:
+    description:
+      Digital power supply.

Personally I'd not bother with the descriptions as avdd is always analog supply and where you have one of those dvdd is the digital one. Absolutely fine to have

avdd-supply: true
dvdd-supply: true

And no more info about htem.

Quoted 20 lines
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +20 -0
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - avdd-supply
+  - dvdd-supply
+  - spi-cpol
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    mclk: clock {
+      compatible = "fixed-clock";
+      #clock-cells = <0>;

Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml line 75

Quoted 10 lines
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +10 -0
+      clock-frequency = <25000000>;
+    };
+
+    vdd_3v3: regulator {
+      compatible = "regulator-fixed";
+      regulator-name = "vdd_3v3";
+      regulator-min-microvolt = <3300000>;
+      regulator-max-microvolt = <3300000>;
+      regulator-always-on;
+    };

See other binding examples. Normally we just refer to clocks and regulators etc that are magically coming from somewhere outside of the example snippet. So shouldn't need any of the stuff above here.

Quoted 16 lines
Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml new file +16 -0
+
+    spi {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      dds@0 {
+        compatible = "adi,ad9832";
+        reg = <0>;
+        spi-max-frequency = <20000000>;
+        spi-cpol;
+        clocks = <&mclk>;
+        clock-names = "mclk";
+        avdd-supply = <&vdd_3v3>;
+        dvdd-supply = <&vdd_3v3>;
+      };
+    };
author
#4 lore raw
Quoted 5 lines · Jonathan Cameron

As per v1 discussion that is ongoing - we haven't in the past put dt-bindings in place until we are ready to move the driver in question out of staging. IIRC these are a fair way from reaching that stage.

Thanks for the clarification.

I understand that DT bindings are typically added when the driver is ready to move out of staging. I'm fine with deferring this until the driver is closer to that stage.

I'll take your comments into account when revisiting this.

Thanks,
Hungyu

#5 lore raw
In reply to Hungyu Lin
Quoted 7 lines · Hungyu Lin

This series adds devicetree binding documentation for the Analog Devices AD9832 and AD9835 DDS devices.

v3:
- Require spi-cpol in binding and example
- Use generic node name (dds@0) in example

Hi,

Thank you for the change.

Ideally, multiple logical changes should be split into series. For a single patch you can include changelog like this:

Signed-off-by ....

---
Changes in v2:
- Add SPI peripheral schema reference
---
.../bindings..

         | 94 +++++++++++++++++++

If reviewer specifically asked to update, you can mention in the changelog as well. for examle:

- Add SPI peripheral schema reference based on review comment from <Reviewer Name>

Replace <Reviewer Name> with the actual reviewer.

Thanks,
Sanjay

Quoted 12 lines

v2:
- Add SPI peripheral schema reference
- Fix example by adding clock and regulator providers
- Fix SPDX license format

Hungyu Lin (1):
dt-bindings: iio: dds: Add AD9832/AD9835 binding

.../bindings/iio/dds/adi,ad9832.yaml | 91 +++++++++++++++++++

1 file changed, 91 insertions(+)

create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml

maintainer
#6 lore raw
Quoted 9 lines · On Sat, 09 May 2026 07:40:55 +0530 Sanjay Chitroda…
Quoted 7 lines · Hungyu Lin

This series adds devicetree binding documentation for the Analog Devices AD9832 and AD9835 DDS devices.

v3:
- Require spi-cpol in binding and example
- Use generic node name (dds@0) in example

Quoted 5 lines

Hi,

Thank you for the change.

Ideally, multiple logical changes should be split into series. For a single patch you can include changelog like this:

Whilst in general that is true, here we are talking about a single device tree binding. Those are almost always single patch affairs as they aren't normally that complex.

Jonathan

Quoted 30 lines
Signed-off-by ....

---
Changes in v2:
- Add SPI peripheral schema reference
---
.../bindings..

         | 94 +++++++++++++++++++

If reviewer specifically asked to update, you can mention in the changelog as well. for examle:

- Add SPI peripheral schema reference based on review comment from <Reviewer Name>

Replace <Reviewer Name> with the actual reviewer.

Thanks,
Sanjay

Quoted 12 lines

v2:
- Add SPI peripheral schema reference
- Fix example by adding clock and regulator providers
- Fix SPDX license format

Hungyu Lin (1):
dt-bindings: iio: dds: Add AD9832/AD9835 binding

.../bindings/iio/dds/adi,ad9832.yaml | 91 +++++++++++++++++++

1 file changed, 91 insertions(+)

create mode 100644 Documentation/devicetree/bindings/iio/dds/adi,ad9832.yaml