lkml.org 
[lkml]   [2013]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Documentation: Add MDIO bus node to PHY binding document
Date
Add MDIO bus node segment and update the example,
allowing trivial bindings to break out boilerplate.

Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
---

Notes:
Changes per reply from Grant [0]

[0] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-November/208851.html

Applies to next-20131111

Documentation/devicetree/bindings/net/phy.txt | 37 +++++++++++++++++++++------
1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/devicetree/bindings/net/phy.txt
index 7cd18fb..4e58a5d 100644
--- a/Documentation/devicetree/bindings/net/phy.txt
+++ b/Documentation/devicetree/bindings/net/phy.txt
@@ -1,3 +1,13 @@
+MDIO Bus Nodes
+
+MDIO bus nodes describe an MDIO bus. It is a container for PHY nodes as
+described below.
+
+Required properties:
+- #address-cells = <1>;
+- #size-cells = <0>;
+
+
PHY nodes

Required properties:
@@ -23,13 +33,24 @@ Optional Properties:
assume clause 22. The compatible list may also contain other
elements.

+
Example:

-ethernet-phy@0 {
- compatible = "ethernet-phy-ieee802.3-c22";
- linux,phandle = <2452000>;
- interrupt-parent = <40000>;
- interrupts = <35 1>;
- reg = <0>;
- device_type = "ethernet-phy";
-};
+mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet-phy@0 {
+ device_type = "ethernet-phy";
+ compatible = "...", "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ interrupts = <24 0>;
+ }
+
+ ethernet-phy@1 {
+ device_type = "ethernet-phy";
+ compatible = "...";
+ reg = <1>;
+ interrupts = <35 1>;
+ }
+}
--
1.8.2.1


\
 
 \ /
  Last update: 2013-11-11 14:21    [W:0.062 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site