diff mbox series

[15/29] dt-bindings:iio:dac:ti,dac7612 yaml conversion

Message ID 20201011170749.243680-16-jic23@kernel.org (mailing list archive)
State New, archived
Headers show
Series dt-bindings:iio: Another set of yaml conversions. | expand

Commit Message

Jonathan Cameron Oct. 11, 2020, 5:07 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Simple conversion from txt to yaml.  No significant adjustments.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Ricardo Ribalda Delgado <ricardo@ribalda.com>
---
 .../bindings/iio/dac/ti,dac7612.txt           | 28 ----------
 .../bindings/iio/dac/ti,dac7612.yaml          | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 28 deletions(-)

Comments

Ricardo Ribalda Delgado Oct. 15, 2020, 8:49 a.m. UTC | #1
Signed-off-by: Ricardo Ribalda <ribalda@kernel.org>

On Sun, Oct 11, 2020 at 7:10 PM Jonathan Cameron <jic23@kernel.org> wrote:
>
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> Simple conversion from txt to yaml.  No significant adjustments.
>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: Ricardo Ribalda Delgado <ricardo@ribalda.com>
> ---
>  .../bindings/iio/dac/ti,dac7612.txt           | 28 ----------
>  .../bindings/iio/dac/ti,dac7612.yaml          | 53 +++++++++++++++++++
>  2 files changed, 53 insertions(+), 28 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
> deleted file mode 100644
> index 17af395b99d9..000000000000
> --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter
> -
> -The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed
> -12-bit monotonicity performance over the industrial temperature range.
> -Is is programmable through an SPI interface.
> -
> -The internal DACs are loaded when the LOADDACS pin is pulled down.
> -
> -https://www.ti.com/lit/ds/sbas106/sbas106.pdf
> -
> -Required Properties:
> -- compatible: Should be one of:
> -               "ti,dac7612"
> -               "ti,dac7612u"
> -               "ti,dac7612ub"
> -- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
> -
> -Optional Properties:
> -- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin.
> -- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
> -
> -Example:
> -
> -       dac@1 {
> -               compatible = "ti,dac7612";
> -               reg = <0x1>;
> -               ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
> -       };
> diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
> new file mode 100644
> index 000000000000..d172b142f6ed
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
> @@ -0,0 +1,53 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments DAC7612 family of DACs
> +
> +description:
> +  The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with
> +  guaranteed 12-bit monotonicity performance over the industrial temperature
> +  range. Is is programmable through an SPI interface.
> +
> +maintainers:
> +  - Ricardo Ribalda Delgado <ricardo@ribalda.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - ti,dac7612
> +      - ti,dac7612u
> +      - ti,dac7612ub
> +
> +  reg:
> +    maxItems: 1
> +
> +  ti,loaddacs-gpios:
> +    description:
> +      DACs are loaded when the pin connected to this GPIO is pulled low.
> +    maxItems: 1
> +
> +  spi-max-frequency: true
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    spi {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        dac@1 {
> +            compatible = "ti,dac7612";
> +            reg = <0x1>;
> +            ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
> +        };
> +    };
> +...
> --
> 2.28.0
>
Jonathan Cameron Oct. 18, 2020, 5:41 p.m. UTC | #2
On Thu, 15 Oct 2020 10:49:08 +0200
Ricardo Ribalda Delgado <ricardo@ribalda.com> wrote:

> Signed-off-by: Ricardo Ribalda <ribalda@kernel.org>

Hi Ricardo,

I've converted that to an Acked-by.  This one doesn't convey
any DCO related info, so Signed-off-by isn't appropriate.

Thanks,

Jonathan

> 
> On Sun, Oct 11, 2020 at 7:10 PM Jonathan Cameron <jic23@kernel.org> wrote:
> >
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> >
> > Simple conversion from txt to yaml.  No significant adjustments.
> >
> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > Cc: Ricardo Ribalda Delgado <ricardo@ribalda.com>
> > ---
> >  .../bindings/iio/dac/ti,dac7612.txt           | 28 ----------
> >  .../bindings/iio/dac/ti,dac7612.yaml          | 53 +++++++++++++++++++
> >  2 files changed, 53 insertions(+), 28 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
> > deleted file mode 100644
> > index 17af395b99d9..000000000000
> > --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
> > +++ /dev/null
> > @@ -1,28 +0,0 @@
> > -* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter
> > -
> > -The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed
> > -12-bit monotonicity performance over the industrial temperature range.
> > -Is is programmable through an SPI interface.
> > -
> > -The internal DACs are loaded when the LOADDACS pin is pulled down.
> > -
> > -https://www.ti.com/lit/ds/sbas106/sbas106.pdf
> > -
> > -Required Properties:
> > -- compatible: Should be one of:
> > -               "ti,dac7612"
> > -               "ti,dac7612u"
> > -               "ti,dac7612ub"
> > -- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
> > -
> > -Optional Properties:
> > -- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin.
> > -- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
> > -
> > -Example:
> > -
> > -       dac@1 {
> > -               compatible = "ti,dac7612";
> > -               reg = <0x1>;
> > -               ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
> > -       };
> > diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
> > new file mode 100644
> > index 000000000000..d172b142f6ed
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
> > @@ -0,0 +1,53 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Texas Instruments DAC7612 family of DACs
> > +
> > +description:
> > +  The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with
> > +  guaranteed 12-bit monotonicity performance over the industrial temperature
> > +  range. Is is programmable through an SPI interface.
> > +
> > +maintainers:
> > +  - Ricardo Ribalda Delgado <ricardo@ribalda.com>
> > +
> > +properties:
> > +  compatible:
> > +    enum:
> > +      - ti,dac7612
> > +      - ti,dac7612u
> > +      - ti,dac7612ub
> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  ti,loaddacs-gpios:
> > +    description:
> > +      DACs are loaded when the pin connected to this GPIO is pulled low.
> > +    maxItems: 1
> > +
> > +  spi-max-frequency: true
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    #include <dt-bindings/gpio/gpio.h>
> > +    spi {
> > +        #address-cells = <1>;
> > +        #size-cells = <0>;
> > +
> > +        dac@1 {
> > +            compatible = "ti,dac7612";
> > +            reg = <0x1>;
> > +            ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
> > +        };
> > +    };
> > +...
> > --
> > 2.28.0
> >  
> 
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
deleted file mode 100644
index 17af395b99d9..000000000000
--- a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
+++ /dev/null
@@ -1,28 +0,0 @@ 
-* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter
-
-The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed
-12-bit monotonicity performance over the industrial temperature range.
-Is is programmable through an SPI interface.
-
-The internal DACs are loaded when the LOADDACS pin is pulled down.
-
-https://www.ti.com/lit/ds/sbas106/sbas106.pdf
-
-Required Properties:
-- compatible: Should be one of:
-		"ti,dac7612"
-		"ti,dac7612u"
-		"ti,dac7612ub"
-- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
-
-Optional Properties:
-- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin.
-- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt
-
-Example:
-
-	dac@1 {
-		compatible = "ti,dac7612";
-		reg = <0x1>;
-		ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
-	};
diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
new file mode 100644
index 000000000000..d172b142f6ed
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
@@ -0,0 +1,53 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments DAC7612 family of DACs
+
+description:
+  The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with
+  guaranteed 12-bit monotonicity performance over the industrial temperature
+  range. Is is programmable through an SPI interface.
+
+maintainers:
+  - Ricardo Ribalda Delgado <ricardo@ribalda.com>
+
+properties:
+  compatible:
+    enum:
+      - ti,dac7612
+      - ti,dac7612u
+      - ti,dac7612ub
+
+  reg:
+    maxItems: 1
+
+  ti,loaddacs-gpios:
+    description:
+      DACs are loaded when the pin connected to this GPIO is pulled low.
+    maxItems: 1
+
+  spi-max-frequency: true
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        dac@1 {
+            compatible = "ti,dac7612";
+            reg = <0x1>;
+            ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
+        };
+    };
+...