summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net
diff options
context:
space:
mode:
authorCalvin Johnson <calvin.johnson@nxp.com>2018-11-20 21:51:53 +0530
committerDong Aisheng <aisheng.dong@nxp.com>2021-11-02 20:38:41 +0800
commit857200b72c6ff659cb1437ee799b2a0770763d28 (patch)
tree6f312d7350db89399eaa0cf00f3642a69c3e14c7 /Documentation/devicetree/bindings/net
parentf4727bb6c6d74499ef6118ac373b01a418ed98e5 (diff)
net: fsl_ppfe: update dts properties for phy
Use commonly used phy-handle property and mdio subnode to handle phy properties. Deprecate bindings fsl,gemac-phy-id & fsl,pfe-phy-if-flags. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r--Documentation/devicetree/bindings/net/fsl_ppfe/pfe.txt60
1 files changed, 43 insertions, 17 deletions
diff --git a/Documentation/devicetree/bindings/net/fsl_ppfe/pfe.txt b/Documentation/devicetree/bindings/net/fsl_ppfe/pfe.txt
index 780de449c6ca..4b38312c9b7f 100644
--- a/Documentation/devicetree/bindings/net/fsl_ppfe/pfe.txt
+++ b/Documentation/devicetree/bindings/net/fsl_ppfe/pfe.txt
@@ -127,11 +127,12 @@ PROPERTIES
Definition: Must be present. Value should be the id of the bus
connected to gemac.
-- fsl,gemac-phy-id
- Usage: required
- Value type: <u32>
- Definition: Must be present. Value should be the id of the phy
- connected to gemac.
+- fsl,gemac-phy-id (deprecated binding)
+ Usage: required
+ Value type: <u32>
+ Definition: This binding shouldn't be used with new platforms.
+ Must be present. Value should be the id of the phy
+ connected to gemac.
- fsl,mdio-mux-val
Usage: required
@@ -144,15 +145,20 @@ PROPERTIES
Value type: <string>
Definition: Must include "sgmii"
-- fsl,pfe-phy-if-flags
- Usage: required
- Value type: <u32>
- Definition: Must be present. Value should be 0 by default.
- If there is not phy connected, this need to be 1.
+- fsl,pfe-phy-if-flags (deprecated binding)
+ Usage: required
+ Value type: <u32>
+ Definition: This binding shouldn't be used with new platforms.
+ Must be present. Value should be 0 by default.
+ If there is not phy connected, this need to be 1.
-- mdio
- optional subnode that specifies the mdio bus. This has reg
- property which is used to enable/disable the mdio bus.
+- phy-handle
+ Usage: optional
+ Value type: <phandle>
+ Definition: phandle to the PHY device connected to this device.
+
+- mdio : A required subnode which specifies the mdio bus in the PFE and used as
+a container for phy nodes according to ../phy.txt.
EXAMPLE
@@ -162,12 +168,32 @@ ethernet@0 {
#size-cells = <0>;
reg = <0x0>; /* GEM_ID */
fsl,gemac-bus-id = <0x0>; /* BUS_ID */
- fsl,gemac-phy-id = <0x2>; /* PHY_ID */
fsl,mdio-mux-val = <0x0>;
phy-mode = "sgmii";
- fsl,pfe-phy-if-flags = <0x0>;
+ phy-handle = <&sgmii_phy1>;
+};
+
+
+ethernet@1 {
+ compatible = "fsl,pfe-gemac-port";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x1>; /* GEM_ID */
+ fsl,gemac-bus-id = <0x1>; /* BUS_ID */
+ fsl,mdio-mux-val = <0x0>;
+ phy-mode = "sgmii";
+ phy-handle = <&sgmii_phy2>;
+};
+
+mdio@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sgmii_phy1: ethernet-phy@2 {
+ reg = <0x2>;
+ };
- mdio@0 {
- reg = <0x1>; /* enabled/disabled */
+ sgmii_phy2: ethernet-phy@1 {
+ reg = <0x1>;
};
};