diff mbox series

[02/20] dt-bindings:iio:adc:ti,twl4030-madc yaml conversion

Message ID 20200905173004.216081-3-jic23@kernel.org
State Superseded
Headers show
Series dt-bindings:iio:adc: Another set of yaml conversions. | expand

Commit Message

Jonathan Cameron Sept. 5, 2020, 5:29 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>


Conversion from txt to yaml as part of a general move of IIO bindings
to the new format.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Cc: Sebastian Reichel <sre@kernel.org>
---
 .../bindings/iio/adc/ti,twl4030-madc.yaml     | 48 +++++++++++++++++++
 .../bindings/iio/adc/twl4030-madc.txt         | 24 ----------
 2 files changed, 48 insertions(+), 24 deletions(-)

-- 
2.28.0

Comments

Sebastian Reichel Sept. 8, 2020, 8:52 p.m. UTC | #1
Hi,

On Sat, Sep 05, 2020 at 06:29:46PM +0100, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

> 

> Conversion from txt to yaml as part of a general move of IIO bindings

> to the new format.

> 

> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

> Cc: Sebastian Reichel <sre@kernel.org>

> ---


Acked-by: Sebastian Reichel <sre@kernel.org>


-- Sebastian

>  .../bindings/iio/adc/ti,twl4030-madc.yaml     | 48 +++++++++++++++++++

>  .../bindings/iio/adc/twl4030-madc.txt         | 24 ----------

>  2 files changed, 48 insertions(+), 24 deletions(-)

> 

> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml

> new file mode 100644

> index 000000000000..6781ad2f0f51

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml

> @@ -0,0 +1,48 @@

> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

> +%YAML 1.2

> +---

> +$id: http://devicetree.org/schemas/iio/adc/ti,twl4030-madc.yaml#

> +$schema: http://devicetree.org/meta-schemas/core.yaml#

> +

> +title: MADC subsystem in the TWL4030 power module

> +

> +maintainers:

> +  - Sebastian Reichel <sre@kernel.org>

> +

> +description:

> +  The MADC subsystem in the TWL4030 consists of a 10-bit ADC

> +  combined with a 16-input analog multiplexer.

> +

> +properties:

> +  compatible:

> +    const: ti,twl4030-madc

> +

> +  interrupts:

> +    maxItems: 1

> +

> +  ti,system-uses-second-madc-irq:

> +    type: boolean

> +    description:

> +      Set if the second madc irq register should be used, which is intended

> +      to be used  by Co-Processors (e.g. a modem).

> +

> +  "#io-channel-cells":

> +    const: 1

> +

> +required:

> +  - compatible

> +  - interrupts

> +  - "#io-channel-cells"

> +

> +additionalProperties: false

> +

> +examples:

> +  - |

> +    twl {

> +        madc {

> +            compatible = "ti,twl4030-madc";

> +            interrupts = <3>;

> +            #io-channel-cells = <1>;

> +        };

> +    };

> +...

> diff --git a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt b/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt

> deleted file mode 100644

> index 6bdd21404b57..000000000000

> --- a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt

> +++ /dev/null

> @@ -1,24 +0,0 @@

> -* TWL4030 Monitoring Analog to Digital Converter (MADC)

> -

> -The MADC subsystem in the TWL4030 consists of a 10-bit ADC

> -combined with a 16-input analog multiplexer.

> -

> -Required properties:

> -  - compatible: Should contain "ti,twl4030-madc".

> -  - interrupts: IRQ line for the MADC submodule.

> -  - #io-channel-cells: Should be set to <1>.

> -

> -Optional properties:

> -  - ti,system-uses-second-madc-irq: boolean, set if the second madc irq register

> -				    should be used, which is intended to be used

> -				    by Co-Processors (e.g. a modem).

> -

> -Example:

> -

> -&twl {

> -	madc {

> -		compatible = "ti,twl4030-madc";

> -		interrupts = <3>;

> -		#io-channel-cells = <1>;

> -	};

> -};

> -- 

> 2.28.0

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml
new file mode 100644
index 000000000000..6781ad2f0f51
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml
@@ -0,0 +1,48 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/ti,twl4030-madc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MADC subsystem in the TWL4030 power module
+
+maintainers:
+  - Sebastian Reichel <sre@kernel.org>
+
+description:
+  The MADC subsystem in the TWL4030 consists of a 10-bit ADC
+  combined with a 16-input analog multiplexer.
+
+properties:
+  compatible:
+    const: ti,twl4030-madc
+
+  interrupts:
+    maxItems: 1
+
+  ti,system-uses-second-madc-irq:
+    type: boolean
+    description:
+      Set if the second madc irq register should be used, which is intended
+      to be used  by Co-Processors (e.g. a modem).
+
+  "#io-channel-cells":
+    const: 1
+
+required:
+  - compatible
+  - interrupts
+  - "#io-channel-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    twl {
+        madc {
+            compatible = "ti,twl4030-madc";
+            interrupts = <3>;
+            #io-channel-cells = <1>;
+        };
+    };
+...
diff --git a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt b/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt
deleted file mode 100644
index 6bdd21404b57..000000000000
--- a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt
+++ /dev/null
@@ -1,24 +0,0 @@ 
-* TWL4030 Monitoring Analog to Digital Converter (MADC)
-
-The MADC subsystem in the TWL4030 consists of a 10-bit ADC
-combined with a 16-input analog multiplexer.
-
-Required properties:
-  - compatible: Should contain "ti,twl4030-madc".
-  - interrupts: IRQ line for the MADC submodule.
-  - #io-channel-cells: Should be set to <1>.
-
-Optional properties:
-  - ti,system-uses-second-madc-irq: boolean, set if the second madc irq register
-				    should be used, which is intended to be used
-				    by Co-Processors (e.g. a modem).
-
-Example:
-
-&twl {
-	madc {
-		compatible = "ti,twl4030-madc";
-		interrupts = <3>;
-		#io-channel-cells = <1>;
-	};
-};