]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
bmips: bcm6358: add support for Huawei HG556a ver C 19061/head
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 7 Jun 2025 10:01:54 +0000 (12:01 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 11 Jun 2025 13:10:46 +0000 (15:10 +0200)
Specifications:
- SoC: Broadcom BCM6358 dual 300MHz MIPS
- Flash: 16MB NOR Macronix MX29GL128EHT2I-90G
- RAM: 64MB DDR
- Ethernet: 4x 100M
- Wifi: Ralink RT3062F
- 3x USB 2.0 port
- 4x Button
- 13x LED
- RJ11 2x FXS VoIP (unsupported)
- RJ11 xDSL (unsupported)

Install instructions:
- Assign static IP 192.168.1.100 to PC.
- Unplug the power source.
- Press the RESTART button at the router, don't release it yet!
- Plug the power source and wait at least 15 seconds.
- Release the RESTART button.
- Browse to http://192.168.1.1 with your PC.
- Upload the openwrt-bmips-bcm6358-huawei_hg556a-c-squashfs-cfe.bin file.
- Wait some minutes until the firmware upgrade completes.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/bcm6358/base-files/etc/board.d/01_leds
target/linux/bmips/bcm6358/base-files/etc/board.d/02_network
target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts [new file with mode: 0644]
target/linux/bmips/image/Makefile
target/linux/bmips/image/bcm6358.mk

index 270a6d4bd113530240b10e7417db424064da9bf9..feb72290e8fcb57f56a2536ddf778703b6701c09 100644 (file)
@@ -7,7 +7,8 @@ board_config_update
 
 case "$(board_name)" in
 huawei,hg556a-a |\
-huawei,hg556a-b)
+huawei,hg556a-b |\
+huawei,hg556a-c)
        ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "lan1"
        ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "lan2"
        ucidef_set_led_netdev "lan3" "LAN3" "green:lan3" "lan3"
index 79b3c6451bc26f1a9b60105d35b104b62f0bc1ee..35d784df617c79c9391e846b34b492ac6dec38f8 100644 (file)
@@ -6,7 +6,8 @@ board_config_update
 
 case "$(board_name)" in
 huawei,hg556a-a |\
-huawei,hg556a-b)
+huawei,hg556a-b |\
+huawei,hg556a-c)
        ucidef_set_bridge_device switch
        ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
        ;;
diff --git a/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts b/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts
new file mode 100644 (file)
index 0000000..2c948da
--- /dev/null
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "bcm6358-huawei-hg556a.dtsi"
+
+/ {
+       model = "Huawei EchoLife HG556a (version C)";
+       compatible = "huawei,hg556a-c", "brcm,bcm6358";
+};
+
+&gpio_keys {
+       help {
+               label = "help";
+               gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+               linux,code = <KEY_HELP>;
+               debounce-interval = <60>;
+       };
+};
+
+&gpio_leds {
+       led-0 {
+               label = "green:lan1";
+               gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+       };
+
+       led-1 {
+               label = "green:lan2";
+               gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+       };
+
+       led-12 {
+               label = "red:message";
+               gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+       };
+
+       led-15 {
+               label = "red:hspa";
+               gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+       };
+};
+
+&pci {
+       status = "okay";
+
+       wifi@1,0 {
+               compatible = "pci0,0";
+               reg = <0x0800 0 0 0 0>;
+
+               ralink,mtd-eeprom = <&cal_data 0x1fe00>;
+
+               nvmem-cells = <&macaddr_cfe_6a0 1>;
+               nvmem-cell-names = "mac-address";
+       };
+};
index 95cf35bb524cf78fc8414cd9af3a98dc459f98c8..7075fb72d3615a0902008e5a7e81a6d3e7ad7049 100644 (file)
@@ -366,6 +366,7 @@ endef
 ### Package helpers ###
 ATH9K_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls
 B43_PACKAGES := kmod-b43 wpad-basic-mbedtls
+RT28_PACKAGES := kmod-rt2800-pci wpad-basic-mbedtls
 USB1_PACKAGES := kmod-usb-ohci kmod-usb-ledtrig-usbport
 USB2_PACKAGES := $(USB1_PACKAGES) kmod-usb2
 
index 57b2b18590c985749273ff18bf9b80c61f85467a..1c7caae966a31589648761dbc942bb4a82f77d33 100644 (file)
@@ -27,3 +27,17 @@ define Device/huawei_hg556a-b
     kmod-leds-gpio
 endef
 TARGET_DEVICES += huawei_hg556a-b
+
+define Device/huawei_hg556a-c
+  $(Device/bcm63xx-cfe-legacy)
+  DEVICE_VENDOR := Huawei
+  DEVICE_MODEL := EchoLife HG556a
+  DEVICE_VARIANT := C
+  CHIP_ID := 6358
+  CFE_BOARD_ID := HW556
+  CFE_EXTRAS += --rsa-signature "EchoLife_HG556a" --tag-version 8
+  BLOCKSIZE := 0x20000
+  DEVICE_PACKAGES += $(USB2_PACKAGES) $(RT28_PACKAGES) \
+    kmod-leds-gpio
+endef
+TARGET_DEVICES += huawei_hg556a-c