--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "vr9_avm_fritz5490.dtsi"
+
+/ {
+ compatible = "avm,fritz5490-micron", "lantiq,xway", "lantiq,vr9";
+ model = "AVM FRITZ!Box 5490/5491 (Micron NAND)";
+};
+
+&nand1 {
+ nand-ecc-engine = <&nand1>;
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "vr9_avm_fritz5490.dtsi"
+
+/ {
+ compatible = "avm,fritz5490", "lantiq,xway", "lantiq,vr9";
+ model = "AVM FRITZ!Box 5490/5491";
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "vr9_avm_fritzxx90.dtsi"
+
+/ {
+ compatible = "avm,fritz5490", "lantiq,xway", "lantiq,vr9";
+ model = "AVM FRITZ!Box 5490/5491";
+};
+
+&aliases {
+ led-dsl = &led_info_green;
+ led-internet = &led_internet;
+ led-wifi = &led_wifi;
+};
+
+&leds {
+ led_fiber: fiber {
+ label = "green:fiber";
+ gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
+ };
+
+ led_wifi: wifi {
+ label = "green:wlan";
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+ };
+
+ led_internet: internet {
+ label = "green:internet";
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
+ };
+};
+
+&gswip_mdio {
+ phy5: ethernet-phy@5 {
+ reg = <0x05>;
+ };
+
+ phy6: ethernet-phy@6 {
+ reg = <0x06>;
+ reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
+ };
+
+ phy9: ethernet-phy@9 {
+ reg = <0x09>;
+ };
+};
+
+&gswip_ports {
+ port@0 {
+ reg = <0>;
+ label = "wan";
+ phy-mode = "rgmii";
+ phy-handle = <&phy6>;
+ };
+
+ port@2 {
+ reg = <2>;
+ label = "lan2";
+ phy-mode = "internal";
+ phy-handle = <&phy5>;
+ };
+
+ port@4 {
+ reg = <4>;
+ label = "lan1";
+ phy-mode = "internal";
+ phy-handle = <&phy9>;
+ };
+};
endef
TARGET_DEVICES += avm_fritz3390
+define Device/avm_fritz5490
+ $(Device/dsa-migration)
+ $(Device/AVM)
+ $(Device/NAND)
+ DEVICE_MODEL := FRITZ!Box 5490
+ DEVICE_ALT0_VENDOR := AVM
+ DEVICE_ALT0_MODEL := FRITZ!Box 5491
+ DEVICE_VARIANT := Other NAND
+ KERNEL_SIZE := 4096k
+ IMAGE_SIZE := 49152k
+ DEVICE_PACKAGES := kmod-usb3 fritz-tffs \
+ -ltq-vdsl-vr9-vectoring-fw-installer -kmod-ltq-vdsl-vr9-mei \
+ -kmod-ltq-vdsl-vr9 -kmod-ltq-atm-vr9 -kmod-ltq-ptm-vr9 \
+ -ltq-vdsl-vr9-app -kmod-owl-loader \
+ -dsl-vrx200-firmware-xdsl-a -dsl-vrx200-firmware-xdsl-b-patch
+endef
+TARGET_DEVICES += avm_fritz5490
+
+define Device/avm_fritz5490-micron
+ $(Device/dsa-migration)
+ $(Device/AVM)
+ $(Device/NAND)
+ DEVICE_MODEL := FRITZ!Box 5490
+ DEVICE_ALT0_VENDOR := AVM
+ DEVICE_ALT0_MODEL := FRITZ!Box 5491
+ DEVICE_VARIANT := Micron NAND
+ KERNEL_SIZE := 4096k
+ IMAGE_SIZE := 49152k
+ DEVICE_PACKAGES := kmod-usb3 fritz-tffs \
+ -ltq-vdsl-vr9-vectoring-fw-installer -kmod-ltq-vdsl-vr9-mei \
+ -kmod-ltq-vdsl-vr9 -kmod-ltq-atm-vr9 -kmod-ltq-ptm-vr9 \
+ -ltq-vdsl-vr9-app -kmod-owl-loader \
+ -dsl-vrx200-firmware-xdsl-a -dsl-vrx200-firmware-xdsl-b-patch
+endef
+TARGET_DEVICES += avm_fritz5490-micron
+
define Device/avm_fritz7360sl
$(Device/dsa-migration)
$(Device/AVM)
avm,fritz3370-rev2-hynix|\
avm,fritz3370-rev2-micron|\
avm,fritz3390|\
+avm,fritz5490|\
+avm,fritz5490-micron|\
avm,fritz7490|\
avm,fritz7490-micron)
ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x17"
arcadyan,arv7519rw22)
ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5"
;;
+ avm,fritz5490|\
+ avm,fritz5490-micron)
+ ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
+ ;;
arcadyan,vgv7510kw22-brn|\
arcadyan,vgv7510kw22-nor|\
arcadyan,vgv7519-brn|\
wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 0xa91)" 1)
;;
avm,fritz3390|\
+ avm,fritz5490|\
+ avm,fritz5490-micron|\
avm,fritz7362sl|\
avm,fritz7490|\
avm,fritz7490-micron)
avm,fritz3370-rev2-hynix|\
avm,fritz3370-rev2-micron|\
avm,fritz3390|\
+ avm,fritz5490|\
+ avm,fritz5490-micron|\
avm,fritz7362sl|\
avm,fritz7412|\
avm,fritz7430|\