fsl-sec2.txt 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Freescale SoC SEC Security Engines versions 1.x-2.x-3.x
  2. Required properties:
  3. - compatible : Should contain entries for this and backward compatible
  4. SEC versions, high to low, e.g., "fsl,sec2.1", "fsl,sec2.0" (SEC2/3)
  5. e.g., "fsl,sec1.2", "fsl,sec1.0" (SEC1)
  6. warning: SEC1 and SEC2 are mutually exclusive
  7. - reg : Offset and length of the register set for the device
  8. - interrupts : the SEC's interrupt number
  9. - fsl,num-channels : An integer representing the number of channels
  10. available.
  11. - fsl,channel-fifo-len : An integer representing the number of
  12. descriptor pointers each channel fetch fifo can hold.
  13. - fsl,exec-units-mask : The bitmask representing what execution units
  14. (EUs) are available. It's a single 32-bit cell. EU information
  15. should be encoded following the SEC's Descriptor Header Dword
  16. EU_SEL0 field documentation, i.e. as follows:
  17. bit 0 = reserved - should be 0
  18. bit 1 = set if SEC has the ARC4 EU (AFEU)
  19. bit 2 = set if SEC has the DES/3DES EU (DEU)
  20. bit 3 = set if SEC has the message digest EU (MDEU/MDEU-A)
  21. bit 4 = set if SEC has the random number generator EU (RNG)
  22. bit 5 = set if SEC has the public key EU (PKEU)
  23. bit 6 = set if SEC has the AES EU (AESU)
  24. bit 7 = set if SEC has the Kasumi EU (KEU)
  25. bit 8 = set if SEC has the CRC EU (CRCU)
  26. bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)
  27. remaining bits are reserved for future SEC EUs.
  28. - fsl,descriptor-types-mask : The bitmask representing what descriptors
  29. are available. It's a single 32-bit cell. Descriptor type information
  30. should be encoded following the SEC's Descriptor Header Dword DESC_TYPE
  31. field documentation, i.e. as follows:
  32. bit 0 = set if SEC supports the aesu_ctr_nonsnoop desc. type
  33. bit 1 = set if SEC supports the ipsec_esp descriptor type
  34. bit 2 = set if SEC supports the common_nonsnoop desc. type
  35. bit 3 = set if SEC supports the 802.11i AES ccmp desc. type
  36. bit 4 = set if SEC supports the hmac_snoop_no_afeu desc. type
  37. bit 5 = set if SEC supports the srtp descriptor type
  38. bit 6 = set if SEC supports the non_hmac_snoop_no_afeu desc.type
  39. bit 7 = set if SEC supports the pkeu_assemble descriptor type
  40. bit 8 = set if SEC supports the aesu_key_expand_output desc.type
  41. bit 9 = set if SEC supports the pkeu_ptmul descriptor type
  42. bit 10 = set if SEC supports the common_nonsnoop_afeu desc. type
  43. bit 11 = set if SEC supports the pkeu_ptadd_dbl descriptor type
  44. ..and so on and so forth.
  45. Optional properties:
  46. - interrupt-parent : the phandle for the interrupt controller that
  47. services interrupts for this device.
  48. Example:
  49. /* MPC8548E */
  50. crypto@30000 {
  51. compatible = "fsl,sec2.1", "fsl,sec2.0";
  52. reg = <0x30000 0x10000>;
  53. interrupts = <29 2>;
  54. interrupt-parent = <&mpic>;
  55. fsl,num-channels = <4>;
  56. fsl,channel-fifo-len = <24>;
  57. fsl,exec-units-mask = <0xfe>;
  58. fsl,descriptor-types-mask = <0x12b0ebf>;
  59. };