power/fsl: add MDIO dt binding for FMan
Subsystems (3)
PATCH v2 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 in V2:
addressed comments from Scott in V1.
.../devicetree/bindings/powerpc/fsl/fman.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +69 -0
@@ -7,6 +7,7 @@ CONTENTS - FMan MURAM Node - FMan dTSEC/XGEC/mEMAC Node - FMan IEEE 1588 Node + - FMan MDIO Node - Example =============================================================================
@@ -357,6 +358,68 @@ 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 external MDIO bus clock speed which is + different from MDIO standard 2.5MHz. Should be defined for SoCs + on which the standard one cannot work. + +- interrupts + Usage: optional + Value type: <prop-encoded-array> + Definition: Event interrupt of external MDIO controller. + 1 Gb/s MDIO and 10 Gb/s MDIO has one interrupt respectively. + +- 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>; + bus-frequency = <20000>; +}; + +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 +594,10 @@ fman@400000 { compatible = "fsl,fman-ptp-timer"; reg = <0xfe000 0x1000>; }; + + mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; + }; };
Signature · 6 lines
1.8.4.1 -- 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): 1415958800-9867-1-git-send-email-shh.xie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Ping.
Best Regards,
Shaohui Xie
Quoted 121 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, November 14, 2014 5:53 PM
To: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Wood Scott-B07421
Cc: Medve Emilian-EMMEDVE1; Liberman Igal-B31950; Xie Shaohui-B21989
Subject: [PATCH] [v2] power/fsl: add MDIO dt binding for FManFrom: Shaohui Xie <[email protected]>
This binding is for FMan MDIO, it covers FMan v2 & FMan v3.
Signed-off-by Shaohui Xie <[email protected]>---
changes in V2:
addressed comments from Scott in V1..../devicetree/bindings/powerpc/fsl/fman.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+)Documentation/devicetree/bindings/powerpc/fsl/fman.txt +1
-0@@ -7,6 +7,7 @@ CONTENTS - FMan MURAM Node - FMan dTSEC/XGEC/mEMAC Node - FMan IEEE 1588 Node + - FMan MDIO Node - Example=========================================================================
====Documentation/devicetree/bindings/powerpc/fsl/fman.txt +0
-0@@ -357,6 +358,68 @@ ptp-timer@fe000 { };=========================================================================
====Documentation/devicetree/bindings/powerpc/fsl/fman.txt +27
-0+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 external MDIO bus clock speed which is + different from MDIO standard 2.5MHz. Should be defined forSoCs
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +35
-0+ on which the standard one cannot work. + +- interrupts + Usage: optional + Value type: <prop-encoded-array> + Definition: Event interrupt of external MDIO controller. + 1 Gb/s MDIO and 10 Gb/s MDIO has one interrupt respectively. + +- 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>; + bus-frequency = <20000>; +}; + +Example for FMan v3 internal MDIO: + +mdio@f1000 { + compatible = "fsl,fman-memac-mdio"; + reg = <0xf1000 0x1000>; + fsl,fman-internal-mdio; +}; + +=============================================================================
Examplefman@400000 {
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +6
-1@@ -531,4 +594,10 @@ fman@400000 { compatible = "fsl,fman-ptp-timer"; reg = <0xfe000 0x1000>; }; + + mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; + }; }; --
Quoted 1 line
1.8.4.1
--
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
Quoted 70 lines · On Fri, 2014-11-14 at 17:53 +0800, [email protected].…
From: Shaohui Xie <[email protected]>
This binding is for FMan MDIO, it covers FMan v2 & FMan v3.
Signed-off-by Shaohui Xie <[email protected]>---
changes in V2:
addressed comments from Scott in V1..../devicetree/bindings/powerpc/fsl/fman.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+)Documentation/devicetree/bindings/powerpc/fsl/fman.txt +43
-0@@ -7,6 +7,7 @@ CONTENTS - FMan MURAM Node - FMan dTSEC/XGEC/mEMAC Node - FMan IEEE 1588 Node + - FMan MDIO Node - Example =============================================================================@@ -357,6 +358,68 @@ 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 external MDIO bus clock speed which is + different from MDIO standard 2.5MHz. Should be defined for SoCs + on which the standard one cannot work. + +- interrupts + Usage: optional + Value type: <prop-encoded-array> + Definition: Event interrupt of external MDIO controller. + 1 Gb/s MDIO and 10 Gb/s MDIO has one interrupt respectively. + +- 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.
Documentation/devicetree/bindings/powerpc/fsl/fman.txt ptp-timer@fe000 { · line 412
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +10
-0+ +EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};
So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
-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): 1416966592.15957.172.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBXZWRuZXNkYXksIE5vdmVtYmVyIDI2LCAyMDE0IDk6NTAgQU0NCj4gVG86IHNoaC54 aWVAZ21haWwuY29tDQo+IENjOiBsaW51eHBwYy1kZXZAbGlzdHMub3psYWJzLm9yZzsgZGV2aWNl dHJlZUB2Z2VyLmtlcm5lbC5vcmc7IE1lZHZlDQo+IEVtaWxpYW4tRU1NRURWRTE7IExpYmVybWFu IElnYWwtQjMxOTUwOyBYaWUgU2hhb2h1aS1CMjE5ODkNCj4gU3ViamVjdDogUmU6IFtQQVRDSF0g W3YyXSBwb3dlci9mc2w6IGFkZCBNRElPIGR0IGJpbmRpbmcgZm9yIEZNYW4NCj4gDQo+IE9uIEZy aSwgMjAxNC0xMS0xNCBhdCAxNzo1MyArMDgwMCwgc2hoLnhpZUBnbWFpbC5jb20gd3JvdGU6DQo+ ID4gRnJvbTogU2hhb2h1aSBYaWUgPFNoYW9odWkuWGllQGZyZWVzY2FsZS5jb20+DQo+ID4NCj4g PiBUaGlzIGJpbmRpbmcgaXMgZm9yIEZNYW4gTURJTywgaXQgY292ZXJzIEZNYW4gdjIgJiBGTWFu IHYzLg0KPiA+DQo+ID4gU2lnbmVkLW9mZi1ieTogU2hhb2h1aSBYaWUgPFNoYW9odWkuWGllQGZy ZWVzY2FsZS5jb20+DQo+ID4gLS0tDQo+ID4gY2hhbmdlcyBpbiBWMjoNCj4gPiBhZGRyZXNzZWQg Y29tbWVudHMgZnJvbSBTY290dCBpbiBWMS4NCj4gPg0KPiA+ICAuLi4vZGV2aWNldHJlZS9iaW5k aW5ncy9wb3dlcnBjL2ZzbC9mbWFuLnR4dCAgICAgICB8IDY5DQo+ICsrKysrKysrKysrKysr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5ID0gPDIwMDAwPjsNCj4gPiArfTsNCj4gDQo+ IFNvIHRoZSBidXMgZnJlcXVlbmN5IGlzIG9ubHkgMjAgS0h6PyAgT3IgaXMgdGhlIHVuaXQgc3Vw cG9zZWQgdG8gYmUNCj4gc29tZXRoaW5nIG90aGVyIHRoYW4gSHo/DQpbUy5IXSBpdCdzIG9ubHkg YW4gZXhhbXBsZSwgaXQgY291bGQgYmUgZGlmZmVyZW50IG9uIHJlYWwgU29DcywgYnV0IHRoZXkg YWx3YXlzIGxvd2VyIHRoYW4gdGhlIHN0YW5kYXJkIG9uZSwNClRoZSBzdGFuZGFyZCBvbmUgaXMg Mi41TUh6LCBJIGhhdmUgdG8gdXNlIEh6IGZvciBpdC4NCg0KVGhhbmtzIQ0KU2hhb2h1aQ0K --
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
UGluZy4NCg0KQmVzdCBSZWdhcmRzLCANClNoYW9odWkgWGllDQo+IC0tLS0tT3JpZ2luYWwgTWVz c2FnZS0tLS0tDQo+IEZyb206IFhpZSBTaGFvaHVpLUIyMTk4OQ0KPiBTZW50OiBXZWRuZXNkYXks IE5vdmVtYmVyIDI2LCAyMDE0IDEwOjExIEFNDQo+IFRvOiBXb29kIFNjb3R0LUIwNzQyMQ0KPiBD YzogbGludXhwcGMtZGV2QGxpc3RzLm96bGFicy5vcmc7IGRldmljZXRyZWVAdmdlci5rZXJuZWwu b3JnOyBNZWR2ZSBFbWlsaWFuLQ0KPiBFTU1FRFZFMTsgTGliZXJtYW4gSWdhbC1CMzE5NTANCj4g U3ViamVjdDogUkU6IFtQQVRDSF0gW3YyXSBwb3dlci9mc2w6IGFkZCBNRElPIGR0IGJpbmRpbmcg Zm9yIEZNYW4NCj4gDQo+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPiBGcm9tOiBX b29kIFNjb3R0LUIwNzQyMQ0KPiA+IFNlbnQ6IF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wMDAgew0KPiA+ID4gKwljb21wYXRpYmxlID0gImZzbCxm bWFuLXhtZGlvIjsNCj4gPiA+ICsJcmVnID0gPDB4ZjEwMDAgMHgxMDAwPjsNCj4gPiA+ICsJYnVz LWZyZXF1ZW5jeSA9IDwyMDAwMD47DQo+ID4gPiArfTsNCj4gPg0KPiA+IFNvIHRoZSBidXMgZnJl cXVlbmN5IGlzIG9ubHkgMjAgS0h6PyAgT3IgaXMgdGhlIHVuaXQgc3VwcG9zZWQgdG8gYmUNCj4g PiBzb21ldGhpbmcgb3RoZXIgdGhhbiBIej8NCj4gW1MuSF0gaXQncyBvbmx5IGFuIGV4YW1wbGUs IGl0IGNvdWxkIGJlIGRpZmZlcmVudCBvbiByZWFsIFNvQ3MsIGJ1dCB0aGV5IGFsd2F5cw0KPiBs b3dlciB0aGFuIHRoZSBzdGFuZGFyZCBvbmUsIFRoZSBzdGFuZGFyZCBvbmUgaXMgMi41TUh6LCBJ IGhhdmUgdG8gdXNlIEh6IGZvciBpdC4NCj4gDQo+IFRoYW5rcyENCj4gU2hhb2h1aQ0K --
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): DM2PR0301MB08641FB289DBA17AD59FBEA0E26A0-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]
Quoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui Xie
I can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt ptp-timer@fe000 { · line 412
Quoted 9 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 2 lines
Quoted 2 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
-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): 1418940078.5581.143.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBGcmlkYXksIERlY2VtYmVyIDE5LCAyMDE0IDY6MDEgQU0NCj4gVG86IFhpZSBTaGFv aHVpLUIyMTk4OQ0KPiBDYzogbGludXhwcGMtZGV2QGxpc3RzLm96bGFicy5vcmc7IGRldmljZXRy ZWVAdmdlci5rZXJuZWwub3JnOyBNZWR2ZSBFbWlsaWFuLQ0KPiBFTU1FRFZFMTsgTGliZXJtYW4g SWdhbC1CMzE5NTANCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gW3YyXSBwb3dlci9mc2w6IGFkZCBN RElPIGR0IGJpbmRpbmcgZm9yIEZNYW4NCj4gDQo+IE9uIFRodSwgMjAxNC0xMi0xOCBhdCAwNjo1 MyAtMDYwMCwgWGllIFNoYW9odWktQjIxOTg5IHdyb3RlOg0KPiA+IFBpbmcuDQo+ID4NCj4gPiBC ZXN0IFJlZ2FyZHMsDQo+ID4gU2hhb2h1aSBYaWUNCj4gDQo+IEkgY2FuJ3QgcHV0IHBhdGNoZXMg aW4gbXkgLW5leHQgdW50aWwgdGhlIG1lcmdlIHdpbmRvdyBjbG9zZXMuDQo+IA0KPiA+ID4gPiA+ ICtFWEFNUExFDQo+ID4gPiA+ID4gKw0KPiA+ID4gPiA+ICtFeGFtcGxlIGZvciBG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mN5IG9uIEZtYW4gdjIgaXM6IEZtYW5fY2xvY2sg LyAoMiAqIDI1NSksDQpPbiBGbWFuIHYzIGlzOiBGbWFuX2Nsb2NrIC8gKCgyICogNTExKSArIDEp Lg0KDQpUYWtlIGRlZmF1bHQgRm1hbiBmcmVxdWVuY3kgc2V0dGluZyBmcm9tIFNESzEuNyBhcyBl eGFtcGxlLCB0aGUgbG93ZXN0IGNsb2NrIHVzZWQgZm9yIEZtYW4gdjIgaXMgNTgxTUh6LA0KVGhl IGxvd2VzdCBjbG9jayBmb3IgRm1hbiB2MyBpcyA2MDBNSHouDQoNClRoZW4gdGhlIGxvd2VzdCBi dXMgZnJlcXVlbmN5IGNhbiBnZXQgaXM6DQpGbWFuIHYyOiB+MTE0MEtIeg0KRm1hbiB2MzogfjU4 N0tIeg0KDQoyMEtIeiBpcyBub3QgcHJhY3RpY2UsIHdlIGRvbid0IGhhdmUgYSBzdWdnZXN0ZWQg dmFsdWUgaW4gZXJyYXRhIGRvY3VtZW50Lg0KRm9yIHRoaXMgZXhhbXBsZSwgc2hvdWxkIEkgcG9z dCBhIG5ldyB2ZXJzaW9uIHdpdGggYSB2YWx1ZSBsaWtlIDEyMDBLSHo/DQoNClRoYW5rcyENClNo YW9odWkNCg==
--
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): DM2PR0301MB0864AA31CD1A7438F476020FE26B0-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]
Quoted 43 lines · On Fri, 2014-12-19 at 01:23 -0600, Xie Shaohui-B21989 wrote:
Quoted 28 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 19, 2014 6:01 AM
To: Xie Shaohui-B21989
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian- EMMEDVE1; Liberman Igal-B31950
Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FManQuoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui XieI can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 9 lines
(quoted diff) +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have
to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
[S.H] the clock divider has a limitation that the MAX value it can get on Fman v2 is 255 (
0xff, 8 bits), On Fman v3 is 511(0x1ff, 9 bits).So the lowest frequency on Fman v2 is:
Fman_clock/ (2 * 255), On Fman v3 is:Fman_clock/ ((2 * 511) + 1).Take default Fman frequency setting from SDK1.7 as example, the lowest clock used for Fman v2 is 581MHz, The lowest clock for Fman v3 is 600MHz.
Quoted 6 lines
Then the lowest bus frequency can get is:
Fman v2: ~1140KHz
Fman v3: ~587KHz20KHz is not practice, we don't have a suggested value in errata document. For this example, should I post a new version with a value like 1200KHz?
This is different from how you described the problem before. If the limitation is on the divider, rather than the absolute bus frequency, then specifiy the max divider. Or better, since according to the above this correlates with fman version, just have the driver know what the max divider is for each fman version.
-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
Quoted 49 lines · On Fri, 2014-12-19 at 01:23 -0600, Xie Shaohui-B21989 wrote:
Quoted 48 lines
Quoted 28 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 19, 2014 6:01 AM
To: Xie Shaohui-B21989
Cc: [email protected]; [email protected]; Medve Emilian- EMMEDVE1; Liberman Igal-B31950
Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FManQuoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui XieI can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 9 lines
(quoted diff) +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have
to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
[S.H] the clock divider has a limitation that the MAX value it can get on Fman v2 is 255 (
0xff, 8 bits), On Fman v3 is 511(0x1ff, 9 bits).So the lowest frequency on Fman v2 is:
Fman_clock/ (2 * 255), On Fman v3 is:Fman_clock/ ((2 * 511) + 1).Take default Fman frequency setting from SDK1.7 as example, the lowest clock used for Fman v2 is 581MHz, The lowest clock for Fman v3 is 600MHz.
Then the lowest bus frequency can get is:
Fman v2: ~1140KHz
Fman v3: ~587KHz
Quoted 7 lines
Quoted 2 lines
20KHz is not practice, we don't have a suggested value in errata document. For this example, should I post a new version with a value like 1200KHz?
This is different from how you described the problem before. If the limitation is on the divider, rather than the absolute bus frequency, then specifiy the max divider. Or better, since according to the above this correlates with fman version, just have the driver know what the max divider is for each fman version.
[S.H] The problem is not the divider has limitation, the problem is a different bus frequency Is needed which is lower than the standard, but due to the divider limitation, the lowest bus frequency also has limitation. i.e. we need to use the divider to get a lower frequency, but how much lower the value could be is restricted by the divider limitation.
Thanks!
Shaohui
_______________________________________________
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): DM2PR0301MB086427C10254A0A749CD1326E2560-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]
Hello Shao-Hui,
Quoted 52 lines · On 12/21/2014 08:31 PM, Xie Shaohui-B21989 wrote:
Quoted 52 lines · On Fri, 2014-12-19 at 01:23 -0600, Xie Shaohui-B21989 wrote:
Quoted 50 lines
Quoted 28 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 19, 2014 6:01 AM
To: Xie Shaohui-B21989
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian- EMMEDVE1; Liberman Igal-B31950
Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FManQuoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui XieI can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 9 lines
(quoted diff) +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have
to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
[S.H] the clock divider has a limitation that the MAX value it can get on Fman v2 is 255 (
0xff, 8 bits), On Fman v3 is 511(0x1ff, 9 bits).So the lowest frequency on Fman v2 is:
Fman_clock/ (2 * 255), On Fman v3 is:Fman_clock/ ((2 * 511) + 1).Take default Fman frequency setting from SDK1.7 as example, the lowest clock used for Fman v2 is 581MHz, The lowest clock for Fman v3 is 600MHz.
Then the lowest bus frequency can get is:
Fman v2: ~1140KHz
Fman v3: ~587KHz20KHz is not practice, we don't have a suggested value in errata document. For this example, should I post a new version with a value like 1200KHz?
Quoted 8 lines
Quoted 4 lines
This is different from how you described the problem before. If the limitation is on the divider, rather than the absolute bus frequency, then specifiy the max divider. Or better, since according to the above this correlates with fman version, just have the driver know what the max divider is for each fman version.
[S.H] The problem is not the divider has limitation, the problem is a different bus frequency Is needed which is lower than the standard, but due to the divider limitation, the lowest bus frequency also has limitation. i.e. we need to use the divider to get a lower frequency, but how much lower the value could be is restricted by the divider limitation.
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency. We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
Cheers,
--
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): [email protected]
Quoted 64 lines · Emil Medve
Hello Shao-Hui,
Quoted 60 lines · On 12/21/2014 08:31 PM, Xie Shaohui-B21989 wrote:
Quoted 49 lines · On Fri, 2014-12-19 at 01:23 -0600, Xie Shaohui-B21989 wrote:
Quoted 48 lines
Quoted 28 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 19, 2014 6:01 AM
To: Xie Shaohui-B21989
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian- EMMEDVE1; Liberman Igal-B31950
Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FManQuoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui XieI can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 9 lines
(quoted diff) +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have
to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
[S.H] the clock divider has a limitation that the MAX value it can get on Fman v2 is 255 (
0xff, 8 bits), On Fman v3 is 511(0x1ff, 9 bits).So the lowest frequency on Fman v2 is:
Fman_clock/ (2 * 255), On Fman v3 is:Fman_clock/ ((2 * 511) + 1).Take default Fman frequency setting from SDK1.7 as example, the lowest clock used for Fman v2 is 581MHz, The lowest clock for Fman v3 is 600MHz.
Then the lowest bus frequency can get is:
Fman v2: ~1140KHz
Fman v3: ~587KHzQuoted 7 lines
Quoted 2 lines
20KHz is not practice, we don't have a suggested value in errata document. For this example, should I post a new version with a value like 1200KHz?
This is different from how you described the problem before. If the limitation is on the divider, rather than the absolute bus frequency, then specifiy the max divider. Or better, since according to the above this correlates with fman version, just have the driver know what the max divider is for each fman version.
[S.H] The problem is not the divider has limitation, the problem is a different bus frequency Is needed which is lower than the standard, but due to the divider limitation, the lowest bus frequency also has limitation. i.e. we need to use the divider to get a lower frequency, but how much lower the value could be is restricted by the divider limitation.
This is difficult to follow -- are you saying the erratum requires a speed that is not achievable?
Quoted 2 lines
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency.
The whole reason for this property existing in the device tree is non-standard frequencies.
Quoted 2 lines
We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
It affects the binding, so let's discuss it now please.
-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): 1419237176.5581.159.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBNb25kYXksIERlY2VtYmVyIDIyLCAyMDE0IDQ6MzMgUE0NCj4gVG86IE1lZHZlIEVt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HRoaXMgcHJvcGVydHkgZXhpc3Rp bmcgaW4gdGhlIGRldmljZSB0cmVlIGlzIG5vbi1zdGFuZGFyZA0KPiBmcmVxdWVuY2llcy4NCj4g DQo+ID4gV2UgY2FuIGNvbnRpbnVlIHRoaXMgY29udmVyc2F0aW9uIGFib3V0IGVycmF0YSBoYW5k bGluZyB3aGVuIHdlIHN1Ym1pdA0KPiA+IHRoZSBjb2RlIHJlbGV2YW50IHRvIHRoaXMgYmluZGlu ZyAoYW5kIHRoZSBGTWFuIHYzIHN1cHBvcnQpDQo+IA0KPiBJdCBhZmZlY3RzIHRoZSBiaW5kaW5n LCBzbyBsZXQncyBkaXNjdXNzIGl0IG5vdyBwbGVhc2UuDQo+IA0KPiAtU2NvdHQNCj4gDQoNCg== --
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
Hello Scott,
Quoted 66 lines · Scott Wood
Quoted 64 lines · Emil Medve
Hello Shao-Hui,
Quoted 60 lines · On 12/21/2014 08:31 PM, Xie Shaohui-B21989 wrote:
Quoted 49 lines · On Fri, 2014-12-19 at 01:23 -0600, Xie Shaohui-B21989 wrote:
Quoted 48 lines
Quoted 28 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 19, 2014 6:01 AM
To: Xie Shaohui-B21989
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian- EMMEDVE1; Liberman Igal-B31950
Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FManQuoted 4 lines · On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote:
Ping.
Best Regards,
Shaohui XieI can't put patches in my -next until the merge window closes.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 9 lines
(quoted diff) +9
-0+EXAMPLE + +Example for FMan v2 external MDIO: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + bus-frequency = <20000>; +};So the bus frequency is only 20 KHz? Or is the unit supposed to be something other than Hz?
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
[S.H] it's only an example, it could be different on real SoCs, but they always lower than the standard one, The standard one is 2.5MHz, I have
to use Hz for it.
Is there any SoC for which 20 kHz is the right frequency? I just want to make sure the example is realistic.
[S.H] the clock divider has a limitation that the MAX value it can get on Fman v2 is 255 (
0xff, 8 bits), On Fman v3 is 511(0x1ff, 9 bits).So the lowest frequency on Fman v2 is:
Fman_clock/ (2 * 255), On Fman v3 is:Fman_clock/ ((2 * 511) + 1).Take default Fman frequency setting from SDK1.7 as example, the lowest clock used for Fman v2 is 581MHz, The lowest clock for Fman v3 is 600MHz.
Then the lowest bus frequency can get is:
Fman v2: ~1140KHz
Fman v3: ~587KHzQuoted 7 lines
Quoted 2 lines
20KHz is not practice, we don't have a suggested value in errata document. For this example, should I post a new version with a value like 1200KHz?
This is different from how you described the problem before. If the limitation is on the divider, rather than the absolute bus frequency, then specifiy the max divider. Or better, since according to the above this correlates with fman version, just have the driver know what the max divider is for each fman version.
[S.H] The problem is not the divider has limitation, the problem is a different bus frequency Is needed which is lower than the standard, but due to the divider limitation, the lowest bus frequency also has limitation. i.e. we need to use the divider to get a lower frequency, but how much lower the value could be is restricted by the divider limitation.
Quoted 8 lines
This is difficult to follow -- are you saying the erratum requires a speed that is not achievable?
Quoted 2 lines
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency.
The whole reason for this property existing in the device tree is non-standard frequencies.
While the standard claims 2.5 MHz, most MDIO controllers and PHY devices support frequencies well beyond the standard. Specifying a lower then the standard frequency for the benefit of some errata is just one side of this property
Quoted 4 lines
Quoted 2 lines
We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
It affects the binding, so let's discuss it now please.
I think this specific (unpublished yet) errata has less bearing on the binding then you might believe. This is mostly about providing a common/default frequency supported by all the devices on some board
Anyway, the above thread about bits and lowest frequency limitation(s) is not really a problem/limitation. The range of frequencies (dividers) supported by both controller versions in all the supported SoC(s) allows responding to this (FMan v3 only) errata just fine
Cheers,
--
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): [email protected]
Quoted 8 lines · Emil Medve
Hello Scott,
Quoted 4 lines · Scott Wood
Quoted 2 lines · Emil Medve
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency.
Quoted 7 lines
Quoted 2 lines
The whole reason for this property existing in the device tree is non-standard frequencies.
While the standard claims 2.5 MHz, most MDIO controllers and PHY devices support frequencies well beyond the standard. Specifying a lower then the standard frequency for the benefit of some errata is just one side of this property
The erratum was (until now) the only claimed reason for it. If there are other reasons why one would specify a different frequency (in particular, that relate to hardware description), please elaborate.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
It affects the binding, so let's discuss it now please.
I think this specific (unpublished yet) errata has less bearing on the binding then you might believe. This is mostly about providing a common/default frequency supported by all the devices on some board
What reason other than an erratum would there be for the standard frequency not being supported?
-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): 1419241330.5581.162.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
Hello Scott,
Quoted 17 lines · Scott Wood
Quoted 8 lines · Emil Medve
Hello Scott,
Quoted 4 lines · Scott Wood
Quoted 2 lines · Emil Medve
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency.
Quoted 7 lines
Quoted 2 lines
The whole reason for this property existing in the device tree is non-standard frequencies.
While the standard claims 2.5 MHz, most MDIO controllers and PHY devices support frequencies well beyond the standard. Specifying a lower then the standard frequency for the benefit of some errata is just one side of this property
Quoted 5 lines
The erratum was (until now) the only claimed reason for it. If there are other reasons why one would specify a different frequency (in particular, that relate to hardware description), please elaborate.
From memory, the 1 Gb/s Vitesse PHY(s) we have on some of our DS boards
support 12.5 MHz. I can dig out more specs for specifics on other PHY(s)
2.5 MHz is slow and even more so for high speed interfaces. With both polling and interrupts (both MDIO and/or PHY) we've noticed (or blamed) in the past some Ethernet performance issues on this very slowness
As of right now I'm not aware of another way to specify/coordinate the MDC speed so setting a default (common denominator) in the DT that is different then the IEEE standard seems ok
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
It affects the binding, so let's discuss it now please.
I think this specific (unpublished yet) errata has less bearing on the binding then you might believe. This is mostly about providing a common/default frequency supported by all the devices on some board
What reason other than an erratum would there be for the standard frequency not being supported?
This is not about not supporting the standard frequency. This is about the default frequency being different then the standard
Cheers,
--
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): [email protected]
Quoted 45 lines · Emil Medve
Hello Scott,
Quoted 12 lines · Scott Wood
Quoted 11 lines · Emil Medve
Hello Scott,
Quoted 6 lines · Scott Wood
Quoted 2 lines · Emil Medve
For the purpose of an example in the binding document, I suggest we just stick with the IEEE standard frequency.
The whole reason for this property existing in the device tree is non-standard frequencies.
Quoted 8 lines
Quoted 4 lines
While the standard claims 2.5 MHz, most MDIO controllers and PHY devices support frequencies well beyond the standard. Specifying a lower then the standard frequency for the benefit of some errata is just one side of this property
The erratum was (until now) the only claimed reason for it. If there are other reasons why one would specify a different frequency (in particular, that relate to hardware description), please elaborate.
From memory, the 1 Gb/s Vitesse PHY(s) we have on some of our DS boards support 12.5 MHz. I can dig out more specs for specifics on other PHY(s)
2.5 MHz is slow and even more so for high speed interfaces. With both polling and interrupts (both MDIO and/or PHY) we've noticed (or blamed) in the past some Ethernet performance issues on this very slowness
As of right now I'm not aware of another way to specify/coordinate the MDC speed so setting a default (common denominator) in the DT that is different then the IEEE standard seems ok
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
We can continue this conversation about errata handling when we submit the code relevant to this binding (and the FMan v3 support)
It affects the binding, so let's discuss it now please.
I think this specific (unpublished yet) errata has less bearing on the binding then you might believe. This is mostly about providing a common/default frequency supported by all the devices on some board
Quoted 5 lines
Quoted 2 lines
What reason other than an erratum would there be for the standard frequency not being supported?
This is not about not supporting the standard frequency. This is about the default frequency being different then the standard
OK, though rather than talk about defaults I'd phrase it as indicating that a higher frequency than standard is supported, or that a lower frequency than standard is required.
-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): 1419283551.5581.172.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
DQoNCkJlc3QgUmVnYXJkcywgDQpTaGFvaHVpIFhpZQ0KDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0NCj4gRnJvbTogV29vZCBTY290dC1CMDc0MjENCj4gU2VudDogVHVlc2RheSwgRGVj ZW1iZXIgMjMsIDIwMTQgNToyNiBBTQ0KPiBUbzogTWVkdmUgRW1pbGlhbi1FTU1FRFZFMQ0KPiBD YzogWGllIFNoYW9odWktQjIxOTg5OyBsaW51eHBwYy1kZXZAbGlzdHMub3psYWJzLm9yZzsNCj4g ZGV2aWNldHJlZUB2Z2VyLmtlcm5lbC5vcmc7IExpYmVybWFuIElnYWwtQjMxOTUwDQo+IFN1Ympl Y3Q6IFJlOiBbUEFUQ0hdIFt2Ml0gcG93ZXIvZnNsOiBhZGQgTURJTyBkdCBiaW5kaW5nIGZvciBG TWFuDQo+IA0KPiBPbiBNb24sIDIwMTQtMTItMjIgYXQgMDU6MDggLTA2MDAsIEVtaWwgTWVkdmUg d3JvdGU6DQo+ID4gSGVsbG8gU2NvdHQsDQo+ID4NCj4gPg0KPiA+IE9uIDEyLzIyLzIwMTQgMDM6 NDIgQU0sIFNjb3R0IFdvb2Qgd3JvdGU6D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IHRhbGsgYWJvdXQgZGVmYXVsdHMgSSdkIHBo cmFzZSBpdCBhcyBpbmRpY2F0aW5nDQo+IHRoYXQgYSBoaWdoZXIgZnJlcXVlbmN5IHRoYW4gc3Rh bmRhcmQgaXMgc3VwcG9ydGVkLCBvciB0aGF0IGEgbG93ZXINCj4gZnJlcXVlbmN5IHRoYW4gc3Rh bmRhcmQgaXMgcmVxdWlyZWQuDQpbUy5IXSBiZWxvdyBpcyB0aGUgc3RhdGVtZW50IGluIHYyOg0K DQorLSBidXMtZnJlcXVlbmN5DQorCQlVc2FnZTogb3B0aW9uYWwNCisJCVZhbHVlIHR5cGU6IDx1 MzI+DQorCQlEZWZpbml0aW9uOiBTcGVjaWZpZXMgZXh0ZXJuYWwgTURJTyBidXMgY2xvY2sgc3Bl ZWQgd2hpY2ggaXMNCisJCWRpZmZlcmVudCBmcm9tIE1ESU8gc3RhbmRhcmQgMi41TUh6LiBTaG91 bGQgYmUgZGVmaW5lZCBmb3IgU29Dcw0KKwkJb24gd2hpY2ggdGhlIHN0YW5kYXJkIG9uZSBjYW5u b3Qgd29yay4NCg0KV2hhdCBzaG91bGQgSSByZXBocmFzZSBpdD8gUmVwbGFjZSB0aGUgbGFzdCBz ZW50ZW5jZSB3aXRoICJTaG91bGQgYmUgZGVmaW5lZA0KRm9yIFNvQ3Mgb24gd2hpY2ggYSBsb3dl ciBmcmVxdWVuY3kgdGhhbiB0aGUgc3RhbmRhcmQgaXMgcmVxdWlyZWQuIj8NCg0KSG93IGFib3V0 IHRoZSB2YWx1ZSB1c2VkIGluIGV4YW1wbGU/DQpTaG91bGQgMi41TUh6IGJlIHVzZWQgb3IgYSBs b3dlciBvbmU/DQoNClRoYW5rcyENClNoYW9odWkNCg==
--
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): DM2PR0301MB08642FFDB6207DE205731547E2570-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]
Quoted 9 lines · On Tue, 2014-12-23 at 01:35 -0600, Xie Shaohui-B21989 wrote:
+- bus-frequency
(quoted diff) +5
-0+ Usage: optional + Value type: <u32> + Definition: Specifies external MDIO bus clock speed which is + different from MDIO standard 2.5MHz. Should be defined for SoCs + on which the standard one cannot work.What should I rephrase it? Replace the last sentence with "Should be defined For SoCs on which a lower frequency than the standard is required."?
Neither of these work with Emil's scenario of a system that allows a faster-than-standard speed.
How about: "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."
Quoted 2 lines
How about the value used in example?
Should 2.5MHz be used or a lower one?
If you don't have a realistic example to use, don't put it in the example at all. 2.5MHz is the worst example to use because that's the default and there'd be no reason to use the property at all.
-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): 1419322085.5581.182.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBUdWVzZGF5LCBEZWNlbWJlciAyMywgMjAxNCA0OjA4IFBNDQo+IFRvOiBYaWUgU2hh b2h1aS1CMjE5ODkNCj4gQ2M6IE1lZHZlIEVtaWxpYW4tRU1NRURWRTE7IGxpbnV4cHBjLWRldkBs aXN0cy5vemxhYnMub3JnOw0KPiBkZXZpY2V0cmVlQHZnZXIua2VybmVsLm9yZzsgTGliZXJtYW4g SWdhbC1CMzE5NTANCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gW3YyXSBwb3dlci9mc2w6IGFkZCBN RElPIGR0IGJpbmRpbmcgZm9yIEZNYW4NCj4gDQo+IE9uIFR1ZSwgMjAxNC0x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yZHdhcmUgcHJvYmxlbSksIG9yIHRv DQo+IGFkdmVydGlzZSB0aGF0IGFsbCByZWxldmFudCBjb21wb25lbnRzIGluIHRoZSBzeXN0ZW0g c3VwcG9ydCBhIGZhc3Rlcg0KPiBzcGVlZC4iDQpbUy5IXSBPSy4gSSdsbCB1c2UgdGhpcyBpbiBW My4NCg0KPiANCj4gPiBIb3cgYWJvdXQgdGhlIHZhbHVlIHVzZWQgaW4gZXhhbXBsZT8NCj4gPiBT aG91bGQgMi41TUh6IGJlIHVzZWQgb3IgYSBsb3dlciBvbmU/DQo+IA0KPiBJZiB5b3UgZG9uJ3Qg aGF2ZSBhIHJlYWxpc3RpYyBleGFtcGxlIHRvIHVzZSwgZG9uJ3QgcHV0IGl0IGluIHRoZSBleGFt cGxlDQo+IGF0IGFsbC4gIDIuNU1IeiBpcyB0aGUgd29yc3QgZXhhbXBsZSB0byB1c2UgYmVjYXVz ZSB0aGF0J3MgdGhlIGRlZmF1bHQNCj4gYW5kIHRoZXJlJ2QgYmUgbm8gcmVhc29uIHRvIHVzZSB0 aGUgcHJvcGVydHkgYXQgYWxsLg0KW1MuSF0gT0suIFRoZSBWMyB3aWxsIG5vdCBoYXZlIHRoaXMg aW4gZXhhbXBsZS4NCg0KVGhhbmsgeW91IGFsbCBmb3IgcmV2aWV3aW5nIQ0KU2hhb2h1aQ0K --
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