mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
141ccfd548
Edgerouter X currently has its eth1 port on the switch missing since there is a naming conflict currently. So, as the root cause is mixing kernel support for DSA interfaces having predictable names set via "label" property vs others having it assigned dynamically lets avoid the conflict by using our own custom property as suggested upstream [1]. So, add support via "openwrt,netdev-name" property and use it on ERX. Fixes:2a25c6ace8
("ramips: get rid of downstream network device label patch") Fixes: #15643 Link: https://github.com/openwrt/openwrt/pull/17062 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit5695267847
)
28 lines
419 B
Plaintext
28 lines
419 B
Plaintext
#include "mt7621_ubnt_edgerouter-x.dtsi"
|
|
|
|
/ {
|
|
model = "Ubiquiti EdgeRouter X";
|
|
compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
|
|
};
|
|
|
|
&gmac1 {
|
|
status = "okay";
|
|
openwrt,netdev-name = "eth0";
|
|
phy-handle = <ðphy0>;
|
|
|
|
nvmem-cells = <&macaddr_factory_22 0>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
ðphy0 {
|
|
/delete-property/ interrupts;
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
port@0 {
|
|
status = "disabled";
|
|
};
|
|
};
|
|
};
|