All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stuart Yoder <stuart.yoder@freescale.com>
To: robh+dt@kernel.org, mark.rutland@arm.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	german.rivera@freescale.com, bhupesh.sharma@freescale.com,
	itai.katz@freescale.com,
	Stuart Yoder <stuart.yoder@freescale.com>
Subject: [PATCH 3/3] Docs: dt: fsl-mc: update binding to define dpmac subnodes
Date: Fri, 25 Sep 2015 16:08:06 -0500	[thread overview]
Message-ID: <1443215286-3126-4-git-send-email-stuart.yoder@freescale.com> (raw)
In-Reply-To: <1443215286-3126-1-git-send-email-stuart.yoder@freescale.com>

The fsl-mc node may optionally have dpmac sub-nodes that describe
the relationship between the Ethernet MACs which belong to the MC
and the Ethernet PHYs on the system board.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
---
 .../devicetree/bindings/misc/fsl,qoriq-mc.txt      | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
index 848975f..6611a7c 100644
--- a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
+++ b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
@@ -55,6 +55,40 @@ Required properties:
         Value type: <u32>
         Definition: Must be 1.
 
+Sub-nodes:
+
+        The fsl-mc node may optionally have dpmac sub-nodes that describe
+        the relationship between the Ethernet MACs which belong to the MC
+        and the Ethernet PHYs on the system board.
+
+        The dpmac nodes must be under a node named "dpmacs" which contains
+        the following properties:
+
+            - #address-cells
+              Value type: <u32>
+              Definition: Must be present if dpmac sub-nodes are defined and must
+                          have a value of 1.
+
+            - #size-cells
+              Value type: <u32>
+              Definition: Must be present if dpmac sub-nodes are defined and must
+                          have a value of 0.
+
+        These nodes must have the following properties:
+
+            - compatible
+              Value type: <string>
+              Definition: Must be "fsl,qoriq-mc-dpmac".
+
+            - reg
+              Value type: <prop-encoded-array>
+              Definition: Specifies the id of the dpmac.
+
+            - phy-handle
+              Value type: <phandle>
+              Definition: Specifies the phandle to the PHY device node associated
+                          with the this dpmac.
+
 Example:
 
         fsl_mc: fsl-mc@80c000000 {
@@ -71,4 +105,15 @@ Example:
                  */
                 ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
                           0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+                dpmacs {
+                    #address-cells = <1>;
+                    #size-cells = <0>;
+
+                    dpmac@1 {
+                        compatible = "fsl,qoriq-mc-dpmac";
+                        reg = <1>;
+                        phy-handle = <&mdio0_phy0>;
+                    }
+                }
         };
-- 
2.3.3

WARNING: multiple messages have this Message-ID (diff)
From: Stuart Yoder <stuart.yoder@freescale.com>
To: <robh+dt@kernel.org>, <mark.rutland@arm.com>
Cc: <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<german.rivera@freescale.com>, <bhupesh.sharma@freescale.com>,
	<itai.katz@freescale.com>,
	Stuart Yoder <stuart.yoder@freescale.com>
Subject: [PATCH 3/3] Docs: dt: fsl-mc: update binding to define dpmac subnodes
Date: Fri, 25 Sep 2015 16:08:06 -0500	[thread overview]
Message-ID: <1443215286-3126-4-git-send-email-stuart.yoder@freescale.com> (raw)
In-Reply-To: <1443215286-3126-1-git-send-email-stuart.yoder@freescale.com>

The fsl-mc node may optionally have dpmac sub-nodes that describe
the relationship between the Ethernet MACs which belong to the MC
and the Ethernet PHYs on the system board.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
---
 .../devicetree/bindings/misc/fsl,qoriq-mc.txt      | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
index 848975f..6611a7c 100644
--- a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
+++ b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
@@ -55,6 +55,40 @@ Required properties:
         Value type: <u32>
         Definition: Must be 1.
 
+Sub-nodes:
+
+        The fsl-mc node may optionally have dpmac sub-nodes that describe
+        the relationship between the Ethernet MACs which belong to the MC
+        and the Ethernet PHYs on the system board.
+
+        The dpmac nodes must be under a node named "dpmacs" which contains
+        the following properties:
+
+            - #address-cells
+              Value type: <u32>
+              Definition: Must be present if dpmac sub-nodes are defined and must
+                          have a value of 1.
+
+            - #size-cells
+              Value type: <u32>
+              Definition: Must be present if dpmac sub-nodes are defined and must
+                          have a value of 0.
+
+        These nodes must have the following properties:
+
+            - compatible
+              Value type: <string>
+              Definition: Must be "fsl,qoriq-mc-dpmac".
+
+            - reg
+              Value type: <prop-encoded-array>
+              Definition: Specifies the id of the dpmac.
+
+            - phy-handle
+              Value type: <phandle>
+              Definition: Specifies the phandle to the PHY device node associated
+                          with the this dpmac.
+
 Example:
 
         fsl_mc: fsl-mc@80c000000 {
@@ -71,4 +105,15 @@ Example:
                  */
                 ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
                           0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+                dpmacs {
+                    #address-cells = <1>;
+                    #size-cells = <0>;
+
+                    dpmac@1 {
+                        compatible = "fsl,qoriq-mc-dpmac";
+                        reg = <1>;
+                        phy-handle = <&mdio0_phy0>;
+                    }
+                }
         };
-- 
2.3.3


  parent reply	other threads:[~2015-09-25 21:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25 21:08 [PATCH 0/3] Docs: dt: update binding for Freescale Management Complex Stuart Yoder
2015-09-25 21:08 ` Stuart Yoder
2015-09-25 21:08 ` [PATCH 1/3] Docs: dt: fsl-mc: update binding to include msi-parent Stuart Yoder
2015-09-25 21:08   ` Stuart Yoder
     [not found]   ` <1443215286-3126-2-git-send-email-stuart.yoder-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-09-29 19:21     ` Jose Rivera
2015-09-29 19:21       ` Jose Rivera
     [not found] ` <1443215286-3126-1-git-send-email-stuart.yoder-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-09-25 21:08   ` [PATCH 2/3] Docs: dt: fsl-mc update binding to include definition of ranges Stuart Yoder
2015-09-25 21:08     ` Stuart Yoder
     [not found]     ` <1443215286-3126-3-git-send-email-stuart.yoder-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-09-29 19:21       ` Jose Rivera
2015-09-29 19:21         ` Jose Rivera
2015-09-25 21:08 ` Stuart Yoder [this message]
2015-09-25 21:08   ` [PATCH 3/3] Docs: dt: fsl-mc: update binding to define dpmac subnodes Stuart Yoder
2015-09-29 19:21   ` Jose Rivera
2015-09-29 19:21     ` Jose Rivera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443215286-3126-4-git-send-email-stuart.yoder@freescale.com \
    --to=stuart.yoder@freescale.com \
    --cc=bhupesh.sharma@freescale.com \
    --cc=devicetree@vger.kernel.org \
    --cc=german.rivera@freescale.com \
    --cc=itai.katz@freescale.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.