162306a36Sopenharmony_ciFreescale SoC SEC Security Engines versions 1.x-2.x-3.x
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci- compatible : Should contain entries for this and backward compatible
662306a36Sopenharmony_ci  SEC versions, high to low, e.g., "fsl,sec2.1", "fsl,sec2.0" (SEC2/3)
762306a36Sopenharmony_ci                             e.g., "fsl,sec1.2", "fsl,sec1.0" (SEC1)
862306a36Sopenharmony_ci    warning: SEC1 and SEC2 are mutually exclusive
962306a36Sopenharmony_ci- reg : Offset and length of the register set for the device
1062306a36Sopenharmony_ci- interrupts : the SEC's interrupt number
1162306a36Sopenharmony_ci- fsl,num-channels : An integer representing the number of channels
1262306a36Sopenharmony_ci  available.
1362306a36Sopenharmony_ci- fsl,channel-fifo-len : An integer representing the number of
1462306a36Sopenharmony_ci  descriptor pointers each channel fetch fifo can hold.
1562306a36Sopenharmony_ci- fsl,exec-units-mask : The bitmask representing what execution units
1662306a36Sopenharmony_ci  (EUs) are available. It's a single 32-bit cell. EU information
1762306a36Sopenharmony_ci  should be encoded following the SEC's Descriptor Header Dword
1862306a36Sopenharmony_ci  EU_SEL0 field documentation, i.e. as follows:
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci	bit 0  = reserved - should be 0
2162306a36Sopenharmony_ci	bit 1  = set if SEC has the ARC4 EU (AFEU)
2262306a36Sopenharmony_ci	bit 2  = set if SEC has the DES/3DES EU (DEU)
2362306a36Sopenharmony_ci	bit 3  = set if SEC has the message digest EU (MDEU/MDEU-A)
2462306a36Sopenharmony_ci	bit 4  = set if SEC has the random number generator EU (RNG)
2562306a36Sopenharmony_ci	bit 5  = set if SEC has the public key EU (PKEU)
2662306a36Sopenharmony_ci	bit 6  = set if SEC has the AES EU (AESU)
2762306a36Sopenharmony_ci	bit 7  = set if SEC has the Kasumi EU (KEU)
2862306a36Sopenharmony_ci	bit 8  = set if SEC has the CRC EU (CRCU)
2962306a36Sopenharmony_ci	bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciremaining bits are reserved for future SEC EUs.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci- fsl,descriptor-types-mask : The bitmask representing what descriptors
3462306a36Sopenharmony_ci  are available. It's a single 32-bit cell. Descriptor type information
3562306a36Sopenharmony_ci  should be encoded following the SEC's Descriptor Header Dword DESC_TYPE
3662306a36Sopenharmony_ci  field documentation, i.e. as follows:
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci	bit 0  = set if SEC supports the aesu_ctr_nonsnoop desc. type
3962306a36Sopenharmony_ci	bit 1  = set if SEC supports the ipsec_esp descriptor type
4062306a36Sopenharmony_ci	bit 2  = set if SEC supports the common_nonsnoop desc. type
4162306a36Sopenharmony_ci	bit 3  = set if SEC supports the 802.11i AES ccmp desc. type
4262306a36Sopenharmony_ci	bit 4  = set if SEC supports the hmac_snoop_no_afeu desc. type
4362306a36Sopenharmony_ci	bit 5  = set if SEC supports the srtp descriptor type
4462306a36Sopenharmony_ci	bit 6  = set if SEC supports the non_hmac_snoop_no_afeu desc.type
4562306a36Sopenharmony_ci	bit 7  = set if SEC supports the pkeu_assemble descriptor type
4662306a36Sopenharmony_ci	bit 8  = set if SEC supports the aesu_key_expand_output desc.type
4762306a36Sopenharmony_ci	bit 9  = set if SEC supports the pkeu_ptmul descriptor type
4862306a36Sopenharmony_ci	bit 10 = set if SEC supports the common_nonsnoop_afeu desc. type
4962306a36Sopenharmony_ci	bit 11 = set if SEC supports the pkeu_ptadd_dbl descriptor type
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci  ..and so on and so forth.
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciExample:
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci	/* MPC8548E */
5662306a36Sopenharmony_ci	crypto@30000 {
5762306a36Sopenharmony_ci		compatible = "fsl,sec2.1", "fsl,sec2.0";
5862306a36Sopenharmony_ci		reg = <0x30000 0x10000>;
5962306a36Sopenharmony_ci		interrupts = <29 2>;
6062306a36Sopenharmony_ci		interrupt-parent = <&mpic>;
6162306a36Sopenharmony_ci		fsl,num-channels = <4>;
6262306a36Sopenharmony_ci		fsl,channel-fifo-len = <24>;
6362306a36Sopenharmony_ci		fsl,exec-units-mask = <0xfe>;
6462306a36Sopenharmony_ci		fsl,descriptor-types-mask = <0x12b0ebf>;
6562306a36Sopenharmony_ci	};
66