Commit Graph

1265 Commits (05d73a2a73794f8a978300eac75e25deae6d0626)

Author SHA1 Message Date
Gabor Juhos ed72141fd4 ar71xx: wndr4300: use KEY_RFKILL code for the Wireless button
Based on the the WNDR3700v4 support patch from Ralph Perlich:
  http://patchwork.openwrt.org/patch/4763/

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40477
10 years ago
Gabor Juhos 4fe71cedfe ar71xx: wndr4300: add LED for 2.4Ghz wifi interface
Based on the the WNDR3700v4 support patch from Ralph Perlich:
  http://patchwork.openwrt.org/patch/4763/

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40475
10 years ago
Gabor Juhos db123a8a21 ar71xx: wndr4300: select GPIO_OUT functionality for LED GPIOs
The bootloader does not initializes the output function
correctly for all LEDs. DO that from the board setup code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40474
10 years ago
Gabor Juhos 9b7b57aeb4 ar71xx: wndr4300: change 'orange' to 'amber' in LED color names
The hardware manual says amber so change the color part of
the LED names to reflect that. Also update the constant names.

Based on the the WNDR3700v4 support patch from Ralph Perlich:
  http://patchwork.openwrt.org/patch/4763/

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40473
10 years ago
Felix Fietkau 7131a104f5 ar71xx: add support for the TP-LINK TL-WR841N/ND v9
Everything seems to be working fine. Potential issues:

* VLAN port IDs are reversed with regard to the numbers on the case.

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

SVN-Revision: 40400
10 years ago
Felix Fietkau f80f0c7d22 ar71xx: add support for QCA953x SoC
I don't have access to the specs, so I'm not sure about every detail, but I
haven't seen any problems with my test system, a TL-WR841N v9. It looks pretty
much like a QCA955x without PCI, a little twist in the clock calculation and
a AR9331-compatible switch.

Features not yet supported:

* EHCI (my test system doesn't have USB)
* ? (I have no idea if the QCA953x has any other features I don't know about
that aren't used by the TL-WR841N v9)

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

SVN-Revision: 40399
10 years ago
Gabor Juhos 5256bbdc56 ar71xx: add kernel support for the Oolite v1 board
Patch-by: Lars Bøgild Thomsen <lth@cow.dk>
Patchwork: http://patchwork.openwrt.org/patch/4922/
[juhosg:
 - use a separate patch for kernel changes,
 - reorder Kconfig and Makefile entries,
 - change function and variable names to be lowercase only
   and fix misaligned tabs in mach-gs-oolite.c,
   ... ]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40032
10 years ago
Gabor Juhos 47dfbb5bc6 ar71xx: rb95x: use correct SPI flash address
The flash address passed to rb_init_info() is bogus,
use the predefined AR71XX_SPI_BASE macro instead.

Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39891
10 years ago
Gabor Juhos 25e870eed6 ar71xx: ar934x_nfc: fix memory initialization bug
sizeof(array_from_function_definition) gives back the size of the pointer.
sizeof(type)  * array_size   should be used in memset.

Signed-off-by: David Völgyes <david.volgyes@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4950/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39890
10 years ago
Gabor Juhos da2f3c1448 ar71xx: rb91x: register GPIO LEDs
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39704
10 years ago
Gabor Juhos 14d95026b2 ar71xx: rb91x: add SPI device for the serial shift register
The RB91x boards are using a serial shift register
connected to the SPI bus to drive some of the LEDs.

Rework the board setup code to register a SPI device
for that. This makes it possible to use the 'spi-74x164'
driver to control the device.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39703
10 years ago
Gabor Juhos 3d906ac6ac ar71xx: rb91x-nand: rewrite to use GPIO API
Rewrite tha rb91x-nand driver to use GPIO API to
modify the NAND control lines.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39700
10 years ago
Gabor Juhos 8fea668cb7 ar71xx: rb91x: register a gpio-latch platform device
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39699
10 years ago
Gabor Juhos ab08c40487 ar71xx: add a generic GPIO latch driver
It will be used for the Mikrotik boards.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39697
10 years ago
Gabor Juhos 4e0309630b ar71xx: rb91x: fix pll_1000 value for eth0 to avoid packet loss
When the RB91x device uses a GbE link the connection
suffers from packet loss:

  root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 20 -q
  PING 192.168.1.254 (192.168.1.254): 65507 data bytes

  --- 192.168.1.254 ping statistics ---
  20 packets transmitted, 9 packets received, 55% packet loss
  round-trip min/avg/max = 4.570/4.815/4.999 ms

Using a different PLL value fixes the issue.

  root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 100 -q
  PING 192.168.1.254 (192.168.1.254): 65507 data bytes

  --- 192.168.1.254 ping statistics ---
  100 packets transmitted, 100 packets received, 0% packet loss
  round-trip min/avg/max = 4.449/5.413/13.870 ms

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39642
10 years ago
Gabor Juhos d19b868b12 ar71xx: Add support for MikroTik RB951Ui-2HnD
I noticed that the patch at http://patchwork.openwrt.org/patch/4017/
for adding support for the MikroTik RouterBOARD 951Ui-2HnD had been
abandoned because it wasn't generated and sent to the mailing list
correctly and doesn't apply as a result.  I have cleaned up this patch.

When testing this on real hardware, I also noticed that wireless didn't
work, so this patch fixes that as well.

This patch applies cleanly to SVN 39392.

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
Patchwork: http://patchwork.openwrt.org/patch/4773/
[juhosg:
  - drop the 'rb951ui_wlan_init' function and rework the code to
    use the recently introduced rb95x_wlan_init function instead,
  - fix GPIO number of the port5 LED,
  - rename LEDs according to the standard LED naming conventions,
    and use 'rb' prefix in the names]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39641
10 years ago
Gabor Juhos db0e6e264d ar71xx: add kernel support for the TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4848/
[juhosg:
  - rename and refresh kernel patch,
  - merge the board setup code into mach-archer-c7.c and drop
    mach-tl-wdr49000-v2.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39635
10 years ago
Gabor Juhos 3b8c51771d ar71xx: wpe72: set active_low flag for the reset button
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39401
11 years ago
Gabor Juhos b503dc026e ar71xx: wp543: set active_low flag for the buttons
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39400
11 years ago
Gabor Juhos 50f38063cd ar71xx: archer c7: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39395
11 years ago
Gabor Juhos f85231257e ar71xx: fix bad RX sensitivity on newer TL-WDR4300 boards
On recent TL-WDR4300 boards the external LNAs of the 2.4GHz
interface are connected to GPIO lines. Because these GPIO
lines are disabled by default, the RX sensitivity of the
device is quite bad.

Setup the GPIOs of the external LNAs to fix the issue.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39392
11 years ago
Gabor Juhos b629009eaa ar71xx: wp543: use KEY_RESET code for the sw4 button
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39374
11 years ago
Gabor Juhos 0b599c51cc ar71xx: mynet-n750: define LEDs connected to the AR8327 switch
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4743/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39361
11 years ago
Gabor Juhos 506b40b628 ar71xx: tl-wr1043nd-v2: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39346
11 years ago
Gabor Juhos c17cfab560 ar71xx: tl-wdr4300: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39345
11 years ago
Gabor Juhos 4c54635106 ar71xx: rb2011: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39341
11 years ago
Gabor Juhos b4dc45e07d ar71xx: rb2011: fix eth5 LED
The eth5 LED on the RB2011 is not working because the
LED control rule is missing. Fix it.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39335
11 years ago
Gabor Juhos 30ebad2dee ar71xx: ag71xx: increase calculated max frame length value
The r39147 commit introduces a regression: at lease on some routers
with ar8216 switch large packets get lost if 802.1q tagged port is
used on the interface connected to the aforementioned switch.

The r39147 changes code in the way so interface is set to accept
packets no longer than max ethernet frame length for a given mtu.

Unfortunately ar8216 has a feature: it sends two additional bytes
as a packet header and those this header needs to be added to the
max frame length. Otherwise long enough packets get lost.

The problem only manuifests itself if interface is used in vlan
tagged mode. If interface is untagged then ar8216's header fits
into space used by 802.1q tag and not packets are lost.

Include two additional bytes in the max frame length calculation
to fix the issue.

This patch is tested and works with Trendnet TEW-632BRP.

Signed-off-by Nikolay Martynov <mar.kolya@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4656/
[juhosg:
  - simplify the patch to include the additional bytes of the
    switch header unconditionally,
  - change subject and update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39219
11 years ago
Gabor Juhos c977d49a29 ar71xx: my net n750: simplify LNA GPIO setup
Use the ath79_wmac_set_ext_lna_gpio helper instead
of exporting the GPIOs.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39217
11 years ago
Gabor Juhos cc3beb9c76 ar71xx: my net n600: simplify LNA GPIO setup
Use the ath79_wmac_set_ext_lna_gpio helper instead
of exporting the GPIOs.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39216
11 years ago
Gabor Juhos 32aef686f7 ar71xx: Fix WD My Net N600 weak signal issue
The LNAs need to be enabled by setting their respective GPIO to high even
though the original firmware's setting sets them to low on initialization.

Obviously the LNAs are then later initialized by the driver on the OEM
firmware. Without this fix the device is mostly "deaf".

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Tested-by: Steven Haigh <netwiz@crc.id.au>
Patchwork: http://patchwork.openwrt.org/patch/4689/
[juhosg:
  - remove the GPIO LED changes, the My Net N600 has no yellow LEDs at all,
  - change subject and update the commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39214
11 years ago
Gabor Juhos 01727717f7 ar71xx: Fix WD My Net N750 weak signal issue
The LNAs need to be enabled by setting their respective GPIO to high even
though the original firmware's setting sets them to low on initialization.

Obviously the LNAs are then later initialized by the driver on the OEM
firmware. Without this fix the device is mostly "deaf".

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4688/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39213
11 years ago
Gabor Juhos 05f8604e2e ar71xx: fix max frame length of the QCA955x SoCs
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39161
11 years ago
Gabor Juhos 76f37c5d46 ar71xx: don't set builtin_switch flag for QCA9558
It makes no sense, the SoC has no built-in switch.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39160
11 years ago
Gabor Juhos f2cd3399f7 ar71xx: allow to use large ethernet frames on AR934x SoCs
The hardware supports large ethernet frames. Override
the maximum frame length and packet lenght mask in the
platform data to allow to use large MTU on the ethernet
interfaces.

Limit the feature to AR934x SoCs for now. It should work
on some other SoCs as well, but those has not been tested
yet.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39149
11 years ago
Gabor Juhos 2b220f3550 ar71xx: ag71xx: fix max frame length setup of the built-in switches
The currently used bitmask of the maximum frame length field
is wrong for both models. On AR724x/AR933x the largest frame
size is 2047 bytes, on the AR934x it is 16383 bytes.

Make the MTU setup code model specific, and use the correct
bitmask for both models. Also change the value to the maximum.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39148
11 years ago
Gabor Juhos 35d601f974 ar71xx: ag71xx: calculate max frame len register value from the MTU
Set the MAX_FRAME_LEN register to zero in ag71xx_hw_init()
and write the correct value into that from the ag71xx_open()
and ag71xx_fast_reset() functions.

Also recalculate the RX buffer size based on the actual
maximum frame length value to optimize memory allocation.
Additionaly, disallow to change the MTU value while the
interface it running.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39147
11 years ago
Gabor Juhos 9e7d77de2d ar71xx: ag71xx: add ag71xx_max_frame_len() helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39146
11 years ago
Gabor Juhos 2c4e3cf33a ar71xx: ag71xx: get max_frame_len and desc_pktlen_mask from platform data
This will allow to use SoC specific values for both.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39145
11 years ago
Gabor Juhos 9be1e508f9 ar71xx: ag71xx: store descriptor packet length mask in ag71xx struct
The currently used bitmask is not correct for all SoCs.
Introduce a new field in struct ag71xx and store the
bitmask in that. Use the current value for now, it will
be adjusted for each SoCs in further patches.

Aslo use the new field directly in the ag71xx_rx_packets
and ag71xx_hard_start_xmit() functions and remove the
ag71xx_desc_pktlen() helper.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39144
11 years ago
Gabor Juhos 1ebf211340 ar71xx: fix WD My Net N750 switch led cfg
Now that the switch is working correctly I had the chance to actually
test the LED config.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4616/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39129
11 years ago
Gabor Juhos c72313fd98 ar71xx: implement switch fix for WD My Net N750
The bootloader on the WD My Net N750 disables the ports on it's internal
AR8327N switch by powering them down. The stock firmware then brings the
ports back up again by starting the auto negotiation process on each
port.

This fix implements just that.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4615/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39128
11 years ago
Gabor Juhos 8b712436f3 ar71xx: implement callback in mdio reset
This enables us to add fixups to the board specific code for boards that
require special treatment of PHYs on mdio bus reset.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
http://patchwork.openwrt.org/patch/4614/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39127
11 years ago
Gabor Juhos ba860e4c3a ar71xx: make ag71xx_mdio_platform_data visible
This enables us to modify the ag71xx_mdio_platform_data from within the
board support files.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4613/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39126
11 years ago
Gabor Juhos 31de995025 ar71xx: ag71xx: compute the RX buffer size from the maximum frame size
Currently, the AG71XX_RX_PKT_SIZE value limits the received
frame size to 1514/1516 bytes with/without a VLAN header
respectively. However the hardware limit is controlled by
the value the AG71XX_REG_MAC_MFL register which contains
the value of the max_frame_len field.

Compute the RX buffer size from the max_frame_len field
to get rid of the 1514/1516 byte limitation. Also remove
the unused AG71XX_RX_PKT_SIZE definition.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39121
11 years ago
Gabor Juhos b35e0da0f4 ar71xx: ag71xx: store RX buffer size in the ag71xx struct
This allows to change the value dynamically.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39120
11 years ago
Gabor Juhos 6072e777e9 ar71xx: ag71xx: store maximum frame length in the ag71xx struct
This will allow to use different values for the
different SoCs.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39117
11 years ago
Gabor Juhos ea89cc9250 ar71xx: ag71xx: use mdio bus name in ar7240_probe messages
The ar7240_probe function uses the network device name
in the kernel log messages, however the name is not yet
initialized when the ar7240_probe function is called.
Use the mdio bus name in the messages to avoid ugly
log lines like the following one:

  eth%d: Found an AR7240/AR9330 built-in switch

Reported-by: Ronald Wahl <ronald.wahl@raritan.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39116
11 years ago
Gabor Juhos 0d7a6748e1 ag71xx: ag71xx: use device name for debugfs entry
The ag71xx debugfs code uses the network device name
for the device specific debugfs directory. Since r38689
'ar71xx: ag71xx: fix a race involving netdev registration'
the debugfs initialization happens before the ethernet
device gets registered and the network device name contains
'eth%d' at this point. If the board setup code registers
multiple ag71xx devices, the debugfs code tries to create
the device specific dir with the same name which causes
an error like this:

  eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
  ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
  ag71xx: probe of ag71xx.0 failed with error -12

Use the device name for the debugfs directory to avoid the
collisions. Also add an error message and change the return
code if the debugfs_create_dir call fails.

Reported-by: Ronald Wahl <ronald.wahl@raritan.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39115
11 years ago
Gabor Juhos 5237a50089 ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards
It is only on RB911G-5HPnD and RB912UAG-5HPnD boards.
The LEDs and the USB port is not working yet.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39102
11 years ago
Gabor Juhos 8461ffccc1 ar71xx: add NAND driver for the Mikrotik RB91x boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39097
11 years ago
Gabor Juhos d7a0184446 ar71xx: rb2011: use board name from the hardware config
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39096
11 years ago
Gabor Juhos 26ca95fefa ar71xx: rb2011: simplify setup code
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39095
11 years ago
Gabor Juhos 59b6cf1e70 ar71xx: rb2011: use the new RouterBOOT helpers
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39094
11 years ago
Gabor Juhos 627651dfca ar71xx: rb95x: use the rb_get_wlan_data helper
Also remove unused RB_* defines.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39092
11 years ago
Gabor Juhos 16565ec94b ar71xx: add some RouterBOOT specific helper functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39091
11 years ago
Gabor Juhos 728c2c6cff ar71xx: rb95x: nuke rb95x_gpio_init
Set up the chipselect GPIO directly in rb95x_nand_init
instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39087
11 years ago
Gabor Juhos 3dc1cbb167 ar71xx: add kernel support for WD My Net N750
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
[juhosg: use a separate patch for kernel changes]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39077
11 years ago
Gabor Juhos fd393c0b05 ar71xx: add kernel support for the TL-WA901ND v3 board
Based-on: http://patchwork.openwrt.org/patch/4506/
Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39073
11 years ago
Gabor Juhos 9ce06f2ac8 ar71xx: move TL-WA801ND v2 setup code
The TL-WA801ND v2 board has only one LAN port which makes
it more similar to the TL-WR[78]50RE devices. Move the
board setup code into the mach-tl-wax50re.c file.

Based-on: http://patchwork.openwrt.org/patch/4506/
Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39072
11 years ago
Gabor Juhos 40f081ad08 ar71xx: refactor TL-WAx50RE setup code
This way it is a bit easier to add other TP-LINK devices based on the
Atheros AP123 reference board with one LAN port.

Based-on: http://patchwork.openwrt.org/patch/4506/
Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39071
11 years ago
Gabor Juhos e3e559fd52 ar71xx: add kernel support for the TL-WA801ND v2 board
Patch to add kernel support for the TP-LINK WA801ND v2

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Patchwork: http://patchwork.openwrt.org/patch/4500/
[juhosg:
  - the TL-WA801ND v2 does not have a sliding switch, it uses a push button
    for WPS instead. Use the tl_mr3420v2_gpio_keys array to reflect that,
  - rename kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39063
11 years ago
Felix Fietkau 7a260c3620 ath9k: merge initval and tx gain table updates, calibration fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39001
11 years ago
Gabor Juhos bc2d7b8193 ar71xx: add kernel support for the TL-WR1043ND v2 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38955
11 years ago
Gabor Juhos 981e3b354a ar71xx: improve support for the My Net Wi-Fi Range Extender device
This patch improves support for the device considerably.

1. The wifi didn't work in the initial release. This was because
the WMAC of the AR9340 is not connected to the antennas.
(However, it can pick up wifi signals, if they are strong enough!)
Instead there's a dedicated AR9300 chip on the same board, which
works.

2. Ethernet throughput is improved. iperf shows that the hardware
can sustain more than 200Mbit/s and no longer drops any packages
when the link is under load.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4461/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38949
11 years ago
Gabor Juhos af4873e41c ar71xx: Kernel support update tl-wr842n_v2 added missing usb led
Just a small oversight my part, added the support for the USB led
Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4425/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38946
11 years ago
Gabor Juhos 625cf61c5b ar71xx: Add kernel support for the WR842N/ND v2
Patch to add kernel support for the TP-LINK WR842N/ND v2

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4352/
[juhosg: refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38813
11 years ago
Gabor Juhos 25756c61bc ar71xx: Use KEY_RESTART key code for the reset button on WD My Net N600 boards
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38720
11 years ago
Gabor Juhos 79163c8919 ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender
Patch to add kernel support for the TP-LINK WA750RE and the WA850RE
range extender

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
[juhosg: rename and refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38717
11 years ago
Gabor Juhos ec09569b17 ar71xx: ag71xx: fix ag71xx_probe error path
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38716
11 years ago
Gabor Juhos 7bd3a7bc7b ar71xx: ag71xx: fix a race involving netdev registration
In particular, phy_connect before register_netdev. This is because
register_netdev runs the netdev notifiers, which can race with the rest of
the initialization in ag71xx_probe. In my case this manifested in two ways:

1) If ag71xx is compiled as a module and inserted after netifd has started,
   netifd is notified by register_netdev before the call to
   ag71xx_phy_connect. netifd tries to bring the interface up, which calls
   ag71xx_open, which in turn enters ag71xx_phy_start. This keys off
   ag->phy_dev (which is still NULL) and thinks this is a fixed-link board,
   and enters ag71xx_link_adjust. This looks at ag->speed which is not yet
   initialized and hits the BUG() in the switch (ag->speed) in
   ag71xx_link_adjust.

   This is the wrong code path for ag71xx_phy_start - my board has PHYs that
   need to be brought up with phy_start. Doing ag71xx_phy_connect before
   register_netdev ensures that ag->phy_dev is non-NULL before
   ag71xx_phy_start is ever called.

2) When ag71xx is built into the kernel, and netconsole is enabled, there
   is a gap in the initial burst of replayed printks right after the netdev
   comes up. My assumption is that netconsole is also triggered by a netdev
   notifier, and part of this printk burst happens before the call into
   ag71xx_phy_connect, so part of the burst is lost while the PHY comes up.
   This patch fixes the gap - all the printks before eth0 comes up are bursted
   in full when netconsole initializes.

ag71xx_phy_connect_xxx no longer runs with a registered netdev, so the
logging has been adjusted accordingly to avoid "unregistered net_device" or
"eth%d" messages in dmesg.

Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38689
11 years ago
Gabor Juhos ece1323ed4 ar71xx: add kernel support for the My Net Wi-Fi Range Extender device
This patch adds a new device definition for a
Western Digital device. The hardware seems to
be based on Qualcomm Atheros DB120 design.

Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
[juhosg: refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38686
11 years ago
Gabor Juhos ef8306cfd2 ar71xx: add kernel support for BHU Networks BXU2000n-2 A1 board
BXU2000n-2 A1 is a BHU Networks WLAN board, use ar9341 chip.

Patchwork: http://patchwork.openwrt.org/patch/4183/
Signed-off-by: Terry Yang <yangbo@bhunetworks.com>
[juhosg:
  - rename and refresh kernel patch,
  - fix some checkpatch warnings and adjust whitespaces in
    mach-bhu-bxu2000n2-a.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38591
11 years ago
Gabor Juhos 22b5040c64 ar71xx: add kernel support for the Sitecom WLR-8100 wireless router
- unsure about copyright message
  - based on AP136-010

Patchwork: http://patchwork.openwrt.org/patch/4147/
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
[juhosg: rename and refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38589
11 years ago
Gabor Juhos 7074bb286d ar71xx: add kernel support for DRAGINO2
This patch adds support for DRAGINO2 board (used by
Meshpotato v2). Most of the files included can be
found in the official svn repository provided by the
company [1]. I have just adapt it to the last OpenWrt
trunk revision (Fri Oct 4 10:49:47 2013).

 1. http://svn.dragino.com/dragino2

Patchwork: http://patchwork.openwrt.org/patch/4234/
Signed-off-by: Pau Escrich <p4u@dabax.net>
[juhosg:
 - rename and refresh kernel patch,
 - fix checkpatch warnings in  mach-dragino2.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38587
11 years ago
Gabor Juhos 68e13de37d ar71xx: fix WLAN 5 GHz LED init on dir-825-c1
Fixes the 5 GHz LED.

The same function has no effect on the 2.4 GHz LED at all, so we might
as well remove it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38482
11 years ago
Gabor Juhos 7815af409a ar71xx: ar934x-nfc: disable subpage write when hardware ECC is used
It is not supported by the controller.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38234
11 years ago
Gabor Juhos f8aef84e49 ar71xx: improve kernel support for the TL-MR3040 v2
This patch adds support for the hardware slide switch on
the TL-MR3040 v2.

Signed-off-by: Mads Hansen <d@taba.se>
[juhosg: use EV_SW instead of EV_KEY]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38190
11 years ago
Gabor Juhos 8b920136a0 ar71xx: add kernel support for the TEW-732BR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38131
11 years ago
Gabor Juhos d661af0b77 ar71xx: vanity changes for dir-825-c1
This patch

- changes the color names from orange to amber
- changes the name of GPIO 13 from WIFI_BGN (wifi_bgn) to WLAN_2G
  (wlan2g) to be more consistent with the other routers' files
- changes the descriptions of the hardware keys to be a tad more
  explicit

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Patchwork: http://patchwork.openwrt.org/patch/4081/
[juhosg: update the LED migration script as well]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38105
11 years ago
Gabor Juhos 0a813e9e3c ar71xx: use netgear prefix for WNDAP360 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38102
11 years ago
Gabor Juhos d0fe16cedf ar71xx: use netgear prefix for WNR612 v2 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38101
11 years ago
Gabor Juhos ae7d14f701 ar71xx: use netgear prefix for WNR2200 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38100
11 years ago
Gabor Juhos 87f7ac6b4e ar71xx: use netgear prefix for WNR2000 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38099
11 years ago
Gabor Juhos e33ccdc295 ar71xx: use netgear prefix for WNDR3700 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38098
11 years ago
Gabor Juhos 10ed605a89 ar71xx: let HW switch control WAN LED on dir-825-c1
Enable GPIO 20. This hands off control of the blue planet led to the
integrated switch. Consequently, remove the led configuration for the
blue planet led.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Patchwork: http://patchwork.openwrt.org/patch/4080/
[juhosg: whitespace fixup]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38096
11 years ago
Gabor Juhos 50f4732438 ar71xx: fix LAN LEDs for dir-825-c1
This patches fixes the lan led configuration. The new configuration is
identical to the one in mach-db120.c and it works. The previous one
didn't work at all.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38094
11 years ago
Gabor Juhos 1dd33c4d6c ar71xx: tew-712br: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38090
11 years ago
Gabor Juhos cb18e38996 ar71xx: tew-673gru: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38089
11 years ago
Gabor Juhos a98df83f5f ar71xx: dir-825-c1: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38088
11 years ago
Gabor Juhos 710314990a ar71xx: dir-825-b1: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38087
11 years ago
Gabor Juhos 2a777a272c ar71xx: dir-505-a1: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38086
11 years ago
Gabor Juhos e312a917d3 ar71xx: rename ath79_parse_mac_addr to ath79_parse_ascii_mac
Rename the function and extend it in order to make it
usable from board setup code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38085
11 years ago
Gabor Juhos 9a2e94476a ar71xx: add kernel support for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38072
11 years ago
Gabor Juhos 9200807877 ar71xx: wndr4300: enable HW ECC mode for the NAND controller
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38071
11 years ago
Gabor Juhos 83915a8d78 ar71xx: add ath79_nfc_set_ecc_mode helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38070
11 years ago
Gabor Juhos d6fef0cb39 ar71xx: ar934x_nfc: add experimental support for hardware ECC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38069
11 years ago
Gabor Juhos ceecdfb1c9 ar71xx: ar934x_nfc: return error code from some low-level functions
Change some flow-level unctions to return with an
error code in order to be able to report errors
to the core code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38068
11 years ago
Gabor Juhos df8485c7cb ar71xx: ar934x_nfc: use devm_* functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38067
11 years ago
Gabor Juhos e3e31835ae ar71xx: add kernel support for TP-Link TL-MR13U
This patch adds support for TP-Link TL-MR13U router with built-in 10AH
rechargeable battery.

The patch is based on kamwanlai's patch:
https://forum.openwrt.org/viewtopic.php?pid=206746#p206746

Updated to accommodate recent changes introduced with:
ar71xx: remove fs_* variables from image/Makefile

Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4063/
[juhosg:
  - refresh and rename rename 930-add-tl-mr13u-support.patch =>
    625-MIPS-ath79-add-tl-mr13u-support.patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38063
11 years ago
Gabor Juhos 5e23012c77 ar71xx: wnr2200: fix a typo in a LED name
Reported-by: Roman A. aka BasicXP <x12ozmouse@ya.ru>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38062
11 years ago
Gabor Juhos 49ed06e36f ar71xx: add kernel support for Netgear WNR2200 wireless router
This patch adds OpenWRT support for the Netgear WNR2200 (N300)
wireless router with USB.

Technical details of this router can be found at
http://www.netgear.com/home/products/wirelessrouters/work-and-play/WNR2200.aspx
and http://wikidevi.com/wiki/Netgear_WNR2200

Signed-off-by: Aidan Kissane <aidankissane@googlemail.com>
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Patchwork: http://patchwork.openwrt.org/patch/4055/
[juhosg:
  - add commit message and SoB line from the original patch
  - remove dead code from mach-wnr2200.c
  - refresh 624-MIPS-ath79-WNR2200-support.patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38059
11 years ago
Gabor Juhos 897c00c145 ar71xx: add wireless bgn led support for dir-825-c1
I checked the GPL code drop from D-Link and tried to get the wireless
and LAN switch LEDs to light up. I found some references in
AthSDK/www/DIR-825_C1/bsp.h as well as
AthSDK/www/DIR-825_C1/rootfs/etc/sysconfig/S2gpio.sh, but in the end I
only got the led for 2.4GHz to work. Anyway, here's the patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37963
11 years ago
Gabor Juhos 122a61aa49 ar71xx: configure OBS4 line on TL-WR841N-v8/MR3420v2
It also fixes USB Power on MR3420v2.

This time we took the information from the source of GPL:
http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg18970.html
Confirmed and tested:
https://dev.openwrt.org/ticket/13201#comment:41
Thanks to oguretsagressive for testing.

Signed-off-by: Dmytro <dioptimizer@gmail.com>

SVN-Revision: 37878
11 years ago
Gabor Juhos 9af6a5a88f ar71xx: don't register USB device on WNDAP360
Apparently registering usb device on newest trunk causes
this AP not to boot...
Since there is no USB socket in that device anyway this
can be simply removed (and device boots then no problem).

[juhosg:
  - tweak subject line and description,
  - remove #include "dev-usb.h",
  - remove 'select ATH79_DEV_USB' from Kconfig]

Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37844
11 years ago
Felix Fietkau bbd4d4c8b8 ar71xx: ethernet: reduce tx dma ring size further to improve cache footprint
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37765
11 years ago
Felix Fietkau 58e049ea80 ar71xx: ethernet: reduce tx and rx DMA ring size to improve cache footprint
256 entries is a bit excessive, even for gigabit speeds

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

SVN-Revision: 37762
11 years ago
Felix Fietkau f43b4ea962 ar71xx: ethernet: cache skb->len in the tx function to avoid accessing it again in completion
Improves ethernet performance, especially during bridging

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

SVN-Revision: 37761
11 years ago
Felix Fietkau 53c3b2a193 ar71xx: fix typo
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37759
11 years ago
Felix Fietkau f18fd5512e ar71xx: ethernet: skip calls to netdev_completed_queue and netif_wake_queue if no tx cleanup was done
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37758
11 years ago
Felix Fietkau 81cfb9e5ed ar71xx: ethernet: do not update the unused dev->last_rx field
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37757
11 years ago
Felix Fietkau 104ff48e25 ar71xx: add missing return statement in ethernet mtu change op
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37756
11 years ago
Felix Fietkau 7b05fe59a4 ar71xx: allow mtu > 1500 based on the configured tx/rx mtu register value
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37748
11 years ago
John Crispin 553a469728 ar71xx: add support for dir 505 a1
this patch is based on ...

-> https://forum.openwrt.org/viewtopic.php?pid=179902#p179902

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

SVN-Revision: 37703
11 years ago
Gabor Juhos 99a12119ca ar71xx: fix tl-wa901nd buttons code
This patch fixes the code of the buttons for TP-Link WA901ND.

Signed-off-by: Rocco Folino <lordzen@autistici.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37696
11 years ago
Gabor Juhos 6d8163505e ar71xx: add kernel support for the Netgear WNR612 v2 board
Netgear WNR612 v2:
 - cpu Atheros AR7240 (Python) @400MHz
 - flash 4MB
 - ram 32MB
 - ethernet 10/100: 1xwan + 2xlan (only two)
 - radio AR9285

[juhosg: use a separate kernel patch]

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3876/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37575
11 years ago
Gabor Juhos c5029c2ebf ar71xx: add kernel support for the TP-LINK TL-WR710N v1 board
Small router sold in EU: AR9330@400MHz, 1x USB2.0,
2x ethernet, 8MB flash, 32MB ram, one led, one button.

See: http://galeria.tech-blog.pl/TP-Link_TL-WR710N-EU/

[juhosg: use a separate kernel patch]

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3873/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37572
11 years ago
Gabor Juhos b49dc036e8 ar71xx: TEW632BRP has buttons 'active low', fix board config
Looks like trunk@37090 has changed the logic that determines
if router's button was pressed. This resulted in TEW632BRP
always booting into failsafe mode because it detected pressed
button (which was not pressed).

Measure with voltmeter has shown that buttons on this router
are actually active-low. This patch reflects this fact in
board configuration and fixes 'load info failsafe mode' issue.

Note: it looks like Trendnet TEW632BRP and a close relative
to TEW-652BRP V1.0 and D-Link DIR-615C1, so same problem may
exist on those routers as well. This patch doesn't affect
routers other than 632BRP and unfortunately I do not have
hardware to test this issue with other routers.

This patch fixes #13893 and is tested on actuall Trendnet
TEW632BRP.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37569
11 years ago
Gabor Juhos ec7fe3fab7 ar71xx: add kernel support for the TL-MR10U board
Based on andelf's patch:
http://andelf.diandian.com/post/2013-05-22/40050677370

[juhosg: extend WR703N code to handle the TL-MR10U
instead of adding a separate mach-tl-mr10u file]]

Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3840/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37547
11 years ago
Felix Fietkau 25d910a78f ar71xx: use uimage split for WZR-HP-G300NH2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37295
11 years ago
Felix Fietkau 6bff456212 ar71xx: enable uimage split for wzr-hp-ag300h/wzr-600dhp
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37294
11 years ago
Felix Fietkau fbde376c53 ar71xx: use uimage split for WZR-HP-G300NH
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37293
11 years ago
Felix Fietkau a7c5f6708b ar71xx: use uimage split for WZR-HP-G450H
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37292
11 years ago
John Crispin 39531131a9 ar71xx: add carambola2 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37260
11 years ago
Felix Fietkau 64dde7d981 ar71xx: add linux 3.10
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37214
11 years ago
Gabor Juhos e61a77a05c ar71xx: disable JTAG on TL-WR841N-v8/MR3420v2
It also fixes USB Power on MR3420v2.

Signed-off-by: Dmytro <dioptimizer@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37194
11 years ago
Gabor Juhos ca02639d17 ar71xx: fix for wrong eth0 mac assignment on Netgear WNDAP360
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37192
11 years ago
Luka Perkov c9926f77b4 ar71xx: Buffalo WZR-HP-AG300H (600DHP) change button type
switch buttons should be declared as switch so the failsafe shell is not
triggered by accident in procd

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 37131
11 years ago
Gabor Juhos 5bb2e8030d ar71xx: add support for WIFI button on tp-link tl-mr3220v2
The TP-LINK TL-MR3220 v2 has a button on the left side
labeled "WIFI". This is GPIO 24. This patch adds the
support for this button.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36848
11 years ago
Gabor Juhos da66ea52ec ar71xx: register USB port for RB2011U* devices
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36801
11 years ago
Gabor Juhos 151dca0935 ar71xx: make the SFP port usable on RB2011*S boards
The port 6 of the switch is connected to the SFP
cage on the RB2011*S boards. Add a helper function
to correctly initialize the switch configuration
data on those boards to make the SFP port usable.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36799
11 years ago
Gabor Juhos 3467b17e69 ar71xx: rb2011: add switch led control values
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36796
11 years ago
Gabor Juhos 4cf6e53ccc ar71xx: rb2011: update RGMII RX/TX delay values
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36795
11 years ago
Gabor Juhos 6da63a8793 ar71xx: rb2011: move NAND nCE init to rb2011_nand_init
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36794
11 years ago
Gabor Juhos d6554bf66a ar71xx: add kernel support for the RB2011UAS
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36792
11 years ago
Gabor Juhos 91d7c3efc1 ar71xx: add kernel support for the TP-LINK Archer C7 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36788
11 years ago
Gabor Juhos 93ce462b7e ar71xx: set eth0 mac address to match bottom label of the OM2P LC
Signed-off-by: marek@open-mesh.com
CC: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36723
11 years ago
Felix Fietkau 144cfb65a4 ar71xx: add hard_cfg offset detection for rb2011 support - fixes wlan on some newer devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36631
11 years ago
Gabor Juhos 10b3ca5ccb ar71xx: add kernel support for Netgear WNDAP360
Here is corrected version (only thing not working are wifi LEDs).

[juhosg: this has been created from the following patch:
http://patchwork.openwrt.org/patch/3620/ ]

Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36578
11 years ago
Gabor Juhos 9b3c0d11a2 ar71xx: Add Netgear WNR2000v3 support
Network connectivity works fine (LAN and WAN).
For GPIOs, only pwr led and the green wan leds are supported for now.

Signed-off-by: Mathieu Olivari <mathieu.olivari@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36459
11 years ago
Gabor Juhos 5c11773f8a ar71xx: add kernel support for TPLINK WR720N v3
Add support for TPLINK WR720N v3 which has 4MB flash,
32MB ram, 2 ethernet interfaces, 1 USB 2.0 port.

The patch is mostly a modification from mach-tl-wr703n.c.
GPIO numbers for the slider switch is from mach-tl-mr3020n.c.

Tested on my device and they worked fine.

Signed-off-by: yousong <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36456
11 years ago
Gabor Juhos f7da2127ab ar71xx: fix ethernet LEDs on the TL-WDR3500
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36122
11 years ago
Gabor Juhos cd5cca4ba8 ar71xx: fix USB power GPIO on the TL-WDR3500
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36119
11 years ago
Gabor Juhos 4daefc9480 ar71xx: remove numeric suffix of the TL-WDR3500 USB LED
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36118
11 years ago
Gabor Juhos 35d41db979 ar71xx: rw2458n - Use eeprom (art) from wifi card
Use eeprom (art) from included wifi card, not hard coded in flash.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36037
11 years ago
Gabor Juhos 8deffcba7e ar71xx: Error fix in Kernel for MR3420v2 Ethernet Switch configuration
Error in using another MDIO (AP123 platform using only one GE1 device
for eth0 and eth1) for the router mr3420v2.
?onfirmed: https://forum.openwrt.org/viewtopic.php?pid=194779#p194779

Routers in this sense are the same and the only difference is: USB
port, USB led, instead of the GPIO-switch we have GPIO-button.

Signed-off-by: Dmytro <dioptimizer@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36036
11 years ago
Gabor Juhos 14ca5fc98b ar71xx: om2p-hs: use correct bit mask to disable JTAG functionality
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35966
11 years ago
Gabor Juhos 902dd27383 ar71xx: add kernel support for MR3420v2
[juhosg: use gpio_request_one to enable the USB power]

Patch-by: Dmytro <dioptimizer@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@opewrt.org>

SVN-Revision: 35961
11 years ago
Gabor Juhos 5c5e1c0a9d ar71xx: enabling control GPIO14 and GPIO15 on MR3040/MR11U
LAN1 and LAN2 LEDs not present (it pulled to ground via
resistors) on MR3040 and MR11U devices. This little patch
enabling ability to control GPIO14 and GPIO15.

Patch-by: Dmytro <dioptimizer@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3439/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35960
11 years ago
Gabor Juhos a7525f5f5d ar71xx: add kernel support for dir-835-a1
[juhosg:
  - remove custom mdio bus info and platform data for ar8327, clear the
    .led_cfg field from dir835a1_setup instead,
  - remove arguments of dir835c1_generic_setup function, register the
    LEDs directly from the board specific setup instead]

Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Patchwork: http://patchwork.openwrt.org/patch/3426/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35957
11 years ago
Gabor Juhos 1d55249d7c ar71xx: use backported QCA955x patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35878
11 years ago
Luka Perkov a5ebfc79ba ar71xx: rework changes from r35840
Signed-off-by: Luka Perkov <luka@openwrt.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35865
11 years ago
Gabor Juhos 4491da2bd4 ar71xx: update MAC address assignment for dir-825-c1
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35855
11 years ago
Gabor Juhos 200aa6db83 ar71xx: fixes leds for dir-825-c1
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35854
11 years ago
Luka Perkov 107e0c6d1f ar71xx: add support for Buffalo WZR 600DHP
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 35840
11 years ago
Gabor Juhos bcac3c5569 ar71xx: fix MAC address assignment on the DIR-825-Bx boards
Use the same MAC addresses as the original firmware.

Based on a patch from #10421.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Tested-by: Gabor Varga <vargagab@gmail.com>

SVN-Revision: 35730
11 years ago
Gabor Juhos 4341b11f3e ar71xx: remove __dev{init,exit} annotations from kernel files
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35687
11 years ago
Gabor Juhos 7a709573d7 ar71xx: add kernel support for the Mikrotik RB951G board
This is platform definition for the RB951G device. It's mostly rework
of RB2011UAS patchset with network taken from the RB751 patches.
The main difference is the flash layout used by this device.

[juhosg:
  - remove dead code from mach-rb951g
  - add "-2HnD" suffix to the machine name
  - use a separate 615-MIPS-ath79-RB951G-support.patch]

Patchwork: http://patchwork.openwrt.org/patch/3257/
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35633
11 years ago
Felix Fietkau 2e7a4b088d ar71xx: allow unknown multicast frames to pass to the CPU on AR934x
SVN-Revision: 35564
11 years ago
Jonas Gorski f07a33afc2 ar71xx: register the micro sd card reader on RB493G
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 35535
11 years ago
Gabor Juhos 6ff973bdda ar71xx: Routerboard 751 Mac Address Offset Fix
We utilize many Routerboard 751's and discovered that our latest batch
of RB751's would not initialize the wireless radio. We have determined
Mikrotik has changed where the mac address was located inside hardconfig.
As such we utilize "routerboot_find_tag" to find the location of the mac
address. We should remove "RB751_MAC_ADDRESS_OFFSET" as it is ambiguous
by machine manufacturing date. The newer batch of RB751's that we received
had a RB751_MAC_ADDRESS_OFFSET 0x10.

Signed-off-by: Davey Hutchison <dhutchison@bluemesh.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35519
11 years ago
Gabor Juhos 7c87d28054 ar71xx: fixes whitespaces for dir-825-c1
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35455
12 years ago
Gabor Juhos 31af0dc186 ar71xx: fix mac address calculation on the OpenMesh MR600
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35446
12 years ago
Gabor Juhos 8837d3a49b ar71xx: add kernel support for the OpenMesh MR600v2
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35428
12 years ago
Gabor Juhos fe3db74276 ar71xx: remove unused OpenMesh MR6000 platform code
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35426
12 years ago
Gabor Juhos 5bd02ca895 ar71xx: add kernel support for the TL-WDR3500 board
WDR3500 is similar to WDR3600 except it doesn't have gigabit ethernet,
and has only 1 USB port.

Pending issues:

  * Leds are not working at all (except power and wlan_5g)
  * LAN switch ethernet ports are reversed with respect to case label.

  [Label] -> soft device
  [LAN1] -> eth0.4
  [LAN2] -> eth0.3
  [LAN3] -> eth0.2
  [LAN4] -> eth0.1

Based on http://patchwork.openwrt.org/patch/3208/

Thanks-to: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35423
12 years ago
Gabor Juhos 800da21cb1 ar71xx: add kernel support for dir-825-c1
[juhosg:
 - remove unused GPIO stuff
 - use a separate kernel patch for machine integration]

Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35401
12 years ago
Gabor Juhos 5ca187570f ar71xx: add kernel support for Atheros AP132 Reference Board
Based on http://patchwork.openwrt.org/patch/3162/

Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35395
12 years ago
Gabor Juhos 8a9d92f125 ar71xx: fix ethernet device registration for the QCA9556 SoC
Based on http://patchwork.openwrt.org/patch/3162/

Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35394
12 years ago
Gabor Juhos df15e5cd61 ar71xx: enable fast flash read on dual-flash devices
This improves flash read speed on various Buffalo units.

mtd_speedtest results on the WZR-HP-AG300H:

                          old         new        delta
eraseblock read speed:  726 KiB/s   2068 KiB/s   +184.85%
page read speed:        699 KiB/s   1973 KiB/s   +182.26%
2 page read speed:      711 KiB/s   2043 KiB/s   +187.34%

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35392
12 years ago
Gabor Juhos ba4de984b9 ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards
The PHY_SWAP and PHY_ADDR_SWAP bits are initialized
differently by different versions of the bootloader.
This leads to broken ethernet connection with OpenWrt
on some boards.

Turn both SWAP bits OFF on these boards to make it
consistent regardless of the bootloader used.

Based on a patch by Michel Stempin <michel.stempin@wanadoo.fr>.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35037
12 years ago
Gabor Juhos 66efec6783 ar71xx: allow to register the NAND flash controller on the QCA955x
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34945
12 years ago
Gabor Juhos 1dc2b6e8fa ar71xx: ag71xx: show PHY interface mode in dmesg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34880
12 years ago
Gabor Juhos 5dec87afef ar71xx: fix ethernet device registration for QCA9558
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34853
12 years ago
Gabor Juhos 4085a5773d ar71xx: fixup allowed PHY interface types for QCA9558
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34851
12 years ago
Gabor Juhos f01a786825 ar71xx: don't assign any MII bus device on QCA9558 by default
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34850
12 years ago
Gabor Juhos 9edcd9d3a3 ar71xx: ag71xx: fix mii_bus_dev sanity check
The mii_bus device is not required if phy_mask is zero.
The driver will use a fixed connection if it is not
specified.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34849
12 years ago
Gabor Juhos ad0f03d250 ar71xx: ag71xx: don't start/stop built-in switch w/o mii_bus_dev
Trying to do that causes a NULL pointer dereference:

CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 801d170c, ra == 801d18d4
Oops[#1]:
Cpu 0
$ 0   : 00000000 00000000 00000000 00000001
$ 4   : 00000000 802e6390 ffff8f45 00000001
$ 8   : 804b5360 ffffff80 802f93bc 00000000
$12   : 802f93e8 00000000 00000000 00000000
$16   : 8381aba0 8381aba0 00000000 00000000
$20   : 8295eff0 00000032 80000000 004101b8
$24   : 00000000 777265b0
$28   : 82936000 82937cf0 00420000 801d18d4
Hi    : 00000000
Lo    : 00000001
epc   : 801d170c ar7240sw_reset+0x1c/0x19c
    Tainted: G           O
ra    : 801d18d4 ag71xx_ar7240_start+0x28/0xc0
Status: 1100fc03    KERNEL EXL IE
Cause : 00800008
BadVA : 00000000
PrId  : 00019750 (MIPS 74Kc)
Modules linked in: ath79_wdt ohci_hcd ledtrig_usbdev ledtrig_netdev
nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp
 ipt_MASQUERADE iptable_nat nf_nat pppoe xt_conntrack xt_CT xt_NOTRACK
iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack
ehci_hcd pppox ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport
xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tab
les ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) ath9k_hw(O)
ath(O) mac80211(O) usbcore usb_common nls_base crc_ccitt cfg80211(O) c
ompat(O) arc4 aes_generic crypto_blkcipher cryptomgr aead crypto_hash
crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button
_hotplug(O)
Process netifd (pid: 677, threadinfo=82936000, task=82cbe140, tls=77803750)
Stack : ffffffff 80087900 00000001 82937d74 8381aba0 8381aba0 00000000 00000000
        8295eff0 801d18d4 8295eff0 801fa4a4 00420000 80092158 00000002 8381aba0
        8381a800 00000000 00000080 801cf900 8027e720 00000000 00000000 8009223c
        8381a800 8381a82c 8027e720 00000000 00000000 7f9d14f0 00420000 801ec08c
        8381a800 801ebfb0 33000000 82937e30 00000001 8381a800 00001003 801ec348
        ...
Call Trace:
[<801d170c>] ar7240sw_reset+0x1c/0x19c
[<801d18d4>] ag71xx_ar7240_start+0x28/0xc0
[<801cf900>] ag71xx_open+0x1d0/0x258
[<801ec08c>] __dev_open+0xcc/0x130
[<801ec348>] __dev_change_flags+0xc0/0x160
[<801ec490>] dev_change_flags+0x20/0x6c
[<801ec5c8>] dev_ifsioc+0xec/0x348
[<801ecdb8>] dev_ioctl+0x594/0x67c
[<800ec00c>] do_vfs_ioctl+0x598/0x5ec
[<800ec0b0>] sys_ioctl+0x50/0x90
[<8006a3c4>] stack_done+0x20/0x40
Code: afbf0024  afb40020  afb10014 <8c910000> 00809021  24100104 24130704  8e440000  02002821

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34848
12 years ago
Gabor Juhos a0b31f97bb generic: ar8216: rename cpuport_cfg to port0_cfg in ar8327_platform_data
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34846
12 years ago
Gabor Juhos 0767605d17 ar71xx: add kernel support for the TL-MR3220 v2
Based on the following patch:
http://patchwork.openwrt.org/patch/3043/

[juhosg:
 - remove custom LED and button arrays
 - use separate machine specific patch
 - update Kconfig]

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34779
12 years ago
Gabor Juhos bc82db7d78 ar71xx: add kernel support for the NETGEAR WNDR4300
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34647
12 years ago
Gabor Juhos 75b71f4a74 ar71xx: add ap91_pci_init_simple helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34646
12 years ago
Gabor Juhos 1f7ae58a2c ar71xx: ar934x_nfc: allow to control DMA data swap via platform data
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34588
12 years ago
Gabor Juhos 188908e885 ar71xx: make rb750_nand driver compatible with 3.7
Also add compatibility patches for the currently
supported kernels.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34279
12 years ago
Gabor Juhos 8194237789 ar71xx: make ar934x_nfc driver compatible with 3.7
Also add compatibility patches for the currently
supported kernels.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34278
12 years ago
Gabor Juhos 46a3b818b9 ar71xx: remove buffer verification reference from rb4xx_nand.c
It is a dead code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34276
12 years ago
Gabor Juhos d833ca527d ar71xx: restore rb4xx kernel partition size to the original value
The new lzma compressed elf kernel image fits into
that, even on devices with large page NAND chips.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34274
12 years ago
Gabor Juhos d44d954dec ar71xx: add kernel support for the RB435G board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34239
12 years ago
Gabor Juhos d62bddc620 ar71xx: update PCI IRQ map for RB4xx devices
Should fix #12269.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34238
12 years ago
Gabor Juhos 8d4857d677 ar71xx: add kernel support for the OpenMesh MR600 board
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34231
12 years ago
Gabor Juhos 91bab828aa ar71xx: add support for TP-Link TL-WA7510N
It is mostly the same as TL-WA901N. WLAN and LAN
are working. LAN LED is working. WLAN signal
strength LEDs are not working yet.

http://wiki.openwrt.org/toh/tp-link/tl-wa7510n?s[]=wa7510n

[juhosg:
  - cleanup commit message
  - move non kernel related stuff into separate changes
  - rename and refresh 615-MIPS-ath79-TL-WA7510N-v1-support patch
  - merge WA7510N support into the mach-tl-wa901nd.c file
  - add 3.6 support]

Signed-off-by: Stefan Helmert <helst_listen@aol.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34187
12 years ago
Gabor Juhos f2528b1792 ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34087
12 years ago
Gabor Juhos ed35253f4c ar71xx: don't use the unknown LED on the ZCN-1523-5 board
According to #12421, GPIO 1 controls the power
output on the unused lines of the LAN2 port.
Remove the LED definition in order to prevent
possible permanent hardware damage.

If someone needs that, the power-out feature can
be controlled via the GPIO sysfs interface.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34076
12 years ago
Gabor Juhos 7228a91a3b ar71xx: fix link speed between AR7242 and AR8327 on the RB750GL/RB751G boards
The default pll_1000 value had to be changed
in order to make it working.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33993
12 years ago
Gabor Juhos a6549ac1cb ar71xx: remove NO_AUTOINCR flag from the NAND drivers
The flag is not present in 3.6.
Also add compatibility patches for 3.3.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33971
12 years ago
Gabor Juhos e2ec99889e ar71xx: ag71xx: fix build_skb arguments for 3.6
Also add a compatibility patch for 3.3

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33969
12 years ago
Gabor Juhos d54c9653e9 ar71xx: add support for the Senao CAP4200AG board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33956
12 years ago
Gabor Juhos 269872fe1e ar71xx: use mtd_read in wrt160nl_part
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33951
12 years ago
Gabor Juhos 973eda6077 ar71xx: use mtd_read in tplinkpart
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33950
12 years ago
Gabor Juhos f1f388d527 ar71xx: rw2458n - fix flash parts
See #12338. Redwave rw2458 has uboot, not redboot.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33867
12 years ago
Gabor Juhos 31387947c8 ar71xx: use the ath79_set_ar934x_eth_cfg helper in machine setup routines
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33818
12 years ago
Gabor Juhos 5ffc08e3dc ar71xx: add a helper function for setting up ETH_CFG register on AR934x
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33817
12 years ago
Gabor Juhos c5a32cfc92 ar71xx: add support for the OpenMesh OM2P-HS board
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33800
12 years ago
Gabor Juhos 196c6c5b45 ar71xx: add support for the TL-WR841N/ND v8 board
SVN-Revision: 33621
12 years ago
Gabor Juhos 170cd7a19a ar71xx: avoid possible NULL pointer dereference in ath79_init_{,local}_mac
SVN-Revision: 33575
12 years ago
Gabor Juhos e7b1949d87 ar71xx: automatically find WLAN calibration data on TEW-673GRU
SVN-Revision: 33539
12 years ago
Gabor Juhos 8ed8e51e74 ar71xx: automatically find WLAN calibration data on DIR-825-B1
SVN-Revision: 33538
12 years ago
Gabor Juhos e70ad61e44 ar71xx: use different machtype and setup for the TL-MR3040
Should fix #12211. Compile tested only.

SVN-Revision: 33535
12 years ago
Gabor Juhos 7c85646176 ar71xx: ar934x_nfc: remove unused oob parameter of ar934x_nfc_send_read
SVN-Revision: 33454
12 years ago
Gabor Juhos 3bdf0bc36f ar71xx: ar934x_nfc: increase DMA retry count
SVN-Revision: 33453
12 years ago
Gabor Juhos b7cb43f6a6 ar71xx: ar934x_nfc: optimize READOOB operation on large page devices
SVN-Revision: 33452
12 years ago
Gabor Juhos 96dde2e591 ar71xx: ar934x_nfc: fix RNDOUT operation
SVN-Revision: 33451
12 years ago
Gabor Juhos 338b698fb6 ar71xx: ar934x_nfc: fix READ{0,1} operation on large page devices
SVN-Revision: 33450
12 years ago
Gabor Juhos 5804b9d1b7 ar71xx: register the NAND controller device on the RB2011
SVN-Revision: 33388
12 years ago
Gabor Juhos 4fd67c3cd4 ar71xx: add device registration code for the AR934x NAND flash controller
SVN-Revision: 33387
12 years ago
Gabor Juhos 1e5fdbeae5 ar71xx: ar934x_nfc: experimental NAND Flash Controller driver for AR934x
SVN-Revision: 33385
12 years ago
Gabor Juhos aa2f4d4c8d ar71xx: add initial support for RB2011UAS-2HnD
SVN-Revision: 33349
12 years ago
Gabor Juhos 3686e18727 ar71xx: use routerboot_find_tag to find wlan data offset on RB751
SVN-Revision: 33348
12 years ago
Gabor Juhos ccabe4a1b4 ar71xx: add RouterBoot related helper routines
SVN-Revision: 33347
12 years ago
Gabor Juhos 44bf7c7cc1 ar71xx: define MTD partitions for RB2011
SVN-Revision: 33345
12 years ago
Gabor Juhos 6ae5ec16e0 ar71xx: add preliminary support for Mikrotik RB2011L
This patch adds preliminary support for the Mikrotik RB2011L.
The NAND flash is not yet supported, so only the initramfs
kernel can be used for now.

[juhosg: remove unnecessary PCI/USB related stuff, the board
does not use that, update commit message]

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 33344
12 years ago
Gabor Juhos 94bac7366c ar71xx: use dynamic clock dividers on the 2nd MDIO of AR934x
SVN-Revision: 33343
12 years ago
Gabor Juhos 7592057774 ar71xx: add dynamic MDIO clock calculation
SVN-Revision: 33342
12 years ago
Gabor Juhos 88a5478781 ar71xx: use the RLE library for RB751
SVN-Revision: 33338
12 years ago
Gabor Juhos 11c3392b7f Revert "ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240"
That was based on assumptions.

SVN-Revision: 33310
12 years ago
Gabor Juhos eb9a97a360 ar71xx: all0315n: fix ethernet according to vendor info
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33309
12 years ago
Gabor Juhos 5fdbb33db4 ar71xx: Buffalo WZR-HP-AG300H LED support
An improved LED support for Buffalo WZR-HP-AG300H.

There will be two new packages to go with this patch
(ar922x-led-fix-hotplug and ar922x-led-fix-init).
These packages essentially perform the same task of
disabling "JTAG over GPIO pins" function which is
currently required for LEDs on AR922x emac GPIO to work,
and are both considered a temporary fix that circumvent
this problem.

[juhosg: add the hotplug script from the proposed
ar922x-led-fix-hotplug package to ar71xx/base-files]

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

SVN-Revision: 33294
12 years ago
Gabor Juhos eebdd633e4 ar71xx: add support for the Allnet ALL0315N board
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33281
12 years ago
Gabor Juhos cca873e8e0 ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33280
12 years ago
Gabor Juhos 8b3d95bba9 ar71xx: add support for the TRENDnet TEW-712BR board
SVN-Revision: 33231
12 years ago
Gabor Juhos 2811d6c183 ar71xx: fix comment style in mach-tl-wr2543n.c
SVN-Revision: 33227
12 years ago
Gabor Juhos 5a694e09c8 ar71xx: add ALL0305 board alias
For the pure convenience of having a correctly named
image and system name in /proc/cpuinfo , until we can
do that by having system names in DTS...

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33224
12 years ago
Gabor Juhos 0517183b9c ar71xx: add support for TP-Link TL-WDR3600
The TL-WDR3600 is identical to the TL-WDR4300 with the exception that is has
only two antennas.

[juhosg: remove the custom machine type, change the board name instead]

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

SVN-Revision: 33219
12 years ago
John Crispin 968ac3fd03 add led defintion for the WR2543 5GHz WLAN LED
Signed-off-by: Andy Leiserson <andy@leiserson.org>

SVN-Revision: 33215
12 years ago
Gabor Juhos 79a8660d67 ar71xx: init switch hw_reset on the TL-WR1043ND board
SVN-Revision: 32944
12 years ago
Gabor Juhos 563400ef10 ar71xx: ew-dorin: added router firmware generation
[juhosg: remove dead code]

Signed-off-by: embedded wireless GmbH <info@embeddedwireless.de>

SVN-Revision: 32934
12 years ago
Gabor Juhos 010aec0619 ar71xx: Buffalo WLAE-AG300N initial support
The patch set for Buffalo WLAE-AG300N initial support.

There is another patch for wireless led support that
is posted separately.

Note on serial console:
This unit has buffalo standard 4 pin console, but the unit may not power
on if some console apparatus is connected. This is probably due to some
electronic interaction between the unit's electronic power switch circuit
and the serial console apparatus. If this happens, it is required to power
on the unit without the console, then quickly (re-)attach it.

[juhosg: fix coding style]

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

SVN-Revision: 32931
12 years ago
Gabor Juhos 7c932579fa ar71xx: make 2.4GHz wlan LED work on the WR2543N
Because ath9k does not supports separate LEDs for
different bands yet, the 2.4GHz LED will show the
activity, even if the 5GHz band is selected.

SVN-Revision: 32615
12 years ago
Gabor Juhos 797944d3f1 ar71xx: add support for the OpenMesh OM2P-LC board
Patch-by: Marek Linder <marek@open-mesh.com>

SVN-Revision: 32611
12 years ago
Gabor Juhos d1b237b335 ar71xx: add initial support for the QCA955X SoCs
SVN-Revision: 32606
12 years ago
Gabor Juhos b8618fd3f2 ar71xx: improve MDIO busy wait code
SVN-Revision: 32586
12 years ago
Gabor Juhos 86013d40d5 ar71xx: remove the built-in MTD map of the ALL0258N
Pass the mtd_layout via the kernel command line instead.
Also increase the kernel partition size to 1024k, so current kernel can fit in.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32585
12 years ago
Gabor Juhos 8b9931fd27 ar71xx: add support for the TL-WDR4300 board
SVN-Revision: 32459
12 years ago
Gabor Juhos f509a87f2d ar71xx: remove superfluous include of asm/mach-ath79/pci.h
SVN-Revision: 32455
12 years ago
Gabor Juhos 1a1121158f ar71xx: add a common function to configure USB power GPIOs
SVN-Revision: 32454
12 years ago
Felix Fietkau 26cf21df02 ar71xx: add support for the embeddedwireless Dorin board (based on patch by embeddedwireless.de)
SVN-Revision: 32447
12 years ago
Felix Fietkau dddf321b6e ar71xx: swap the PHY address of the ethernet port of TL-MR3040/TL-MR11U similar to TL-MR3020 to fix ethernet link detection
SVN-Revision: 32336
12 years ago
Felix Fietkau 73b8805e78 ar71xx: fix PHY setup on TL-MR3020 (fixes #11572)
SVN-Revision: 32093
12 years ago
Felix Fietkau dc9675282e ar71xx: add a helper function for setting up PHY4 swapping on ar933x
SVN-Revision: 32092
12 years ago
Felix Fietkau a9cd8446f3 ar71xx: do not override the mdio clock for ar9330. the override value (obtained from an atheros driver) seems to break ethernet functionality
SVN-Revision: 31956
12 years ago