Skip to content

Commit

Permalink
dt-bindings: correct marvell orion MDIO binding document
Browse files Browse the repository at this point in the history
Correct the Marvell Orion MDIO binding document to properly reflect the
cases where an interrupt is present.  Augment the examples to show this.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Russell King authored and David S. Miller committed Apr 13, 2017
1 parent 7093a97 commit 2c26122
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Documentation/devicetree/bindings/net/marvell-orion-mdio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ interface.

Required properties:
- compatible: "marvell,orion-mdio"
- reg: address and length of the SMI register
- reg: address and length of the MDIO registers. When an interrupt is
not present, the length is the size of the SMI register (4 bytes)
otherwise it must be 0x84 bytes to cover the interrupt control
registers.

Optional properties:
- interrupts: interrupt line number for the SMI error/done interrupt
Expand All @@ -17,7 +20,7 @@ The child nodes of the MDIO driver are the individual PHY devices
connected to this MDIO bus. They must have a "reg" property given the
PHY address on the MDIO bus.

Example at the SoC level:
Example at the SoC level without an interrupt property:

mdio {
#address-cells = <1>;
Expand All @@ -26,6 +29,16 @@ mdio {
reg = <0xd0072004 0x4>;
};

Example with an interrupt property:

mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "marvell,orion-mdio";
reg = <0xd0072004 0x84>;
interrupts = <30>;
};

And at the board level:

mdio {
Expand Down

0 comments on commit 2c26122

Please sign in to comment.