fixup! dt-bindings: pinctrl: Add DT bindings ep93xx pinctrl
authorNikita Shubin <nikita.shubin@maquefel.me>
Tue, 2 May 2023 07:53:36 +0000 (10:53 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Tue, 2 May 2023 07:58:57 +0000 (10:58 +0300)
Documentation/devicetree/bindings/pinctrl/cirrus,ep9301-pinctrl.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/pinctrl/cirrus,ep93xx-pinctrl.yaml [deleted file]

diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,ep9301-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/cirrus,ep9301-pinctrl.yaml
new file mode 100644 (file)
index 0000000..a5a4253
--- /dev/null
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/cirrus,ep93xx-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cirrus ep93xx pins mux controller
+
+maintainers:
+  - Nikita Shubin <nikita.shubin@maquefel.me>
+  - Alexander Sverdlin <alexander.sverdlin@gmail.com>
+
+properties:
+  compatible:
+    oneOf:
+      - const: cirrus,ep9301-pinctrl
+      - items:
+          - enum:
+              - cirrus,ep9302-pinctrl
+              - cirrus,ep9307-pinctrl
+              - cirrus,ep9312-pinctrl
+              - cirrus,ep9315-pinctrl
+          - const: cirrus,ep9301-pinctrl
+
+patternProperties:
+  '^pins-':
+    type: object
+    description: pin node
+    $ref: pinmux-node.yaml#
+
+    properties:
+      function:
+        enum: [ spi, ac97, i2s, pwm, keypad, pata, lcd, gpio ]
+      groups:
+        minItems: 1
+        maxItems: 2
+        items:
+          enum: [ ssp, ac97, i2s_on_ssp, i2s_on_ac97, pwm1, gpio1agrp,
+                  gpio2agrp, gpio3agrp, gpio4agrp, gpio6agrp, gpio7agrp,
+                  rasteronsdram0grp, rasteronsdram3grp, keypadgrp, idegrp]
+
+    required:
+      - function
+      - groups
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@80930000 {
+      compatible = "cirrus,ep9301-syscon",
+                  "syscon", "simple-mfd";
+      reg = <0x80930000 0x1000>;
+      #clock-cells = <1>;
+      #reset-cells = <1>;
+      pinctrl {
+        compatible = "cirrus,ep9312-pinctrl", "cirrus,ep9301-pinctrl";
+        spi_default_pins: pins-spi {
+          function = "spi";
+          groups = "ssp";
+        };
+      };
+    };
diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,ep93xx-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/cirrus,ep93xx-pinctrl.yaml
deleted file mode 100644 (file)
index 5fb398c..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/pinctrl/cirrus,ep93xx-pinctrl.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Cirrus ep93xx pins mux controller
-
-maintainers:
-  - Nikita Shubin <nikita.shubin@maquefel.me>
-  - Alexander Sverdlin <alexander.sverdlin@gmail.com>
-
-properties:
-  compatible:
-    oneOf:
-      - const: cirrus,ep9301-pinctrl
-      - items:
-          - enum:
-              - cirrus,ep9302-pinctrl
-              - cirrus,ep9307-pinctrl
-              - cirrus,ep9312-pinctrl
-              - cirrus,ep9315-pinctrl
-          - const: cirrus,ep9301-pinctrl
-
-properties:
-  compatible:
-    enum:
-      - cirrus,ep9301-pinctrl
-      - cirrus,ep9307-pinctrl
-      - cirrus,ep9312-pinctrl
-
-patternProperties:
-  '^pins-':
-    type: object
-    description: pin node
-    $ref: pinmux-node.yaml#
-
-    properties:
-      function:
-        enum: [ spi, ac97, i2s, pwm, keypad, pata, lcd, gpio ]
-      groups:
-        minItems: 1
-        maxItems: 2
-        items:
-          enum: [ ssp, ac97, i2s_on_ssp, i2s_on_ac97, pwm1, gpio1agrp,
-                  gpio2agrp, gpio3agrp, gpio4agrp, gpio6agrp, gpio7agrp,
-                  rasteronsdram0grp, rasteronsdram3grp, keypadgrp, idegrp]
-
-    required:
-      - function
-      - groups
-
-required:
-  - compatible
-
-additionalProperties: false
-
-examples:
-  - |
-    syscon@80930000 {
-      compatible = "cirrus,ep9301-syscon",
-                  "syscon", "simple-mfd";
-      reg = <0x80930000 0x1000>;
-      #clock-cells = <1>;
-      #reset-cells = <1>;
-      pinctrl {
-        compatible = "cirrus,ep9312-pinctrl", "cirrus,ep9301-pinctrl";
-        spi_default_pins: pins-spi {
-          function = "spi";
-          groups = "ssp";
-        };
-      };
-    };