mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
MIPS: mscc: ocelot: mark the phy-mode for internal PHY ports
The ocelot driver was converted to phylink, and that expects a valid phy_interface_t. Without a phy-mode, of_get_phy_mode returns PHY_INTERFACE_MODE_NA, which is not ideal because phylink rejects that. The ocelot driver was patched to treat PHY_INTERFACE_MODE_NA as PHY_INTERFACE_MODE_INTERNAL to work with the broken DT blobs, but we should fix the device trees and specify the phy-mode too. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
0181f6f19c
commit
eba54cbb92
2 changed files with 8 additions and 0 deletions
|
@ -71,21 +71,25 @@ phy4: ethernet-phy@3 {
|
||||||
&port0 {
|
&port0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy0>;
|
phy-handle = <&phy0>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port1 {
|
&port1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy1>;
|
phy-handle = <&phy1>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port2 {
|
&port2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy2>;
|
phy-handle = <&phy2>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port3 {
|
&port3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy3>;
|
phy-handle = <&phy3>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port4 {
|
&port4 {
|
||||||
|
|
|
@ -49,19 +49,23 @@ &mdio0 {
|
||||||
&port0 {
|
&port0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy0>;
|
phy-handle = <&phy0>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port1 {
|
&port1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy1>;
|
phy-handle = <&phy1>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port2 {
|
&port2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy2>;
|
phy-handle = <&phy2>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
||||||
&port3 {
|
&port3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy3>;
|
phy-handle = <&phy3>;
|
||||||
|
phy-mode = "internal";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue