Skip to content

Commit

Permalink
dt-bindings: crypto: rockchip: add new compatible
Browse files Browse the repository at this point in the history
Since driver support new compatible, we need to update the driver bindings.

Signed-off-by: Corentin Labbe <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed Oct 28, 2022
1 parent 81aaf68 commit d1b5749
Showing 1 changed file with 71 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ properties:
compatible:
enum:
- rockchip,rk3288-crypto
- rockchip,rk3328-crypto
- rockchip,rk3399-crypto

reg:
maxItems: 1
Expand All @@ -21,21 +23,82 @@ properties:
maxItems: 1

clocks:
minItems: 3
maxItems: 4

clock-names:
items:
- const: aclk
- const: hclk
- const: sclk
- const: apb_pclk
minItems: 3
maxItems: 4

resets:
maxItems: 1
minItems: 1
maxItems: 3

reset-names:
items:
- const: crypto-rst
minItems: 1
maxItems: 3

allOf:
- if:
properties:
compatible:
contains:
const: rockchip,rk3288-crypto
then:
properties:
clocks:
minItems: 4
clock-names:
items:
- const: aclk
- const: hclk
- const: sclk
- const: apb_pclk
resets:
maxItems: 1
reset-names:
items:
- const: crypto-rst
- if:
properties:
compatible:
contains:
const: rockchip,rk3328-crypto
then:
properties:
clocks:
maxItems: 3
clock-names:
items:
- const: hclk_master
- const: hclk_slave
- const: sclk
resets:
maxItems: 1
reset-names:
items:
- const: crypto-rst
- if:
properties:
compatible:
contains:
const: rockchip,rk3399-crypto
then:
properties:
clocks:
maxItems: 3
clock-names:
items:
- const: hclk_master
- const: hclk_slave
- const: sclk
resets:
minItems: 3
reset-names:
items:
- const: master
- const: slave
- const: crypto-rst

required:
- compatible
Expand Down

0 comments on commit d1b5749

Please sign in to comment.