pci-rcar-gen2.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Renesas AHB to PCI bridge
  2. -------------------------
  3. This is the bridge used internally to connect the USB controllers to the
  4. AHB. There is one bridge instance per USB port connected to the internal
  5. OHCI and EHCI controllers.
  6. Required properties:
  7. - compatible: "renesas,pci-r8a7790" for the R8A7790 SoC;
  8. "renesas,pci-r8a7791" for the R8A7791 SoC;
  9. "renesas,pci-r8a7793" for the R8A7793 SoC;
  10. "renesas,pci-r8a7794" for the R8A7794 SoC;
  11. "renesas,pci-rcar-gen2" for a generic R-Car Gen2 compatible device
  12. When compatible with the generic version, nodes must list the
  13. SoC-specific version corresponding to the platform first
  14. followed by the generic version.
  15. - reg: A list of physical regions to access the device: the first is
  16. the operational registers for the OHCI/EHCI controllers and the
  17. second is for the bridge configuration and control registers.
  18. - interrupts: interrupt for the device.
  19. - clocks: The reference to the device clock.
  20. - bus-range: The PCI bus number range; as this is a single bus, the range
  21. should be specified as the same value twice.
  22. - #address-cells: must be 3.
  23. - #size-cells: must be 2.
  24. - #interrupt-cells: must be 1.
  25. - interrupt-map: standard property used to define the mapping of the PCI
  26. interrupts to the GIC interrupts.
  27. - interrupt-map-mask: standard property that helps to define the interrupt
  28. mapping.
  29. Optional properties:
  30. - dma-ranges: a single range for the inbound memory region. If not supplied,
  31. defaults to 1GiB at 0x40000000. Note there are hardware restrictions on the
  32. allowed combinations of address and size.
  33. Example SoC configuration:
  34. pci0: pci@ee090000 {
  35. compatible = "renesas,pci-r8a7790", "renesas,pci-rcar-gen2";
  36. clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
  37. reg = <0x0 0xee090000 0x0 0xc00>,
  38. <0x0 0xee080000 0x0 0x1100>;
  39. interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
  40. status = "disabled";
  41. bus-range = <0 0>;
  42. #address-cells = <3>;
  43. #size-cells = <2>;
  44. #interrupt-cells = <1>;
  45. dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
  46. interrupt-map-mask = <0xff00 0 0 0x7>;
  47. interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
  48. 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
  49. 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
  50. pci@0,1 {
  51. reg = <0x800 0 0 0 0>;
  52. device_type = "pci";
  53. phys = <&usbphy 0 0>;
  54. phy-names = "usb";
  55. };
  56. pci@0,2 {
  57. reg = <0x1000 0 0 0 0>;
  58. device_type = "pci";
  59. phys = <&usbphy 0 0>;
  60. phy-names = "usb";
  61. };
  62. };
  63. Example board setup:
  64. &pci0 {
  65. status = "okay";
  66. pinctrl-0 = <&usb0_pins>;
  67. pinctrl-names = "default";
  68. };