Skip to contentSkip to conversation

DT: add MDIO node for FMan node

PATCH In review [email protected] 5 participants 14 messages Nov 4, 2014 – Nov 13, 2014 8 messages not in the archive

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

PATCH 1/1 DT: add MDIO node for FMan node

From: Shaohui Xie <[email protected]>

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

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

 .../devicetree/bindings/powerpc/fsl/fman.txt       | 69 ++++++++++++++++++++++
 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +69 -0
index da8e5f2..83c2f14 100644
@@ -7,6 +7,7 @@ CONTENTS
   - FMan MURAM Node
   - FMan dTSEC/XGEC/mEMAC Node
   - FMan IEEE 1588 Node
+  - FMan MDIO Node
   - Example
 
 =============================================================================
@@ -352,6 +353,67 @@ 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: Default MDIO bus clock speed.
+
+- interrupts
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.
+		FMan v3 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 include "internal" for internal MDIO,
+		must include "external" for external MDIO.
+
+EXAMPLE
+
+Example for FMan v2:
+
+mdio@f1000 {
+	compatible = "fsl,fman-xmdio";
+	reg = <0xf1000 0x1000>;
+};
+
+Example for FMan v3:
+
+mdio@fd000 {
+	compatible = "fsl,fman-memac-mdio";
+	reg = <0xfd000 0x1000>;
+	bus-frequency = <2500000>;
+	type = "external";
+};
+
+=============================================================================
 Example
 
 fman@400000 {
@@ -526,4 +588,11 @@ fman@400000 {
 		compatible = "fsl,fman-ptp-timer";
 		reg = <0xfe000 0x1000>;
 	};
+
+	mdio@fd000 {
+		compatible = "fsl,fman-memac-mdio";
+		reg = <0xfd000 0x1000>;
+		bus-frequency = <2500000>;
+		type = "external";
+	};
 };
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): 1415102196-9238-1-git-send-email-shh.xie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

Ping.

Best Regards,
Shaohui Xie

Quoted 121 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, November 04, 2014 7:57 PM
To: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Wood Scott-B07421
Cc: Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: [PATCH] DT: add MDIO node for FMan node

From: Shaohui Xie <[email protected]>

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

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

 .../devicetree/bindings/powerpc/fsl/fman.txt       | 69
++++++++++++++++++++++
 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +1 -0
index da8e5f2..83c2f14 100644
@@ -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
@@ -352,6 +353,67 @@ ptp-timer@fe000 {
 };
 
 

=========================================================================
====

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +61 -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: Default MDIO bus clock speed.
+
+- interrupts
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.
+		FMan v3 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 include "internal" for internal MDIO,
+		must include "external" for external MDIO.
+
+EXAMPLE
+
+Example for FMan v2:
+
+mdio@f1000 {
+	compatible = "fsl,fman-xmdio";
+	reg = <0xf1000 0x1000>;
+};
+
+Example for FMan v3:
+
+mdio@fd000 {
+	compatible = "fsl,fman-memac-mdio";
+	reg = <0xfd000 0x1000>;
+	bus-frequency = <2500000>;
+	type = "external";
+};
+
+========================================================================

=====
Example

fman@400000 {

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +7 -1
@@ -526,4 +588,11 @@ fman@400000 {
 		compatible = "fsl,fman-ptp-timer";
 		reg = <0xfe000 0x1000>;
 	};
+
+	mdio@fd000 {
+		compatible = "fsl,fman-memac-mdio";
+		reg = <0xfd000 0x1000>;
+		bus-frequency = <2500000>;
+		type = "external";
+	};
 };
--
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

#3 lore raw
In reply to a message not in the archive
Quoted 8 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected].…

From: Shaohui Xie <[email protected]>

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

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

Are there any other FMan pieces that are missing from the above patch?

Quoted 35 lines
 .../devicetree/bindings/powerpc/fsl/fman.txt       | 69 ++++++++++++++++++++++
 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +17 -0
index da8e5f2..83c2f14 100644
@@ -7,6 +7,7 @@ CONTENTS
   - FMan MURAM Node
   - FMan dTSEC/XGEC/mEMAC Node
   - FMan IEEE 1588 Node
+  - FMan MDIO Node
   - Example
 
 =============================================================================
@@ -352,6 +353,67 @@ 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.

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

Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +10 -0
+
+- reg
+		Usage: required
+		Value type: <prop-encoded-array>
+		Definition: A standard property.
+
+- bus-frequency
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

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

Quoted 4 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +4 -0
+- interrupts
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.

One interrupt or multiple?

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

Quoted 5 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.

What standard is "type" defined in?

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

Quoted 5 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+		FMan v3 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 include "internal" for internal MDIO,
+		must include "external" for external MDIO.

I assume fman v2 is always internal? How about a boolean "fsl,fman-internal-phy" property instead?

Quoted 25 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +20 -0
+
+EXAMPLE
+
+Example for FMan v2:
+
+mdio@f1000 {
+	compatible = "fsl,fman-xmdio";
+	reg = <0xf1000 0x1000>;
+};
+
+Example for FMan v3:
+
+mdio@fd000 {
+	compatible = "fsl,fman-memac-mdio";
+	reg = <0xfd000 0x1000>;
+	bus-frequency = <2500000>;
+	type = "external";
+};
+
+=============================================================================
 Example
 
 fman@400000 {
@@ -526,4 +588,11 @@ fman@400000 {
 		compatible = "fsl,fman-ptp-timer";

Documentation/devicetree/bindings/powerpc/fsl/fman.txt fman@400000 { · line 598

Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +7 -0
 		reg = <0xfe000 0x1000>;
 	};
+
+	mdio@fd000 {
+		compatible = "fsl,fman-memac-mdio";
+		reg = <0xfd000 0x1000>;
+		bus-frequency = <2500000>;
+		type = "external";
+	};
 };

The rest of the example is fman v2; don't mix an fman v3 node in with that.

-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

#4 lore raw
Quoted 13 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: [email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 4 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected] wrote:

From: Shaohui Xie <[email protected]>

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

Quoted 7 lines
Quoted 5 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

Are there any other FMan pieces that are missing from the above patch?

[S.H] I'm adding Igal for this comment.

Quoted 44 lines
Quoted 2 lines
 .../devicetree/bindings/powerpc/fsl/fman.txt       | 69

++++++++++++++++++++++

Quoted 41 lines
 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +1 -0
index da8e5f2..83c2f14 100644
@@ -7,6 +7,7 @@ CONTENTS
   - FMan MURAM Node
   - FMan dTSEC/XGEC/mEMAC Node
   - FMan IEEE 1588 Node
+  - FMan MDIO Node
   - Example
 
 

======================================================================
======= @@ -352,6 +353,67 @@ ptp-timer@fe000 { };

======================================================================
=======

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +20 -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>
Quoted 8 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +6 -0
+		Definition: A standard property.
+
+- bus-frequency
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

[S.H] The MDIO uses Fman clock and divides it to a proper value which is specified by this property.

Quoted 7 lines

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

Quoted 5 lines

+- interrupts

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.

One interrupt or multiple?

[S.H] One for 1 Gb/s, one for 10 Gb/s.

Quoted 8 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.

What standard is "type" defined in?

[S.H] It's to differentiate between the internal and external MDIO, I'm not quite sure about naming it, or what could be better way to differentiate the MDIOs?

Quoted 9 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+		FMan v3 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 include "internal" for internal MDIO,
+		must include "external" for external MDIO.

I assume fman v2 is always internal? How about a boolean "fsl,fman- internal-phy" property instead?

[S.H] Both Fman v2 & v3 have internal/external MDIO, Fman v2 uses internal MDIO for TBI operations to set the SGMII PHY,
The TBI implements transmit/receive portions of PCS, it's not used in Linux. The PCS on Fman V3 are not just for SGMII, it has more implementations, it's used in Linux.

Quoted 24 lines
Quoted 24 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +21 -0
+
+EXAMPLE
+
+Example for FMan v2:
+
+mdio@f1000 {
+	compatible = "fsl,fman-xmdio";
+	reg = <0xf1000 0x1000>;
+};
+
+Example for FMan v3:
+
+mdio@fd000 {
+	compatible = "fsl,fman-memac-mdio";
+	reg = <0xfd000 0x1000>;
+	bus-frequency = <2500000>;
+	type = "external";
+};
+
+=====================================================================
+========
 Example
Quoted 16 lines

Documentation/devicetree/bindings/powerpc/fsl/fman.txt fman@400000 { · line 598

Quoted 13 lines

fman@400000 {

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +7 -0
@@ -526,4 +588,11 @@ fman@400000 {
 		compatible = "fsl,fman-ptp-timer";
 		reg = <0xfe000 0x1000>;
 	};
+
+	mdio@fd000 {
+		compatible = "fsl,fman-memac-mdio";
+		reg = <0xfd000 0x1000>;
+		bus-frequency = <2500000>;
+		type = "external";
+	};
 };

The rest of the example is fman v2; don't mix an fman v3 node in with that.

[S.H] OK. Will fix it.

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): fb6dc6131da04e89bfc31bd8278030a0-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#6 lore raw
Quoted 74 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 13 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 4 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected].…

From: Shaohui Xie <[email protected]>

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

Quoted 7 lines
Quoted 5 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

Are there any other FMan pieces that are missing from the above patch?

[S.H] I'm adding Igal for this comment.

Quoted 44 lines
Quoted 2 lines
 .../devicetree/bindings/powerpc/fsl/fman.txt       | 69

++++++++++++++++++++++

Quoted 41 lines
 1 file changed, 69 insertions(+)
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +1 -0
index da8e5f2..83c2f14 100644
@@ -7,6 +7,7 @@ CONTENTS
   - FMan MURAM Node
   - FMan dTSEC/XGEC/mEMAC Node
   - FMan IEEE 1588 Node
+  - FMan MDIO Node
   - Example
 
 

======================================================================
======= @@ -352,6 +353,67 @@ ptp-timer@fe000 { };

======================================================================
=======

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +20 -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>
Quoted 8 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +6 -0
+		Definition: A standard property.
+
+- bus-frequency
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

Quoted 1 line

[S.H] The MDIO uses Fman clock and divides it to a proper value which is specified by this property.

Use clocks/clock-names to describe that relationship.

Quoted 8 lines
Quoted 7 lines

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

Quoted 5 lines

+- interrupts

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.

One interrupt or multiple?

[S.H] One for 1 Gb/s, one for 10 Gb/s.

Then the binding needs to say that there are two (except for "fsl,fman-mdio", right?) and which is which.

Quoted 9 lines
Quoted 8 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.

What standard is "type" defined in?

Quoted 3 lines

[S.H] It's to differentiate between the internal and external MDIO, I'm not quite sure about naming it, or what could be better way to differentiate the MDIOs?

I'm not questioning the need to convey this information. I'm saying it's not "A standard property". I'd also like to see a better name.

Quoted 9 lines
Quoted 9 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+		FMan v3 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 include "internal" for internal MDIO,
+		must include "external" for external MDIO.

I assume fman v2 is always internal? How about a boolean "fsl,fman- internal-phy" property instead?

Quoted 5 lines

[S.H] Both Fman v2 & v3 have internal/external MDIO, Fman v2 uses internal MDIO for TBI operations to set the SGMII PHY,

The TBI implements transmit/receive portions of PCS, it's not used in Linux. The PCS on Fman V3 are not just for SGMII, it has more implementations, it's used in Linux.

The device tree is about the hardware, not what's used in Linux.

-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

#7 lore raw
Quoted 4 lines
Quoted 4 lines

The TBI implements transmit/receive portions of PCS, it's not used in Linux. The PCS on Fman V3 are not just for SGMII, it has more implementations, it's used in Linux.

It is used for PHY less mode(aka fixed PHY) and needs to be exposed to linux so it is possible to select SGMII/1000BASE-X, AutoNeg etc.

Quoted 4 lines

The device tree is about the hardware, not what's used in Linux.

-Scott

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

#8 lore raw
In reply to Scott Wood
Quoted 38 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; [email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 29 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 13 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: [email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 4 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected] wrote:

From: Shaohui Xie <[email protected]>

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

Quoted 7 lines
Quoted 5 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

Are there any other FMan pieces that are missing from the above patch?

[S.H] I'm adding Igal for this comment.

Quoted 7 lines

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

Quoted 5 lines

+- bus-frequency

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

Quoted 5 lines
Quoted 1 line

[S.H] The MDIO uses Fman clock and divides it to a proper value which

is specified by this property.

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-ranges" should be used?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 5 lines

+- interrupts

Documentation/devicetree/bindings/powerpc/fsl/fman.txt +3 -0
+		Usage: optional
+		Value type: <prop-encoded-array>
+		Definition: MDIO controller event interrupts.

One interrupt or multiple?

Quoted 5 lines
Quoted 1 line

[S.H] One for 1 Gb/s, one for 10 Gb/s.

Then the binding needs to say that there are two (except for "fsl,fman- mdio", right?) and which is which.

[S.H] OK.

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

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

Quoted 6 lines
Documentation/devicetree/bindings/powerpc/fsl/fman.txt +5 -0
+
+- type
+		Usage: required for FMan v3
+		Value type: <stringlist>
+		Definition: A standard property.

What standard is "type" defined in?

Quoted 7 lines
Quoted 3 lines

[S.H] It's to differentiate between the internal and external MDIO, I'm not quite sure about naming it, or what could be better way to differentiate the MDIOs?

I'm not questioning the need to convey this information. I'm saying it's not "A standard property". I'd also like to see a better name.

[S.H] since Fman V2 & V3 can be differentiated by compatible, a boolean property "fsl,fman-internal-mdio" seems better, if defined, it indicates an internal MDIO. It looks like below:

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.

How about this?

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): c4dd11a97a684be8b799c2f639e600ca-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#10 lore raw
Quoted 41 lines · On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote:
Quoted 41 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 23 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 13 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 4 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected].…

From: Shaohui Xie <[email protected]>

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

Quoted 7 lines
Quoted 5 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git

Are there any other FMan pieces that are missing from the above patch?

[S.H] I'm adding Igal for this comment.

Quoted 1 line
Quoted 7 lines
Quoted 6 lines

Review

Quoted 4 lines

+- bus-frequency

(quoted diff) +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

[S.H] The MDIO uses Fman clock and divides it to a proper value which

is specified by this property.

Quoted 7 lines
Quoted 2 lines

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-ranges" should be used?

It's a different clock. You wouldn't be repeating. If it's derived from the FMan clock, then maybe you don't need anything here (does the driver know what the divider is, or would that need to be specified in the device tree?), but no more clock-frequency/bus-frequency properties.

Quoted 12 lines

[S.H] since Fman V2 & V3 can be differentiated by compatible, a boolean property "fsl,fman-internal-mdio" seems better, if defined, it indicates an internal MDIO. It looks like below:

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.

Quoted 1 line

How about this?

This looks better, thanks.

This would be set on fman v2 TBI mdio nodes as well, right?

-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): 1415859399.15957.48.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org

#12 lore raw

PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXb29kIFNjb3R0LUIwNzQyMQ0K PiBTZW50OiBUaHVyc2RheSwgTm92ZW1iZXIgMTMsIDIwMTQgMjoxNyBQTQ0KPiBUbzogWGllIFNo YW9odWktQjIxOTg5DQo+IENjOiBMaWJlcm1hbiBJZ2FsLUIzMTk1MDsgbGludXhwcGMtZGV2QGxp c3RzLm96bGFicy5vcmc7DQo+IGRldmljZXRyZWVAdmdlci5rZXJuZWwub3JnOyBNZWR2ZSBFbWls aWFuLUVNTUVEVkUxDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0hdIERUOiBhZGQgTURJTyBub2RlIGZv ciBGTWFuIG5vZGUNCj4gDQo+IE9uIFdlZCwgMjAxNC0xMS0xMiBhdCAwNzo0MCAtMDYwMCwgWGll IFNoYW9odWktQjIxOTg5IHdyb3RlOg0KPiA+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N Cj4gPiA+IEZyb206IFdvb2QgU2NvdHQtQjA3NDIxDQo+ID4gPiBTZW50OiBXZWRuZXNkYXksIE5v dmVtYmVyIDEyLCAyMDE0IDE6MzggQU0NCj4gPiA+IFRvOiBYaWUgU2hhb2h1aS1CMjE5ODkNCj4g PiA+IENjOiBMaWJlcm1hbiBJZ2FsLUIzMTk1MDsgbGludXhwcGMtZGV2QGxpc3RzLm96bGFicy5v cmc7DQo+ID4gPiBkZXZpY2V0cmVlQHZnZXIua2VybmVsLm9yZzsgTWV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Swg YQ0KPiA+IGJvb2xlYW4gcHJvcGVydHkgImZzbCxmbWFuLWludGVybmFsLW1kaW8iIHNlZW1zIGJl dHRlciwgaWYgZGVmaW5lZCwgaXQNCj4gPiBpbmRpY2F0ZXMgYW4gaW50ZXJuYWwgTURJTy4gSXQg bG9va3MgbGlrZSBiZWxvdzoNCj4gPg0KPiA+IGZzbCxmbWFuLWludGVybmFsLW1kaW8NCj4gPiAJ CVVzYWdlOiByZXF1aXJlZCBmb3IgaW50ZXJuYWwgTURJTw0KPiA+IAkJVmFsdWUgdHlwZTogQm9v bGVhbg0KPiA+IAkJRGVmaW5pdGlvbjogRm1hbiBoYXMgaW50ZXJuYWwgTURJTyBmb3IgaW50ZXJu YWwgUENTKFBoeXNpY2FsDQo+ID4gCQlDb2RpbmcgU3VibGF5ZXIpIFBIWXMgYW5kIGV4dGVybmFs IE1ESU8gZm9yIGV4dGVybmFsIFBIWXMuDQo+ID4gCQlUaGUgc2V0dGluZ3MgYW5kIHByb2dyYW1t aW5nIHJvdXRpbmVzIGZvciBpbnRlcm5hbC9leHRlcm5hbA0KPiA+IAkJTURJTyBhcmUgZGlmZmVy ZW50LiBNdXN0IGJlIGluY2x1ZGVkIGZvciBpbnRlcm5hbCBNRElPLg0KPiA+DQo+ID4gSG93IGFi b3V0IHRoaXM/DQo+IA0KPiBUaGlzIGxvb2tzIGJldHRlciwgdGhhbmtzLg0KPiANCj4gVGhpcyB3 b3VsZCBiZSBzZXQgb24gZm1hbiB2MiBUQkkgbWRpbyBub2RlcyBhcyB3ZWxsLCByaWdodD8NCltT LkhdIFllcy4gQnV0IGl0J3Mgbm90IHVzZWQgYnkgZHJpdmVyLiAoSSBrbm93IEkgc2hvdWxkIG5v dCBzYXkgdGhpcyA6KSApDQoNClRoYW5rcy4NClNoYW9odWkNCg0K
--
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): 59c6a8b7ad1d477aad9edd2152d02f8e-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#14 lore raw
Quoted 61 lines · On Thu, 2014-11-13 at 01:11 -0600, Xie Shaohui-B21989 wrote:
Quoted 61 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 2:17 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 22 lines · On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote:
Quoted 22 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 13 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 13 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 4 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected].…

From: Shaohui Xie <[email protected]>

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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.
git

Are there any other FMan pieces that are missing from the above

patch?

Quoted 20 lines
Quoted 9 lines
Quoted 9 lines

[S.H] I'm adding Igal for this comment.

Quoted 7 lines

Review

Quoted 5 lines

+- bus-frequency

(quoted diff) +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

Quoted 6 lines
Quoted 2 lines

[S.H] The MDIO uses Fman clock and divides it to a proper value which

is specified by this property.

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-ranges" should be used?

Quoted 7 lines
Quoted 5 lines

It's a different clock. You wouldn't be repeating. If it's derived from the FMan clock, then maybe you don't need anything here (does the driver know what the divider is, or would that need to be specified in the device tree?), but no more clock-frequency/bus-frequency properties.

[S.H] The purpose here is to get a specific clock frequency, driver to use it to calculate the divider. Then the Fman clock can be divided to the frequency.

Oh, so this is stating a desired frequency and not something that already exists? What determines this frequency? Is it based on board design, or just on the MDIO standard, etc? I'm wondering if the device tree is the right place for it.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

[S.H] since Fman V2 & V3 can be differentiated by compatible, a boolean property "fsl,fman-internal-mdio" seems better, if defined, it indicates an internal MDIO. It looks like below:

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.

Quoted 6 lines
Quoted 5 lines
Quoted 1 line

How about this?

This looks better, thanks.

This would be set on fman v2 TBI mdio nodes as well, right?

[S.H] Yes. But it's not used by driver. (I know I should not say this :) )

Saying it is fine as long as you still put it in the device tree. :-)

-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): 1415862913.15957.56.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org

#16 lore raw

DQoNCkJlc3QgUmVnYXJkcywgDQpTaGFvaHVpIFhpZQ0KDQoNCj4gLS0t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aGUgZGl2aWRlciBkZXRlcm1pbmVzIHRoaXMgZnJl cXVlbmN5Lg0KU2luY2UgRm1hbiBjbG9jayBpcyBkaWZmZXJlbnQgb24gZGlmZmVyZW50IFNvQ3Ms IHNvIHNwZWNpZnkgdGhlIGRlc2lyZWQgZnJlcXVlbmN5LCANCnRoZW4gdG8gZ2V0IHRoZSBwcm9w ZXIgZGl2aWRlci4NCg0KDQpUaGFua3MuDQpzaGFvaHVpDQo=
--
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): 489ad06fda99436eb3307d613b1f8293-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#18 lore raw
Quoted 87 lines · On Thu, 2014-11-13 at 02:02 -0600, Xie Shaohui-B21989 wrote:

Best Regards,
Shaohui Xie

Quoted 81 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 3:15 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 30 lines · On Thu, 2014-11-13 at 01:11 -0600, Xie Shaohui-B21989 wrote:
Quoted 30 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 2:17 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 21 lines · On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote:
Quoted 21 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 12 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 12 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 2 lines · On Tue, 2014-11-04 at 19:56 +0800, [email protected].…

From: Shaohui Xie <[email protected]>

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.

Quoted 16 lines
Quoted 16 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

git

Are there any other FMan pieces that are missing from the above

patch?

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

[S.H] I'm adding Igal for this comment.

Quoted 7 lines

Review

Quoted 5 lines

+- bus-frequency

(quoted diff) +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

[S.H] The MDIO uses Fman clock and divides it to a proper value which

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

is specified by this property.

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-

ranges"

Quoted 6 lines
Quoted 6 lines
Quoted 1 line

should be used?

It's a different clock. You wouldn't be repeating. If it's derived from the FMan clock, then maybe you don't need anything here (does the driver know what the divider is, or would that need to be specified in the device tree?), but no more clock-frequency/bus-

frequency properties.

Quoted 2 lines
Quoted 1 line

[S.H] The purpose here is to get a specific clock frequency, driver to

Quoted 8 lines
Quoted 7 lines

use it to calculate the divider.

Quoted 1 line

Then the Fman clock can be divided to the frequency.

Oh, so this is stating a desired frequency and not something that already exists? What determines this frequency? Is it based on board design, or just on the MDIO standard, etc? I'm wondering if the device tree is the right place for it.

[S.H] Yes, a desired frequency which is different with MDIO standard.

I'm not sure what you mean by "different with". Do you mean "different from"? What does the standard say about frequency?

Quoted 3 lines

The Fman clock and the divider determines this frequency.
Since Fman clock is different on different SoCs, so specify the desired frequency, then to get the proper divider.

Why does the fman clock being different mean the mdio clock should be different?

-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

#19 lore raw

Best Regards,
Shaohui Xie

Quoted 104 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 4:04 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; [email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 43 lines · On Thu, 2014-11-13 at 02:02 -0600, Xie Shaohui-B21989 wrote:

Best Regards,
Shaohui Xie

Quoted 37 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 3:15 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; [email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 28 lines · On Thu, 2014-11-13 at 01:11 -0600, Xie Shaohui-B21989 wrote:
Quoted 28 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 2:17 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; [email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 19 lines · On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote:
Quoted 19 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; [email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 10 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 10 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: [email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

On Tue, 2014-11-04 at 19:56 +0800, [email protected]

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

From: Shaohui Xie <[email protected]>

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

v3.

Quoted 47 lines
Quoted 47 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

git

Are there any other FMan pieces that are missing from the above

patch?

Quoted 13 lines
Quoted 13 lines
Quoted 11 lines

[S.H] I'm adding Igal for this comment.

Quoted 7 lines

Review

Quoted 5 lines

+- bus-frequency

(quoted diff) +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

[S.H] The MDIO uses Fman clock and divides it to a proper value which

is specified by this property.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-

ranges"

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

should be used?

It's a different clock. You wouldn't be repeating. If it's derived from the FMan clock, then maybe you don't need anything here (does the driver know what the divider is, or would that need to be specified in the device tree?), but no more clock-frequency/bus-

frequency properties.

Quoted 3 lines
Quoted 1 line

[S.H] The purpose here is to get a specific clock frequency, driver to

use it to calculate the divider.

Quoted 1 line

Then the Fman clock can be divided to the frequency.

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines

Oh, so this is stating a desired frequency and not something that already exists? What determines this frequency? Is it based on board design, or just on the MDIO standard, etc? I'm wondering if the device tree is the right place for it.

[S.H] Yes, a desired frequency which is different with MDIO standard.

I'm not sure what you mean by "different with". Do you mean "different from"? What does the standard say about frequency?

[S.H] The standard MDIO frequency is 2.5MHz. But a different one is desired.

Quoted 7 lines
Quoted 4 lines

The Fman clock and the divider determines this frequency. Since Fman clock is different on different SoCs, so specify the desired frequency, then to get the proper divider.

Why does the fman clock being different mean the mdio clock should be different?

[S.H] The mdio clock should be same, a different divider should be used to match the Fman clock to make sure the mdio clock kept same. So to specify The desired mdio frequency, then to get proper divider.

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): b7e76a785be4439bb1f69dc611703e1d-Cwg/PA1lyPnq20u2fDgSrZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/[email protected]

#21 lore raw
Quoted 114 lines · On Thu, 2014-11-13 at 02:27 -0600, Xie Shaohui-B21989 wrote:

Best Regards,
Shaohui Xie

Quoted 108 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 4:04 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 43 lines · On Thu, 2014-11-13 at 02:02 -0600, Xie Shaohui-B21989 wrote:

Best Regards,
Shaohui Xie

Quoted 37 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 3:15 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 28 lines · On Thu, 2014-11-13 at 01:11 -0600, Xie Shaohui-B21989 wrote:
Quoted 28 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, November 13, 2014 2:17 PM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 19 lines · On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote:
Quoted 19 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Wednesday, November 12, 2014 1:38 AM
To: Xie Shaohui-B21989
Cc: Liberman Igal-B31950; linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1
Subject: Re: [PATCH] DT: add MDIO node for FMan node

Quoted 10 lines · On Tue, 2014-11-11 at 04:32 -0600, Xie Shaohui-B21989 wrote:
Quoted 10 lines

-----Original Message-----
From: Wood Scott-B07421
Sent: Tuesday, November 11, 2014 8:23 AM
To: [email protected]
Cc: linuxppc-dev-uLR06cmDAlY/[email protected]; [email protected]; Medve Emilian-EMMEDVE1; Xie Shaohui-B21989
Subject: Re: [PATCH] DT: add MDIO node for FMan node

On Tue, 2014-11-04 at 19:56 +0800, [email protected]

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

From: Shaohui Xie <[email protected]>

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

v3.

Quoted 51 lines
Quoted 51 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

---
based on http://patchwork.ozlabs.org/patch/390351/
for 'next' of

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

git

Are there any other FMan pieces that are missing from the above

patch?

Quoted 13 lines
Quoted 13 lines
Quoted 11 lines

[S.H] I'm adding Igal for this comment.

Quoted 7 lines

Review

Quoted 5 lines

+- bus-frequency

(quoted diff) +3 -0
+		Usage: optional
+		Value type: <u32>
+		Definition: Default MDIO bus clock speed.

Use clocks/clock-names

[S.H] The MDIO uses Fman clock and divides it to a proper value which

is specified by this property.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

Use clocks/clock-names to describe that relationship.

[S.H] The MDIO node is sub-node and embedded in Fman node, the clocks/clock-names is provided by Fman node, should repeat them in MDIO node? For the default MDIO bus clock speed, maybe "clock-

ranges"

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

should be used?

It's a different clock. You wouldn't be repeating. If it's derived from the FMan clock, then maybe you don't need anything here (does the driver know what the divider is, or would that need to be specified in the device tree?), but no more clock-frequency/bus-

frequency properties.

Quoted 3 lines
Quoted 1 line

[S.H] The purpose here is to get a specific clock frequency, driver to

use it to calculate the divider.

Quoted 1 line

Then the Fman clock can be divided to the frequency.

Oh, so this is stating a desired frequency and not something that already exists? What determines this frequency? Is it based on board design, or just on the MDIO standard, etc? I'm wondering if the device tree is the right place for it.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

[S.H] Yes, a desired frequency which is different with MDIO standard.

I'm not sure what you mean by "different with". Do you mean "different from"? What does the standard say about frequency?

[S.H] The standard MDIO frequency is 2.5MHz. But a different one is desired.

Why is a different frequency desired?

Quoted 10 lines
Quoted 7 lines
Quoted 4 lines

The Fman clock and the divider determines this frequency. Since Fman clock is different on different SoCs, so specify the desired frequency, then to get the proper divider.

Why does the fman clock being different mean the mdio clock should be different?

[S.H] The mdio clock should be same, a different divider should be used to match the Fman clock to make sure the mdio clock kept same. So to specify The desired mdio frequency, then to get proper divider.

What I'm trying to determine is why the MDIO frequency wouldn't always be the same, and thus could be hardcoded in the driver rather than in the device tree.

-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