rockchip-pcie-ep.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. * Rockchip AXI PCIe Endpoint Controller DT description
  2. Required properties:
  3. - compatible: Should contain "rockchip,rk3399-pcie-ep"
  4. - reg: Two register ranges as listed in the reg-names property
  5. - reg-names: Must include the following names
  6. - "apb-base"
  7. - "mem-base"
  8. - clocks: Must contain an entry for each entry in clock-names.
  9. See ../clocks/clock-bindings.txt for details.
  10. - clock-names: Must include the following entries:
  11. - "aclk"
  12. - "aclk-perf"
  13. - "hclk"
  14. - "pm"
  15. - resets: Must contain seven entries for each entry in reset-names.
  16. See ../reset/reset.txt for details.
  17. - reset-names: Must include the following names
  18. - "core"
  19. - "mgmt"
  20. - "mgmt-sticky"
  21. - "pipe"
  22. - "pm"
  23. - "aclk"
  24. - "pclk"
  25. - pinctrl-names : The pin control state names
  26. - pinctrl-0: The "default" pinctrl state
  27. - phys: Must contain an phandle to a PHY for each entry in phy-names.
  28. - phy-names: Must include 4 entries for all 4 lanes even if some of
  29. them won't be used for your cases. Entries are of the form "pcie-phy-N":
  30. where N ranges from 0 to 3.
  31. (see example below and you MUST also refer to ../phy/rockchip-pcie-phy.txt
  32. for changing the #phy-cells of phy node to support it)
  33. - rockchip,max-outbound-regions: Maximum number of outbound regions
  34. Optional Property:
  35. - num-lanes: number of lanes to use
  36. - max-functions: Maximum number of functions that can be configured (default 1).
  37. pcie0-ep: pcie@f8000000 {
  38. compatible = "rockchip,rk3399-pcie-ep";
  39. #address-cells = <3>;
  40. #size-cells = <2>;
  41. rockchip,max-outbound-regions = <16>;
  42. clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
  43. <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
  44. clock-names = "aclk", "aclk-perf",
  45. "hclk", "pm";
  46. max-functions = /bits/ 8 <8>;
  47. num-lanes = <4>;
  48. reg = <0x0 0xfd000000 0x0 0x1000000>, <0x0 0x80000000 0x0 0x20000>;
  49. reg-names = "apb-base", "mem-base";
  50. resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
  51. <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE> ,
  52. <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>;
  53. reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
  54. "pm", "pclk", "aclk";
  55. phys = <&pcie_phy 0>, <&pcie_phy 1>, <&pcie_phy 2>, <&pcie_phy 3>;
  56. phy-names = "pcie-phy-0", "pcie-phy-1", "pcie-phy-2", "pcie-phy-3";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&pcie_clkreq>;
  59. };