Rockchip Electronics Security Accelerator

Schema identifier ($id): "http://devicetree.org/schemas/crypto/rockchip,rk3288-crypto.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3288-crypto", "rockchip,rk3328-crypto", "rockchip,rk3399-crypto"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reset-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3288-crypto"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "sclk"

Item 4

Exact value (const): "apb_pclk"

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "crypto-rst"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3328-crypto"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hclk_master"

Item 2

Exact value (const): "hclk_slave"

Item 3

Exact value (const): "sclk"

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "crypto-rst"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3399-crypto"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hclk_master"

Item 2

Exact value (const): "hclk_slave"

Item 3

Exact value (const): "sclk"

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "master"

Item 2

Exact value (const): "slave"

Item 3

Exact value (const): "crypto-rst"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "reset-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/rk3288-cru.h>
crypto@ff8a0000 {
  compatible = "rockchip,rk3288-crypto";
  reg = <0xff8a0000 0x4000>;
  interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>,
           <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>;
  clock-names = "aclk", "hclk", "sclk", "apb_pclk";
  resets = <&cru SRST_CRYPTO>;
  reset-names = "crypto-rst";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page