diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-20 12:01:14 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-08-07 18:04:03 +0200 |
commit | 08857e69becc214336ba073bca6f626bfaa67781 (patch) | |
tree | af098ae63130c0a926573480e66db02abfe07c27 /target/linux/ath79/dts | |
parent | 198eae28623e9e422fe3b52ac53632fab980a561 (diff) | |
download | upstream-08857e69becc214336ba073bca6f626bfaa67781.tar.gz upstream-08857e69becc214336ba073bca6f626bfaa67781.tar.bz2 upstream-08857e69becc214336ba073bca6f626bfaa67781.zip |
ath79: add support for TP-Link CPE210 v1
Specifications:
* SoC: Qualcomm Atheros AR9344 (560 MHz)
* RAM: 64MB
* Storage: 8 MB
* Wireless: 2.4GHz N based built into SoC 2x2
* Ethernet: 2x 100/10 Mbps, integrated into SoC, 24V POE IN
Installation:
Flash factory image through stock firmware WEB UI
or through TFTP:
To get to TFTP recovery just hold reset button while powering on for
around 4-5 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts | 9 | ||||
-rw-r--r-- | target/linux/ath79/dts/ar9344_tplink_cpexxx-v1.dtsi | 83 |
2 files changed, 92 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts b/target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts new file mode 100644 index 0000000000..1a107c23ef --- /dev/null +++ b/target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar9344_tplink_cpexxx-v1.dtsi" + +/ { + compatible = "tplink,cpe210-v1", "qca,ar9344"; + model = "TP-Link CPE210 v1"; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_cpexxx-v1.dtsi b/target/linux/ath79/dts/ar9344_tplink_cpexxx-v1.dtsi new file mode 100644 index 0000000000..81802f3b5b --- /dev/null +++ b/target/linux/ath79/dts/ar9344_tplink_cpexxx-v1.dtsi @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar9344_tplink_cpexxx.dtsi" + +/ { + aliases { + led-boot = &system; + led-failsafe = &system; + led-running = &system; + led-upgrade = &system; + }; + + leds { + compatible = "gpio-leds"; + + lan0 { + label = "tp-link:green:lan0"; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + }; + + lan1 { + label = "tp-link:green:lan1"; + gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + }; + + link1 { + label = "tp-link:green:link1"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + link2 { + label = "tp-link:green:link2"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + }; + + link3 { + label = "tp-link:green:link3"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + system: link4 { + label = "tp-link:green:link4"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio { + gpio_ext_lna0 { + gpio-hog; + gpios = <18 0>; + output-high; + line-name = "tp-link:ext:lna0"; + }; + + gpio_ext_lna1 { + gpio-hog; + gpios = <19 0>; + output-high; + line-name = "tp-link:ext:lna1"; + }; +}; + +ð1 { + status = "okay"; + + mtd-mac-address = <&info 0x8>; + + gmac-config { + device = <&gmac>; + switch-phy-swap = <0>; + switch-only-mode = <1>; + }; +}; + +ð0 { + status = "okay"; + + phy-handle = <&swphy4>; + + mtd-mac-address = <&info 0x8>; +}; |