hisilicon-pcie.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. HiSilicon Hip05 and Hip06 PCIe host bridge DT description
  2. HiSilicon PCIe host controller is based on Designware PCI core.
  3. It shares common functions with PCIe Designware core driver and inherits
  4. common properties defined in
  5. Documentation/devicetree/bindings/pci/designware-pci.txt.
  6. Additional properties are described here:
  7. Required properties
  8. - compatible: Should contain "hisilicon,hip05-pcie" or "hisilicon,hip06-pcie".
  9. - reg: Should contain rc_dbi, config registers location and length.
  10. - reg-names: Must include the following entries:
  11. "rc_dbi": controller configuration registers;
  12. "config": PCIe configuration space registers.
  13. - msi-parent: Should be its_pcie which is an ITS receiving MSI interrupts.
  14. - port-id: Should be 0, 1, 2 or 3.
  15. Optional properties:
  16. - status: Either "ok" or "disabled".
  17. - dma-coherent: Present if DMA operations are coherent.
  18. Hip05 Example (note that Hip06 is the same except compatible):
  19. pcie@0xb0080000 {
  20. compatible = "hisilicon,hip05-pcie", "snps,dw-pcie";
  21. reg = <0 0xb0080000 0 0x10000>, <0x220 0x00000000 0 0x2000>;
  22. reg-names = "rc_dbi", "config";
  23. bus-range = <0 15>;
  24. msi-parent = <&its_pcie>;
  25. #address-cells = <3>;
  26. #size-cells = <2>;
  27. device_type = "pci";
  28. dma-coherent;
  29. ranges = <0x82000000 0 0x00000000 0x220 0x00000000 0 0x10000000>;
  30. num-lanes = <8>;
  31. port-id = <1>;
  32. #interrupt-cells = <1>;
  33. interrupt-map-mask = <0xf800 0 0 7>;
  34. interrupt-map = <0x0 0 0 1 &mbigen_pcie 1 10
  35. 0x0 0 0 2 &mbigen_pcie 2 11
  36. 0x0 0 0 3 &mbigen_pcie 3 12
  37. 0x0 0 0 4 &mbigen_pcie 4 13>;
  38. status = "ok";
  39. };