fixup! dt-bindings: spi: Add DT bindings ep93xx spi
authorNikita Shubin <nikita.shubin@maquefel.me>
Tue, 2 May 2023 09:28:39 +0000 (12:28 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Tue, 2 May 2023 09:28:39 +0000 (12:28 +0300)
Documentation/devicetree/bindings/spi/spi-ep9301.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/spi/spi-ep93xx.yaml [deleted file]

diff --git a/Documentation/devicetree/bindings/spi/spi-ep9301.yaml b/Documentation/devicetree/bindings/spi/spi-ep9301.yaml
new file mode 100644 (file)
index 0000000..c782a9b
--- /dev/null
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/spi-ep9301.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: EP93xx SoC SPI controller
+
+maintainers:
+  - Alexander Sverdlin <alexander.sverdlin@gmail.com>
+  - Nikita Shubin <nikita.shubin@maquefel.me>
+
+allOf:
+  - $ref: spi-controller.yaml#
+
+properties:
+  "#address-cells": true
+  "#size-cells": true
+
+  compatible:
+    oneOf:
+      - const: cirrus,ep9301-spi
+      - items:
+          - enum:
+            - cirrus,ep9302-spi
+            - cirrus,ep9307-spi
+            - cirrus,ep9312-spi
+            - cirrus,ep9315-spi
+          - const: cirrus,ep9301-spi
+
+  reg:
+    items:
+      - description: SPI registers region
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: SPI Controller reference clock source
+
+  cs-gpios: true
+
+  ep9301,use-dma:
+    description: Flag indicating that the SPI should use dma
+    type: boolean
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/cirrus,ep93xx-clock.h>
+    spi@808a0000 {
+      compatible = "cirrus,ep9301-spi";
+      reg = <0x808a0000 0x18>;
+      interrupt-parent = <&vic1>;
+      interrupts = <21>;
+      clocks = <&syscon EP93XX_CLK_SPI>;
+      cs-gpios = <&gpio5 2 0>;
+      ep9301,use-dma;
+    };
+
+...
diff --git a/Documentation/devicetree/bindings/spi/spi-ep93xx.yaml b/Documentation/devicetree/bindings/spi/spi-ep93xx.yaml
deleted file mode 100644 (file)
index e09ab50..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/spi/spi-ep93xx.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: EP93xx SoC SPI controller
-
-maintainers:
-  - Mark Brown <broonie@kernel.org>
-
-allOf:
-  - $ref: "spi-controller.yaml#"
-
-properties:
-  "#address-cells": true
-  "#size-cells": true
-
-  compatible:
-    items:
-      - const: cirrus,ep9301-spi
-
-  reg:
-    items:
-      - description: SPI registers region
-
-  interrupts:
-    maxItems: 1
-
-  clocks:
-    items:
-      - description: SPI Controller reference clock source
-
-  clock-names:
-    items:
-      - const: ep93xx-spi.0
-
-  cs-gpios: true
-
-  use_dma:
-    type: boolean
-    items:
-      - description: Flag indicating that the SPI should use dma
-
-required:
-  - compatible
-  - reg
-  - interrupts
-  - clocks
-  - clock-names
-
-unevaluatedProperties: false
-
-examples:
-  - |
-    #include <dt-bindings/clock/cirrus,ep93xx-clock.h>
-    spi0: spi@808a0000 {
-        compatible = "cirrus,ep9301-spi";
-        reg = <0x808a0000 0x18>;
-        interrupt-parent = <&vic1>;
-        interrupts = <21>;
-        clocks = <&syscon EP93XX_CLK_SPI>;
-        clock-names = "ep93xx-spi.0";
-        cs-gpios = <&gpio5 2 0>;
-        use_dma;
-    };
-
-...