Openwrt/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
Adrian Schmutzler c02b9818a5 ath79: add support for TP9343-based TP-Link TL-WR94x devices
This adds support for several TP-Link devices based on TP9343
("a QCA9561 without PCIe and USB"):
- TL-WR940N v3
- TL-WR940N v4
- TL-WR941ND v6

The devices are only different concerning LEDs and MAC address
assignment.

All TL-WR940 are with non-detachable antennas (N), all
TL-WR941 devices are with detachable antennas (ND).

Specification:
- 750 MHz CPU
- 32 MB of RAM
- 4 MB of FLASH
- 2.4 GHz WiFi
- 4x 10/100 Mbps Ethernet

Flash instruction (WebUI):
Download *-factory.bin image and upload it via the firmwary upgrade
function of the stock firmware WebUI.

Flash instruction (TFTP):
1. Set PC to fixed ip address 192.168.0.66
2. Download *-factory.bin image and rename it to * (see below)
3. Start a tftp server with the image file in its root directory
4. Turn off the router
5. Press and hold Reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time
the firmware should be transferred from the tftp server
8. Wait ~30 second to complete recovery.

* TFTP image names:
940 v3: wr941ndv6_tp_recovery.bin
940 v4: wr940nv4_tp_recovery.bin
941 v6: wr941ndv6_tp_recovery.bin

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-08-05 21:50:15 +02:00

70 lines
1.2 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "tp9343_tplink_tl-wr94x.dtsi"
/ {
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
};
leds {
compatible = "gpio-leds";
system: system {
label = "tp-link:blue:system";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "on";
};
qss {
label = "tp-link:blue:qss";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
wlan {
label = "tp-link:blue:wlan";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wan_blue {
label = "tp-link:blue:wan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wan_red {
label = "tp-link:red:wan";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
lan1 {
label = "tp-link:blue:lan1";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "tp-link:blue:lan2";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "tp-link:blue:lan3";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "tp-link:blue:lan4";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
};
};
&eth1 {
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};