@@ -20,15 +20,14 @@ description: |
properties:
compatible:
oneOf:
+ - const: fsl,imx8ulp-gpio
- const: fsl,vf610-gpio
- items:
- const: fsl,imx7ulp-gpio
- const: fsl,vf610-gpio
- items:
- - enum:
- - fsl,imx93-gpio
- - fsl,imx8ulp-gpio
- - const: fsl,imx7ulp-gpio
+ - const: fsl,imx93-gpio
+ - const: fsl,imx8ulp-gpio
reg:
description: The first reg tuple represents the PORT module, the second tuple
@@ -36,7 +35,8 @@ properties:
maxItems: 2
interrupts:
- maxItems: 1
+ minItems: 1
+ maxItems: 2
interrupt-controller: true
@@ -77,6 +77,23 @@ required:
- "#gpio-cells"
- gpio-controller
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,vf610-gpio
+ - fsl,imx7ulp-gpio
+ then:
+ properties:
+ interrupts:
+ maxItems: 1
+ else:
+ properties:
+ interrupts:
+ maxItems: 2
+
additionalProperties: false
examples: