aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/net/cpsw.txt6
-rw-r--r--drivers/net/ethernet/ti/cpsw.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/cpsw.txt b/Documentation/devicetree/bindings/net/cpsw.txt
index 4f2ca6b4a182..05d660e4ac64 100644
--- a/Documentation/devicetree/bindings/net/cpsw.txt
+++ b/Documentation/devicetree/bindings/net/cpsw.txt
@@ -28,6 +28,8 @@ Optional properties:
28Slave Properties: 28Slave Properties:
29Required properties: 29Required properties:
30- phy_id : Specifies slave phy id 30- phy_id : Specifies slave phy id
31- phy-mode : The interface between the SoC and the PHY (a string
32 that of_get_phy_mode() can understand)
31- mac-address : Specifies slave MAC address 33- mac-address : Specifies slave MAC address
32 34
33Optional properties: 35Optional properties:
@@ -58,11 +60,13 @@ Examples:
58 cpts_clock_shift = <29>; 60 cpts_clock_shift = <29>;
59 cpsw_emac0: slave@0 { 61 cpsw_emac0: slave@0 {
60 phy_id = <&davinci_mdio>, <0>; 62 phy_id = <&davinci_mdio>, <0>;
63 phy-mode = "rgmii-txid";
61 /* Filled in by U-Boot */ 64 /* Filled in by U-Boot */
62 mac-address = [ 00 00 00 00 00 00 ]; 65 mac-address = [ 00 00 00 00 00 00 ];
63 }; 66 };
64 cpsw_emac1: slave@1 { 67 cpsw_emac1: slave@1 {
65 phy_id = <&davinci_mdio>, <1>; 68 phy_id = <&davinci_mdio>, <1>;
69 phy-mode = "rgmii-txid";
66 /* Filled in by U-Boot */ 70 /* Filled in by U-Boot */
67 mac-address = [ 00 00 00 00 00 00 ]; 71 mac-address = [ 00 00 00 00 00 00 ];
68 }; 72 };
@@ -84,11 +88,13 @@ Examples:
84 cpts_clock_shift = <29>; 88 cpts_clock_shift = <29>;
85 cpsw_emac0: slave@0 { 89 cpsw_emac0: slave@0 {
86 phy_id = <&davinci_mdio>, <0>; 90 phy_id = <&davinci_mdio>, <0>;
91 phy-mode = "rgmii-txid";
87 /* Filled in by U-Boot */ 92 /* Filled in by U-Boot */
88 mac-address = [ 00 00 00 00 00 00 ]; 93 mac-address = [ 00 00 00 00 00 00 ];
89 }; 94 };
90 cpsw_emac1: slave@1 { 95 cpsw_emac1: slave@1 {
91 phy_id = <&davinci_mdio>, <1>; 96 phy_id = <&davinci_mdio>, <1>;
97 phy-mode = "rgmii-txid";
92 /* Filled in by U-Boot */ 98 /* Filled in by U-Boot */
93 mac-address = [ 00 00 00 00 00 00 ]; 99 mac-address = [ 00 00 00 00 00 00 ];
94 }; 100 };
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 89a4c40d6d83..a45f64eef870 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -1554,6 +1554,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
1554 if (mac_addr) 1554 if (mac_addr)
1555 memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN); 1555 memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN);
1556 1556
1557 slave_data->phy_if = of_get_phy_mode(slave_node);
1558
1557 if (data->dual_emac) { 1559 if (data->dual_emac) {
1558 if (of_property_read_u32(slave_node, "dual_emac_res_vlan", 1560 if (of_property_read_u32(slave_node, "dual_emac_res_vlan",
1559 &prop)) { 1561 &prop)) {