fixup! dt-bindings: gpio: Add DT bindings ep93xx gpio
authorNikita Shubin <nikita.shubin@maquefel.me>
Fri, 28 Apr 2023 18:08:30 +0000 (21:08 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Tue, 2 May 2023 07:58:55 +0000 (10:58 +0300)
Documentation/devicetree/bindings/gpio/gpio-ep93xx.yaml

index 4cf03c325d39791cd8b4ea42e32dc278d5ff0b01..7d788d025e7109c530a215aa470743491adf7bcc 100644 (file)
@@ -15,10 +15,6 @@ properties:
   compatible:
     const: cirrus,ep9301-gpio
 
-  chip-label:
-    maxItems: 1
-    description: human readable name.
-
   reg:
     minItems: 2
     items:
@@ -46,13 +42,10 @@ properties:
     const: 2
 
   interrupts:
-    items:
-      - const: 27
-
-  interrupts-extended:
-    minItems: 8
-    maxItems: 8
-    description: port F has dedicated irq line for each gpio line.
+    oneOf:
+      - maxItems: 1
+      - description: port F has dedicated irq line for each gpio line
+        maxItems: 8
 
 required:
   - compatible
@@ -64,98 +57,90 @@ additionalProperties: false
 
 examples:
   - |
-        gpio0: gpio@80840000 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "A";
-                reg = <0x80840000 0x04>,
-                      <0x80840010 0x04>,
-                      <0x80840090 0x1c>;
-                reg-names = "data", "dir", "intr";
-                gpio-controller;
-                #gpio-cells = <2>;
-                interrupt-controller;
-                interrupt-parent = <&vic1>;
-                interrupts = <27>;
-        };
-
-        gpio1: gpio@80840004 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "B";
-                reg = <0x80840004 0x04>,
-                      <0x80840014 0x04>,
-                      <0x808400ac 0x1c>;
-                reg-names = "data", "dir", "intr";
-                gpio-controller;
-                #gpio-cells = <2>;
-                interrupt-controller;
-                interrupt-parent = <&vic1>;
-                interrupts = <27>;
-        };
-
-        gpio2: gpio@80840008 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "C";
-                reg = <0x80840008 0x04>,
-                      <0x80840018 0x04>;
-                reg-names = "data", "dir";
-                gpio-controller;
-                #gpio-cells = <2>;
-        };
-
-        gpio3: gpio@8084000c {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "D";
-                reg = <0x8084000c 0x04>,
-                      <0x8084001c 0x04>;
-                reg-names = "data", "dir";
-                gpio-controller;
-                #gpio-cells = <2>;
-        };
-
-        gpio4: gpio@80840020 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "E";
-                reg = <0x80840020 0x04>,
-                      <0x80840024 0x04>;
-                reg-names = "data", "dir";
-                gpio-controller;
-                #gpio-cells = <2>;
-        };
-
-        gpio5: gpio@80840030 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "F";
-                reg = <0x80840030 0x04>,
-                      <0x80840034 0x04>,
-                      <0x8084004c 0x1c>;
-                reg-names = "data", "dir", "intr";
-                gpio-controller;
-                #gpio-cells = <2>;
-                interrupt-controller;
-                interrupts-extended = <&vic0 19>, <&vic0 20>,
-                                      <&vic0 21>, <&vic0 22>,
-                                      <&vic1 15>, <&vic1 16>,
-                                      <&vic1 17>, <&vic1 18>;
-        };
-
-        gpio6: gpio@80840038 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "G";
-                reg = <0x80840038 0x04>,
-                      <0x8084003c 0x04>;
-                reg-names = "data", "dir";
-                gpio-controller;
-                #gpio-cells = <2>;
-        };
-
-        gpio7: gpio@80840040 {
-                compatible = "cirrus,ep9301-gpio";
-                chip-label = "H";
-                reg = <0x80840040 0x04>,
-                      <0x80840044 0x04>;
-                reg-names = "data", "dir";
-                gpio-controller;
-                #gpio-cells = <2>;
-        };
+    gpio0: gpio@80840000 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840000 0x04>,
+            <0x80840010 0x04>,
+            <0x80840090 0x1c>;
+      reg-names = "data", "dir", "intr";
+      gpio-controller;
+      #gpio-cells = <2>;
+        interrupt-controller;
+        interrupt-parent = <&vic1>;
+        interrupts = <27>;
+    };
+
+    gpio1: gpio@80840004 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840004 0x04>,
+            <0x80840014 0x04>,
+            <0x808400ac 0x1c>;
+      reg-names = "data", "dir", "intr";
+      gpio-controller;
+      #gpio-cells = <2>;
+      interrupt-controller;
+      interrupt-parent = <&vic1>;
+      interrupts = <27>;
+    };
+
+    gpio2: gpio@80840008 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840008 0x04>,
+            <0x80840018 0x04>;
+      reg-names = "data", "dir";
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
+
+    gpio3: gpio@8084000c {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x8084000c 0x04>,
+            <0x8084001c 0x04>;
+      reg-names = "data", "dir";
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
+
+    gpio4: gpio@80840020 {
+      compatible = "cirrus,ep9301-gpio";        
+      reg = <0x80840020 0x04>,
+            <0x80840024 0x04>;
+      reg-names = "data", "dir";
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
+
+    gpio5: gpio@80840030 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840030 0x04>,
+            <0x80840034 0x04>,
+            <0x8084004c 0x1c>;
+      reg-names = "data", "dir", "intr";
+      gpio-controller;
+      #gpio-cells = <2>;
+      interrupt-controller;
+      interrupts-extended = <&vic0 19>, <&vic0 20>,
+                            <&vic0 21>, <&vic0 22>,
+                            <&vic1 15>, <&vic1 16>,
+                            <&vic1 17>, <&vic1 18>;
+    };
+
+    gpio6: gpio@80840038 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840038 0x04>,
+            <0x8084003c 0x04>;
+      reg-names = "data", "dir";
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
+
+    gpio7: gpio@80840040 {
+      compatible = "cirrus,ep9301-gpio";
+      reg = <0x80840040 0x04>,
+            <0x80840044 0x04>;
+      reg-names = "data", "dir";
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
 
 ...