Commit 2ccf7a5d authored by Jia Jie Ho's avatar Jia Jie Ho Committed by Herbert Xu
Browse files

dt-bindings: crypto: starfive: Add jh8100 support



Add compatible string and additional interrupt for StarFive JH8100
crypto engine.

Signed-off-by: default avatarJia Jie Ho <jiajie.ho@starfivetech.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 43698cd6
Loading
Loading
Loading
Loading
+28 −2
Original line number Diff line number Diff line
@@ -12,7 +12,9 @@ maintainers:

properties:
  compatible:
    const: starfive,jh7110-crypto
    enum:
      - starfive,jh8100-crypto
      - starfive,jh7110-crypto

  reg:
    maxItems: 1
@@ -28,7 +30,10 @@ properties:
      - const: ahb

  interrupts:
    maxItems: 1
    minItems: 1
    items:
      - description: SHA2 module irq
      - description: SM3 module irq

  resets:
    maxItems: 1
@@ -54,6 +59,27 @@ required:

additionalProperties: false

allOf:
  - if:
      properties:
        compatible:
          const: starfive,jh7110-crypto

    then:
      properties:
        interrupts:
          maxItems: 1

  - if:
      properties:
        compatible:
          const: starfive,jh8100-crypto

    then:
      properties:
        interrupts:
          minItems: 2

examples:
  - |
    crypto: crypto@16000000 {