Skip to content

Commit fd70f72

Browse files
ffainellidavem330
authored andcommitted
net: phy: add MoCA PHY type
Some Ethernet MACs are connected to a MoCA PHY which will handle the low-level job of sending Ethernet frames on the coaxial cable, these Ethernet MACs need to know about it to be properly configured. Add a new PHY mode "moca" and update the Device Tree parsing logic to look for it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c045a73 commit fd70f72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/phy.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ typedef enum {
7474
PHY_INTERFACE_MODE_RTBI,
7575
PHY_INTERFACE_MODE_SMII,
7676
PHY_INTERFACE_MODE_XGMII,
77+
PHY_INTERFACE_MODE_MOCA,
7778
PHY_INTERFACE_MODE_MAX,
7879
} phy_interface_t;
7980

@@ -113,6 +114,8 @@ static inline const char *phy_modes(phy_interface_t interface)
113114
return "smii";
114115
case PHY_INTERFACE_MODE_XGMII:
115116
return "xgmii";
117+
case PHY_INTERFACE_MODE_MOCA:
118+
return "moca";
116119
default:
117120
return "unknown";
118121
}

0 commit comments

Comments
 (0)