Commit Graph

72 Commits

Author SHA1 Message Date
Koen Vandeputte
2463ef37d3
ar71xx: mikrotik: rb91x: fix 10M ethernet link speed
Extensive testing on the board showed that ethernet does
not work when forced to 10Mbps.

Trial-and-error revealed that the correct PLL value
should be altered to 0x00001313 (iso 0x00001616)

The change is done for this specific board only as I do not have
other boards using this specific SoC.

The board now works correctly in 1000, 100 and 10 Mode

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(cherry picked from commit 5e8b9624f1791d193e8d5e007ce4c873454f014a)
2021-11-09 21:23:30 +08:00
thedukesd
d1f2257d3b
ar71xx: disable pdata->use_flow_control for AR7240
Flow control is causing the AR7240 switch to hang.
Fixes: FS#3054

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 02:08:39 +08:00
AmadeusGhost
f39e4b370b ar71xx: add support for Lute ZK400
Hardware Highlights:
- SoC: Qualcomm Atheros AR9531 (650MHz)
- RAM: 128 MB
- Flash: 16 MB SPI NOR
- Ethernet: 10/100: 1x WAN, 4x LAN
- Wireless: QCA9531 2.4GHz (bgn)
- Button: 1x reset button
- LED: SYS, WAN, Wireless, LAN 1~4

Installation:
 Configure PC with static IP 192.168.1.x, connect PC with one of RJ45
 ports, press the reset button and power up device. Open 192.168.1.1
 address in your browser and upload sysupgrade image.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2020-11-01 11:50:37 +08:00
Thibaut VARÈNE
ad8c4d3e8d
ar71xx: mikrotik: bypass id check in __rb_get_wlan_data()
The id parameter in __rb_get_wlan_data() was incorrectly used on the
assumption that id "0" would always be tied to ath9k with RLE encoding
and positive id (in fact, only id "1" was valid) would always be tied to
("external") ath10k with LZO encoding.

Newer hardware revisions of supported devices prove this assumption to
be invalid, with ath9k caldata being now wrapped in MAGIC_ERD and LZO
compressed, so disable this check to allow newer hardware to correctly
decode caldata for ath9k.

Note: this patch assumes that ath9k caldata is never stored with the new
"LZOR" encoding scheme found on some ath10k devices.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(cherry picked from commit 1c6990fe6d)
[keep publishing ath10k caldata in sysfs: it's the way it's done on 18.06]
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Tested-by: Baptiste Jonglez <git@bitsofnetworks.org> [Mikrotik RB941-2nD r3]
2020-10-23 17:47:04 +08:00
Christoph Krapp
53f3c8819f
ar71xx: fix ZyXEL NBG6616 wifi switch
The device uses a rf-kill switch instead of a button. Furthermore the
GPIO is active high.

Signed-off-by: Christoph Krapp <achterin@googlemail.com>
(cherry picked from commit 0af656e978)
2020-08-11 18:06:32 +08:00
Sungbo Eo
73056522d3
ar71xx: enable ethernet LED of Arduino Yun
Commit 05d73a2a73 enabled GPIO on ethernet LED, but proper LED setup was
not added then. This commit fixes it by reverting the change on the LED.

Fixes: 05d73a2a73 ("ar71xx: Arduino Yun board 'WLAN RST' button support")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-08-03 00:39:49 +08:00
Hauke Mehrtens
9b81b45b2f ar71xx: Fix mikrotik NAND compile problem
This Fixes the folowing compile error:
drivers/mtd/nand/rb91x_nand.c: In function 'rb91x_nand_remove':
drivers/mtd/nand/rb91x_nand.c:445:16: error: 'rbni' undeclared (first use in this function)
  nand_release(&rbni->chip);

Fixes: ce958dd88a ("kernel: Update kernel 4.14 to version 4.14.187")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-07-08 12:03:10 +08:00
Hauke Mehrtens
f450b99ba6
ar71xx: Fix mikrotik NAND compile problem
There is one closing bracket too much.

Fixes: ce958dd88a ("kernel: Update kernel 4.14 to version 4.14.187")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-07-06 12:18:20 +08:00
Hauke Mehrtens
0287f7cc12 kernel: Update kernel 4.14 to version 4.14.187
Fixes:
- CVE-2020-10757

The "mtd: rawnand: Pass a nand_chip object to nand_release()" commit was
backported which needed some adaptations to other code.

Build tested: ramips

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-07-05 11:53:32 +08:00
David Bauer
3954894141 ar71xx: correct button type for TL-MR3020 mode slider
The TP-Link TL-MR3020 has a three-state mode slider which was previously
integrated as a button (EV_KEY). This led to spurious activations of
failsafe mode.

Set the type for the button to switch (EV_SW), to avoid unintended
activations of failsafe mode.

Related: commit 27f3f493de ("gpio-button-hotplug: unify polled and
interrupt code")

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-06-01 12:04:37 +08:00
Lech Perczak
de4bff44f0 ar71xx: fix reset key for TP-Link TL-WR802N V1/V2
During porting support for this router to ath79 target
it was discovered that GPIO mapping was incorrect (GPIO11 active high).
Correct mapping for both V1 and V2 is GPIO12 active low.

Default configuration from GPL source for V2 explicitly states this, and
this was confirmed experimentally on ath79 by looking on
/sys/kernel/debug/gpio. Correctness of this was also validated for V1 by
cross-flashing vendor firmware for V1 on V2 hardware, in which reset
button also worked.

Fix it.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
[slightly adjust commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-01 12:03:28 +08:00
CN_SZTL
248c551d79
Merge Lean's source 2020-05-26 19:35:35 +08:00
AmadeusGhost
e54db866ab
ar71xx: wdr8500: fix build on 4.14 (#4668) 2020-05-25 19:28:22 +08:00
AmadeusGhost
142f9724da Merge Lean's source 2020-05-21 12:25:08 +08:00
AmadeusGhost
1457fa8e97
ar71xx: add support for TP-LINK TL-WDR8500 v1 (#4615)
This commit add support for the TP-LINK TL-WDR8500 v1

SOC:	Qualcomm QCA9563 775MHz
RAM:    128MB M14D1G1664A-2.5B DDR2
FLASH:  8MB Winbond 25Q64FVSIG
WLAN1:  QCA9563 2.4GHz 802.11b/g/n 3x3
WLAN2:  QCA9984 5GHz 802.11 n/ac 4x4
Ethernet: 5 x 1000Mbps (1wan, 4lan)

Installation via breed:
Flash into breed-qca956x-uart_rx18_tx22-reset1.bin,
and then edit the environment variables:
  Field: autoboot.command
  Value: boot mem 0x9f020200

From https://www.right.com.cn/forum/thread-328619-1-1.html

Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-05-20 10:00:51 +08:00
CN_SZTL
1bb6d308a1
Merge Lean' source 2020-03-10 00:50:35 +08:00
Aes64X
af3c61718c
Update mach-hiveap-121.c (#3693)
照抄官方主线,用于修复AeroHive AP-121 千兆有线丢包问题,在我的设备上测试通过。估计很少人用这玩意。
2020-03-10 00:34:13 +08:00
David Bauer
efc8da5296 ar71xx: correct AVM FRITZ Repeater 450E WPS button flag
The AVM FRITZ!WLAN Repeater 450E's WPS button is not active low.

Correct the active low flag to avoid unintenional activation of
failsafe mode on boot.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 1d4f2ca610)
2020-03-08 12:10:18 +08:00
CN_SZTL
d4152cbf8e
Merge Lean's source 2020-02-24 21:45:27 +08:00
haxc
3cde517a11
ath79: add support for TP-Link TL-WR882N/WR885N/WR886N (#3307)
* ath79: add support for TP-Link TL-WR882N/WR885N/WR886N

This adds support for the various clones of the TL-WR885N recently
supported  ("ath79: add support for TP-Link TL-WR885N v1"):

- tplink,tl-wr882n-v1
- tplink,tl-wr882n-v2
- tplink,tl-wr882n-v3
- tplink,tl-wr885n-v1
- tplink,tl-wr885n-v2
- tplink,tl-wr886n-v2
- tplink,tl-wr886n-v3
- tplink,tl-wr886n-v4
- tplink,tl-wr886n-v5
- tplink,tl-wr886n-v6
- tplink,tl-wr886n-v7

These devices are cloned in ar71xx. All models added in this patch are the same hardware CPU

WR885n V2 was tested.

Specifications:
- SOC: Qualcomm Atheros TP9343-AL3A
- CPU: 750MHz
- Flash: 2 MiB (AH1446 25Q16BS1G E5N102)
- RAM: 16 MiB (Zentel A3S28D40JTP-50)
- WLAN: Qualcomm Atheros TP9343 450Mbps
- Ethernet: Atheros AR8228/AR8229  4 port (100M)

添加TP9343芯片的路由器型号支持,TL-WR882N/WR885N/WR886N系列

* ath79: add support for MerCury MW4530R v1

重新添加水星MW4530R路由器支持
2020-02-24 21:31:36 +08:00
CN_SZTL
f752f2c1c8
Merge Lean's source 2020-01-18 22:24:34 +08:00
LEAN-ESX
77ab08c20c ar71xx: switch kernel to 4.14 2020-01-17 10:38:17 -08:00
CN_SZTL
ba512e29ce
fix permission 2019-09-30 13:42:16 +08:00
CN_SZTL
69acbbfc9e
update target 2019-08-19 22:26:19 +08:00
CN_SZTL
bd7b7d5257
sync source
sync source
2019-06-30 14:41:32 +08:00
huah0235
59f2142543 add wdr6500v6 support (#1421) 2019-06-28 23:34:11 +08:00
CN_SZTL
ce8ed9121b
add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
coolsnowwolf
c3bb5f072f ar71xx: add SGR-W500-N85b v2.0 and TL-WDR3227 v2(ar934x+ar8035) support 2019-04-18 12:53:34 +08:00
coolsnowwolf
4482d1997f ar71xx: fix ARRIS SBR-AC1750 web upgrade support 2019-02-14 01:29:51 +08:00
coolsnowwolf
83bafa8ab0 fix sbr-ac1750 MAC address and 5G 2019-01-16 12:30:37 +08:00
coolsnowwolf
4c8a7bbb35 ar71xx: add support for sbr-ac1750 board from Mleaf 2019-01-14 17:29:32 +08:00
coolsnowwolf
f36dc71bf0 Revert "ar71xx: add ARRIS SBR-AC1750 router support"
This reverts commit 0eb7df2503.
2019-01-14 17:27:10 +08:00
coolsnowwolf
0eb7df2503 ar71xx: add ARRIS SBR-AC1750 router support 2019-01-13 22:21:41 +08:00
coolsnowwolf
d24aebd9c6 move k2t support in ar71xx 2019-01-02 21:13:56 +08:00
imbrolla
ccf0551555 add TP-LINK TL-880n v1 881n v1 2041n v1 2041n v2 (#651)
* Update mach-tl-wr941n-v7.c

* Update config-4.14

* Update config-4.9

* Update config-default

* Update 01_leds

* Update 02_network

* Update 01_leds

* Update diag.sh

* Update platform.sh

* Update ar71xx.sh

* Update config-4.9

* Update config-4.9

* Update config-4.14

* Update config-default

* Update config-default

* Update tiny-tp-link.mk

* Update generic-tp-link.mk

* Update 02_network

* Update mach-tl-wr941n-v7.c

* Update mach-tl-wr941n-v7.c
2018-10-12 22:23:12 +08:00
imbrolla
9750963375 Update mach-tl-wr941n-v7.c (#609) 2018-10-06 18:58:30 +08:00
coolsnowwolf
e7a048f438
Merge pull request #537 from mcucore/master
add TP-Link WR941N V7 support
2018-09-27 13:04:09 +08:00
coolsnowwolf
bd6c225de4 add bridge support for IPSEC vpn 2018-09-24 01:14:25 +08:00
McuCore
b4068d7818 add TP-Link WR941N V7 support 2018-09-09 22:07:31 +08:00
coolsnowwolf
2ca861b5a9 add kernel 4.14 support for ar71xx 2018-09-08 16:01:41 +08:00
coolsnowwolf
9ba04fd0d7 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
coolsnowwolf
bce04f5924 switch ar71xx to kernel 4.14 (including K2T 2018-06-13 10:39:07 +08:00
coolsnowwolf
ad21a419df fix Phicomm K2T A3 board support 2018-06-10 14:45:46 +08:00
coolsnowwolf
975b876d5e fix K2T GMAC0 connect to SMGII interface 2018-06-10 02:22:54 +08:00
coolsnowwolf
2a7f01e48f fix K2T switch settings mach 2018-06-08 12:38:36 +08:00
coolsnowwolf
118cd55d51 fix K2T mac address 2018-06-08 12:19:33 +08:00
coolsnowwolf
91f28ecb47 add Phicomm K2T support 2018-06-08 11:41:48 +08:00
coolsnowwolf
690fdd1db8 add TP 941N v7 machtypes.h 2018-05-23 16:56:41 +08:00
coolsnowwolf
4785e975b2 add 941Nv7 Kconfig 2018-05-22 19:23:01 +08:00
coolsnowwolf
e3aadb1ec1 re-add TP-link 941N v7 and update Samba4 po 2018-05-21 14:29:37 +08:00