Skip to contentSkip to conversation

power/fsl: add MDIO dt binding for FMan

PATCH In review [email protected] 3 participants 5 messages Jan 28, 2015 – Jan 30, 2015 4 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 power/fsl: add MDIO dt binding for FMan

From: Shaohui Xie <[email protected]>

This binding is for FMan MDIO, it covers FMan v2 & FMan v3.

---
changes for V4:
revised MDIO interrupt related statement.

changes in v3:
rephrase the 'Definition' of property 'bus-frequency', don't include the property in example.

changes in v2:
addressed comments from Scott in V1.

 .../devicetree/bindings/powerpc/fsl/fman.txt       | 70 ++++++++++++++++++++++
 1 file changed, 70 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +70 -0
index edeea16..774c24f 100644
@@ -7,6 +7,7 @@ CONTENTS
   - FMan MURAM Node
   - FMan dTSEC/XGEC/mEMAC Node
   - FMan IEEE 1588 Node
+  - FMan MDIO Node
   - Example
 
 =============================================================================
@@ -357,6 +358,69 @@ ptp-timer@fe000 {
 };
 
 =============================================================================
+FMan MDIO Node
+
+DESCRIPTION
+
+The MDIO is a bus to which the PHY devices are connected.
+
+PROPERTIES
+
+- compatible
+		Usage: required
+		Value type: <stringlist>
+		Definition: A standard property.
+		Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2.
+		Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2.
+		Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from
+		FMan v3.
+
+- reg
+		Usage: required
+		Value type: <prop-encoded-array>
+		Definition: A standard property.
+
+- bus-frequency
+		Usage: optional
+		Value type: <u32>
+		Definition: Specifies the external MDIO bus clock speed to
+		be used, if different from the standard 2.5 MHz.
+		This may be due to the standard speed being unsupported (e.g.
+		due to a hardware problem), or to advertise that all relevant
+		components in the system support a faster speed.
+
+- interrupts
+		Usage: required
+		Value type: <prop-encoded-array>
+		Definition: Event interrupt of external MDIO controller.
+
+- fsl,fman-internal-mdio
+		Usage: required for internal MDIO
+		Value type: boolean
+		Definition: Fman has internal MDIO for internal PCS(Physical
+		Coding Sublayer) PHYs and external MDIO for external PHYs.
+		The settings and programming routines for internal/external
+		MDIO are different. Must be included for internal MDIO.
+
+EXAMPLE
+
+Example for FMan v2 external MDIO:
+
+mdio@f1000 {
+	compatible = "fsl,fman-xmdio";
+	reg = <0xf1000 0x1000>;
+	interrupts = <101 2 0 0>;
+};
+
+Example for FMan v3 internal MDIO:
+
+mdio@f1000 {
+	compatible = "fsl,fman-memac-mdio";
+	reg = <0xf1000 0x1000>;
+	fsl,fman-internal-mdio;
+};
+
+=============================================================================
 Example
 
 fman@400000 {
@@ -531,4 +595,10 @@ fman@400000 {
 		compatible = "fsl,fman-ptp-timer";
 		reg = <0xfe000 0x1000>;
 	};
+
+	mdio@f1000 {
+		compatible = "fsl,fman-xmdio";
+		reg = <0xf1000 0x1000>;
+		interrupts = <101 2 0 0>;
+	};
 };
Signature · 6 lines
1.8.4.1

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

A message that is not in the archive (sent off-list or not yet received): 1422446064-3901-1-git-send-email-shh.xie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

Documentation/devicetree/bindings/powerpc/fsl/fman.txt ptp-timer@fe000 { · line 395

Quoted 4 lines · On Wed, 2015-01-28 at 19:54 +0800, [email protected].…

+- interrupts

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: required
+		Value type: <prop-encoded-array>
+		Definition: Event interrupt of external MDIO controller.

What if this MDIO controller is not "external"? Should Usage say "required for external MDIO"?

-Scott

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1422579249.10544.140.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org

#4 lore raw

PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9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2h1aQ0K
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): DM2PR0301MB0864EF866EFDEB634BED54E5E2310-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#6 lore raw
Quoted 16 lines · On Thu, 2015-01-29 at 20:38 -0600, Xie Shaohui-B21989 wrote:
Quoted 8 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, January 30, 2015 8:54 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH][v4] power/fsl: add MDIO dt binding for FMan

Quoted 8 lines

Documentation/devicetree/bindings/powerpc/fsl/fman.txt ptp-timer@fe000 { · line 395

Quoted 4 lines · On Wed, 2015-01-28 at 19:54 +0800, [email protected].…

+- interrupts

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: required
+		Value type: <prop-encoded-array>
+		Definition: Event interrupt of external MDIO controller.

What if this MDIO controller is not "external"? Should Usage say "required for external MDIO"?

Quoted 3 lines

[S.H] I thought the definition can tell the interrupt is for external MDIO, I can change the Usage to "required for external MDIO" in next version. how about other parts, are they OK?

Yes. I'll fix it up when applying.

-Scott

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1422585820.10544.146.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org

#8 lore raw

PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBGcmlkYXksIEphbnVhcnkgMzAsIDIwMTUgMTA6NDQgQU0NCj4gVG86IFhpZSBTaGFv aHVpLUIyMTk4OQ0KPiB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iA+DQo+ID4gPiBXaGF0IGlmIHRoaXMgTURJTyBjb250cm9sbGVyIGlz IG5vdCAiZXh0ZXJuYWwiPyAgU2hvdWxkIFVzYWdlIHNheQ0KPiA+ID4gInJlcXVpcmVkIGZvciBl eHRlcm5hbCBNRElPIj8NCj4gPiBbUy5IXSBJIHRob3VnaHQgdGhlIGRlZmluaXRpb24gY2FuIHRl bGwgdGhlIGludGVycnVwdCBpcyBmb3IgZXh0ZXJuYWwNCj4gPiBNRElPLCBJIGNhbiBjaGFuZ2Ug dGhlIFVzYWdlIHRvICJyZXF1aXJlZCBmb3IgZXh0ZXJuYWwgTURJTyIgaW4gbmV4dA0KPiB2ZXJz aW9uLg0KPiA+IGhvdyBhYm91dCBvdGhlciBwYXJ0cywgYXJlIHRoZXkgT0s/DQo+IA0KPiBZZXMu ICBJJ2xsIGZpeCBpdCB1cCB3aGVuIGFwcGx5aW5nLg0KDQpUaGFuayB5b3UhDQoNClNoYW9odWkN Cg0K
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html