dt-bindings: i2c: xiic: Migrate i2c-xiic documentation to YAML
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 1 Apr 2020 13:47:09 +0000 (22:47 +0900)
committerRob Herring <robh@kernel.org>
Tue, 14 Apr 2020 16:38:47 +0000 (11:38 -0500)
The document was migrated to YAML format and renamed xlnx,xps-iic-2.00.a.yaml

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/i2c/i2c-xiic.txt [deleted file]
Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/i2c/i2c-xiic.txt b/Documentation/devicetree/bindings/i2c/i2c-xiic.txt
deleted file mode 100644 (file)
index caf42e9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-Xilinx IIC controller:
-
-Required properties:
-- compatible : Must be "xlnx,xps-iic-2.00.a"
-- reg : IIC register location and length
-- interrupts : IIC controller unterrupt
-- #address-cells = <1>
-- #size-cells = <0>
-- clocks: Input clock specifier. Refer to common clock bindings.
-
-Optional properties:
-- Child nodes conforming to i2c bus binding
-- clock-names: Input clock name, should be 'pclk'.
-
-Example:
-
-       axi_iic_0: i2c@40800000 {
-               compatible = "xlnx,xps-iic-2.00.a";
-               clocks = <&clkc 15>;
-               interrupts = < 1 2 >;
-               reg = < 0x40800000 0x10000 >;
-
-               #size-cells = <0>;
-               #address-cells = <1>;
-       };
diff --git a/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml b/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml
new file mode 100644 (file)
index 0000000..67c1c84
--- /dev/null
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/i2c/xlnx,xps-iic-2.00.a.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: ilinx IIC controller Device Tree Bindings
+
+maintainers:
+  - info@mocean-labs.com
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+  compatible:
+    const: xlnx,xps-iic-2.00.a
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+
+  clock-name:
+    const: pclk
+    description: |
+      Input clock name.
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+examples:
+  - |
+    axi_iic_0: i2c@40800000 {
+      compatible = "xlnx,xps-iic-2.00.a";
+      clocks = <&clkc 15>;
+      interrupts = < 1 2 >;
+      reg = < 0x40800000 0x10000 >;
+
+      #size-cells = <0>;
+      #address-cells = <1>;
+    };
index d74ae2ba1a089379a1bca4adfe1f5eee46b212a2..de78e7fd5221003eb5ea6d5d6dcb5fc3a8c19132 100644 (file)
@@ -2693,7 +2693,7 @@ S:        Supported
 W:     http://wiki.xilinx.com
 T:     git https://github.com/Xilinx/linux-xlnx.git
 F:     Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
-F:     Documentation/devicetree/bindings/i2c/i2c-xiic.txt
+F:     Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml
 F:     arch/arm/mach-zynq/
 F:     drivers/block/xsysace.c
 F:     drivers/clocksource/timer-cadence-ttc.c