--- /dev/null
+#include "ar7240_tplink_tl-wr.dtsi"
+
+/ {
+ model = "TP-Link TL-WR741N/ND v1/v2 8Mb custom board";
+ compatible = "tplink,tl-wr741-v1-8m", "qca,ar7240";
+};
+
+/delete-node/ &art;
+
+&spi {
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <25000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ uboot: partition@0 {
+ reg = <0x0 0x20000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@20000 {
+ reg = <0x20000 0x7d0000>;
+ label = "firmware";
+ compatible = "tplink,firmware";
+ };
+
+ art: partition@7f0000 {
+ reg = <0x7f0000 0x10000>;
+ label = "art";
+ read-only;
+ };
+ };
+ };
+};
tplink,tl-wpa8630-v1)
ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
;;
+tplink,tl-wr741-v1-8m)
+ ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
+ ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x02"
+ ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04"
+ ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x08"
+ ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x10"
+ ;;
tplink,tl-wr841hp-v2|\
tplink,tl-wr842n-v2)
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
ucidef_add_switch "switch0" \
"0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
;;
+ tplink,tl-wr741-v1-8m)
+ ucidef_set_interface_wan "eth0"
+ ucidef_add_switch "switch0" \
+ "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
+ ;;
tplink,tl-wr841hp-v2|\
tplink,tl-wr842n-v2|\
tplink,tl-wr941hp-v1)
;;
netgear,wnr2200-8m|\
netgear,wnr2200-16m|\
+ tplink,tl-wr741-v1-8m|\
tplink,tl-wr842n-v1)
caldata_extract "art" 0x1000 0x3e0
;;
endef
TARGET_DEVICES += tplink_tl-wr710n-v2.1
+define Device/tplink_tl-wr741-v1-8m
+ $(Device/tplink-8m)
+ SOC := ar7240
+ DEVICE_MODEL := TL-WR741N/ND
+ DEVICE_VARIANT := v1/v2 8M
+ TPLINK_HWID := 0x07410001
+ DEVICE_PACKAGES := kmod-owl-loader
+ SUPPORTED_DEVICES += tl-wr741nd
+endef
+TARGET_DEVICES += tplink_tl-wr741-v1-8m
+
define Device/tplink_tl-wr810n-v1
$(Device/tplink-8mlzma)
SOC := qca9531