Commit Graph

1124 Commits (1558a6bcbf00baffa911c6036a1188b628cdc5b7)

Author SHA1 Message Date
Felix Fietkau 8c6f1412b1 ar71xx: improve ethernet driver cache footprint by removing an unnecessary pointer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43588
10 years ago
John Crispin 3572657c5a ar71xx: dev-eth: replace mdelay calls
Similar to patch 2. Replace further mdelay calls.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 43540
10 years ago
John Crispin 59e7999a44 ag71xx: replace delay with sleep calls
I don't see that we're in an atomic context so there's no need to
busy-wait. Therefore replace the delay with sleep calls.
See also Documentation/timers/timers-howto.txt. It states:
"In general, use of mdelay is discouraged and code should
be refactored to allow for the use of msleep."

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 43539
10 years ago
John Crispin 4caa8d50ad ag71xx: replace fixed PHY reset wait time in ar7240sw_setup
Replace the fixed wait time of 1s with polling for BMCR_RESET
to be cleared on all PHYs.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 43538
10 years ago
Imre Kaloz 974f286261 add D-link DGL-5500 A1 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43401
10 years ago
John Crispin 47ab1cbf23 ar71xx: add support for TP-LINK CPE210/220/510/520
This adds support for the TP-LINK CPE210/220/510/520 (Pharos series). These
devices are very similar to the Ubiquiti NanoStations, but with better specs:
faster CPU, more RAM, 2x2 MIMO.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 43385
10 years ago
Imre Kaloz 15f6f67d18 Netgear R6100 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43382
10 years ago
John Crispin f210f3811a ar71xx: Added support for D-link DHP-1565 rev. A1
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>

SVN-Revision: 43307
10 years ago
John Crispin 6fafcba63b ar71xx: Fix the sys LEDs on the EasyLink M150 and mini
Sets the system LED on the EasyLink M150 and mini to lower-case "easylink"

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 43271
10 years ago
John Crispin bc333d5399 ar71xx: add kernel support for the OpenMesh MR900v2
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 43265
10 years ago
John Crispin 95544f33dd ar71xx: add kernel support for the OpenMesh MR900 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 43258
10 years ago
John Crispin 2c72ffc154 ar71xx: add support for Netgear WNR2000v4
Signed-off-by: Michaël Burtin <mburtin@gmail.com>

SVN-Revision: 43173
10 years ago
Felix Fietkau a1837135e0 ar71xx: add support for buffalo WZR-450HP2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43026
10 years ago
John Crispin 6e46fc8a38 wr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL
This patch changes the code of the Wi-Fi On/Off button on the TP-Link WR1043ND v2
from KEY_WLAN to KEY_RFKILL (and renames a few constants to match). The reason
for this change is, that the KEY_WIFI button code is not recognized by the
hotplug subsystem. This means that the userspace is not notified about the
button being pressed which effectively renders it useless.

Signed-off-by: Josef Gajdusek <atx@atx.name>

SVN-Revision: 42922
10 years ago
John Crispin 99c238ff15 ar71xx: Fix LED definitions for the DRAGINO2 board
This patch fixes LED definitions for the DRAGINO2 board.

1. It renames the Router/USB led to System, as it is now marked "SYS" on the board.
2. It gives control of the LAN and WAN leds and some other GPIOs to Linux.
3. It fixes the active_low property for the LAN and WAN leds.
4. It sets up WLAN, LAN and WAN leds in the UCI defaults.
5. It allows usage of the System led by the diag.sh script, so it will be used to indicate boot and failsafe status.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 42897
10 years ago
John Crispin e2c3c2280c ar71xx: fix reset button gpio for OM2P/OM2P-HS
A typo in the definition for the OM2P reset button disabled its functionality
in OpenWrt. The actual button for these two devices is "1" and not "11".

Signed-off-by: Oren Poleg <oren@poleg.org>
[sven@open-mesh.org: added a commit subject+message]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 42782
10 years ago
John Crispin 7dbbdfb61f ar71xx: add qihoo 360 c301 router support
Qihoo 360 C301 is a dual band wireless router supports 802.11n and 802.11ac.
Its chipset is AR9344 + AR9882 with two 16MB flashes.

This patch adds its initial support.

v2:
* use mtd_get_mac_ascii to fetch MAC address for ath10k.
* use ath79_register_pci to initialize AR9882.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 42552
10 years ago
Felix Fietkau 1961f8cdb7 ar71xx: ack completed tx descriptors only after the full frame has been completed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42457
10 years ago
Felix Fietkau 60b81acd60 ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331
While the AR9331 has a gigabit MAC towards the internal switch, the
integrated PHYs however are only 100-base-tx capable.  The existing code
however advertieses gigabit capability in the link status word.  If you
attach such a PHY to a gigabit capable switch on the remote end, with
some probability it attempts to negotiate gigabit and fails, falling
baco to the AR9331 assuming a 10mbit half-duplex link.  This has been
observed quite frequently with the Carambola2 and gigabit capable
switches.

In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally
for both AR9331 ethernet ports. This is most likely wrong. Despite the
two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a
100base-T PHY via MII. The has_gbit attribute is used in the ethernet
driver to determine the supported link modes.

So either pdata->has_gbit is not set to 1 anymore, or the ethernet
driver needs to be modified to determine the advertised link code word
on another criteria than pdata->has_gbit.  This patch implements the
former solution.

Signed-off-by: Harald Welte <laforge@gnumonks.org>

SVN-Revision: 42432
10 years ago
Felix Fietkau 60eeadd0ba ar71xx: re-enable descriptor splitting on ar716x after the previous bugfixes (#13072)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42429
10 years ago
Felix Fietkau 2da2317fed ar71xx: fix off-by-one error in packet descriptor splitting (patch from #13072)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42428
10 years ago
Felix Fietkau 05dd36a980 ar71xx: on ar716x, split ethernet packets in 512 byte chunks instead of 256 (improves performance) (patch from #13072)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42427
10 years ago
Felix Fietkau 926f000b99 ar71xx: disable ethernet descriptor splitting for now, as it seems to cause tx hangs in some setups
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42333
10 years ago
Felix Fietkau 2c680151e4 ar71xx: split packets into multiple descriptors on ar716x
This improves performance when doing concurrent rx/tx on a single
ethernet MAC, e.g. when routing between VLANs.

Fixes #13072

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42328
10 years ago
John Crispin 67cf439237 ar71xx: use ETH_ALEN for consistency
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 42280
10 years ago
John Crispin e5e1c03354 ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
This sets the MAC address of the WLAN interface to the "official" primary MAC
address (the one on the label under the devices, and the one used with the stock
firmware). The MAC address used so far (primary-1) isn't even used at all with
the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
WAN interface (like OpenWrt does with this patch).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 42193
10 years ago
John Crispin 2c67682192 ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board
The OpenMesh MR600(v1) can only enable the 2.4G WiFi PHY LED through the
mini-PCIe device. Not configuring the LED pin inside the platform data
makes it impossible to configure it through any standard OpenWrt tool.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 42184
10 years ago
Imre Kaloz ecba34a3ee add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 42130
10 years ago
Felix Fietkau e41a0cafff ar71xx: add linux 3.14 support
Signed-off-by: Zhao, Gang <gang.zhao.42@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42038
10 years ago
Felix Fietkau b855faecc0 ar71xx: update Carambola2 platform data
Change list:
 * Remove button info on GPIO12, there is no button there.
 * Remove nvram mtd partition, as it's not used for anything, saves 64k for user data.

Tested building for carambola2 target.

Signed-off-by: Mantas Pucka <mantas@8devices.com>

SVN-Revision: 41993
10 years ago
John Crispin e7ec79821a ar71xx: oolite: the buttons are not active_low
this caused factory resets when reboot was pressed

Signed-off-by: Brent Thomson <brentthomson@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41932
10 years ago
Imre Kaloz dc628f2e08 add support for the archer c5
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 41814
10 years ago
John Crispin a440524f85 ar71xx: Fix GL.iNet WLAN LED
LED script expects WLAN LED to be "gl-connect:red:wlan".

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 41793
10 years ago
John Crispin eae9b2541a ar71xx: split wndr4300 and wndr3700v4 into 2 seperate mips machines
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41788
10 years ago
John Crispin f424994cbc ar71xx: add kernel support for the OpenMesh OM5P board
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 41769
10 years ago
Gabor Juhos aff3127956 ar71xx: add kernel support for the EnGenius EAP300 v2 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41658
10 years ago
Gabor Juhos 51c892053a ar71xx: add kernel support for the Tube2H board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41649
10 years ago
Gabor Juhos 907bd5345e ar71xx: fix ALFA NETWORK's name
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41643
10 years ago
Gabor Juhos 0bec90b830 ar71xx: add kernel support for the EnGenius ESR900
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5714/
[juhosg:
  - drop nvram.c modifications,
  - create a separate kernel patch,
  - use ath79_setup_qca955x_eth_cfg helper,
  - merge esr900_{010,common}_setup functions,
  - statically init AR8327 pad configurations,
  - use pr_err instead of printk]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41640
10 years ago
Gabor Juhos 26b39cc580 ar71xx: use ath79_setup_qca955x_eth_cfg helper for QCA955x based boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41627
10 years ago
Gabor Juhos 16d45d5531 ar71xx: add kernel support for EnGenius ESR1750
Signed-off-by: Jon Suphammer <jon@suphammer.net>
Patchwork: http://patchwork.openwrt.org/patch/5840/
[juhosg:
  - fix coding style in mach-esr1750.c,
  - rename and refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41624
10 years ago
Gabor Juhos ee3dfafaf1 ar71xx: add a helper function for setting up ETH_CFG register on QCA955x
Signed-off-by: Jon Suphammer <jon@suphammer.net>
Patchwork: http://patchwork.openwrt.org/patch/5839/
[juhosg: fix coding style]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41623
10 years ago
Gabor Juhos a46c7d055c ar71xx: allow ath79_nvram_parse_mac_addr parsing mac with quotes
Signed-off-by: Jon Suphammer <jon@suphammer.net>
Patchwork: http://patchwork.openwrt.org/patch/5838/
[juhosg:
  - fix coding style,
  - check the first and the last character of the MAC string
    instead of using the strchr() function]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41622
10 years ago
Gabor Juhos 9801351c84 ar71xx: add kernel support for GL-Inet V1 boards/routers
The GL-Connect GL.iNet v1 router is basically a TP-Link TL-WR703N with
more DRAM/Flash, 2x Ethernet ports and console/GPIO header in the same
small form-factor:
<http://www.gl-inet.com/w/?lang=en>

Moreover, the manufacturer is promoting the OpenWrt usage to replace
the original firmware and proposing patches against both AA and trunk:
<http://www.gl-inet.com/w/?p=398&lang=en>

This is a clean up of the original manufacturer GPLv2 patch by alzhao,
proposed to the list by Mark Janssen.

Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
Signed-off-by: Mark Janssen <mark@sig-io.nl>
Signed-off-by: alzhao <alzhao@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5273/
[juhosg:
  - remove user-space and image generation support, will be included
    from other patches,
  - fix coding style and drop superfluous comment in mach-gl-inet.c,
  - rename and refresh kernel patch,
  - adjust subject]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41618
10 years ago
John Crispin 9e26031a88 ar71xx: add support for TP-LINK TL-WA860RE v1
New router/repeater from TP-LINK

- CPU: Atheros AR9341-DL3A (AP123)
- Flash: 4MB
- Ram: 32MB

Similar to TL-WA850RE.

Changes: rename file after r41596

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 41598
10 years ago
John Crispin 42a37b2a89 ar71xx: added support for TL-WA830RE V2
Corrected patch ath79 insted of auth79. Sorry.

Signed-off-by: Fredrik Jonson <fredrik@famjonson.se>

SVN-Revision: 41596
10 years ago
John Crispin 3519322e62 ar71xx: Add support for MikroTik RouterBOARD SXT Lite
This patch adds support for the MikroTik RouterBOARD SXT Lite.

The new RB911L series is also supported as a result.

v2 of this patch fixes the wmac offset to match what is on the sticker.
v3 refreshes the patch against r41148 and defines the power led as the status led in diag.sh
v4 refreshes the patch against r41353 and fixes the patch path issue to make git am work correctly
v5 selects the kernel config option in the mikrotik profile rather than in the main ar71xx config

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41450
10 years ago
John Crispin 23a9bfc655 ar71xx: r41348 is missing these files
sorry, the downside when applying patches with patch

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41350
10 years ago
John Crispin 680e0c09f3 ar71xx: WNDAP360 adding wifi LED support
I added WIFI LED support (so now AP blinks nicely), I removed WPS
button GPIO (as it doesn't exist) and changed GPIO for reset button.

Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>

SVN-Revision: 40976
10 years ago
John Crispin 05b73eb22f ar71xx: add kernel support for HiWiFi HC6361.
This board manufactured by HiWiFi has the following features.

 - Atheros 9331 SoC.
 - 16MB flash and 64MB RAM.
 - 4GB eMMC storage via SK6226 USB 2.0 controller.
 - 2 LAN and 1 WAN ethernet ports with LEDs on them.
 - 3 blue LEDs on the front panel.
 - 1 button labeled as "reset".
 - Powered by a USB cable.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 40973
10 years ago