renesas,ravb.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. * Renesas Electronics Ethernet AVB
  2. This file provides information on what the device node for the Ethernet AVB
  3. interface contains.
  4. Required properties:
  5. - compatible: "renesas,etheravb-r8a7790" if the device is a part of R8A7790 SoC.
  6. "renesas,etheravb-r8a7791" if the device is a part of R8A7791 SoC.
  7. "renesas,etheravb-r8a7792" if the device is a part of R8A7792 SoC.
  8. "renesas,etheravb-r8a7793" if the device is a part of R8A7793 SoC.
  9. "renesas,etheravb-r8a7794" if the device is a part of R8A7794 SoC.
  10. "renesas,etheravb-r8a7795" if the device is a part of R8A7795 SoC.
  11. "renesas,etheravb-r8a7796" if the device is a part of R8A7796 SoC.
  12. "renesas,etheravb-rcar-gen2" for generic R-Car Gen 2 compatible interface.
  13. "renesas,etheravb-rcar-gen3" for generic R-Car Gen 3 compatible interface.
  14. When compatible with the generic version, nodes must list the
  15. SoC-specific version corresponding to the platform first
  16. followed by the generic version.
  17. - reg: offset and length of (1) the register block and (2) the stream buffer.
  18. - interrupts: A list of interrupt-specifiers, one for each entry in
  19. interrupt-names.
  20. If interrupt-names is not present, an interrupt specifier
  21. for a single muxed interrupt.
  22. - phy-mode: see ethernet.txt file in the same directory.
  23. - phy-handle: see ethernet.txt file in the same directory.
  24. - #address-cells: number of address cells for the MDIO bus, must be equal to 1.
  25. - #size-cells: number of size cells on the MDIO bus, must be equal to 0.
  26. - clocks: clock phandle and specifier pair.
  27. - pinctrl-0: phandle, referring to a default pin configuration node.
  28. Optional properties:
  29. - interrupt-parent: the phandle for the interrupt controller that services
  30. interrupts for this device.
  31. - interrupt-names: A list of interrupt names.
  32. For the R8A779[56] SoCs this property is mandatory;
  33. it should include one entry per channel, named "ch%u",
  34. where %u is the channel number ranging from 0 to 24.
  35. For other SoCs this property is optional; if present
  36. it should contain "mux" for a single muxed interrupt.
  37. - pinctrl-names: pin configuration state name ("default").
  38. - renesas,no-ether-link: boolean, specify when a board does not provide a proper
  39. AVB_LINK signal.
  40. - renesas,ether-link-active-low: boolean, specify when the AVB_LINK signal is
  41. active-low instead of normal active-high.
  42. Example:
  43. ethernet@e6800000 {
  44. compatible = "renesas,etheravb-r8a7795", "renesas,etheravb-rcar-gen3";
  45. reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
  46. interrupt-parent = <&gic>;
  47. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
  48. <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  49. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
  50. <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
  51. <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
  52. <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
  53. <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
  54. <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
  55. <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
  56. <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
  57. <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
  58. <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
  59. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  60. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  61. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  62. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  63. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  64. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
  65. <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
  66. <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  67. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  68. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  69. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
  70. <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
  71. <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  72. interrupt-names = "ch0", "ch1", "ch2", "ch3",
  73. "ch4", "ch5", "ch6", "ch7",
  74. "ch8", "ch9", "ch10", "ch11",
  75. "ch12", "ch13", "ch14", "ch15",
  76. "ch16", "ch17", "ch18", "ch19",
  77. "ch20", "ch21", "ch22", "ch23",
  78. "ch24";
  79. clocks = <&cpg CPG_MOD 812>;
  80. power-domains = <&cpg>;
  81. phy-mode = "rgmii-id";
  82. phy-handle = <&phy0>;
  83. pinctrl-0 = <&ether_pins>;
  84. pinctrl-names = "default";
  85. renesas,no-ether-link;
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. phy0: ethernet-phy@0 {
  89. rxc-skew-ps = <900>;
  90. rxdv-skew-ps = <0>;
  91. rxd0-skew-ps = <0>;
  92. rxd1-skew-ps = <0>;
  93. rxd2-skew-ps = <0>;
  94. rxd3-skew-ps = <0>;
  95. txc-skew-ps = <900>;
  96. txen-skew-ps = <0>;
  97. txd0-skew-ps = <0>;
  98. txd1-skew-ps = <0>;
  99. txd2-skew-ps = <0>;
  100. txd3-skew-ps = <0>;
  101. reg = <0>;
  102. interrupt-parent = <&gpio2>;
  103. interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
  104. };
  105. };