diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network index b3dbce8542..890c149d30 100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network @@ -30,7 +30,8 @@ mvebu_setup_interfaces() ;; fortinet,fg-50e|\ fortinet,fg-51e|\ - fortinet,fg-52e) + fortinet,fg-52e|\ + fortinet,fwf-50e-2r) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" "eth1 eth2" ;; iij,sa-w2) diff --git a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh index bc39ddcf50..639f08cef6 100755 --- a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh +++ b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh @@ -55,7 +55,8 @@ platform_do_upgrade() { fortinet,fg-30e|\ fortinet,fg-50e|\ fortinet,fg-51e|\ - fortinet,fg-52e) + fortinet,fg-52e|\ + fortinet,fwf-50e-2r) fortinet_do_upgrade "$1" ;; iij,sa-w2) diff --git a/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fwf-50e-2r.dts b/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fwf-50e-2r.dts new file mode 100644 index 0000000000..eee9e6d942 --- /dev/null +++ b/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fwf-50e-2r.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "armada-385-fortinet-fg-5xe.dtsi" + +/ { + model = "Fortinet FortiWiFi 50E-2R"; + compatible = "fortinet,fwf-50e-2r", "marvell,armada385", "marvell,armada380"; +}; + +&pciec { + status = "okay"; +}; + +&pcie1 { + status = "okay"; +}; + +&pcie2 { + status = "okay"; +}; diff --git a/target/linux/mvebu/image/cortexa9.mk b/target/linux/mvebu/image/cortexa9.mk index 00f81dc4fc..5cefdb846a 100644 --- a/target/linux/mvebu/image/cortexa9.mk +++ b/target/linux/mvebu/image/cortexa9.mk @@ -160,6 +160,17 @@ define Device/fortinet_fg-52e endef TARGET_DEVICES += fortinet_fg-52e +define Device/fortinet_fwf-50e-2r + $(Device/fortinet) + DEVICE_MODEL := FortiWiFi 50E-2R + DEVICE_DTS := armada-385-fortinet-fwf-50e-2r + KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \ + gzip-filename FW502R + DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct \ + wpad-basic-mbedtls +endef +TARGET_DEVICES += fortinet_fwf-50e-2r + define Device/globalscale_mirabox $(Device/NAND-512K) DEVICE_VENDOR := Globalscale