Freescale SoC SEC Security Engines versions 1.x-2.x-3.x
Schema identifier ($id): "http://devicetree.org/schemas/crypto/fsl,sec2.0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Properties and child nodes (properties) #
compatible — required here #
Should contain entries for this and backward compatible SEC versions, high to low. Warning - SEC1 and SEC2 are mutually exclusive.
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec3.3"Item 2
Exact value (
const):"fsl,sec3.1"Item 3
Exact value (
const):"fsl,sec3.0"Item 4
Exact value (
const):"fsl,sec2.4"Item 5
Exact value (
const):"fsl,sec2.2"Item 6
Exact value (
const):"fsl,sec2.1"Item 7
Exact value (
const):"fsl,sec2.0"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec3.1"Item 2
Exact value (
const):"fsl,sec3.0"Item 3
Exact value (
const):"fsl,sec2.4"Item 4
Exact value (
const):"fsl,sec2.2"Item 5
Exact value (
const):"fsl,sec2.1"Item 6
Exact value (
const):"fsl,sec2.0"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec3.0"Item 2
Exact value (
const):"fsl,sec2.4"Item 3
Exact value (
const):"fsl,sec2.2"Item 4
Exact value (
const):"fsl,sec2.1"Item 5
Exact value (
const):"fsl,sec2.0"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec2.4"Item 2
Exact value (
const):"fsl,sec2.2"Item 3
Exact value (
const):"fsl,sec2.1"Item 4
Exact value (
const):"fsl,sec2.0"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec2.2"Item 2
Exact value (
const):"fsl,sec2.1"Item 3
Exact value (
const):"fsl,sec2.0"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec2.1"Item 2
Exact value (
const):"fsl,sec2.0"
Rule 7
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec2.0"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec1.2"Item 2
Exact value (
const):"fsl,sec1.0"
Rule 9
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec1.0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
fsl,num-channels — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
An integer representing the number of channels available.
fsl,channel-fifo-len — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 100
An integer representing the number of descriptor pointers each channel fetch fifo can hold.
fsl,exec-units-mask — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 4095
The bitmask representing what execution units (EUs) are available. EU information should be encoded following the SEC's Descriptor Header Dword EU_SEL0 field documentation, i.e. as follows:
bit 0 = reserved - should be 0
bit 1 = set if SEC has the ARC4 EU (AFEU)
bit 2 = set if SEC has the DES/3DES EU (DEU)
bit 3 = set if SEC has the message digest EU (MDEU/MDEU-A)
bit 4 = set if SEC has the random number generator EU (RNG)
bit 5 = set if SEC has the public key EU (PKEU)
bit 6 = set if SEC has the AES EU (AESU)
bit 7 = set if SEC has the Kasumi EU (KEU)
bit 8 = set if SEC has the CRC EU (CRCU)
bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)
remaining bits are reserved for future SEC EUs.
fsl,descriptor-types-mask — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The bitmask representing what descriptors are available. Descriptor type information should be encoded following the SEC's Descriptor Header Dword DESC_TYPE field documentation, i.e. as follows:
bit 0 = SEC supports descriptor type aesu_ctr_nonsnoop
bit 1 = SEC supports descriptor type ipsec_esp
bit 2 = SEC supports descriptor type common_nonsnoop
bit 3 = SEC supports descriptor type 802.11i AES ccmp
bit 4 = SEC supports descriptor type hmac_snoop_no_afeu
bit 5 = SEC supports descriptor type srtp
bit 6 = SEC supports descriptor type non_hmac_snoop_no_afeu
bit 7 = SEC supports descriptor type pkeu_assemble
bit 8 = SEC supports descriptor type aesu_key_expand_output
bit 9 = SEC supports descriptor type pkeu_ptmul
bit 10 = SEC supports descriptor type common_nonsnoop_afeu
bit 11 = SEC supports descriptor type pkeu_ptadd_dbl
..and so on and so forth.
Required in this object (required): "compatible", "reg", "fsl,num-channels", "fsl,channel-fifo-len", "fsl,exec-units-mask", "fsl,descriptor-types-mask"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* MPC8548E */
crypto@30000 {
compatible = "fsl,sec2.1", "fsl,sec2.0";
reg = <0x30000 0x10000>;
interrupts = <29 2>;
interrupt-parent = <&mpic>;
fsl,num-channels = <4>;
fsl,channel-fifo-len = <24>;
fsl,exec-units-mask = <0xfe>;
fsl,descriptor-types-mask = <0x12b0ebf>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)