Skip to content

Commit 4c5e7a2

Browse files
ffainellidavem330
authored andcommitted
dt-bindings: mdio: Clarify binding document
The described GPIO reset property is applicable to *all* child PHYs. If we have one reset line per PHY present on the MDIO bus, these automatically become properties of the child PHY nodes. Finally, indicate how the RESET pulse width must be defined, which is the maximum value of all individual PHYs RESET pulse widths determined by reading their datasheets. Fixes: 6922689 ("mdio_bus: Issue GPIO RESET to PHYs.") Signed-off-by: Florian Fainelli <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4629498 commit 4c5e7a2

File tree

1 file changed

+8
-4
lines changed
  • Documentation/devicetree/bindings/net

1 file changed

+8
-4
lines changed

Documentation/devicetree/bindings/net/mdio.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ Common MDIO bus properties.
33
These are generic properties that can apply to any MDIO bus.
44

55
Optional properties:
6-
- reset-gpios: List of one or more GPIOs that control the RESET lines
7-
of the PHYs on that MDIO bus.
8-
- reset-delay-us: RESET pulse width in microseconds as per PHY datasheet.
6+
- 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.
99

1010
A list of child nodes, one per device on the bus is expected. These
1111
should follow the generic phy.txt, or a device specific binding document.
1212

13+
The 'reset-delay-us' indicates the RESET signal pulse width in microseconds and
14+
applies to all PHY devices. It must therefore be appropriately determined based
15+
on all PHY requirements (maximum value of all per-PHY RESET pulse widths).
16+
1317
Example :
1418
This example shows these optional properties, plus other properties
1519
required for the TI Davinci MDIO driver.
@@ -21,7 +25,7 @@ required for the TI Davinci MDIO driver.
2125
#size-cells = <0>;
2226

2327
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
24-
reset-delay-us = <2>; /* PHY datasheet states 1us min */
28+
reset-delay-us = <2>;
2529

2630
ethphy0: ethernet-phy@1 {
2731
reg = <1>;

0 commit comments

Comments
 (0)