designware-pcie.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. * Synopsys Designware PCIe interface
  2. Required properties:
  3. - compatible: should contain "snps,dw-pcie" to identify the core.
  4. - reg: Should contain the configuration address space.
  5. - reg-names: Must be "config" for the PCIe configuration space.
  6. (The old way of getting the configuration address space from "ranges"
  7. is deprecated and should be avoided.)
  8. - #address-cells: set to <3>
  9. - #size-cells: set to <2>
  10. - device_type: set to "pci"
  11. - ranges: ranges for the PCI memory and I/O regions
  12. - #interrupt-cells: set to <1>
  13. - interrupt-map-mask and interrupt-map: standard PCI properties
  14. to define the mapping of the PCIe interface to interrupt
  15. numbers.
  16. - num-lanes: number of lanes to use
  17. Optional properties:
  18. - num-viewport: number of view ports configured in hardware. If a platform
  19. does not specify it, the driver assumes 2.
  20. - num-lanes: number of lanes to use (this property should be specified unless
  21. the link is brought already up in BIOS)
  22. - reset-gpio: gpio pin number of power good signal
  23. - bus-range: PCI bus numbers covered (it is recommended for new devicetrees to
  24. specify this property, to keep backwards compatibility a range of 0x00-0xff
  25. is assumed if not present)
  26. - clocks: Must contain an entry for each entry in clock-names.
  27. See ../clocks/clock-bindings.txt for details.
  28. - clock-names: Must include the following entries:
  29. - "pcie"
  30. - "pcie_bus"
  31. Example configuration:
  32. pcie: pcie@dffff000 {
  33. compatible = "snps,dw-pcie";
  34. reg = <0xdffff000 0x1000>, /* Controller registers */
  35. <0xd0000000 0x2000>; /* PCI config space */
  36. reg-names = "ctrlreg", "config";
  37. #address-cells = <3>;
  38. #size-cells = <2>;
  39. device_type = "pci";
  40. ranges = <0x81000000 0 0x00000000 0xde000000 0 0x00010000
  41. 0x82000000 0 0xd0400000 0xd0400000 0 0x0d000000>;
  42. interrupts = <25>, <24>;
  43. #interrupt-cells = <1>;
  44. num-lanes = <1>;
  45. num-viewport = <3>;
  46. };