ti-pci.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. TI PCI Controllers
  2. PCIe Designware Controller
  3. - compatible: Should be "ti,dra7-pcie""
  4. - reg : Two register ranges as listed in the reg-names property
  5. - reg-names : The first entry must be "ti-conf" for the TI specific registers
  6. The second entry must be "rc-dbics" for the designware pcie
  7. registers
  8. The third entry must be "config" for the PCIe configuration space
  9. - phys : list of PHY specifiers (used by generic PHY framework)
  10. - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the
  11. number of PHYs as specified in *phys* property.
  12. - ti,hwmods : Name of the hwmod associated to the pcie, "pcie<X>",
  13. where <X> is the instance number of the pcie from the HW spec.
  14. - interrupts : Two interrupt entries must be specified. The first one is for
  15. main interrupt line and the second for MSI interrupt line.
  16. - #address-cells,
  17. #size-cells,
  18. #interrupt-cells,
  19. device_type,
  20. ranges,
  21. num-lanes,
  22. interrupt-map-mask,
  23. interrupt-map : as specified in ../designware-pcie.txt
  24. Example:
  25. axi {
  26. compatible = "simple-bus";
  27. #size-cells = <1>;
  28. #address-cells = <1>;
  29. ranges = <0x51000000 0x51000000 0x3000
  30. 0x0 0x20000000 0x10000000>;
  31. pcie@51000000 {
  32. compatible = "ti,dra7-pcie";
  33. reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>;
  34. reg-names = "rc_dbics", "ti_conf", "config";
  35. interrupts = <0 232 0x4>, <0 233 0x4>;
  36. #address-cells = <3>;
  37. #size-cells = <2>;
  38. device_type = "pci";
  39. ranges = <0x81000000 0 0 0x03000 0 0x00010000
  40. 0x82000000 0 0x20013000 0x13000 0 0xffed000>;
  41. #interrupt-cells = <1>;
  42. num-lanes = <1>;
  43. ti,hwmods = "pcie1";
  44. phys = <&pcie1_phy>;
  45. phy-names = "pcie-phy0";
  46. interrupt-map-mask = <0 0 0 7>;
  47. interrupt-map = <0 0 0 1 &pcie_intc 1>,
  48. <0 0 0 2 &pcie_intc 2>,
  49. <0 0 0 3 &pcie_intc 3>,
  50. <0 0 0 4 &pcie_intc 4>;
  51. pcie_intc: interrupt-controller {
  52. interrupt-controller;
  53. #address-cells = <0>;
  54. #interrupt-cells = <1>;
  55. };
  56. };
  57. };