Commit d1b57496 authored by Corentin Labbe's avatar Corentin Labbe Committed by Herbert Xu

dt-bindings: crypto: rockchip: add new compatible

Since driver support new compatible, we need to update the driver bindings.
Signed-off-by: default avatarCorentin Labbe <clabbe@baylibre.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 81aaf680
...@@ -13,6 +13,8 @@ properties: ...@@ -13,6 +13,8 @@ properties:
compatible: compatible:
enum: enum:
- rockchip,rk3288-crypto - rockchip,rk3288-crypto
- rockchip,rk3328-crypto
- rockchip,rk3399-crypto
reg: reg:
maxItems: 1 maxItems: 1
...@@ -21,21 +23,82 @@ properties: ...@@ -21,21 +23,82 @@ properties:
maxItems: 1 maxItems: 1
clocks: clocks:
minItems: 3
maxItems: 4 maxItems: 4
clock-names:
minItems: 3
maxItems: 4
resets:
minItems: 1
maxItems: 3
reset-names:
minItems: 1
maxItems: 3
allOf:
- if:
properties:
compatible:
contains:
const: rockchip,rk3288-crypto
then:
properties:
clocks:
minItems: 4
clock-names: clock-names:
items: items:
- const: aclk - const: aclk
- const: hclk - const: hclk
- const: sclk - const: sclk
- const: apb_pclk - const: apb_pclk
resets: resets:
maxItems: 1 maxItems: 1
reset-names: reset-names:
items: items:
- const: crypto-rst - 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: required:
- compatible - compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment