cpm.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. * Freescale Communications Processor Module
  2. NOTE: This is an interim binding, and will likely change slightly,
  3. as more devices are supported. The QE bindings especially are
  4. incomplete.
  5. * Root CPM node
  6. Properties:
  7. - compatible : "fsl,cpm1", "fsl,cpm2", or "fsl,qe".
  8. - reg : A 48-byte region beginning with CPCR.
  9. Example:
  10. cpm@119c0 {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. #interrupt-cells = <2>;
  14. compatible = "fsl,mpc8272-cpm", "fsl,cpm2";
  15. reg = <119c0 30>;
  16. }
  17. * Properties common to multiple CPM/QE devices
  18. - fsl,cpm-command : This value is ORed with the opcode and command flag
  19. to specify the device on which a CPM command operates.
  20. - fsl,cpm-brg : Indicates which baud rate generator the device
  21. is associated with. If absent, an unused BRG
  22. should be dynamically allocated. If zero, the
  23. device uses an external clock rather than a BRG.
  24. - reg : Unless otherwise specified, the first resource represents the
  25. scc/fcc/ucc registers, and the second represents the device's
  26. parameter RAM region (if it has one).
  27. * Multi-User RAM (MURAM)
  28. The multi-user/dual-ported RAM is expressed as a bus under the CPM node.
  29. Ranges must be set up subject to the following restrictions:
  30. - Children's reg nodes must be offsets from the start of all muram, even
  31. if the user-data area does not begin at zero.
  32. - If multiple range entries are used, the difference between the parent
  33. address and the child address must be the same in all, so that a single
  34. mapping can cover them all while maintaining the ability to determine
  35. CPM-side offsets with pointer subtraction. It is recommended that
  36. multiple range entries not be used.
  37. - A child address of zero must be translatable, even if no reg resources
  38. contain it.
  39. A child "data" node must exist, compatible with "fsl,cpm-muram-data", to
  40. indicate the portion of muram that is usable by the OS for arbitrary
  41. purposes. The data node may have an arbitrary number of reg resources,
  42. all of which contribute to the allocatable muram pool.
  43. Example, based on mpc8272:
  44. muram@0 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. ranges = <0 0 10000>;
  48. data@0 {
  49. compatible = "fsl,cpm-muram-data";
  50. reg = <0 2000 9800 800>;
  51. };
  52. };