xgene-pci.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. * AppliedMicro X-Gene PCIe interface
  2. Required properties:
  3. - device_type: set to "pci"
  4. - compatible: should contain "apm,xgene-pcie" to identify the core.
  5. - reg: A list of physical base address and length for each set of controller
  6. registers. Must contain an entry for each entry in the reg-names
  7. property.
  8. - reg-names: Must include the following entries:
  9. "csr": controller configuration registers.
  10. "cfg": pcie configuration space registers.
  11. - #address-cells: set to <3>
  12. - #size-cells: set to <2>
  13. - ranges: ranges for the outbound memory, I/O regions.
  14. - dma-ranges: ranges for the inbound memory regions.
  15. - #interrupt-cells: set to <1>
  16. - interrupt-map-mask and interrupt-map: standard PCI properties
  17. to define the mapping of the PCIe interface to interrupt
  18. numbers.
  19. - clocks: from common clock binding: handle to pci clock.
  20. Optional properties:
  21. - status: Either "ok" or "disabled".
  22. - dma-coherent: Present if dma operations are coherent
  23. Example:
  24. SoC specific DT Entry:
  25. pcie0: pcie@1f2b0000 {
  26. status = "disabled";
  27. device_type = "pci";
  28. compatible = "apm,xgene-storm-pcie", "apm,xgene-pcie";
  29. #interrupt-cells = <1>;
  30. #size-cells = <2>;
  31. #address-cells = <3>;
  32. reg = < 0x00 0x1f2b0000 0x0 0x00010000 /* Controller registers */
  33. 0xe0 0xd0000000 0x0 0x00040000>; /* PCI config space */
  34. reg-names = "csr", "cfg";
  35. ranges = <0x01000000 0x00 0x00000000 0xe0 0x10000000 0x00 0x00010000 /* io */
  36. 0x02000000 0x00 0x80000000 0xe1 0x80000000 0x00 0x80000000>; /* mem */
  37. dma-ranges = <0x42000000 0x80 0x00000000 0x80 0x00000000 0x00 0x80000000
  38. 0x42000000 0x00 0x00000000 0x00 0x00000000 0x80 0x00000000>;
  39. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  40. interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0xc2 0x1
  41. 0x0 0x0 0x0 0x2 &gic 0x0 0xc3 0x1
  42. 0x0 0x0 0x0 0x3 &gic 0x0 0xc4 0x1
  43. 0x0 0x0 0x0 0x4 &gic 0x0 0xc5 0x1>;
  44. dma-coherent;
  45. clocks = <&pcie0clk 0>;
  46. };
  47. Board specific DT Entry:
  48. &pcie0 {
  49. status = "ok";
  50. };