xref: /openbmc/linux/Documentation/devicetree/bindings/crypto/fsl-sec2.txt (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*04a34d46SLEROY ChristopheFreescale SoC SEC Security Engines versions 1.x-2.x-3.x
25a9ebe95SKim Phillips
35a9ebe95SKim PhillipsRequired properties:
45a9ebe95SKim Phillips
55a9ebe95SKim Phillips- compatible : Should contain entries for this and backward compatible
6*04a34d46SLEROY Christophe  SEC versions, high to low, e.g., "fsl,sec2.1", "fsl,sec2.0" (SEC2/3)
7*04a34d46SLEROY Christophe                             e.g., "fsl,sec1.2", "fsl,sec1.0" (SEC1)
8*04a34d46SLEROY Christophe    warning: SEC1 and SEC2 are mutually exclusive
95a9ebe95SKim Phillips- reg : Offset and length of the register set for the device
105a9ebe95SKim Phillips- interrupts : the SEC's interrupt number
115a9ebe95SKim Phillips- fsl,num-channels : An integer representing the number of channels
125a9ebe95SKim Phillips  available.
135a9ebe95SKim Phillips- fsl,channel-fifo-len : An integer representing the number of
145a9ebe95SKim Phillips  descriptor pointers each channel fetch fifo can hold.
155a9ebe95SKim Phillips- fsl,exec-units-mask : The bitmask representing what execution units
165a9ebe95SKim Phillips  (EUs) are available. It's a single 32-bit cell. EU information
175a9ebe95SKim Phillips  should be encoded following the SEC's Descriptor Header Dword
185a9ebe95SKim Phillips  EU_SEL0 field documentation, i.e. as follows:
195a9ebe95SKim Phillips
205a9ebe95SKim Phillips	bit 0  = reserved - should be 0
215a9ebe95SKim Phillips	bit 1  = set if SEC has the ARC4 EU (AFEU)
225a9ebe95SKim Phillips	bit 2  = set if SEC has the DES/3DES EU (DEU)
235a9ebe95SKim Phillips	bit 3  = set if SEC has the message digest EU (MDEU/MDEU-A)
245a9ebe95SKim Phillips	bit 4  = set if SEC has the random number generator EU (RNG)
255a9ebe95SKim Phillips	bit 5  = set if SEC has the public key EU (PKEU)
265a9ebe95SKim Phillips	bit 6  = set if SEC has the AES EU (AESU)
275a9ebe95SKim Phillips	bit 7  = set if SEC has the Kasumi EU (KEU)
285a9ebe95SKim Phillips	bit 8  = set if SEC has the CRC EU (CRCU)
295a9ebe95SKim Phillips	bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)
305a9ebe95SKim Phillips
315a9ebe95SKim Phillipsremaining bits are reserved for future SEC EUs.
325a9ebe95SKim Phillips
335a9ebe95SKim Phillips- fsl,descriptor-types-mask : The bitmask representing what descriptors
345a9ebe95SKim Phillips  are available. It's a single 32-bit cell. Descriptor type information
355a9ebe95SKim Phillips  should be encoded following the SEC's Descriptor Header Dword DESC_TYPE
365a9ebe95SKim Phillips  field documentation, i.e. as follows:
375a9ebe95SKim Phillips
385a9ebe95SKim Phillips	bit 0  = set if SEC supports the aesu_ctr_nonsnoop desc. type
395a9ebe95SKim Phillips	bit 1  = set if SEC supports the ipsec_esp descriptor type
405a9ebe95SKim Phillips	bit 2  = set if SEC supports the common_nonsnoop desc. type
415a9ebe95SKim Phillips	bit 3  = set if SEC supports the 802.11i AES ccmp desc. type
425a9ebe95SKim Phillips	bit 4  = set if SEC supports the hmac_snoop_no_afeu desc. type
435a9ebe95SKim Phillips	bit 5  = set if SEC supports the srtp descriptor type
445a9ebe95SKim Phillips	bit 6  = set if SEC supports the non_hmac_snoop_no_afeu desc.type
455a9ebe95SKim Phillips	bit 7  = set if SEC supports the pkeu_assemble descriptor type
465a9ebe95SKim Phillips	bit 8  = set if SEC supports the aesu_key_expand_output desc.type
475a9ebe95SKim Phillips	bit 9  = set if SEC supports the pkeu_ptmul descriptor type
485a9ebe95SKim Phillips	bit 10 = set if SEC supports the common_nonsnoop_afeu desc. type
495a9ebe95SKim Phillips	bit 11 = set if SEC supports the pkeu_ptadd_dbl descriptor type
505a9ebe95SKim Phillips
515a9ebe95SKim Phillips  ..and so on and so forth.
525a9ebe95SKim Phillips
535a9ebe95SKim PhillipsExample:
545a9ebe95SKim Phillips
555a9ebe95SKim Phillips	/* MPC8548E */
565a9ebe95SKim Phillips	crypto@30000 {
575a9ebe95SKim Phillips		compatible = "fsl,sec2.1", "fsl,sec2.0";
585a9ebe95SKim Phillips		reg = <0x30000 0x10000>;
595a9ebe95SKim Phillips		interrupts = <29 2>;
605a9ebe95SKim Phillips		interrupt-parent = <&mpic>;
615a9ebe95SKim Phillips		fsl,num-channels = <4>;
625a9ebe95SKim Phillips		fsl,channel-fifo-len = <24>;
635a9ebe95SKim Phillips		fsl,exec-units-mask = <0xfe>;
645a9ebe95SKim Phillips		fsl,descriptor-types-mask = <0x12b0ebf>;
655a9ebe95SKim Phillips	};
66