renesas,ravb.txt 3.8 KB

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