@@ -11,8 +11,15 @@ maintainers:
properties:
compatible:
- items:
- - const: amlogic,gxl-crypto
+ oneOf:
+ - items:
+ - enum:
+ - amlogic,g12a-crypto
+ - amlogic,s4-crypto
+ - amlogic,a1-crypto
+ - items:
+ - const: amlogic,gxl-crypto
+ - const: amlogic,axg-crypto
reg:
maxItems: 1
@@ -32,8 +39,24 @@ required:
- compatible
- reg
- interrupts
- - clocks
- - clock-names
+
+if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - amlogic,gxl-crypto
+then:
+ required:
+ - clocks
+ - clock-names
+ properties:
+ interrupts:
+ maxItems: 2
+else:
+ properties:
+ interrupts:
+ maxItems: 1
additionalProperties: false
Now we can use crypto driver at G12A/G12B/S4/A1/SM1/AXG. Signed-off-by: Alexey Romanov <avromanov@salutedevices.com> --- .../bindings/crypto/amlogic,gxl-crypto.yaml | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-)