Commit Graph

1360 Commits (576621f1e353339fe81ece6cff7e8bcd12cbc7b8)

Author SHA1 Message Date
Felix Fietkau 92c41de105 ramips: swap radio calibration data pointers for DIR-860L
Fixes low 5 GHz tx power issues

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

SVN-Revision: 46497
9 years ago
John Crispin 1b6a6abf04 ramips: add additional uarts to mt7628.dtsi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46477
9 years ago
John Crispin 37495247d2 ramips: make sd driver depend on mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46476
9 years ago
John Crispin 351a55ac29 ramips: add CD polling to sd driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46475
9 years ago
John Crispin ebe957fad6 ramips: various mt7688 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46474
9 years ago
John Crispin e04e44a223 ramips: add subtarget for mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46473
9 years ago
John Crispin 7449ea88db ramips: add clock strecthing support to i2c driver
fixes #19816

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

SVN-Revision: 46472
9 years ago
John Crispin dcae3723fd ramips: add support for STORYLiNK SAP-G3200U3
STORYLiNK SAP-G3200U3 is an AC1200 router based on MT7621AT+MT7602EN+MT7612EN.
It has 128MB DDR3, 8MB NOR FLASH, 5-port Gbps switch and 1x USB 3.0.

The following patch adds support for this device.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons
* ethernet switch and USB diag LEDs
* UART
* GPIOs

Tested and not working:
* LEDs for WiFi radios (connected with WiFi chips, not supported in mt76?)
* failsafe mode (known problem, needs workaround like other MTK based devices)

More information in Wiki: http://wiki.openwrt.org/toh/storylink/sap-g3200u3

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46454
9 years ago
Felix Fietkau 363f32c8ac ramips: enable mt76 by default for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46410
9 years ago
John Crispin eff79253f2 ramips: add support for Planex MZK-DP150N
This patch add support for Planex MZK-DP150N.
a mini router on the MT7620A SoC with one Ethernet port and a 802.11n 2.4 GHz radio.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 46405
9 years ago
John Crispin 5e1c7fb0cc ramips: added gpio spi refclk support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46359
9 years ago
John Crispin 1aca6e6b27 ramips: added led support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46350
9 years ago
John Crispin b618573815 ramips: adding support for OY-0001 Wireless Router
Adding support for OY-0001 Wireless Router.
OY-0001 is a wireless router made by oyewifi.com. Below is the details:
MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN.

Signed-off-by: Tom Deng <2579131212@qq.com>

SVN-Revision: 46349
9 years ago
John Crispin 0ac2ef13f7 ramips: mt7620 ArcherC20i USB support
USB port of TP-Link Archer C20i does not work with trunk and CC.
This patch adds two nodes (ehci and ohci) to the device tree enabling USB.

Signed-off-by: Gunnar Thorburn <gunnar@thorburn.se>

SVN-Revision: 46348
9 years ago
Felix Fietkau 1e6479aa87 ramips: collect rx related members to fe_rx_ring struct
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 46295
9 years ago
Felix Fietkau 279be7be09 ramips: add xmit_more support
use pktgen to verify on rt3662. can improve transmit rate.
pkt_size 1500
burst 1 : 807Mb/sec
burst 8 : 984Mb/sec

pkt_size 60
burst 1 : 57Mb/sec
burst 8 : 236Mb/sec

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 46294
9 years ago
John Crispin 2658b33f68 ramips: a5-v11 board fix power led blinking at boot
Signed-off-by: Konrad Kotowicz <skoti1@go2.pl>

SVN-Revision: 46215
9 years ago
John Crispin d08209a1c5 ramips: fix typo in WHR1166D mtd size variable
Fix typo in WHR1166D mtd size variable

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>

SVN-Revision: 46214
9 years ago
Jonas Gorski 901a7fa067 kernel: update 3.18 to 3.18.17
Changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.17

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46150
9 years ago
Rafał Miłecki 3cb077111a ramips: refresh patch with USB_MT7621_XHCI_PLATFORM
Fixes: edea6dfde4dc ("kernel: make USB_XHCI_PLATFORM selectable")
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46085
9 years ago
John Crispin 2238b75285 ralink: add support for mt7621 switch counters
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 46050
9 years ago
John Crispin cf1fb25e67 ramips: Add Support for the Linksys RE6500
This patch adds support for the Linksys RE6500 Range Extender

http://wiki.openwrt.org/toh/linksys/re6500

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

SVN-Revision: 46043
9 years ago
John Crispin e26ba31f76 ramips: Add support for the D-Link DCS-930 B1
http://wiki.openwrt.org/toh/d-link/dcs-930l

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

SVN-Revision: 46042
9 years ago
John Crispin 640b211b1e ramips: add support for PandoraBox PBR-M1
This patch is for PandoraBox PBR-M1 which is based on mt7621,
all the features work fine, including rtc, leds, button, usb3.0, etc.

Signed-off-by: tymon <banglang.huang@foxmail.com>

SVN-Revision: 46041
9 years ago
John Crispin 765efbf10e ramips: fix a bug in the cevt code on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46038
9 years ago
Jonas Gorski 9a59b350b7 kernel: update 3.18 to 3.18.16
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46011
9 years ago
Felix Fietkau d5542640d4 ramips: fix Power LED handling for WHR-300HP2, WHR-600D, WHR-1166D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45930
9 years ago
John Crispin bd87d11e58 ralink: add missing symbol
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45918
9 years ago
John Crispin 0ec720e9a9 ramips: Add support for RT5350F-OLinuXino V2
Version 2 : White spaces and  alphabetical order problems
 fixed
Support for Olimex RT5350F-OLinuXino Boards, tested with RT5350F-OLinuXino and RT5350F-OLinuXino-EVB boards. More Info :
 https://www.olimex.com/Products/OLinuXino/RT5350F/RT5350F-OLinuXino/open-source-hardware

Signed-off-by: Dimitar Gamishev HeHoPMaJIeH <gamishev@gmail.com>

SVN-Revision: 45902
9 years ago
Felix Fietkau 4480fbce62 ramips: improve tx clean up and add fe_tx_ring struct
if there is any new tx need to clean up. do it in next napi poll.
collect tx related members to fe_tx_ring struct. for better
cache usage and more readable.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 45895
9 years ago
Felix Fietkau 2a66c9886f ramips: change ethernet napi interrupt sequence
when open device. first ready napi software rx.
then enable hardware interrupt.
final start software tx queue to send data.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 45894
9 years ago
Felix Fietkau 0d043d3ac0 ramips: fix ethernet vlan tx offload support check when delete
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 45893
9 years ago
Felix Fietkau 4746e539e0 ramips: fix the memory map on FireWRT
Avoid the use of memory marked as reserved

MT7621 support 512MB memory.
According to "MT7621_ProgrammingGuide_Preliminary_Platform.pdf"
0x0~0x1c000000        448MB
0x20000000~0x4000000  64MB
total 512MB

Signed-off-by: wengbj <fl.service@t-firefly.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45892
9 years ago
Felix Fietkau 69d79ea951 ramips: use highmem on the FireWRT board
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45890
9 years ago
Felix Fietkau d7023e105f ramips: enable highmem support for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45889
9 years ago
Felix Fietkau 7a23eae245 ramips: remove prompt of the USB_MT7621_XHCI_PLATFORM symbol to avoid issues with kernel_menuconfig
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45888
9 years ago
Felix Fietkau e56b6f6e66 ramips: fix swapped colors for router LED on WHR-1166D (thx, Björn)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45847
9 years ago
Felix Fietkau 1e659c29ec ramips: rename status led to wifi on WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45846
9 years ago
Felix Fietkau a6df9f0472 ramips: fix buttons on WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45845
9 years ago
Felix Fietkau 5d6788f773 ramips: extract MAC address on WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45844
9 years ago
Felix Fietkau 420cdb3783 ramips: fix partition layout of WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45843
9 years ago
Felix Fietkau 8b42d93358 ramips: implement sysupgrade support for whr-300hp2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45842
9 years ago
John Crispin adbec3f132 ramips: fix imagebuilder
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45820
9 years ago
John Crispin 3f9999b44b ramips: dont set illacc to y by default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45795
9 years ago
John Crispin 302a9f8982 ramips: diable ill_acc driver by default
this treacled down via the stable tree and wandered into 3.18.14

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

SVN-Revision: 45793
9 years ago
Felix Fietkau 83703fc076 ramips: check size after padding
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 45777
9 years ago
Jonas Gorski caea19a3e0 ramips: fix hang on boot on rt305x
Fix an upstream regression on 3.18+ that causes rt305x based devices
to hang on boot.

Fixes #19715.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45747
9 years ago
John Crispin 870cd41936 rampis: add support for status led on ASUS RT-N14U
The diag.sh script lacked an entry for the status led on the RT-N14U,
map it to the asus:blue:power led which is also used by the boot loader
to report boot status (eg. TFTP recovery mode VS normal boot)

Signed-off-by: Matteo Panella <m.panella@level28.org>

SVN-Revision: 45725
9 years ago
John Crispin 9c86abae0e ramips: Adding support for AXIMCom MR-102N 3G/4G Travel Mobile Router
MR-102N is a RT3050F based wireless router(32M RAM + 8M NOR flash) with 1 USB
and 1 ethernet port.  The original product information can be found at:
http://www.aximcom.com/en/MR-102N

Signed-off-by:	Tai-hwa Liang <atliang@gmail.com>

SVN-Revision: 45724
9 years ago
John Crispin 4810f3f803 ramips: fix switch names for several boards in device tree
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45723
9 years ago
John Crispin 5e96c2d541 ramips: add support for Comfast CF-WR800N
This patch adds support for Comfast CF-WR800N, a wall-plug wireless router
based on the MT7620N SoC with one Ethernet port and a 802.11n 2.4 GHz radio.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 45722
9 years ago
Jonas Gorski 76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45711
9 years ago
Imre Kaloz f86c07d8d4 The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45596
9 years ago
Jonas Gorski 954004eccc kernel: disable INET_LRO by default
INET_LRO deprecated and there are exactly two drivers using it, neither
being included in any of the targets enabling INET_LRO. At the same time
both drivers needing it select it.

So just disable it for everyone.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45584
9 years ago
John Crispin 03dd7b6bdb ralink: the systick clocksource was calculating a bad bogo mips value
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45554
9 years ago
Felix Fietkau d808d9be86 ramips: switch WSR-1166 and WSR-600 to single-firmware mtd layout
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45507
9 years ago
John Crispin 607a7a35be ralink: fix cevt-r4k hack
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45342
9 years ago
John Crispin b7f19a5b26 ramips: Add support for Microduino MicroWRT
MicroWRT is an wireless router with 2 USB,1 ethernet port. It
has a 16M flash and 64M DDR2 RAM. You can use most interface, such as
i2c, SPI, i2s and PCIe. Besides that there are three expansion borad to
combine with the core board. The detailed information, please refer to
https://www.microduino.cc/wiki/index.php?title=Main_Page

This patch adds support for it.
Because there is only one port,so disabled VLAN and use eth0 as lan
port. and only a power LED control by power pin.

Signed-off-by: 盛凯 <shengkai81@gmail.com>

SVN-Revision: 45331
9 years ago
John Crispin 449c5f7b30 ramips: Add support for ZTE Q7
ZTE Q7 is a wireless router with SD Card,USB,1 ethernet port and a battery.It used MT7620a SoC.
I can,t find any information about this router on ZTE's website.
But I found this : http://en.cctairmobi.com/plus/list.php?tid=40
This router is the same as ZTE Q7 and later I found that both routers are made by the same company:-D

This patch adds support for it.
Because there is only one port,I disabled VLAN and use eth0 as lan port.
I could only create a sysupgrade firmware because I don't know how the orignal webpage check the uploaded image:-(

Signed-off-by: 郭传鈜 <gch981213@gmail.com>

SVN-Revision: 45208
9 years ago
Jonas Gorski 703c41cf01 ramips: move relocating loader to common location
Allow other targets to use it, too.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45162
9 years ago
John Crispin ddb5ab2acf ralink: mt7621 add ECHI OCHI XCHI support
Lets hope that this time it won't break the other ralink targets.

Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 45067
9 years ago
John Crispin 40d25d3eb5 ralink: drop xhci patch, it break !mt7621 builds
will re-add it tomorrow after fixing it

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

SVN-Revision: 45028
9 years ago
John Crispin 2cedb63d84 ralink: the xhci patch broke ehci Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45027
9 years ago
John Crispin 21e0f98903 ralink: add default pinctrl node for mt7621 eval kit
fixes #19213

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

SVN-Revision: 45022
9 years ago
John Crispin 0a9e38bb21 ralink: mt7621 add ECHI OCHI XCHI support
The usb stroage not working since updated 3.18. Porting from MTK's source code.

Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 45021
9 years ago
John Crispin 024e0c1835 ralink: add FireWRT power button
Signed-off-by: Jay Weng <fl.service@t-firefly.com>

SVN-Revision: 45019
9 years ago
John Crispin 10aa09b731 ralink: MT7621 add i2c controller driver
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from MTK's source code.
Last time i got some mess . This is new version.

Signed-off-by: Jay Weng <fl.service@t-firefly.com>

SVN-Revision: 45018
9 years ago
Felix Fietkau e890a3bc9a ramips: make ethernet register map u16 instead of u32
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44940
9 years ago
Felix Fietkau 37912d66c2 ramips: increase NAPI weight for mt7621 to improve routing performance a bit more
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44918
9 years ago
Felix Fietkau 975e1357e6 ramips: fix LAN/WAN MAC address for WSR-600/1166
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44903
9 years ago
Felix Fietkau dac483acb4 ramips: fix WSR-1166 green power LED
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44898
9 years ago
John Crispin 553528371b ralink: fix mt7621 i2c name
Signed-off-by: zouxf <fl.service@t-firefly.com>

SVN-Revision: 44868
9 years ago
John Crispin 7648d80c90 ralink: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44811
9 years ago
John Crispin c7229b96b7 ralink: support change tx/rx ring size
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44741
9 years ago
John Crispin 2c94eef5df ralink: use random generate mac address instead of default one.
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44740
9 years ago
John Crispin 800da5a02e ralink: add wifi 5g dts info for cy-swr1100
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44739
9 years ago
John Crispin 835b17c333 ralink: resize the flash partition for FireWRT
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44691
9 years ago
John Crispin 8c19f53007 ralink: MT7621 add i2c controller driver
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from MTK's source code.

Signed-off-by: daixj <fl.service@t-firefly.com>

SVN-Revision: 44690
9 years ago
John Crispin 0496393f9c ralink: FireWRT flash size is up to 16M.
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44661
9 years ago
John Crispin 260dea38fb ralink: add FireWRT IO multiplexing
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44660
9 years ago
John Crispin 9654b38319 ralink: add missing symbol that broke full builds
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44642
9 years ago
John Crispin d15ac306fa kernel: move KERNFS to generic config
KERNFS symbol is selected by SYSFS, so place it in generic config.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44615
9 years ago
John Crispin f04a268a04 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED
Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since
only one platfrom (omap) needs them.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44614
9 years ago
John Crispin 6617845711 kernel: move MTD_SPLIT_SUPPORT to generic config
CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform
specific configs explicitly enables it, while no one platform disables
this symbol. So place it in generic config and remove from platform
specific configs.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44612
9 years ago
John Crispin 7886cced18 kernel: remove GENERIC_NET_UTILS from platform configs
CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled
in generic config, so we don't need this symbol in platform specific
configurations.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44611
9 years ago
Jonas Gorski 3139140339 kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs
Most MIPS targets have it disabled, so move the symbol to the generic
configs to keep target configs small.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44583
9 years ago
John Crispin 850b3169ed ramips: rt288x: add missing symbol
Defaulting to disabled, based on the value of
the (old?) CONFIG_RALINK_USBPHY

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 44500
9 years ago
John Crispin 0ba8217008 ramips: nexx wt3020: fix status led
For Nexx WT3020 board_name is wt3020, not nexx-wt3020

root@OpenWrt:~# . /lib/ramips.sh; echo $(ramips_board_name)
wt3020

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

SVN-Revision: 44499
9 years ago
John Crispin 52b2a2c398 ralink: bump to v3.18
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44495
9 years ago
John Crispin 64db436416 ramips: fix the mt7628 dts file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44494
9 years ago
John Crispin 3618391514 ramips: Buffalo WZR-AGL300NH target support
I got work with this patch.
Ethernet switch (includes VLAN), WiFi connected via PCIe, LEDs, buttons.

In mtd partion map of DTS file, I renamed Linux firmware regions (kernel + root squashfs) to “firmware”because it allows kernel to split kernel and roots and rootfsdata.

signed-off-by: ngc@ff.iij4u.or.jp
——
——

SVN-Revision: 44470
9 years ago
John Crispin f440414c55 ramips: enables rt288x PCIe
To choose whether bulid or not RT288x PCIe bus driver, CONFIG_SOC_RT2880 is wrong.
Here is its fix, and enables PCIe bus driver for some targets which have 2nd WiFi chipset via PCIe bus.

signed-off-by: ngc@ff.iij4u.or.jp
————
————

SVN-Revision: 44469
9 years ago
John Crispin 428dd56a60 ralink: fix the config files
oops, accidently moved instead of copied them

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

SVN-Revision: 44454
9 years ago
John Crispin 44b929fcdd ralink: make the mt7621 irq core with with the new CM api
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44418
9 years ago
John Crispin 0f4431758b ralink: fix when tx done is 0 also need to clean interrupt status
Signed-off-by: michael lee <igvtee@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44401
9 years ago
Nicolas Thill 29a57ce073 ramips/mt7620: add missing config symbol
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44399
9 years ago
John Crispin 07352ca2c7 ralink: fix hw status almost full not work on mt7620 and mt7621
the old FE_INT_STATUS register becomes two registers.
FE_INT_STATUS and INT_STATUS. so the hw status almost full
must change to read from FE_INT_STATUS register.
tx/rx done read from INT_STATUS register.

mt7620 datasheet define CNT_GDM1_AF at BIT(29).
but after test it should be BIT(13). why?

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44371
9 years ago
John Crispin 525cd8aedb ralink: change rt3883 cpu type to 74kc
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44370
9 years ago
John Crispin 4ce7053b2b ramips: Kingston MLW221 and MLWG2 cleanup
MLW221 dts use tabs NOT spaces.
MLWG2 dts typo and 1 tab not spaces
01_leds and diag.sh cleanup

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

SVN-Revision: 44356
9 years ago
John Crispin 2c03605028 ramips: fix mt76 radio pcie location definition for in Xiaomi MiWiFi Mini
This patch sets the correct location of the mt76 radio in the pcie bridge
(pcie-bridge instead of pcie0). Additionaly, it disables the 2.4 GHz band.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 44355
9 years ago
John Crispin 2dd7bce338 ramips: Add mt76 node for Lenovo Y1 and Y1S.
Both Y1 and Y1S have MT7612E wireless chip so I submitted this patch.
Tested on Lenovo Y1.

Signed-off-by: 郭传鈜 <gch981213@gmail.com>

SVN-Revision: 44354
9 years ago
John Crispin 654bc380ec ralink: add 3.18 support
keep default as 3.14, mt7621 gic need to be ported to 3.18

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

SVN-Revision: 44349
9 years ago
Luka Perkov 4b0fbf3072 ramips: fix patches after 3.14.32 bump
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44324
10 years ago
Luka Perkov 81db848656 targets: base-files: diag.sh does not need to be executable
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44305
10 years ago
Luka Perkov 92e6e80080 targets: files in uci-defaults do not need to be executables
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44304
10 years ago
John Crispin df22a8e3d0 ralink: fix USB host function for Intenso M2M
The ubootloader of the M2M sets the reset bits for
both USB device and USB host during initialization
(to save a few mA of power during boot).

However, for the usb<->sata bridge to be properly
detected, it is necessary to clear both reset bits
as otherwise the kernel logs will just be filled
with:

usb 1-1: device descriptor read/64, error -145
...

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 44248
10 years ago
John Crispin b41bf7479e ralink: cleanup firefly default packages
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44244
10 years ago
John Crispin 043f462be4 ralink: add FireWRT button detail
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44242
10 years ago
John Crispin d725678a43 ralink: add FireWRT led detail
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44241
10 years ago
John Crispin 1258b4cc94 ralink: add ethernet macaddr to dts for FireWRT
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44240
10 years ago
John Crispin 70db4e4639 ramips: add support for Xiaomi MiWiFi Mini devices
This patch adds support for Xiaomi MiWiFi Mini, a 802.11a/b/g/n/ac dual radio
wireless router based on the MediaTek MT7620a SoC.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 44238
10 years ago
Felix Fietkau 10c8d8c483 ramips: fix ethernet driver tx completion polling
- budget is decremented with completed frames, so don't check if done is
smaller
- ACK the interrupt before processing further frames to fix a small race
condition.

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

SVN-Revision: 44234
10 years ago
John Crispin c56cf3edc7 ralink: check ethernet MAC address whether it is valid
The mac address usually write in factory block. but sometime user erase this block , the mac address will change to ff:ff:ff:ff:ff:ff.
This patch is purpose to fix this issue.

Signed-off-by: wengbj <linux.c@foxmail.com>

SVN-Revision: 44166
10 years ago
Felix Fietkau bef829efa5 ralink: fix ethernet feature TSO not work
* fix TSO features verify on mt7621 firewrt board
* improve tx clean up. no need to access uncached
  memory. also use TX_DTX register instead of
  read tx ring DONE bit
* mt7621 need napi weight 64 to get more performance
* remove netif_receive_skb, after kernel version
  3.7 tcp4_gro_receive can handle tcp checksum.
  on rt2880 use iperf tcp LAN to WAN throughput test.
  with gro 135 Mbits/sec. without gro 80.4Mbits/sec.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44118
10 years ago
Felix Fietkau 3ec294a825 ralink: init tx/rx vlan offload register for mt7621
on mt7621 don't have tx vlan vid registers.
so set FE_REG_FE_DMA_VID_BASE to 0.
set rx vlan offload register to disable.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44117
10 years ago
Felix Fietkau e634e07893 ralink: use fe_max_buf_size to get rx buffer size
the rx_buf_size now is 1534 when mtu is 1500.
the ethernet frame with vlan tag and FCS is 1522.
so the buffer is enough.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44116
10 years ago
Felix Fietkau 5d4837706a ramips: fix ethernet vlan tx offload support check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44115
10 years ago
John Crispin 36d19e46df ramips: add support for Tenda 3G150B
Add suport for Tenda 3G150B:
- cpu: Ralink RT5350F
- flash: 4MB
- ram: 32MB
- 1x USB 2.0
- 1x RJ45
- one reset button
- battery powered (BP-4L, 3.7V 1450mAh)

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

SVN-Revision: 44073
10 years ago
John Crispin deb66a555e ramips: improve and fix Memory 2 Move support
This patch is a follow up for my previous patch:
"ramips: add support for Intenso Memory 2 Move USB 3.0".

It fixes a couple of errors in the DTS (one of which broke
the gpio-buttons). The kmod-leds-gpio dependency has been
dropped as it is already part of the ramips target.

Furthermore the ramdisk/uImage image is generated by default
for the rt3050 subtarget. This image is needed to flash
OpenWrt for the first time onto the device via TFTP.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 44072
10 years ago
John Crispin 607ecb249c ralink: add support for firewrt
this is a mt7621 based board

Signed-off-by: wengbj <linux.c@foxmail.com>

SVN-Revision: 44055
10 years ago
Felix Fietkau 9e7cc83edc ralink: fix ethernet rx buffer size breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44047
10 years ago
Felix Fietkau a4460ca5a7 ralink: improve check rx sg function. use check frags instead of function call
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44046
10 years ago
Felix Fietkau b3ca42ec8f ralink: correct handle hardware rx 2bytes offset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44045
10 years ago
Felix Fietkau 03ea0cf6f1 ralink: use fe_reset to control all reset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44044
10 years ago
Felix Fietkau 50588ef192 ralink: improve tx_timeout function
* use default timeout value
* print more debug ring info
* move timeout reset function to workqueue

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44043
10 years ago
Felix Fietkau 69ee1807ed ralink: add ethernet fe and esw reset control bit
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44042
10 years ago
Felix Fietkau a5b578c2d9 ralink: reduce access to uncached tx/rx dma ring buffer
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44041
10 years ago
Felix Fietkau 68f50c4e2d ramips: downgrade mt7621 "Spurious GIC Interrupt" to debug messages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44028
10 years ago
Felix Fietkau b0e6e6e2f2 ramips: add mt7621 cpu feature overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44027
10 years ago
Felix Fietkau f66cca61d2 ramips: refresh kernel patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44025
10 years ago
Felix Fietkau 632be658d5 ramips: add missing copyright info for relocate stub
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44017
10 years ago
Felix Fietkau 40b740b232 ramips: add preliminary support for DIR-860L B1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44016
10 years ago
Felix Fietkau 33848f14d3 ramips: add code for relocating a kernel to the right place
(used if the boot loader wants a different loadaddr/entry)

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

SVN-Revision: 44014
10 years ago
Felix Fietkau 82f21058a1 ramips: enable the seama mtdsplit parser
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44013
10 years ago
Felix Fietkau 590e0d7f81 ramips: register mt76 device tree info for WSR-1166DHP
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44010
10 years ago
Felix Fietkau 070f67aa9b ramips: register mt7621 pcie through device tree
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44009
10 years ago
John Crispin 50a5cd829c ralink: sync mt7621 pcie driver with latest SDK
fixes newer ECO versions and a hang on reboot bug

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

SVN-Revision: 44008
10 years ago
John Crispin 88df2bd2ff ramips: add support for Intenso Memory 2 Move USB 3.0
This adds support for a rt5350-based "portable nas" solution
from Intenso. The board comes with 32M RAM and 8M Flash, the
built-in HDD is connected/accessible via a usb3.0<->sata
bridge VLI VL701.

The device has 1 Ethernet port (100M/10M), 1 micro b usb 3.0
socket (for charging the battery, or accessing the hdd directly).
Wireless connectivity is provided by the rt5350 SoC [i.e.:
802.11n 1x1 2.4 GHz with a pcb antenna.]

Serial, leds, wifi, ethernet and usb are tested and
as far as I can tell: they are working fine (tm).

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 44001
10 years ago
Felix Fietkau 00db07be58 ramips: fix tx bql related race condition in the ethernet driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43995
10 years ago
John Crispin 7a65864344 ralink: add support for Kingston MLWG2
This patch adds support for the Kingston Mobilelite Wireless G2 (MLWG2)

http://wiki.openwrt.org/toh/kingston/mlwg2

https://github.com/gmacario/kingston-mlwg2-hack/wiki/Testing-OpenWrt-on-MLWG2

Tested-by: Gianpaolo Macario <gmacario@gmail.com>

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

SVN-Revision: 43990
10 years ago
John Crispin 56a54515df ramips: add i2c pingroup to the pinmux for rt-n14u
i2c pins are wired to wps a reset button

Signed-off-by: Pavel Löbl <lobl.pavel@gmail.com>

SVN-Revision: 43985
10 years ago
John Crispin 27b82a7990 ramips: fix default led configuration for rt-n14u
use new helper function to generate default led configuration

Signed-off-by: Pavel Löbl <lobl.pavel@gmail.com>

SVN-Revision: 43984
10 years ago
Felix Fietkau bc78885e70 ramips: add missing -Os cflag for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43954
10 years ago
Felix Fietkau acfc6c153b ramips: use a larger number of rx descriptors on mt7621 to work around rx overrun related packet loss
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43953
10 years ago
Felix Fietkau 05d4b8c79b ramips: remove interrupt coalescing, it is unnecessary with napi polling and could reduce throughput
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43952
10 years ago
Felix Fietkau 5b0d18093d ramips: convert mt7621 images to new image building code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43908
10 years ago
Felix Fietkau e66f1292aa ramips: simplify mkimage kernel loadaddr/entry handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43906
10 years ago
Felix Fietkau 48d8bc4f97 ramips: add preliminary Archer C20i support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43898
10 years ago
John Crispin 2120e48e75 ramips: Fix HooToo HT-TM02 support.
- Fix LED definitions.
- Add mode-switch slider definition (at GPIO 14).
- Remove unneeded VLAN now that the ethernet driver is fixed and TCP packets get passed correctly now. (This router only has one port.)
- Fix LAN port MAC address, which is defined in the factory partition as WLAN MAC address + 1.
- Fix board name, as the company name is HooToo and not HOOTOO.
- Remove unnecessary packages from the profile. (The end-user is supposed to use mechanisms such as the ImageBuilder in order to add his own set of packages to his own images... while the precompiled images should just contain the core set of packages needed to run the base functions of a wireless router.)

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

SVN-Revision: 43883
10 years ago
John Crispin 5ea31bbc58 ramips: Fix for gpio falling interrupt mask
This patch fixes a wrong mask operation for the rt2880-compatible ralink devices.
The mask operation reads the actual flags and then logical combines it with the pin flag it want to set.
Unfortunally, for rising as for falling interrupt flags the actual flag status of the rising interrupts was used.
That caused a problem if you want to use more than one falling GPIO interrupt.
Now the correct (seperated) actual status is used for both, falling and rising.

Signed-off-by: Jonas Arndt <info@greenwire-elektronik.de>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43882
10 years ago