[openwrt/openwrt] bmips: shg2500: add BCM4360 fallback SPROM

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 23 05:04:03 PDT 2023


noltari pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3132eff0007f20d5f9d8d7f40214962c2b4942d5

commit 3132eff0007f20d5f9d8d7f40214962c2b4942d5
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Sun Apr 23 11:44:34 2023 +0200

    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 <noltari at gmail.com>
---
 target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts | 13 +++++++++++++
 target/linux/bmips/image/bcm63268.mk                |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)

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




More information about the lede-commits mailing list