blob: e3e1603f256c1a55ce956a403fce855e7bf58e0e [file] [log] [blame]
Roger Quadros69226892017-04-21 16:15:38 +03001Common MDIO bus properties.
2
3These are generic properties that can apply to any MDIO bus.
4
5Optional properties:
Florian Fainelli4c5e7a22017-04-25 11:33:03 -07006- reset-gpios: One GPIO that control the RESET lines of all PHYs on that MDIO
7 bus.
8- reset-delay-us: RESET pulse width in microseconds.
Roger Quadros69226892017-04-21 16:15:38 +03009
10A list of child nodes, one per device on the bus is expected. These
11should follow the generic phy.txt, or a device specific binding document.
12
Florian Fainelli4c5e7a22017-04-25 11:33:03 -070013The 'reset-delay-us' indicates the RESET signal pulse width in microseconds and
14applies to all PHY devices. It must therefore be appropriately determined based
15on all PHY requirements (maximum value of all per-PHY RESET pulse widths).
16
Roger Quadros69226892017-04-21 16:15:38 +030017Example :
18This example shows these optional properties, plus other properties
19required for the TI Davinci MDIO driver.
20
Mathieu Malaterre4c9847b2017-11-29 21:55:15 +010021 davinci_mdio: ethernet@5c030000 {
Roger Quadros69226892017-04-21 16:15:38 +030022 compatible = "ti,davinci_mdio";
23 reg = <0x5c030000 0x1000>;
24 #address-cells = <1>;
25 #size-cells = <0>;
26
27 reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
Florian Fainelli4c5e7a22017-04-25 11:33:03 -070028 reset-delay-us = <2>;
Roger Quadros69226892017-04-21 16:15:38 +030029
30 ethphy0: ethernet-phy@1 {
31 reg = <1>;
32 };
33
34 ethphy1: ethernet-phy@3 {
35 reg = <3>;
36 };
37 };