diff options
Diffstat (limited to 'target/linux')
8 files changed, 168 insertions, 69 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 5e06da0d12..c3fa7f6a61 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -180,7 +180,9 @@ tplink,tl-wa730re-v1|\ tplink,tl-wa801nd-v1|\ tplink,tl-wa830re-v1|\ tplink,tl-wa860re-v1|\ -tplink,tl-wa901nd-v1) +tplink,tl-wa901nd-v1|\ +tplink,tl-wa901nd-v4|\ +tplink,tl-wa901nd-v5) ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; tplink,tl-mr3420-v2|\ diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 85516413ca..9b9bc8a7fc 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -39,6 +39,8 @@ ath79_setup_interfaces() tplink,tl-wa860re-v1|\ tplink,tl-wa901nd-v1|\ tplink,tl-wa901nd-v2|\ + tplink,tl-wa901nd-v4|\ + tplink,tl-wa901nd-v5|\ tplink,tl-wr703n|\ ubnt,bullet-m|\ ubnt,bullet-m-xw|\ diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v4.dts b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v4.dts new file mode 100644 index 0000000000..69080feb2f --- /dev/null +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v4.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "tp9343_tplink_tl-wa901nd.dtsi" + +/ { + compatible = "tplink,tl-wa901nd-v4", "qca,tp9343"; + model = "TP-Link TL-WA901ND v4"; +}; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v5.dts b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v5.dts new file mode 100644 index 0000000000..7d9e8e8f6c --- /dev/null +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v5.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "tp9343_tplink_tl-wa901nd.dtsi" + +/ { + compatible = "tplink,tl-wa901nd-v5", "qca,tp9343"; + model = "TP-Link TL-WA901ND v5"; +}; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd.dtsi new file mode 100644 index 0000000000..992c14842b --- /dev/null +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wa901nd.dtsi @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "tp9343_tplink_tl-wx.dtsi" + +/ { + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "Reset button"; + linux,code = <KEY_RESTART>; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "tp-link:green:system"; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + qss { + label = "tp-link:green:qss"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "tp-link:green:lan"; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tp-link:green:wlan"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + }; +}; + +ð1 { + compatible = "syscon", "simple-mfd"; +}; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr94x.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wr94x.dtsi index a31508e84b..728d25640e 100644 --- a/target/linux/ath79/dts/tp9343_tplink_tl-wr94x.dtsi +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr94x.dtsi @@ -1,16 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; -#include <dt-bindings/gpio/gpio.h> -#include <dt-bindings/input/input.h> - -#include "qca956x.dtsi" +#include "tp9343_tplink_tl-wx.dtsi" / { - chosen { - bootargs = "console=ttyS0,115200n8"; - }; - keys { compatible = "gpio-keys"; @@ -27,63 +20,3 @@ }; }; }; - -&spi { - status = "okay"; - num-cs = <1>; - - 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 { - label = "u-boot"; - reg = <0x000000 0x020000>; - read-only; - }; - - partition@20000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x020000 0x3d0000>; - }; - - art: partition@3f0000 { - label = "art"; - reg = <0x3f0000 0x010000>; - read-only; - }; - }; - }; -}; - -&uart { - status = "okay"; -}; - -ð0 { - status = "okay"; - - phy-mode = "mii"; - phy-handle = <&swphy4>; - - mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; -}; - -ð1 { - status = "okay"; -}; - -&wmac { - status = "okay"; - - mtd-cal-data = <&art 0x1000>; - mtd-mac-address = <&uboot 0x1fc00>; -}; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi new file mode 100644 index 0000000000..c497860f11 --- /dev/null +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +#include "qca956x.dtsi" + +/ { + chosen { + bootargs = "console=ttyS0,115200n8"; + }; +}; + +&spi { + status = "okay"; + + num-cs = <1>; + + 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 { + label = "u-boot"; + reg = <0x000000 0x020000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x020000 0x3d0000>; + }; + + art: partition@3f0000 { + label = "art"; + reg = <0x3f0000 0x010000>; + read-only; + }; + }; + }; +}; + +&uart { + status = "okay"; +}; + +ð0 { + status = "okay"; + + phy-handle = <&swphy4>; + + mtd-mac-address = <&uboot 0x1fc00>; + mtd-mac-address-increment = <1>; +}; + +ð1 { + status = "okay"; +}; + +&wmac { + status = "okay"; + + mtd-cal-data = <&art 0x1000>; + mtd-mac-address = <&uboot 0x1fc00>; +}; diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index 5ee88a1831..2d85143fa3 100644 --- a/target/linux/ath79/image/tiny-tp-link.mk +++ b/target/linux/ath79/image/tiny-tp-link.mk @@ -134,6 +134,26 @@ define Device/tplink_tl-wa901nd-v2 endef TARGET_DEVICES += tplink_tl-wa901nd-v2 +define Device/tplink_tl-wa901nd-v4 + $(Device/tplink-4mlzma) + ATH_SOC := tp9343 + DEVICE_TITLE := TP-Link TL-WA901ND v4 + TPLINK_HWID := 0x09010004 + SUPPORTED_DEVICES += tl-wa901nd-v4 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tplink_tl-wa901nd-v4 + +define Device/tplink_tl-wa901nd-v5 + $(Device/tplink-4mlzma) + ATH_SOC := tp9343 + DEVICE_TITLE := TP-Link TL-WA901ND v5 + TPLINK_HWID := 0x09010005 + SUPPORTED_DEVICES += tl-wa901nd-v5 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tplink_tl-wa901nd-v5 + define Device/tplink_tl-wr703n $(Device/tplink-4mlzma) ATH_SOC := ar9331 |