cdns,cdns-pcie-host.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. * Cadence PCIe host controller
  2. This PCIe controller inherits the base properties defined in
  3. host-generic-pci.txt.
  4. Required properties:
  5. - compatible: Should contain "cdns,cdns-pcie-host" to identify the IP used.
  6. - reg: Should contain the controller register base address, PCIe configuration
  7. window base address, and AXI interface region base address respectively.
  8. - reg-names: Must be "reg", "cfg" and "mem" respectively.
  9. - #address-cells: Set to <3>
  10. - #size-cells: Set to <2>
  11. - device_type: Set to "pci"
  12. - ranges: Ranges for the PCI memory and I/O regions
  13. - #interrupt-cells: Set to <1>
  14. - interrupt-map-mask and interrupt-map: Standard PCI properties to define the
  15. mapping of the PCIe interface to interrupt numbers.
  16. Optional properties:
  17. - cdns,max-outbound-regions: Set to maximum number of outbound regions
  18. (default 32)
  19. - cdns,no-bar-match-nbits: Set into the no BAR match register to configure the
  20. number of least significant bits kept during inbound (PCIe -> AXI) address
  21. translations (default 32)
  22. - vendor-id: The PCI vendor ID (16 bits, default is design dependent)
  23. - device-id: The PCI device ID (16 bits, default is design dependent)
  24. - phys: From PHY bindings: List of Generic PHY phandles. One per lane if more
  25. than one in the list. If only one PHY listed it must manage all lanes.
  26. - phy-names: List of names to identify the PHY.
  27. Example:
  28. pcie@fb000000 {
  29. compatible = "cdns,cdns-pcie-host";
  30. device_type = "pci";
  31. #address-cells = <3>;
  32. #size-cells = <2>;
  33. bus-range = <0x0 0xff>;
  34. linux,pci-domain = <0>;
  35. cdns,max-outbound-regions = <16>;
  36. cdns,no-bar-match-nbits = <32>;
  37. vendor-id = /bits/ 16 <0x17cd>;
  38. device-id = /bits/ 16 <0x0200>;
  39. reg = <0x0 0xfb000000 0x0 0x01000000>,
  40. <0x0 0x41000000 0x0 0x00001000>,
  41. <0x0 0x40000000 0x0 0x04000000>;
  42. reg-names = "reg", "cfg", "mem";
  43. ranges = <0x02000000 0x0 0x42000000 0x0 0x42000000 0x0 0x1000000>,
  44. <0x01000000 0x0 0x43000000 0x0 0x43000000 0x0 0x0010000>;
  45. #interrupt-cells = <0x1>;
  46. interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0x0 0x0 14 0x1
  47. 0x0 0x0 0x0 0x2 &gic 0x0 0x0 0x0 15 0x1
  48. 0x0 0x0 0x0 0x3 &gic 0x0 0x0 0x0 16 0x1
  49. 0x0 0x0 0x0 0x4 &gic 0x0 0x0 0x0 17 0x1>;
  50. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  51. msi-parent = <&its_pci>;
  52. phys = <&pcie_phy0>;
  53. phy-names = "pcie-phy";
  54. };