]> git.ipfire.org Git - thirdparty/openwrt.git/commit
qualcommax: ipq8072: assign NVMEM MAC addresses for Linksys MX5300 24193/head
authorJackie264 <jackie.han@gmail.com>
Mon, 13 Jul 2026 08:45:09 +0000 (08:45 +0000)
committerRobert Marko <robimarko@gmail.com>
Mon, 13 Jul 2026 09:45:11 +0000 (11:45 +0200)
commite8c74e8f1e6deb94fb93a5de53f9198cb7992586
treecd7d436d2a3d91bf57593f4961ad03655ba56dbf
parent5f467dc7dddec92c55e33171f78c77f9e6ee2985
qualcommax: ipq8072: assign NVMEM MAC addresses for Linksys MX5300

While the base NVMEM cell (hw_mac_addr) is already defined in the device tree, it was not being utilized by the actual interfaces.

This patch completes the kernel-level MAC assignment by:

1. Correcting the label-mac-device alias to point to the WAN port (&swport5), ensuring the system reports the sticker MAC address correctly.
2. Assigning the base MAC address (offset 0) to the WAN port (&swport5).
3. Assigning the base MAC address (offset 1) to the LAN ports (&swport1 - &swport4).
4. Configuring the proper NVMEM cell references for the PCIe-attached QCA9984 radio (offset 2) and the built-in ATH11K radio (offset 3).

This eliminates the need for post-boot MAC address manipulation and ensures robust, predictable interface initialization.

Signed-off-by: Jackie264 <jackie.han@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24193
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/dts/ipq8072-mx5300.dts