2020-11-12 15:00:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2023-01-15 21:52:27 +00:00
|
|
|
#include "mt7621_xiaomi_mi-router-4a-common.dtsi"
|
2020-11-12 15:00:10 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
aliases {
|
2022-07-05 22:20:32 +00:00
|
|
|
label-mac-device = &gmac1;
|
2020-11-12 15:00:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_status_blue: status_blue {
|
|
|
|
label = "blue:status";
|
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_status_yellow: status_yellow {
|
|
|
|
label = "yellow:status";
|
|
|
|
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-01-15 21:52:27 +00:00
|
|
|
&wifi0 {
|
2024-01-16 12:21:35 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_8000>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2023-01-15 21:52:27 +00:00
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
2020-11-12 15:00:10 +00:00
|
|
|
};
|
|
|
|
|
2023-01-15 21:52:27 +00:00
|
|
|
&wifi1 {
|
2024-01-16 12:21:35 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2023-01-15 21:52:27 +00:00
|
|
|
ieee80211-freq-limit = <2400000 2500000>;
|
2020-11-12 15:00:10 +00:00
|
|
|
};
|
|
|
|
|
2022-07-05 22:20:32 +00:00
|
|
|
&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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-11-12 15:00:10 +00:00
|
|
|
&switch0 {
|
|
|
|
ports {
|
|
|
|
port@2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan2";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@3 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|