ath79: pqi-air-pen: adjust mac addresses
authorRosen Penev <rosenp@gmail.com>
Mon, 25 Nov 2024 22:33:06 +0000 (14:33 -0800)
committerJohn Crispin <john@phrozen.org>
Fri, 13 Dec 2024 14:29:04 +0000 (15:29 +0100)
The original ar71xx version of this device used 1002 as mac address for
both ethernet and wireless. The ath79 version inexplicably changes this
to 2, which seems to be done nowhere else in ath79, indicating it's
bogus.

Restore previous ar71xx assignment. 1002 is used as an ethernet
interface with some other devices as well.

Also remove the bogus caldata userspace extraction. The size is bogus
and it's already handled in dts.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17083
Signed-off-by: John Crispin <john@phrozen.org>
target/linux/ath79/dts/ar9330_pqi_air-pen.dts
target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom

index 121dcbcb0e26d007c04a2a7a2ac153ab414377f5..4153de571ab50f041bb9c7b9eeb41ec963452600 100644 (file)
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
-                                       macaddr_art_2: macaddr@2 {
-                                               reg = <0x2 0x6>;
-                                       };
-
                                        cal_art_1000: calibration@1000 {
                                                reg = <0x1000 0x440>;
                                        };
 &wmac {
        status = "okay";
 
-       nvmem-cells = <&macaddr_art_2>, <&cal_art_1000>;
-       nvmem-cell-names = "mac-address", "calibration";
+       nvmem-cells = <&cal_art_1000>;
+       nvmem-cell-names = "calibration";
 };
index d424b9fe2ca80c96fdd4e1781733488021d82b61..796ebc33216d23ac34188106c084e3d4ed8eecdc 100644 (file)
@@ -46,9 +46,6 @@ case "$FIRMWARE" in
        ubnt,picostation-m)
                caldata_extract "art" 0x1000 0x1000
                ;;
-       pqi,air-pen)
-               caldata_extract "art" 0x1000 0x7d2
-               ;;
        *)
                caldata_die "board $board is not supported yet"
                ;;