forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/net/cpsw.txt
....@@ -22,7 +22,8 @@
2222 - cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection
2323 device. See also cpsw-phy-sel.txt for it's binding.
2424 Note that in legacy cases cpsw-phy-sel may be
25
- a child device instead of a phandle.
25
+ a child device instead of a phandle
26
+ (DEPRECATED, use phys property instead).
2627
2728 Optional properties:
2829 - ti,hwmods : Must be "cpgmac0"
....@@ -44,12 +45,15 @@
4445 Slave Properties:
4546 Required properties:
4647 - phy-mode : See ethernet.txt file in the same directory
48
+- phys : phandle on phy-gmii-sel PHY (see phy/ti-phy-gmii-sel.txt)
4749
4850 Optional properties:
4951 - dual_emac_res_vlan : Specifies VID to be used to segregate the ports
50
-- mac-address : See ethernet.txt file in the same directory
5152 - phy_id : Specifies slave phy id (deprecated, use phy-handle)
5253 - phy-handle : See ethernet.txt file in the same directory
54
+
55
+The MAC address will be determined using the optional properties
56
+defined in ethernet.txt.
5357
5458 Slave sub-nodes:
5559 - fixed-link : See fixed-link.txt file in the same directory
....@@ -85,12 +89,14 @@
8589 phy-mode = "rgmii-txid";
8690 /* Filled in by U-Boot */
8791 mac-address = [ 00 00 00 00 00 00 ];
92
+ phys = <&phy_gmii_sel 1 0>;
8893 };
8994 cpsw_emac1: slave@1 {
9095 phy_id = <&davinci_mdio>, <1>;
9196 phy-mode = "rgmii-txid";
9297 /* Filled in by U-Boot */
9398 mac-address = [ 00 00 00 00 00 00 ];
99
+ phys = <&phy_gmii_sel 2 0>;
94100 };
95101 };
96102
....@@ -114,11 +120,13 @@
114120 phy-mode = "rgmii-txid";
115121 /* Filled in by U-Boot */
116122 mac-address = [ 00 00 00 00 00 00 ];
123
+ phys = <&phy_gmii_sel 1 0>;
117124 };
118125 cpsw_emac1: slave@1 {
119126 phy_id = <&davinci_mdio>, <1>;
120127 phy-mode = "rgmii-txid";
121128 /* Filled in by U-Boot */
122129 mac-address = [ 00 00 00 00 00 00 ];
130
+ phys = <&phy_gmii_sel 2 0>;
123131 };
124132 };