mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 14:50:15 +04:00
c7b04769a7
To support reporting link state of PHYs attached to built-in switch, add a device tree knob which allows to force 1000Mbps/FD mode, which is the link mode between eth1 MAC and the on-chip switch, even if no "fixed-link" node is present. Re-use the "builtin-switch" name already used in respective MDIO nodes. This way, a phy-handle property can be added to eth1 node, and devices, which have a single port attached through the built-in switch, can report proper link state of that to userspace. To perform that, one needs to delete the 'fixed-link' node and map the correct swphy node to 'phy-handle' property. One of those is still required to be present in the eth1 node. Signed-off-by: Lech Perczak <lech.perczak@gmail.com> Link: https://github.com/openwrt/openwrt/pull/9971 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>