powerpc: document phy-connection-type property
PATCH v4 1/4 powerpc: document phy-connection-type property
Since ucc_geth is being migrated to use the phylib, the existing (undocumented) 'interface' property is being deprecated in favour of 'phy-connection-type'.
phy-connection-type is now maintained one-to-one with definitions in include/linux/phy.h, albeit in the form of a string. If not specified, "mii" is assumed.
---
name change since [patch 1/4 v3]: s/interface-type/phy-connection-type/g
Documentation/powerpc/booting-without-of.txt | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
Documentation/powerpc/booting-without-of.txt +4 -0
@@ -1562,6 +1562,9 @@ platforms are moved over to use the flattened-device-tree model. network device. This is used by the bootwrapper to interpret MAC addresses passed by the firmware when no information other than indices is available to associate an address with a device. + - phy-connection-type : a string naming the controller/PHY interface type, + i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "tbi", + or "rtbi". Example: ucc@2000 {
@@ -1573,6 +1576,7 @@ platforms are moved over to use the flattened-device-tree model. interrupts = <a0 0>; interrupt-parent = <700>; mac-address = [ 00 04 9f 00 23 23 ]; + phy-connection-type = "gmii"; rx-clock = "none"; tx-clock = "clk9"; phy-handle = <212000>;
Signature · 1 line
1.5.0.3
Quoted 3 lines
Since
ucc_gethis being migrated to use the phylib, the existing (undocumented) 'interface' property is being deprecated in favour of 'phy-connection-type'.
Okay.
Quoted 2 lines
phy-connection-type is now maintained one-to-one with definitions in
include/linux/phy.h, albeit in the form of a string.
That's sort-of accidental though :-)
Quoted 4 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1562,6 +1562,9 @@ platforms are moved over to use theflattened-device-tree model.
Quoted 8 lines
network device. This is used by the bootwrapper to interpret MAC addresses passed by the firmware when no information other than indices is available to associate an address with a device.
+ - phy-connection-type : a string naming the controller/PHY
interface type,
+ i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id",
"tbi",
+ or "rtbi".
Could you put this right after the "phy-handle" definition please?
Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 1582
Quoted 9 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1573,6 +1576,7 @@ platforms are moved over to use theflattened-device-tree model.
Documentation/powerpc/booting-without-of.txt +1
-0interrupts = <a0 0>; interrupt-parent = <700>; mac-address = [ 00 04 9f 00 23 23 ]; + phy-connection-type = "gmii"; rx-clock = "none"; tx-clock = "clk9"; phy-handle = <212000>;
Same here. It's nice to keep things grouped, it
improves understanding ;-)
Segher
Quoted 5 lines · On Mon, 23 Apr 2007 22:59:43 +0200 Segher Boessenkool…
Quoted 2 lines
phy-connection-type is now maintained one-to-one with definitions in
include/linux/phy.h, albeit in the form of a string.That's sort-of accidental though :-)
sure..
Quoted 7 lines
Quoted 7 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1562,6 +1562,9 @@ platforms are moved over to use theflattened-device-tree model.
network device. This is used by the bootwrapper to interpret MAC addresses passed by the firmware when no information other than indices is available to associate an address with a device.
Quoted 8 lines
Quoted 5 lines
+ - phy-connection-type : a string naming the controller/PHY
interface type,
+ i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id",
"tbi",
+ or "rtbi".Could you put this right after the "phy-handle" definition please?
phy-handle is a required property, whereas phy-connection-type is not (it's recommended). Are you suggesting phy-connection-type be a required property?
Quoted 13 lines
Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 1582
Quoted 10 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1573,6 +1576,7 @@ platforms are moved over to use theflattened-device-tree model.
Documentation/powerpc/booting-without-of.txt +1
-0interrupts = <a0 0>; interrupt-parent = <700>; mac-address = [ 00 04 9f 00 23 23 ]; + phy-connection-type = "gmii"; rx-clock = "none"; tx-clock = "clk9"; phy-handle = <212000>;Same here. It's nice to keep things grouped, it
improves understanding ;-)
That's understandable. Lemme know about the above though.
Kim
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
+ - phy-connection-type : a string naming the controller/PHY
interface type,
+ i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id",
"tbi",
+ or "rtbi".
Quoted 6 lines
Quoted 2 lines
Could you put this right after the "phy-handle" definition please?
phy-handle is a required property, whereas phy-connection-type is not (it's recommended). Are you suggesting phy-connection-type be a required property?
Oh okay, I didn't see that from context -- no, it shouldn't be required, most controllers / PHYs don't need that information.
Segher
Quoted 5 lines
Quoted 3 lines
Since
ucc_gethis being migrated to use the phylib, the existing (undocumented) 'interface' property is being deprecated in favour of 'phy-connection-type'.Okay.
To be perfectly clear about this -- the only reason to not have it in the PHY node instead is that supposedly a PHY can be connected on multiple different kinds of interface at the same time (physically). Don't ask me who designs boards like that, but there you have it.
Segher
Hi guys,
Since I'm poking around on 52xx I had a query - firstly it doesn't look like the 52xx fec driver uses phylib at all since it also tries to support the 7-wire ethernet interface, which isn't ?? supported by phylib.
Stumbling across this property I wondered, if the driver can check the device tree for the phy type to set it up properly in this manner, would it also be relevant to list the 7-wire style of connection, so that drivers can provide the alternative code?
Side note, is phylib flexible enough to support the 7-wire non-MII connection? It looks sorta so, but...
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 47 lines · Kim Phillips
Quoted 4 lines · On Mon, 23 Apr 2007 22:59:43 +0200 Segher Boessenkool…
Quoted 2 lines
phy-connection-type is now maintained one-to-one with definitions in
include/linux/phy.h, albeit in the form of a string.That's sort-of accidental though :-)
sure..
Quoted 6 lines
Quoted 6 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1562,6 +1562,9 @@ platforms are moved over to use theflattened-device-tree model.
network device. This is used by the bootwrapper to interpret MAC addresses passed by the firmware when no information otherQuoted 8 lines
Quoted 6 lines
than indices is available to associate an address with a device.
+ - phy-connection-type : a string naming the controller/PHY
interface type,
+ i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id",
"tbi",
+ or "rtbi".Could you put this right after the "phy-handle" definition please?
phy-handle is a required property, whereas phy-connection-type is not (it's recommended). Are you suggesting phy-connection-type be a required property?
Quoted 11 lines
Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 1582
Quoted 9 lines
Documentation/powerpc/booting-without-of.txt +0
-0@@ -1573,6 +1576,7 @@ platforms are moved over to use theflattened-device-tree model.
Documentation/powerpc/booting-without-of.txt +1
-0interrupts = <a0 0>; interrupt-parent = <700>; mac-address = [ 00 04 9f 00 23 23 ]; + phy-connection-type = "gmii"; rx-clock = "none"; tx-clock = "clk9"; phy-handle = <212000>;Same here. It's nice to keep things grouped, it
improves understanding ;-)That's understandable. Lemme know about the above though.
Kim
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Quoted 9 lines
Since I'm poking around on 52xx I had a query - firstly it doesn't look like the 52xx fec driver uses phylib at all since it also tries to support the 7-wire ethernet interface, which isn't ?? supported by phylib.
Stumbling across this property I wondered, if the driver can check the device tree for the phy type to set it up properly in this manner, would it also be relevant to list the 7-wire style of connection, so that drivers can provide the alternative code?
Is that 7-wire thing just another kind of connection to a PHY? If so, treat it as such (add phylib support perhaps); if not, have an empty property in your 5200 ethernet node that says the 7-wire thing is in use.
Segher