Files
eternalwrt-mt798x/target/linux/ramips/dts/mt7621_dlink_dir-3040-a1.dts
T
Rosen PenevandRobert Marko de08715d7f ramips: dir-3040-a1: fix MAC address assignment
The dtsi used handles a bunch of non-DBDC platforms where the
assignments are correct. The 3040-a1 is different as there are 3 instead
of 2 wifi interfaces and WAN needs to be incremented by 1.

Remove userspace wifi assignmwent which was needed before per band nvmem
was supported.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21977
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-18 12:18:27 +01:00

88 lines
1.8 KiB
Devicetree

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_dlink_dir_nand_128m.dtsi"
/ {
compatible = "dlink,dir-3040-a1", "mediatek,mt7621-soc";
model = "D-Link DIR-3040 A1";
};
&wps {
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
&leds {
led-4 {
function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <2>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port2>;
linux,default-trigger = "usbport";
};
led-5 {
function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <3>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
led-6 {
function = LED_FUNCTION_WLAN_2GHZ;
color = <LED_COLOR_ID_WHITE>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0radio";
};
led-7 {
function = LED_FUNCTION_WLAN_5GHZ;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <0>;
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1radio";
};
led-8 {
function = LED_FUNCTION_WLAN_5GHZ;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <1>;
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy2radio";
};
};
&wifi0 {
/delete-property/ ieee80211-freq-limit;
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
#address-cells = <1>;
#size-cells = <0>;
band@0 {
reg = <0>;
nvmem-cells = <&macaddr_factory_e000 2>;
nvmem-cell-names = "mac-address";
};
band@1 {
reg = <1>;
nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
};
};
&wifi1 {
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
nvmem-cell-names = "eeprom", "mac-address";
};
&gmac1 {
nvmem-cells = <&macaddr_factory_e000 4>;
nvmem-cell-names = "mac-address";
};