Allwinner Crypto Engine driver

Schema identifier ($id): "http://devicetree.org/schemas/crypto/allwinner,sun8i-ce.yaml#"

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

Maintainers (maintainers): "Corentin Labbe <clabbe.montjoie@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "allwinner,sun8i-h3-crypto", "allwinner,sun8i-r40-crypto", "allwinner,sun20i-d1-crypto", "allwinner,sun50i-a64-crypto", "allwinner,sun50i-h5-crypto", "allwinner,sun50i-h6-crypto", "allwinner,sun50i-h616-crypto"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus clock

Item 2

Module clock

Item 3

MBus clock

Item 4

TRNG clock (RC oscillator)

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mod"

Item 3

Exact value (const): "ram"

Item 4

Exact value (const): "trng"

Minimum number of items (minItems): 2

resets — required here #

Maximum number of items (maxItems): 1

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "allwinner,sun20i-d1-crypto", "allwinner,sun50i-h616-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 #

Minimum number of items (minItems): 4

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here

Exact value (const): "allwinner,sun50i-h6-crypto"

When the condition matches (then) #

Properties and child nodes (properties) #

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

When the condition does not match (else) #

Properties and child nodes (properties) #

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

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

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/sun50i-a64-ccu.h>
#include <dt-bindings/reset/sun50i-a64-ccu.h>

crypto: crypto@1c15000 {
  compatible = "allwinner,sun8i-h3-crypto";
  reg = <0x01c15000 0x1000>;
  interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
  clock-names = "bus", "mod";
  resets = <&ccu RST_BUS_CE>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page