From: Álvaro Fernández Rojas Date: Sun, 23 Apr 2023 09:44:34 +0000 (+0200) Subject: bmips: shg2500: add BCM4360 fallback SPROM X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3132eff0007f20d5f9d8d7f40214962c2b4942d5;p=openwrt%2Fstaging%2Fthess.git bmips: shg2500: add BCM4360 fallback SPROM Apart from the embedded BCM63268 wireless, this device has an external BCM4360 connected by PCIe which needs a fallback SPROM. b43 isn't enabled for this device because BCM4360 isn't supported (AC PHY). Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts index 76bedfac94..bcab940771 100644 --- a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts +++ b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts @@ -43,6 +43,19 @@ debounce-interval = <60>; }; }; + + bcm4360-sprom { + compatible = "brcm,bcma-sprom"; + + pci-bus = <1>; + pci-dev = <0>; + + nvmem-cells = <&macaddr_cferom_6a0>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <1>; + + brcm,sprom = "brcm/bcm4360-sprom.bin"; + }; }; &ehci { diff --git a/target/linux/bmips/image/bcm63268.mk b/target/linux/bmips/image/bcm63268.mk index 6f7cda7405..6e27b16624 100644 --- a/target/linux/bmips/image/bcm63268.mk +++ b/target/linux/bmips/image/bcm63268.mk @@ -73,8 +73,9 @@ define Device/sercomm_shg2500 PAGESIZE := 2048 SUBPAGESIZE := 512 VID_HDR_OFFSET := 2048 - DEVICE_PACKAGES += $(USB2_PACKAGES) kmod-i2c-gpio \ - kmod-leds-sercomm-msp430 + DEVICE_PACKAGES += $(USB2_PACKAGES) \ + broadcom-4360-sprom \ + kmod-i2c-gpio kmod-leds-sercomm-msp430 SERCOMM_FSVER := 1001 SERCOMM_HWVER := 1424e4a SERCOMM_SWVER := 3207