srio.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. * Freescale Serial RapidIO (SRIO) Controller
  2. RapidIO port node:
  3. Properties:
  4. - compatible
  5. Usage: required
  6. Value type: <string>
  7. Definition: Must include "fsl,srio" for IP blocks with IP Block
  8. Revision Register (SRIO IPBRR1) Major ID equal to 0x01c0.
  9. Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major
  10. version in IP Block Revision Register and Y is Minor version. If this
  11. compatible is provided it should be ordered before "fsl,srio".
  12. - reg
  13. Usage: required
  14. Value type: <prop-encoded-array>
  15. Definition: A standard property. Specifies the physical address and
  16. length of the SRIO configuration registers. The size should
  17. be set to 0x11000.
  18. - interrupts
  19. Usage: required
  20. Value type: <prop_encoded-array>
  21. Definition: Specifies the interrupts generated by this device. The
  22. value of the interrupts property consists of one interrupt
  23. specifier. The format of the specifier is defined by the
  24. binding document describing the node's interrupt parent.
  25. A single IRQ that handles error conditions is specified by this
  26. property. (Typically shared with port-write).
  27. - fsl,srio-rmu-handle:
  28. Usage: required if rmu node is defined
  29. Value type: <phandle>
  30. Definition: A single <phandle> value that points to the RMU.
  31. (See srio-rmu.txt for more details on RMU node binding)
  32. Port Child Nodes: There should a port child node for each port that exists in
  33. the controller. The ports are numbered starting at one (1) and should have
  34. the following properties:
  35. - cell-index
  36. Usage: required
  37. Value type: <u32>
  38. Definition: A standard property. Matches the port id.
  39. - ranges
  40. Usage: required if local access windows preset
  41. Value type: <prop-encoded-array>
  42. Definition: A standard property. Utilized to describe the memory mapped
  43. IO space utilized by the controller. This corresponds to the
  44. setting of the local access windows that are targeted to this
  45. SRIO port.
  46. - fsl,liodn
  47. Usage: optional-but-recommended (for devices with PAMU)
  48. Value type: <prop-encoded-array>
  49. Definition: The logical I/O device number for the PAMU (IOMMU) to be
  50. correctly configured for SRIO accesses. The property should
  51. not exist on devices that do not support PAMU.
  52. For HW (ie, the P4080) that only supports a LIODN for both
  53. memory and maintenance transactions then a single LIODN is
  54. represented in the property for both transactions.
  55. For HW (ie, the P304x/P5020, etc) that supports an LIODN for
  56. memory transactions and a unique LIODN for maintenance
  57. transactions then a pair of LIODNs are represented in the
  58. property. Within the pair, the first element represents the
  59. LIODN associated with memory transactions and the second element
  60. represents the LIODN associated with maintenance transactions
  61. for the port.
  62. Note: All other standard properties (see ePAPR) are allowed but are optional.
  63. Example:
  64. rapidio: rapidio@ffe0c0000 {
  65. #address-cells = <2>;
  66. #size-cells = <2>;
  67. reg = <0xf 0xfe0c0000 0 0x11000>;
  68. compatible = "fsl,srio";
  69. interrupts = <16 2 1 11>; /* err_irq */
  70. fsl,srio-rmu-handle = <&rmu>;
  71. ranges;
  72. port1 {
  73. cell-index = <1>;
  74. #address-cells = <2>;
  75. #size-cells = <2>;
  76. fsl,liodn = <34>;
  77. ranges = <0 0 0xc 0x20000000 0 0x10000000>;
  78. };
  79. port2 {
  80. cell-index = <2>;
  81. #address-cells = <2>;
  82. #size-cells = <2>;
  83. fsl,liodn = <48>;
  84. ranges = <0 0 0xc 0x30000000 0 0x10000000>;
  85. };
  86. };