mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
ramips: mt7621-dts: mux phy0/4 to gmac1
Mux the MT7530 switch's phy0/4 to the SoC's gmac1 on devices where RGMII2 pins are available. This achieves 2 Gbps total bandwidth to the CPU using the second RGMII. The ports called "wan" are muxed where possible. On a minority of devices, this is not possible. Those cases: mt7621_ampedwireless_ally-r1900k.dts: lan3 mt7621_ubnt_edgerouter-x.dts: eth0 mt7621_gnubee_gb-pc1.dts: ethblue mt7621_linksys_re6500.dts: lan1 mt7621_netgear_wac104.dts: lan4 mt7621_tplink_eap235-wall-v1.dts: lan0 mt7621_tplink_eap615-wall-v1.dts: lan0 mt7621_ubnt_usw-flex.dts: lan1 The "wan" port is just what the vendor designated on the board/plastic chasis of the device. On a technical level, there is no difference between a lan and wan port on MT7621AT, MT7621DAT and MT7621ST SoCs. Prefer connecting to WAN via the port described above for these devices to benefit the feature brought with this patch. mt7621_d-team_newifi-d2.dts cannot benefit this feature, although it looks like it should, because the rgmii2 pins are wired to unused components. Tested on a range of devices documented on the GitHub PR. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
This commit is contained in:
parent
9483e6d8a9
commit
a28334d8b8
@ -104,6 +104,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe00c>;
|
mtd-mac-address = <&factory 0xe00c>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe00c>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -125,13 +138,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe00c>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -109,6 +109,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -130,13 +143,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,18 +7,26 @@
|
|||||||
model = "AsiaRF AP7621-001";
|
model = "AsiaRF AP7621-001";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan";
|
label = "lan";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -7,15 +7,23 @@
|
|||||||
model = "AsiaRF AP7621-NV1";
|
model = "AsiaRF AP7621-NV1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@2 {
|
port@2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -133,14 +133,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -134,13 +134,22 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
model = "ASUS RT-N56U B1";
|
model = "ASUS RT-N56U B1";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
led-boot = &led_power;
|
led-boot = &led_power;
|
||||||
led-failsafe = &led_power;
|
led-failsafe = &led_power;
|
||||||
led-running = &led_power;
|
led-running = &led_power;
|
||||||
@ -143,6 +143,19 @@
|
|||||||
mtd-mac-address = <&factory 0x8004>;
|
mtd-mac-address = <&factory 0x8004>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -164,12 +177,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
wan: port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -152,6 +152,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -173,11 +185,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,13 +168,23 @@
|
|||||||
mtd-mac-address-increment = <(-1)>;
|
mtd-mac-address-increment = <(-1)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <(-1)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -176,6 +176,19 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -197,11 +210,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -156,6 +156,21 @@
|
|||||||
mtd-mac-address = <&bdinfo 0xde00>;
|
mtd-mac-address = <&bdinfo 0xde00>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&bdinfo 0xde00>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -177,13 +192,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&bdinfo 0xde00>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,6 +81,21 @@
|
|||||||
mtd-mac-address = <&bdinfo 0xde00>;
|
mtd-mac-address = <&bdinfo 0xde00>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&bdinfo 0xde00>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&pcie {
|
&pcie {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -189,13 +204,5 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
|
|
||||||
mtd-mac-address = <&bdinfo 0xde00>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -166,6 +166,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -187,12 +200,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
model = "D-Link DIR-853 R1";
|
model = "D-Link DIR-853 R1";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
led-boot = &led_power_orange;
|
led-boot = &led_power_orange;
|
||||||
led-failsafe = &led_power_blue;
|
led-failsafe = &led_power_blue;
|
||||||
led-running = &led_power_blue;
|
led-running = &led_power_blue;
|
||||||
@ -105,6 +105,21 @@
|
|||||||
mtd-mac-address-increment = <(-1)>;
|
mtd-mac-address-increment = <(-1)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <(-2)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -126,13 +141,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
wan: port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <(-2)>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -112,13 +112,21 @@
|
|||||||
mtd-mac-address = <&radio 0x4>;
|
mtd-mac-address = <&radio 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&radio 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -95,6 +95,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -116,12 +129,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -155,6 +155,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -176,12 +189,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -121,13 +121,21 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -70,14 +70,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
mtd-mac-address = <&factory 0xfff4>;
|
mtd-mac-address = <&factory 0xfff4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&wan {
|
&gmac1 {
|
||||||
mtd-mac-address = <&factory 0xfffa>;
|
mtd-mac-address = <&factory 0xfffa>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&wan {
|
&gmac1 {
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -136,13 +136,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&wan {
|
&gmac1 {
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
led-failsafe = &led_power_green;
|
led-failsafe = &led_power_green;
|
||||||
led-running = &led_power_green;
|
led-running = &led_power_green;
|
||||||
led-upgrade = &led_power_green;
|
led-upgrade = &led_power_green;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds: leds {
|
leds: leds {
|
||||||
@ -83,13 +83,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
wan: port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
led-failsafe = &led_run;
|
led-failsafe = &led_run;
|
||||||
led-running = &led_run;
|
led-running = &led_run;
|
||||||
led-upgrade = &led_run;
|
led-upgrade = &led_run;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -119,6 +119,19 @@
|
|||||||
mtd-mac-address-increment = <1>;
|
mtd-mac-address-increment = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0x4000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@2 {
|
port@2 {
|
||||||
@ -130,12 +143,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan2";
|
label = "lan2";
|
||||||
};
|
};
|
||||||
|
|
||||||
wan: port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4000>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -73,11 +73,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -85,6 +80,18 @@
|
|||||||
mtd-mac-address = <&factory 0x8004>;
|
mtd-mac-address = <&factory 0x8004>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&state_default {
|
&state_default {
|
||||||
gpio {
|
gpio {
|
||||||
groups = "rgmii2", "jtag";
|
groups = "rgmii2", "jtag";
|
||||||
@ -110,4 +117,4 @@
|
|||||||
|
|
||||||
&i2c {
|
&i2c {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -129,6 +129,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@1 {
|
port@1 {
|
||||||
@ -145,11 +157,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan3";
|
label = "lan3";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -131,15 +131,23 @@
|
|||||||
mtd-mac-address = <&iNIC_rf 0x4>;
|
mtd-mac-address = <&iNIC_rf 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
led-failsafe = &led_power;
|
led-failsafe = &led_power;
|
||||||
led-running = &led_power;
|
led-running = &led_power;
|
||||||
led-upgrade = &led_power;
|
led-upgrade = &led_power;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
@ -130,14 +130,21 @@
|
|||||||
mtd-mac-address = <&factory 0x1e000>;
|
mtd-mac-address = <&factory 0x1e000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0x1e006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
wan: port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x1e006>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -131,15 +131,23 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
led-failsafe = &led_power;
|
led-failsafe = &led_power;
|
||||||
led-running = &led_power;
|
led-running = &led_power;
|
||||||
led-upgrade = &led_power;
|
led-upgrade = &led_power;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
@ -121,14 +121,22 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
wan: port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -123,13 +123,22 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -114,14 +114,22 @@
|
|||||||
mtd-mac-address = <&uboot 0x1fc20>;
|
mtd-mac-address = <&uboot 0x1fc20>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&uboot 0x1fc40>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&uboot 0x1fc40>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -98,14 +98,22 @@
|
|||||||
mtd-mac-address = <&uboot 0x1fc20>;
|
mtd-mac-address = <&uboot 0x1fc20>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&uboot 0x1fc40>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&uboot 0x1fc40>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
led-failsafe = &led_wps;
|
led-failsafe = &led_wps;
|
||||||
led-running = &led_wps;
|
led-running = &led_wps;
|
||||||
led-upgrade = &led_wps;
|
led-upgrade = &led_wps;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
@ -132,6 +132,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -156,7 +169,6 @@
|
|||||||
wan: port@4 {
|
wan: port@4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "wan";
|
label = "wan";
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -93,6 +93,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -114,12 +127,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -144,19 +144,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
&gmac0 {
|
||||||
nvmem-cells = <&macaddr_factory_3fff4>;
|
mtd-mac-address = <&factory 0x3fff4>;
|
||||||
nvmem-cell-names = "mac-address";
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0x3fffa>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
nvmem-cells = <&macaddr_factory_3fffa>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
@ -175,17 +180,3 @@
|
|||||||
function = "gpio";
|
function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&factory {
|
|
||||||
compatible = "nvmem-cells";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
macaddr_factory_3fff4: macaddr@3fff4 {
|
|
||||||
reg = <0x3fff4 0x6>;
|
|
||||||
};
|
|
||||||
|
|
||||||
macaddr_factory_3fffa: macaddr@3fffa {
|
|
||||||
reg = <0x3fffa 0x6>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
@ -135,6 +135,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@1 {
|
port@1 {
|
||||||
@ -146,12 +159,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -148,6 +148,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -169,11 +181,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -173,13 +173,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -116,13 +116,22 @@
|
|||||||
mtd-mac-address = <&factory 0x2e>;
|
mtd-mac-address = <&factory 0x2e>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan1";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x2e>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "lan1";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan2";
|
label = "lan2";
|
||||||
|
@ -116,6 +116,21 @@
|
|||||||
mtd-mac-address = <&factory 0x5>;
|
mtd-mac-address = <&factory 0x5>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x5>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -137,13 +152,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x5>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,6 +39,18 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -60,11 +72,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,3 +35,23 @@
|
|||||||
function = "gpio";
|
function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch0 {
|
||||||
|
ports {
|
||||||
|
port@0 {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -90,13 +90,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -97,6 +97,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -118,13 +133,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -110,6 +110,21 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -131,13 +146,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,6 +165,21 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -186,13 +201,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <2>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -99,6 +99,21 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x4>;
|
||||||
|
mtd-mac-address-increment = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -120,13 +135,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <2>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -125,6 +125,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -146,12 +159,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,6 +128,22 @@
|
|||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_bdinfo_9>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@2 {
|
port@2 {
|
||||||
@ -139,14 +155,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
nvmem-cells = <&macaddr_bdinfo_9>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -78,6 +78,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -99,12 +112,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -109,6 +109,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -130,12 +143,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -105,6 +105,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe006>;
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -126,13 +141,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
led-failsafe = &led_red;
|
led-failsafe = &led_red;
|
||||||
led-running = &led_blue;
|
led-running = &led_blue;
|
||||||
led-upgrade = &led_red;
|
led-upgrade = &led_red;
|
||||||
label-mac-device = &wan_port;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -112,14 +112,21 @@
|
|||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0x28>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
wan_port: port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x28>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -103,6 +103,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -124,13 +139,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -100,6 +100,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -121,12 +134,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,15 +165,23 @@
|
|||||||
mtd-mac-address = <&config 0x8>;
|
mtd-mac-address = <&config 0x8>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&config 0x8>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&config 0x8>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -4,3 +4,25 @@
|
|||||||
model = "Ubiquiti EdgeRouter X";
|
model = "Ubiquiti EdgeRouter X";
|
||||||
compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
|
compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "eth0";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0x22>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch0 {
|
||||||
|
ports {
|
||||||
|
port@0 {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -77,6 +77,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
mtd-mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -98,13 +113,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mtd-mac-address-increment = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -179,6 +179,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe006>;
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@1 {
|
port@1 {
|
||||||
@ -195,12 +208,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -68,6 +68,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@1 {
|
port@1 {
|
||||||
@ -79,12 +92,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
led-failsafe = &led_status_yellow;
|
led-failsafe = &led_status_yellow;
|
||||||
led-running = &led_status_blue;
|
led-running = &led_status_blue;
|
||||||
led-upgrade = &led_status_yellow;
|
led-upgrade = &led_status_yellow;
|
||||||
label-mac-device = &wan;
|
label-mac-device = &gmac1;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -135,6 +135,21 @@
|
|||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_factory_e006>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@2 {
|
port@2 {
|
||||||
@ -146,13 +161,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
|
|
||||||
wan: port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
nvmem-cells = <&macaddr_factory_e006>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,14 +128,21 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan1";
|
||||||
|
@ -136,6 +136,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -157,12 +170,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -77,6 +77,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -98,12 +111,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -99,6 +99,19 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
mtd-mac-address = <&factory 0xe000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
phy-handle = <ðphy4>;
|
||||||
|
mtd-mac-address = <&factory 0xe006>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ethphy4: ethernet-phy@4 {
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -120,12 +133,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0xe006>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user