Commit graph

2251 commits

Author SHA1 Message Date
John Crispin
6674006bd0 ramips: add missing i2s alias
Signed-off-by: John Crispin <john@phrozen.org>
2016-07-24 06:38:29 +02:00
Jo-Philipp Wich
b051ac76e8 ramips: mt7621: add missing kernel symbol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-07-16 13:59:12 +02:00
Hauke Mehrtens
efa1960abb kernel: update kernel 4.4 to version 4.4.15
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13 15:39:15 +02:00
Michael Lee
9062c4fe99 ramips: modify audio kernel module and add dma options
* add gdma and hsdma kernel modules
* i2s support all ramips targets except rt288x
* i2s need gdma to transfer data
* add simple audio kernel module. it support device tree binding

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-07-11 14:19:47 +02:00
Michael Lee
c3e420f28c ramips: Add support for D-Link DCH-M225
D-Link DCH-M225 is based on Mediatek MT7620 with 64MB ram, 8MB flash,
3.5mm audio out support. but no ethernet and usb ports.
so you must default enable wifi.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-07-11 14:19:47 +02:00
Michael Lee
36d98e6c7a ramips: add MT7620 pinmux bits for mdio as refclk
The MT7620 uses a 2 bit wide configuration of the mdio.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-07-11 14:19:47 +02:00
Michael Lee
0460e9ffca ramips: enable MTD_SPLIT_SEAMA_FW for mt7620
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-07-11 14:19:47 +02:00
L. D. Pinney
cf8c77be6b ramips: Add support for the NixCore X1 Module
The NixCore X1 is a Ralink/MediaTek rt5350 WiFi Module.

http://nixcores.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: Drew Gaylo <drew@nixcores.com>
2016-07-11 14:19:47 +02:00
Rene Treffer
8876575601 ramips: fix partition size for RT5350F-OLINUXINO
The partition size is wrong, leading to out-of-disk-space even on no/moderate use.

Upstream fix from vendor: 2f25eb57ed
Suggested fix for openwrt: https://dev.openwrt.org/ticket/20321

Signed-off-by: Rene Treffer <treffer@measite.de>
2016-07-11 14:19:47 +02:00
John Crispin
252f751611 ramips: fix usb phy initialisation
this broke usb20 device detection.

Signed-off-by: John Crispin <john@phrozen.org>
2016-07-11 14:19:46 +02:00
Felix Fietkau
201dbb9fe8 ramips: fix build error in ubnt-erx initramfs factory image
Build initramfs kernel image, but skip factory image if initramfs size
is too big.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-06 10:12:37 +02:00
John Crispin
eca1021e5c ramips: fix buffalo wmr-300 lan port
Signed-off-by: John Crispin <john@phrozen.org>
2016-07-05 22:59:14 +02:00
John Crispin
2c9073282d ramips: fix MT7621 gsw handling
based on https://forum.openwrt.org/viewtopic.php?pid=323671#p323671

Signed-off-by: John Crispin <john@phrozen.org>
2016-07-05 22:59:13 +02:00
John Crispin
69a626b441 ramips: fix mt7621 SoC detection
Signed-off-by: John Crispin <john@phrozen.org>
2016-07-05 22:59:13 +02:00
John Crispin
d09f0045ea ramips: fix up switch settings for Sitecom WL-351 v1 002
Pinmux for rgmii needs to be set to rgmii, not gpio.
Hide the ESW switch on boot (using new rgmii esw devicetree attribute).
Also add a Sitecom-specific profile, since the image needs to include
the rtl8366 kernel driver.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
2016-07-03 08:00:26 +02:00
John Crispin
2dc9beddc0 ramips: disable the WP pin on the SDK mmc driver
Signed-off-by: John Crispin <john@phrozen.org>
2016-06-30 22:48:39 +02:00
John Crispin
81add8f753 ramips: fix pinmux typo
Reported-by: Joy Kicer <joykicer@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
2016-06-30 22:48:39 +02:00
Matthias Schiffer
0a0caa2656
ramips: set correct LAN/WAN MAC addresses on DIR-860L B1
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
2016-06-30 17:12:38 +02:00
Matthias Schiffer
103ed00cfb
ramips: add button support and make LEDs known to userspace for DIR-860L B1
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
2016-06-30 17:12:38 +02:00
Matthias Schiffer
fa9811814a
ramips: fix fixseama call on first boot
Commit "kernel: mtdsplit: calculate kernel partition precisely for Seama"
changed the kernel partition to only contain the kernel itself and not
the Seama header. Adjust the fixseama call to match what is used on
brcm53xx.

This fixes failing to boot a second time after flashing the factory image
on the affected devices.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
2016-06-30 17:12:38 +02:00
Hauke Mehrtens
84d489f64f kernel: update to version 4.4.14
Changelog: https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14

Some manual changes to target/linux/generic/patches-4.4/610-
netfilter_match_bypass_default_checks.patch were needed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-06-26 18:20:37 +02:00
Roger Pueyo Centelles
5fba0f0c0c ramips: add suport for ZBT APE522II
The ZBT APE522II is a dual-radio outdoor CPE based on the MT7620a SoC. It has
64 MB RAM, 8 MB flash, 2 Fast Ethernet ports via internal switch (one with
802.3af 48V PoE support), a 802.11b/g/n SoC 2.4 GHz radio and an 802.11a/n/ac
MT7612E-based 5 GHz radio.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2016-06-22 19:32:06 +02:00
Michael Lee
81913e4996 ramips: remove duplicate i2c dts info
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-20 11:45:44 +02:00
Michael Lee
60ccfbbad0 ramips: update i2c drivers
* add rt_i2c structure to store driver data
* rewrite read/write check function and add i2c error status check.
  so we don't need to wait until time out.
* add 10 bits address support. according to the data sheet i think
  it is possible. but i haven't verify it.
* the most important is start transfer only need once. otherwise
  it cause I2C_STARTERR status.
* add set i2c clock speed register by dts options "clock-frequency".
  not just hard code it.
* add mt7621 i2c driver. i just copy i2c-ralink.c and change register
  names. and the hardware don't support error status. so i remove it.
  but the logic is the same.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-20 11:45:44 +02:00
John Crispin
b180f24a3b Revert "ramips: update i2c drivers"
This reverts commit d8202a8409.

the commit broke I2C on various boards.

Signed-off-by: John Crispin <john@phrozen.org>
2016-06-17 04:13:07 +02:00
John Crispin
bfcbca3e04 mediatek/ralink: fix boardnames
Signed-off-by: John Crispin <john@phrozen.org>
2016-06-14 13:00:30 +02:00
Jo-Philipp Wich
5550d98015 ramips: fix kmod-sound-mt7620 packaging
Commit 9ff8928bb9 renamed the snd-soc-mt7620-i2s
driver and dropped snd-soc-mt7620-wm8960 which selected CONFIG_SND_SOC_WM8960
breaking all ramips builds due to undefined kernel config symbols.

Rework the kmod-sound-mt7620 package to explicitely select the
CONFIG_SND_SOC_WM8960 symbols and change it to bundle the renamed .ko file.

Also remove the @BROKEN flag and exclude it on the rt288x subtarget instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-14 14:31:18 +02:00
Henryk Heisig
01fb393c67 ramips/image: Add Archer C50 to mt7620 Makefile
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-06-13 22:51:43 +02:00
Henryk Heisig
75af981239 ramips/base-files: Add support for Archer C50
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-06-13 22:51:43 +02:00
Henryk Heisig
1c00c09eb6 ramips/dts: Add support for Archer C50
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-06-13 22:51:43 +02:00
Michael Lee
9a4935687d ramips: add support for DuZun DM06
DuZun DM06 is a develop board based on mt7628
64M RAM, 8M SPI Flash, 1 WAN, 1 LAN.
wm8960 codec with line out, line in and speaker output.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:43 +02:00
Michael Lee
49b7421836 ramips: enable wm8960 kernel menuconfig select option
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:43 +02:00
Michael Lee
6f61990d15 ramips: add i2s clocks
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:43 +02:00
Michael Lee
921d782eb7 ramips: update i2s dtsi files
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
9ff8928bb9 ramips: improve i2s drivers
* remove mt7620-wm8960.c use simple card and DTS to do it
* add old chips support
* add 12Mhz refclk setup. this is hard code. need use clock framework
  rewrite it
* add interrupt error status support for debug. default disable it.
  because it cause to many interrupts
* add setup bclk suport not hard code it
* add 24 bits support for mt7628. not verified
* use regmap api to control registers
* add txdma-req/rxdma-req DTS params for DMA use

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
42bbe28cf1 ramips: add i2c clock
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
011ce1fad6 ramips: update i2c dtsi files
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
d8202a8409 ramips: update i2c drivers
* add rt_i2c structure to store driver data
* rewrite read/write check function and add i2c error status check.
  so we don't need to wait until time out.
* add 10 bits address support. according to the data sheet i think
  it is possible. but i haven't verify it.
* the most important is start transfer only need once. otherwise
  it cause I2C_STARTERR status.
* add set i2c clock speed register by dts options "clock-frequency".
  not just hard code it.
* add mt7621 i2c driver. i just copy i2c-ralink.c and change register
  names. and the hardware don't support error status. so i remove it.
  but the logic is the same.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
f36d624d88 ramips: add gdma hsdma dts info
Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Michael Lee
f6fc591561 ramips: enhance dma engine support
* fix compiler error. device_control operation not support now.
* add old chips support 8 channels. new chips support 16 channels.
* add mt7621 hsdma driver. data sheet says it has two channels.
  but after test only one channel support.
* add memory to memory DMA support. i use dmatest kernel module to
  verify this function. on rt305x it will copy more data. on mt7621
  only two channels can works at the same time. these two chips
  maybe have hardware bugs. because on other chips don't have these bugs.
* use tasklet to handle remaining dma requests.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:42 +02:00
Álvaro Fernández Rojas
0aa6c7df60 kernel: update kernel 4.4 to version 4.4.13
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-12 15:51:54 +02:00
Felix Fietkau
7eeb254cc4 treewide: replace nbd@openwrt.org with nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-06-07 08:58:42 +02:00
Joseph C. Lehner
065de8bd7a ramips: fix Netgear EX2700 images
Calling `cat foo bar | dd ... conv=sync` *may* add
extraneous padding. Avoid this.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-06-05 23:23:57 +02:00
Joseph C. Lehner
8b0fbd8e70 ramips: rebrand Netgear EX2700 fakeroot uImage
Change image name: "OpenWrt fakeroot" -> "LEDE fakeroot"

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-06-05 23:23:57 +02:00
Álvaro Fernández Rojas
29b412b8c5 ramips: add kmod-pwm-mediatek for mt7628/mt7688
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 13:24:25 +02:00
Álvaro Fernández Rojas
604b92dbd0 ramips: fix the number of uarts for each SoC
- Use default number of uarts (2) for rt288x/rt305x/rt3883/mt7620.
- Allow up to 3 uarts on MT7621 and MT7628.
- Remove unneeded SERIAL_8250_RT288X for MT7628.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 12:20:33 +02:00
Álvaro Fernández Rojas
243e79e10c ramips: fix Mi Wi-Fi Nano Wireless LED pinmux
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 12:19:57 +02:00
Álvaro Fernández Rojas
a105eac4dd kernel: update kernel 4.4 to version 4.4.12
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-02 15:34:34 +02:00
Yuan Chenmang
b38296f2f6 ramips: add Widora-NEO board support
The Widora board is similar to the Linkit 7688 but features a larger flash
capacity.

Signed-off-by: Yuan Chenmang <771992497@qq.com>
[Jo-Philipp Wich: Reword commit message, cleanup initial PR]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-01 12:52:28 +02:00
Joseph C. Lehner
2a589539ba ramips: fix Netgear EX2700 images
The previous image creation code would have failed if the
unpadded kernel uImage size was less than 64 bytes from the
next erase block boundary. Fix that.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-05-30 22:52:59 +02:00
Joseph C. Lehner
b232669d45 ramips: fix Netgear EX2700 images
The bootloader on this device expects the kernel partition to end
on a 64k boundary. The last 64 byte of the kernel partition must
contain a valid uImage header (the fakeroot partition).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-05-27 15:50:18 +02:00
Álvaro Fernández Rojas
2a57a54d49 ramips: add backported MT7628 pinmux fixes
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-29 11:26:41 +02:00
Cezary Jackiewicz
af1e70b4a7 ramips: Add status led for Xiaomi MiWiFi Nano
Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
2016-05-23 22:43:37 +02:00
John Crispin
bf6634339a ramips: fix timing issues when using MT7621 spi
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-23 20:22:22 +02:00
John Crispin
c7efbd7dbb ramips: Add specific compatible properties for esw
Currently, for RT5350 and MT7628, esw is marked as compatible with
"ralink,rt3050-esw". While this is true, the switches within RT5350
and MT7628 actually support more functionality than the RT3050 switch.

One such example is per-VLAN untagging, which is an important feature.

RT3352 is another example of this, but it already has an additional
compatible property, which allows to differentiate it from RT3050.

This commit adds such more specific properties for RT5350 and MT7628
as well.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-23 11:28:59 +02:00
Cezary Jackiewicz
2965430999 ramips: cleanup for Hame MPR-A2
- disable all ethernet ports except port 0 on MPR-A2

Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power.

- don't use a VLAN for the single ethernet port of the MPR-A2

Like A5-V11, this router only has one ethernet port.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
2016-05-23 11:03:23 +02:00
Felix Fietkau
5166732a4e ramips: use green power LED as status indicator for Buffalo WSR-1166 and WSR-600
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-21 15:16:37 +02:00
Felix Fietkau
82dcbec727 ramips: remove fake vlan rx offload from ethernet driver
The network stack does not need it to do GRO

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-20 14:01:21 +02:00
Álvaro Fernández Rojas
3bc90f9626 ramips: use backported upstream patches
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-19 17:48:41 +02:00
Álvaro Fernández Rojas
638d509817 ramips: fix pinctrl regression
This regression was introduced in commit 9195d8da.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-18 22:08:39 +02:00
Álvaro Fernández Rojas
29db5cae43 ramips: fix spidev generic nodes
Use linux,spidev compatible string.
Move MZK-DP150N spidev to spi1 node.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-18 22:08:39 +02:00
Álvaro Fernández Rojas
021c893658 ramips: fix size-cells on spi nodes
size-cells should be 0 in order to avoid dummy values in reg properties.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-18 16:57:39 +02:00
John Crispin
2a6b899589 ramips: fix 8M WT3020 image creation
fix image size for 8M version : 4M -> 8M

Signed-off-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
2016-05-16 20:59:06 +02:00
John Crispin
1d9c0b2409 ramips: fix ArcherC20i image creation - 3rd try
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-15 11:59:43 +02:00
Felix Fietkau
ce009d16a1 ramips: fix Archer C20i image build
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-15 14:11:26 +02:00
John Crispin
5d0eff9801 ramips: set default profile to priority 1
doing so will sort all profiles alphabetically

Signed-off-by: John Crispin <john@phrozen.org>
2016-05-14 21:27:16 +02:00
John Crispin
7697aced24 ramips: fix ArcherC20i image creation
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-14 21:26:05 +02:00
Felix Fietkau
27dfe64887 ramips/mt7621: remove cflags override
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-14 17:58:43 +02:00
Álvaro Fernández Rojas
20b069c440 ramips: disable unused ethernet ports on VoCore
Only ports 0 and 4 are used so disable the other ones in order to save power.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-14 12:40:03 +02:00
Felix Fietkau
7fab5dc486 ramips: fix indentation of Build/* template commands
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-12 19:49:38 +02:00
John Crispin
f10d2bb6d3 ramips: add wmac nodes to all mt7628/88 dts files
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
Andrew Yong
8c9b8d70b1 ramips: add status led for ZBT-WE826
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-05-12 03:29:36 +02:00
John Crispin
4220cc3255 ramips: convert mt7620 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
ecbaaa401a ramips: convert mt7688 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
0f12f32996 ramips: convert mt7628 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
825717d450 ramips: convert mt7621 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
a55f0c32fa ramips: convert rt2880 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
Stanislav Galabov
ffaaa6788a ramips: DTS modifications
This commit makes the following modifications to ramips dts files:
1. Add clkctrl node to all dtsi files (although not used for now)
2. Add clocks and clock-names properties to some nodes (usbphy, pci)
3. Add usbphy node for rt3050 (although not used for now)
4. Add clock-frequency to uart nodes in mt7621.dtsi and mt7628an.dtsi

These modifications, although not fully used at the moment, will make
it easier for FreeBSD to adopt and use LEDE ramips dts files with
minimal changes for easier maintenance.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-12 03:29:36 +02:00
John Crispin
b8ab6af1a9 global: change my email address
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
Andrew Yong
374cae9e6f ramips: add initial support for SamKnows SK-WB8
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-05-12 03:29:35 +02:00
Stanislav Galabov
9195d8da35 ramips: DTS rework
Add node aliases to dtsi files.
Reword dts files so they're more in-line with upstream.
Fix some more warnings and errors reported by dtc

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-12 03:29:35 +02:00
Álvaro Fernández Rojas
e32b2f92b1 kernel: update kernel 4.4 to version 4.4.10
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-11 21:34:27 +02:00
John Crispin
f6059cc118 ramips: fix DTB generation
using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <john@phrozen.org>
2016-05-10 14:44:05 +02:00
Stanislav Galabov
f8b6c9d825 ramips: Change all '/include/' clauses to '#include' so preprocessing can
be done properly for the entire device trees.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-10 10:43:17 +02:00
Stanislav Galabov
600c224213 ramips: Add hex prefix (0x) to dtsi reg properties where needed.
Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-10 10:43:17 +02:00
Stanislav Galabov
b8f73d7f0a ramips: introduce serial0 aliases
This patch introduces serial0 aliases in the ramips DTS files, which can
then be used to denote the active console instead of relying on bootargs.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
2016-05-10 10:43:17 +02:00
Álvaro Fernández Rojas
b062266ad6 kernel: update kernel 4.4 to version 4.4.9
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-05-10 10:43:17 +02:00
D. Andrei Măceș
823c58a1cf ramips: mt7620: [UPSTREAM] fix USB frequency scaling
The logic for the SoC check got inverted. We need to check if it's
not a MT76x8.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
2016-05-10 10:43:13 +02:00
Vittorio Gambaletta (VittGam)
1570277094 ramips: Fix alphabetical sorting for 02_network
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2016-05-10 10:43:13 +02:00
Vittorio Gambaletta (VittGam)
39f035fdc7 ramips: Don't use a VLAN for the single ethernet port of the A5-V11.
This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time.

Add this router to the VLAN-less config that is used by other single-port routers.

Also fix MAC address detection code since this router has no WAN port.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2016-05-10 10:43:13 +02:00
Vittorio Gambaletta (VittGam)
ffb7bf7672 ramips: Fix network for routers without VLANs on eth0.
Some routers only have one port, so eth0 is used without VLANs for them.

Revision r47720 introduced some changes, but wrongly confused "enable" with "reset".

VLANs need to be disabled for those routers, and the switch may be reset.

Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers.

Also merge duplicate configuration for the "m2m".

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2016-05-10 10:43:12 +02:00
blogic
40bfe9f0bd ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
The new rt3050 switch driver doesn't have problems with TCP when not
using VLANs.

This piece of code also broke failsafe for all routers where the LAN
port is not wired to port 0 of the internal switch.

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

SVN-Revision: 49293
2016-05-10 10:43:12 +02:00
blogic
3f638902b6 ramips: Disable all ethernet ports except port 0 on A5-V11.
Port 0 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

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

SVN-Revision: 49292
2016-05-10 10:43:12 +02:00
blogic
d5114b509b ramips: Disable all ethernet ports except port 4 on HT-TM02.
Port 4 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

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

SVN-Revision: 49291
2016-05-10 10:43:12 +02:00
blogic
12758e32d3 ramips: Get rt3050 ethernet ports to be disabled from the device tree.
This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet
PHYs.

Line 444 enables all ethernet ports, so line 487 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

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

SVN-Revision: 49290
2016-05-10 10:43:12 +02:00
blogic
e626d4f702 ramips: Fix comment in rt3050 ethernet switch driver.
Line 444 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 443.

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

SVN-Revision: 49289
2016-05-10 10:43:12 +02:00
blogic
e716fce5da ramips: Fix documentation for the rt3050 switch driver.
The prefix used in the driver is now "mediatek" instead of "ralink".

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

SVN-Revision: 49288
2016-05-10 10:43:12 +02:00
blogic
decd89c57f ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
The FCT2 esw register should be set to 0x2500C to have "unknown IPv6
multicast" packets broadcasted to every port, instead of dropped.
The previous value only let those packets go through ports 1 and 3.

"Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo
requests addressed to well-known addresses, such as ff02::1 (MAC address
is 33:33:00:00:00:01 in this case).

Please note that by default ICMPv6 echo requests to ff02::1 are not replied
to by the router because of ip6tables considering those packets to be invalid.
But this is another bug/patch. ;)

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

SVN-Revision: 49287
2016-05-10 10:43:12 +02:00
blogic
6b0425a187 ramips: add support for Planex MZK-EX750NP.
add support for Planex MZK-EX750NP.
MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

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

SVN-Revision: 49268
2016-05-10 10:43:12 +02:00
John Crispin
dc92917409 image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>
2016-04-18 21:53:07 +02:00
Jo-Philipp Wich
e885286834 target: globally remove ARCH_PACKAGES overrides
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-17 19:55:09 +02:00
John Crispin
cb049e71cd ramips: Add support for the Netgear WNDR3700v5
https://wiki.openwrt.org/toh/netgear/wndr3700

wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC.

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

SVN-Revision: 49247
2016-04-26 11:43:53 +00:00
John Crispin
279eeeb744 ramips: add support for Planex MZK-EX300NP
MZK-EX300NP is MT7620A based wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

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

SVN-Revision: 49235
2016-04-26 11:43:06 +00:00
John Crispin
e55d86ef32 ramips: add support for Planex CS-QR10
CS-QR10 is MT7620A based IP Camera.

the camera and sound does not work with kernel 4.4.
 - camera chip is sn9c291.
 - sound chip is wm8960.

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

SVN-Revision: 49234
2016-04-26 11:43:01 +00:00
Hauke Mehrtens
657a2457a6 ramips: fix build of target
Makes the patches apply again by fixing the white space broken patch.
This problem was introduced in r49212.

Closes #22248 and #22259

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49221
2016-04-24 22:17:38 +00:00
John Crispin
30fbc1a4d1 ramips: Add support for ZBT WG3526
The WG3526 is the follow-up to the 2626 and is mostly the same, with the
excaption that the mt7602 has been replaced with the mt7603. The internal wifi
setup has also changed slightly. Based on my tests, everything that worked on
the 2626 works on the 3526 and with roughly the same performance.

v1->v2:
* Remove some references to 2626 that I had missed in the dts.

v2->v3:
* Update patch to match new file structure.
* Removed SD driver to be consistent with other MT7621 targets.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>

SVN-Revision: 49213
2016-04-21 19:47:08 +00:00
John Crispin
a6c7c0029e ramips: awake rt305x USB controller
Because of Ralink uboot set USB controller into sleep mode [1]
we check it and awake controller before any registers access.
Fix ticket #21396 [2]

[1] http://marc.info/?l=linux-usb&m=137398626102108&w=2
[2] https://dev.openwrt.org/ticket/21396

Signed-Off-By: Serge Vasilugin <vasilugin@yandex.ru>

SVN-Revision: 49212
2016-04-21 19:47:02 +00:00
John Crispin
37b50fdb92 ramips: add support for ELECOM WRH-300CR
ELECOM WRH-300CR is MT7620N based very small Wi-Fi router with 64MiB
DDR2 SDRAM, 16MiB SPI Flash, one fast ethernet port, and (internal but
easy-to-access) UART.

it also has internal USB hub and USB card reader which provide one USB
port, one SD card slot, and one microSD card slot.

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

SVN-Revision: 49211
2016-04-21 19:46:59 +00:00
John Crispin
d2654729ac ramips: update DTS file for Planex DB-WRT01
update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues.

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

SVN-Revision: 49209
2016-04-21 19:46:49 +00:00
John Crispin
890eb0c126 ramips: fix support Planex MZK-750DHP.
fix script for Planex MZK-750DHP.
modification of the GPIO definition.
add Profile.

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

SVN-Revision: 49205
2016-04-20 17:19:05 +00:00
John Crispin
4a5158bd2a ramips: rt3352 usbphy fix in dts-file
Add missing rt3352 usb phy. Fix ticket #20499.

Signed-Off-By:Serge Vasilugin <vasilugin@yandex.ru>

SVN-Revision: 49204
2016-04-20 17:19:00 +00:00
Hauke Mehrtens
f0b3964f1b kernel: update kernel 4.4 to version 4.4.7
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49176
2016-04-16 21:05:48 +00:00
John Crispin
3bf88dc041 ramips: remove accidentally comitted code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49161
2016-04-09 14:47:35 +00:00
John Crispin
8b8dfeb027 ramips: Disable the SD driver by default on MT7621
The SD driver has been a long and dragging issue on the MT7621 platforms as it hasn't worked for
months resulting in unbootable devices. Until it's fixed, disable it in the default profiles.

Reports / Discussed here:

https://dev.openwrt.org/ticket/21392
https://dev.openwrt.org/ticket/21834
https://dev.openwrt.org/ticket/21995
https://forum.openwrt.org/viewtopic.php?id=59092

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>

SVN-Revision: 49131
2016-04-09 10:25:03 +00:00
John Crispin
0ffa58009a ramips: Fixes for LinkIt 7688
Misc fixes for LinkIt 7688 board:

- Copy the right wireless firmware for the mt7688
- Add back '0065-mt7688-fixes.patch', left out after the move to Linux 4.4.
- Remove SPI_DEV from linux config which otherwise causes a massive warning
- Add wmac to LINKIT7688.dts so wireless works

Signed-off-by: Adam Kent <adam@semicircular.net>

SVN-Revision: 49130
2016-04-09 10:24:58 +00:00
John Crispin
3ad1820e83 ramips: Adjust image size limit for the D-Link DIR-860L B1
Currently the maximum image size defaults to 8Mbyte even though this model has 16Mbyte of flash memory.

Tested and works on my device.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>

SVN-Revision: 49129
2016-04-09 10:24:55 +00:00
John Crispin
1eb8b0674d ramips: fix for Planex MZK-WDPR (lcd control gpio).
add lcd control gpio pin for Planex MZK-WDPR.
LCD board initial timming is GPIO control.

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

SVN-Revision: 49128
2016-04-09 10:24:52 +00:00
John Crispin
e626a0d877 ramips: mt7621: fix Ubiquiti EdgeRouter X profile
Remove unnecessary packages to reduce image size so it fits in initramfs (to enable upgrading from factory firmware).

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49127
2016-04-09 10:24:47 +00:00
John Crispin
37f1022d73 ramips: mt7621: sync MQmaker WiTi profile name to dts name
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49126
2016-04-09 10:24:44 +00:00
John Crispin
14177319ea ramips: enable device profiling by dts
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49125
2016-04-09 10:24:40 +00:00
John Crispin
133f890a12 ramips: mt7621: add a device to TARGET_DEVICES after it's definition
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49124
2016-04-09 10:24:36 +00:00
John Crispin
a9466914f5 ramips: mt7621: fix initramfs image for ubnt-erx
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49123
2016-04-09 10:24:29 +00:00
John Crispin
79d02229cc ramips: move different subtarget image generation to separate makefiles to improve maintainability
- all subtarget specific defines are in their own files
- common defines left in main Makefile
- each subtarget makefile idefed with SUBTARGET
- all subtargets compile tested
- few seems to be broken/unneeded things marked with FIXME

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49104
2016-04-01 07:11:48 +00:00
Gabor Juhos
fc5c19f45b ramips: lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the
caller function must reserve stack space for $a0-$a3
registers in case the callee needs to save its arguments.

The assembly startup code does not reserve stack space
for these registers thus when the main C function needs
to save its arguments, that will cause a stack overflow.

Fix the assembly code to reserve stack space for the
registers to avoid that.

Untested. It seems that the lzma-loader is not used at all?

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

SVN-Revision: 49062
2016-03-21 13:15:29 +00:00
John Crispin
cc82da0bc1 ramips: MiWifi-Nano - change gpios to leds, add to default build group
1) Use leds to indicate:
Red - Power
Amber - Radio On
Blue - Wifi associated
2) Add profile to default build group for MT7628 subtarget

Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

SVN-Revision: 49045
2016-03-20 14:41:33 +00:00
John Crispin
99414dbcf1 ramips: Add support for Xiaomi MiWiFi Nano
Xiaomi MiWiFi Nano is based on Mediatek MT7628 with 64MB ram 16MB flash

Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

v3  includes changes suggested by L. D. Pinney & Karl Palsson-
Eliminate en25q64 (4MB) flash chip
Alphabetization
Remove hyphen in model
Rename profile from miwifinano.mk to xiaomi.mk
Add gpios that are attached to leds

SVN-Revision: 49024
2016-03-16 09:26:48 +00:00
John Crispin
be79629259 ramips: Add support for GL-MT750
This patch adds support for GL-MT750.
GL-MT750 is powered by MT7620A and MT7610e, dual band 802.11ac, 2.4G 300Mbps and 5G 450Mbps.
It has 5 LANs, MMC interface, USB, a lot of IOs and PoE support.

SVN-Revision: 48994
2016-03-10 19:12:10 +00:00
John Crispin
be53e5a154 ramips: Add support for GL-MT300N
This patch adds support for GL-MT300N.
GL-MT300N is powered by MT7620N with 16MB flash, 64MB RAM,
2 LANs, USB, UART, GPIO and PoE support.

SVN-Revision: 48993
2016-03-10 19:12:04 +00:00
John Crispin
96ee39b184 ramips: Add support for GL-MT300A
This patches adds support for GL-MT300A.
GL-MT300A is powered by MT7620A. It has 16MB flash, 128MB RAM,
Two LANs, USB, UART and MMC daughter board.

SVN-Revision: 48992
2016-03-10 19:11:57 +00:00
John Crispin
1b9985cfe2 ramips: add support for Planex MZK-WDPR.
add support for Planex MZK-WDPR.
MZK-WDPR(MZK-WDPR-R01) is internet radio tuner.
This patch is "network board" in MZK-WDPR.
LCD board is non OpenWrt Platform.

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

SVN-Revision: 48968
2016-03-08 18:11:59 +00:00
Felix Fietkau
3abf5ce656 ramips: convert the remaining subtargets to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48954
2016-03-07 17:56:53 +00:00
Felix Fietkau
f73d8fb81b ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48953
2016-03-07 17:05:03 +00:00
Felix Fietkau
d041e8b44b ramips: add linux 4.4 support, update mt7621 subtarget to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48951
2016-03-07 16:33:34 +00:00
John Crispin
77da9390da ramips: mt7621: fix WF-2881 for ubi split
This patch fix firmware split for WF-2881 which was previously manually partitioned.

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 48908
2016-03-04 08:33:17 +00:00
John Crispin
9d828931f1 ramips: Add profiles for JCG routers
This patch adds profiles and support for building factory and
sysupgrade images for JHR-N805R, JHR-N825R and JHR-N926R.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48906
2016-03-04 08:33:12 +00:00
John Crispin
43dd2b9965 ramips: Add JCG routers to base-files
This patch adds support for JHR-N805R, JHR-N825R and JHR-N926R to
various scripts in the base-files directory.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48905
2016-03-04 08:33:09 +00:00
John Crispin
ca64f498f0 ramips: Add device tree for JCG JHR-N926R
Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. As a special feature, it comes with a two digit seven segment
display that is connected to a pair of daisy-chained 74164 shift
registers that can be controlled via GPIOs.

For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48904
2016-03-04 08:33:06 +00:00
John Crispin
97ca4cbc94 ramips: Add device tree for JCG JHR-N825R
Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48903
2016-03-04 08:33:03 +00:00
John Crispin
73f4c3f2ab ramips: Add device tree for JCG JHR-N805R
Add a device tree for JCG JHR-N805R

This router is based on a RT3050 and has 4MB of SPI flash and 16MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N805R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48902
2016-03-04 08:33:00 +00:00
John Crispin
e4dc6acd31 ramips: Incorrect file mode change
Commit d0f5ab6d95a1 ("ramips: Added support for ZBT-826 / ZBT-1026")
incorrectly changed the mode of the ramips shell scripts from 755 to 644.
I.e., they are not excutable any more and for example devices will be left
with broken configs.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>

SVN-Revision: 48893
2016-03-03 20:24:45 +00:00
Felix Fietkau
15517811e4 ramips: enable mt76 on mt7688 by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48886
2016-03-02 17:40:58 +00:00
John Crispin
96eb5c6fa8 ramips: Added support for ZBT-826 / ZBT-1026
Support for these MT7620-based routers: https://wiki.openwrt.org/toh/zbt/we-826
Based on Oskari’s patches found here: https://dev.openwrt.org/ticket/19996

Signed-off-by: Jamie Stuart <jamie@onebillion.org>

SVN-Revision: 48865
2016-03-01 09:17:06 +00:00
Felix Fietkau
28458bd057 ramips: add sysupgrade support for mt7628
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48813
2016-02-28 15:46:27 +00:00
Felix Fietkau
dc6533d982 ramips: create device tree node for MT7628 WMAC in preparation for future work on driver support in mt76
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48812
2016-02-28 13:21:54 +00:00
John Crispin
f998540e80 ramips: fix GPIO names for RT5350F-OLinuXino-EVB
Hi,

the board in subject (RT5350F-OLinuXino-EVB) still ships from vendor
with a RC3 image built upon a .dts file which declares GPIO12 and GPIO14
as relay2 and relay1 respectively, as you can see from their rt5350f
branch on GitHub.

For some reason in the official stable build both the GPIOs are swapped
and the wrong names are declared in the gpio-export directive.

I'm submitting this patch which should roll back the wrong changes, so
that we get backward compatibility with any script developed on RC3
which controls the relays.

After patching correct operation is restored:

root@OpenWrt:/# cat /sys/kernel/debug/gpio
GPIOs 0-21, platform/10000600.gpio, 10000600.gpio:
 gpio-0   (button              ) in  hi
 gpio-12  (relay2              ) out lo
 gpio-14  (relay1              ) out lo

Thank you,

Signed-off-by: Lorenzo Cafaro <lorenzo@ibisco.net>

SVN-Revision: 48796
2016-02-26 08:35:35 +00:00
John Crispin
074cc7ac38 ramips: mt7620: fix failsafe switch config
As indicated in the bug tracker[1], failsafe mode is broken on at least some
devices using the mt7620 switch (and possibly mt7621). The thread explicitly
mentions the Xiaomi MiWifi, and the Nexx WT3020, and an unspecified device
using the mt7621 switch; the issue also applies to the Netgear EX2700.

The problem is that failsafe mode uses eth0, but enable_vlan is always set to 1
by the switch driver. Connecting to and/or pinging the device fails. This patch
fixes the failsafe preinit config, by making sure that vlan support is disabled.
It currently only fixes the switch config on mt7620, but might apply to the
mt7621 as well, so the patch has been designed with this in mind.

A similar (line wrapped) patch was submitted in December by Simon Peter, but never
accepted and/or discussed.

This patch applies to both Chaos Calmer and trunk.

[1] https://dev.openwrt.org/ticket/18768

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48772
2016-02-25 10:14:22 +00:00
John Crispin
cb49742f99 ramips: build factory images for Netgear EX2700
This patch adds support for building factory and sysupgrade images
for the Netgear EX2700 that don't require modification of u-boot
environment variables.

The bootloader on this device expects the kernel partition to end
on a 64k block boundary. The last 64 byte of the kernel partition
must contain a valid uImage header - in the stock firmware, this is
the uImage header of the root filesystem. For this patch, we're using
the uImage header of a 0 byte partition (ex2700-fakeroot.uImage).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48771
2016-02-25 10:14:19 +00:00
Felix Fietkau
0ec9253b9d ramips: fix WSR-1166 partition table
- Fix typo in board_data partition start address
- Increase board_data partition size in order to exploit all flash size

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

SVN-Revision: 48751
2016-02-22 08:54:32 +00:00
John Crispin
fc47eb0794 ralink: fix mt7628 ehci support
the u2_phy init was missing

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

SVN-Revision: 48747
2016-02-19 16:38:04 +00:00
John Crispin
1e218001b5 ralink: unbreak port4 on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48746
2016-02-19 16:37:56 +00:00
John Crispin
8b38a9450b ramips: Add support for Phicomm PSG1208
This patch adds support for Phicomm PSG1208.This is a router with MT7620A SoC with 8M flash and 64M ram.
The WPS led is uesd as status_led because the power light can't be controlled with GPIO.
It seems that the 5g wifi led is connected to MT7612E and it can't be controlled with GPIO too.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>

SVN-Revision: 48721
2016-02-15 18:45:22 +00:00
John Crispin
ba53b33453 ramips: Support LEDs on D-Link DIR-860L B1
Adds the required gpio definitions.

Signed-off-by: Johannes Wienke <languitar@semipol.de>

SVN-Revision: 48715
2016-02-12 09:29:23 +00:00
John Crispin
9f9682a79b ramips: Add support for Netgear EX2700
This patch adds support for the Netgear EX2700 and builds an approriate
sysupgrade image.

What's missing is the option to build a factory image flashable via the
router's stock web interface, but this approach is hindered by the fact
that u-boot operforms an additional integrity check, which expects a
uImage header in the last 64 bytes of the "kernel" partition, which
the bootloader expects to be 960k, a size exceeded by the standard
OpenWrt kernel.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48698
2016-02-12 08:29:33 +00:00
Felix Fietkau
6b73b7a8ec ramips: fix build error on oversized images by putting the dir-860l-b1 size check at the end of the chain
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48681
2016-02-08 19:18:21 +00:00
John Crispin
6801c4e33e ramips: HLK-RM04 - Enable GPIO14 for WPS button
The top half of UARTF on the HLK-RM04 is used for GPIO.

  mode 1   mode 2
   RIN     GPIO14
   DSR_N   GPIO13
   DCD_N   GPIO12
   DTR_N   GPIO11
   RXD     GPIO10
   CTS_N   GPIO09
   TXD     GPIO08
   RTS_N   GPIO07

This patch applies 3'b101 mode to UARTF:

   GPIO14
   GPIO13
   GPIO12
   GPIO11
   RXD
   CTS_N
   TXD
   RTS_N

Because the base rt5350.dtsi file forces 3'b000 mode, remove the pin setting from this file and apply it directly to the files that inherit from it (WIZFI630A.dts and WT1520.dtsi).  This change makes the rt5350.dtsi file consistent with the mt7620a.dtsi file.

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48665
2016-02-08 08:26:27 +00:00
John Crispin
7f672e66f8 rampis: HLK-RM04 - Setup I2C as GPIO
The I2C function of the RT5350 SoC on the HLK-RM04 is used for GPIO1 and GPIO2.

Take note that the I2C_SD pin is GPIO1 on the RT5350 and is exposed on the HLK-RM04 as GPIO0
Likewise the I2C_SCLK pin is GPIO2 on the RT5350 and is exposed on the HLK-RM04 as GPIO1

 group   mode 1    mode 2   hlk-rm04 pin & export
  i2c    i2c_sd    gpio1   (pin 8, hlk-rm04:gpio0)
  i2c    i2c_sclk  gpio2   (pin 9, hlk-rm04:gpio1)

reference:
  http://www.hlktech.net/product_detail.php?ProId=39
  http://cdn.sparkfun.com/datasheets/Wireless/WiFi/RT5350.pdf

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48664
2016-02-08 08:26:19 +00:00
John Crispin
480e15f2ce ramips: HLK-RM04 - Fix push button functions
The RESET button of the HLK-RM04 is connected to GPIO0, linux function 0x198
The WPS button of the HLK-RM04 is connected to GPIO14, linux function 0x211

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48663
2016-02-08 08:26:11 +00:00
John Crispin
1f26091242 ramips: HLK-RM04 - Remove power LED config
The power LED on the HLK-RM04 is hard wired to the power bus and is not under GPIO control, remove the bogus config for it.
(Note that GPIO0 is actually connected to the RESET button.)

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48662
2016-02-08 08:26:02 +00:00
Felix Fietkau
afdb24e3ae ramips: add IMAGE_SIZE to DEVICE_VARS, it is used by build templates
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48611
2016-02-01 17:41:29 +00:00
Felix Fietkau
705ddc9bb9 ramips: make tp-link firmware size errors non-fatal
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48526
2016-01-28 14:13:01 +00:00
Felix Fietkau
81e8e02289 ramips: fix image size checks for Buffalo WSR-1166 and WSR-600
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48508
2016-01-26 16:45:11 +00:00
Hauke Mehrtens
a29c7ca3d9 kernel: update kernel 4.3 to version 4.3.4
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48498
2016-01-25 21:44:48 +00:00
Felix Fietkau
57776e68ce base-files: remove default /etc/config/network, generate it via board.d instead
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48493
2016-01-25 16:30:41 +00:00
Felix Fietkau
6f8d647778 ramips: re-enable highmem support for MT7621 now that it's fixed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48469
2016-01-24 00:16:32 +00:00
John Crispin
f51f92d7e9 ramips: fix serial baudrate for final version of ZBT-WG2626 board
The bootloader was updated and now uses 115200 instead of 57600 baud
for the serial console. Change this also in OpenWrt's DTS, so the rate
is consistent for bootloader and linux kernel output.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48359
2016-01-19 10:16:30 +00:00
John Crispin
9f7bbc649c ramips: HiLink HLK-RM04 image name typo (RM02 -> RM04)
The image name for the HiLink HLK-RM04 module has a typo and should read "RM04" rather than "RM02"

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48355
2016-01-19 10:15:44 +00:00
Felix Fietkau
3c3fb1dfc0 ramips: delete the broken sound driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48318
2016-01-18 13:40:15 +00:00
Felix Fietkau
63aa7023d8 ramips: mark kmod-sound-mtk as broken, it does not compile properly
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48317
2016-01-18 13:22:38 +00:00
Felix Fietkau
fa61e3fbba ramips: fix kernel config handling for mt7620/mt7628 sound module
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48316
2016-01-18 13:22:34 +00:00
Hauke Mehrtens
cdb83aaf5f kernel/4.3: update to version 4.3.3
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de

SVN-Revision: 48224
2016-01-12 20:52:19 +00:00
Felix Fietkau
471a567a88 ramips: do not rely on $(BIN_DIR) installed files during image build (for ubnt-erx)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48147
2016-01-06 18:39:13 +00:00
Felix Fietkau
2499a57d92 targets: add kernel image dependencies on device tree files
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48146
2016-01-06 18:39:06 +00:00
Felix Fietkau
947eac1803 ramips: do not attempt to build ubnt-erx initramfs image if initramfs support is disabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48144
2016-01-06 18:38:44 +00:00
Felix Fietkau
56608a777e ramips: fix duplicate /dts-v1/ line for WRTNODE2
Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

SVN-Revision: 48138
2016-01-06 00:04:14 +00:00
Felix Fietkau
48a57b1ead ramips: set mips16 support
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 48131
2016-01-04 22:35:36 +00:00
John Crispin
e85230ce2e ralink: add a few mt7688 fixes that got lost in the v4.3 bump
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48115
2016-01-04 14:21:24 +00:00
John Crispin
eb9fccc440 ralink: update the usb phy driver to the version sent upstream
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48114
2016-01-04 14:21:17 +00:00
John Crispin
9b675a2a33 ralink: fix USB compatible strings
switch to the upstream compatible strings for ehci and ohci support.

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

SVN-Revision: 48113
2016-01-04 14:21:11 +00:00
Felix Fietkau
c69ffda546 ramips: clean up and refresh kernel patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48070
2016-01-02 14:48:27 +00:00
Felix Fietkau
140be9f1a5 ramips: fix performance counters on mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48069
2016-01-02 14:48:11 +00:00
John Crispin
fb2d204ce4 ralink: more esw_rt3050 fixes
the IRQ was not setup properly causing an oops

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

SVN-Revision: 48064
2016-01-02 11:44:08 +00:00
John Crispin
6ca6a98622 ramips: Remove LED GPIO definitions in MQmaker WiTi device tree
LED's were defined wrong in the device tree file, they are hardware driven because they are connected directly to the switch chip and wireless chips respectively, thus no GPIO addresses are assigned to them. It is safe to remove them from the device tree file to stop confusion.

Signed-off-by: Sebastian Careba <nitroshift@yahoo.com>

SVN-Revision: 48055
2016-01-01 21:20:54 +00:00
John Crispin
de7dce21a3 ralink: add WRTnode2 platform and led support
Signed-off-by: xzmu <xzmu@wrtnode.com>

SVN-Revision: 48049
2016-01-01 21:19:50 +00:00
John Crispin
6b95386fd3 ralink: fix rt3050/5350 ethernet switch support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48030
2016-01-01 21:17:21 +00:00
Felix Fietkau
c55d8d4253 ramips: set the wifi mac address to the same as LAN on witi
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48029
2016-01-01 18:58:02 +00:00
Felix Fietkau
eaf8889cf8 ramips: add a script to fix up the broken mac address on the witi board
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48027
2016-01-01 18:57:39 +00:00
Felix Fietkau
46519964ff kernel: fold of_get_mac_address_mtd into of_get_mac_address
This makes it easier to keep drivers in sync with upstream

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

SVN-Revision: 48026
2016-01-01 18:57:29 +00:00
Felix Fietkau
22693a9086 ramips: fix kernel configuration for mt7628
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48025
2016-01-01 15:20:38 +00:00
Felix Fietkau
f3bbb73a20 ramips: add missing clk_round_rate function to fix buildbot errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48024
2016-01-01 14:33:09 +00:00
Felix Fietkau
28ec4e0e71 ramips: fix inverted LEDs for RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48022
2016-01-01 12:27:45 +00:00
Felix Fietkau
2c4faaed74 ramips: add mac address assignment for eth0 on RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48021
2016-01-01 12:26:38 +00:00
Felix Fietkau
d65eda48b7 ramips: fix firmware partition size
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48020
2016-01-01 12:26:30 +00:00
Felix Fietkau
11c697015f ramips: fix memory size for RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48019
2016-01-01 12:26:26 +00:00
Felix Fietkau
3e807886d0 ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
Enable it from .dts files that need it, also remove redundant properties

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

SVN-Revision: 47936
2015-12-19 11:07:29 +00:00
Felix Fietkau
32877b31dc ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47935
2015-12-18 22:26:40 +00:00
John Crispin
4afe0fc2b2 ralink: update the mt7621 ethernet support patch
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47929
2015-12-17 12:14:56 +00:00
John Crispin
7de7bd0201 ramips: mt7621: fix error message when initramfs is too large
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47908
2015-12-17 09:27:09 +00:00
John Crispin
1c5136c4c3 ramips: remove unwanted change from patch
Remove unwanted change to irq-mips-gic.c from mt7621 support patch

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47907
2015-12-17 09:27:00 +00:00
John Crispin
43422a634b ramips: change CM_GCR_BASE_CMDEFTGT_MEM value to match datasheet
Zero config value for default memory region means 'memory', not
not 'disabled' according to 'Control Registers Of The Coherency
Manager' manual.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47906
2015-12-17 09:26:51 +00:00
John Crispin
acbed0eff3 ramips: mt7621: undo mips-cm probe hack to not wipe out memory regions
Since now we hopefully setup memory regions properly we no longer need this hack.

Tested and works on ubnt-erx.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47905
2015-12-17 09:26:43 +00:00
John Crispin
622e268710 ramips: mt7621: setup memory region for pcie controller memory
Only compile tested since I do not have any hardware with
devices on pcie bus.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47904
2015-12-17 09:26:35 +00:00
John Crispin
e8890c6be0 ramips: mt7621: add patch to setup CM memory region for palmbus
This is tested and works on ubnt-erx.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47903
2015-12-17 09:26:28 +00:00
John Crispin
b4bb10b3a0 ralink: update config files to build the cleaned up ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47902
2015-12-17 09:26:20 +00:00
John Crispin
402db12f1a ralink: drop dummy profile from mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47901
2015-12-17 09:26:09 +00:00
John Crispin
651e620de5 ralink: fixup devicetree files to work with new ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47900
2015-12-17 09:25:57 +00:00
John Crispin
fa854a02a1 ralink: drop old ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47899
2015-12-17 09:25:30 +00:00
John Crispin
31116661ff ralink: add reworked ethernet driver
update to the version of the driver that is on its way upstream

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

SVN-Revision: 47898
2015-12-17 09:25:24 +00:00
John Crispin
5d4f5689fd ramips: add missing kernel symbols
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47884
2015-12-12 21:01:02 +00:00
John Crispin
4e31b2e869 ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)
This router is based on MT7621 SoC, no wifi, no usb, nand.

Works:
* Boots.
* Ethernet.
* Switch.
* Button (reset).
* Flashing OpenWrt from stock firmware.
* Upgrading OpenWrt.

Doesn't work:
* No GPIO leds. All leds are controlled by switch,
  but stock firmware was able to control them.
* SoC has crypto engine but no open driver.
* SoC has nat acceleration, but no open driver.
* This router has 2MB spi flash soldered in but MT
  nand/spi drivers do not support pin sharing,
  so it is not accessable and disabled. Stock
  firmware could read it and it was empty.
* PoE out.

Router has serial pins populated. If looking at the top
of the router, then counting from Eth sockets pins go as:
'GND, RX, TX, GND'. 3.3v, 57600.

U-boot bootloader supports tftpboot, controlled from serial.
This router has two kernel partitions: 'live' and 'backup'.
They are swapped during flashing (on both stock and OpenWrt).
Active partition is controlled by a flag in a factory partition.
U-boot has custom command to switch active kernel partition.
Kernel partitions are 'bare flash' 3MB. Stock bootloader has
no UBI support. Stock rootfs is UBIFS.

Flashing procedure.
Stock firmware uses custom kernel patch to mount squashfs
from a file that is located on UBIFS volume. This makes wiping
out this volume from within stock firmware difficult.
Instead this patch builds image that is flashable by stock firmware
and contains initrams image (with minimal set of packages
to fit into kernel partition). Once this is flashed one can reboot
into initramfs OpenWrt and use sysupgrade to flash OpenWrt including
rootfs into nand.
Note: factory image is only built if initramfs image is enabled.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47881
2015-12-12 07:38:06 +00:00
John Crispin
1c6c9549d6 ramips: add support for Spansion S34ML0[24]G2 flash
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47880
2015-12-12 07:37:53 +00:00
John Crispin
9e5044926b ralink: remove stray "+" from ethernet driver
this is what you get if you manually apply patches with c&p

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

SVN-Revision: 47877
2015-12-12 06:42:17 +00:00
John Crispin
8470e30a76 ramips: move partition definitions out of mt7621.dtsi file
Partitions defined in parent dtsi cannot be undefined in children.
This moves partitions defined in mt7621.dtsi into board's device tree.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47876
2015-12-12 06:42:11 +00:00
John Crispin
e610cdfc8a ramips: use gic timer as clocksource for mt7621
* Switches clocksource to gic timer.
* Moves frequency definitions to dtsi since frequency was hardcoded anyway
  Will work on proper frequency detection later.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47875
2015-12-12 06:42:05 +00:00
Felix Fietkau
77bedbe80d Revert "ramips: use gic timer as clocksource for mt7621"
This reverts commit 270a2afcc544ca14e79198346e7e186033472ae7.

SVN-Revision: 47872
2015-12-11 19:22:15 +00:00
Jo-Philipp Wich
67e1c87012 all: drop old uci-defaults.sh
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one
and update all users accordingly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47867
2015-12-11 15:26:06 +00:00
John Crispin
9f14006809 ramips: add additional support for MQmaker WiTi board
The board is based on mt7621AT cpu, and has 16mb nor flash, 256mb of ram,
2 sata ports, microsd card slot, 1 USB 3.0 port and at least one 2.4 and
one 5 ghz antenna.

This is the 6th submission that adds support for XHCI in the device tree
file, along with switching the location of the 2 radio's and addition of
the kmod-i2c-mt7621 in the default packages of the profile.

Signed-off-by: Sebastian Careba <nitroshift@yahoo.com>

SVN-Revision: 47845
2015-12-11 15:04:13 +00:00
John Crispin
6cbb1be464 ramips: Fix support for PBR-M1 board
The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it.

The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds.

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

SVN-Revision: 47844
2015-12-11 15:03:50 +00:00
John Crispin
abd11be13c ramips: use gic timer as clocksource for mt7621
* Switches clocksource to gic timer.
* Moves frequency definitions to dtsi since frequency was hardcoded anyway
  Will work on proper frequency detection later.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47843
2015-12-11 15:03:39 +00:00
John Crispin
a87272ebfb ramips: enable CPS for mt7621
Enables CPS multiprocessing instead ob obsoleted CMP for mt7621.

This patch fixes a few issues currently existing on 4.3 kernel with at least ubnt-erx:
* iperf shows only 50Mbits on direct gigabit connection to desktop,
* ping times jump to 5-6ms to dorectly connected desktop
* /proc/interrupts shows spurious interrups (ERR)

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47842
2015-12-11 15:03:27 +00:00
John Crispin
fbc1624d6a ramips: irq handlers do not get irq in 4.3 kernel, update patches
This resolves compilation warnings like this:
drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_probe':
drivers/gpio/gpio-mt7621.c:328:46: warning: passing argument 2 of 'irq_set_chained_handler' from incompatible pointer type [-Wincompatible-pointer-types]
   irq_set_chained_handler(mediatek_gpio_irq, mediatek_gpio_irq_handler);

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47841
2015-12-11 15:03:16 +00:00
John Crispin
4076d12f41 ramips: Fix CM_GCR_CPC_BASE_CPCBASE_{MSK, SHF} values
Update CM_GCR_CPC_BASE_CPCBASE_{MSK,SHF} to match datasheet

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47840
2015-12-11 15:03:08 +00:00
John Crispin
e4ee2402cb ramips: fold gic patch into mt7621 support patch
All gic patch was doing is removing code added by mt7621 support patch.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47839
2015-12-11 15:02:55 +00:00
John Crispin
ed8775d3c3 ramips: backport series of patches that ensure GCRs of other CPUs are accessed properly
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47838
2015-12-11 15:02:50 +00:00
John Crispin
e0d77e68ce ramips: backport batch fixing illegal instruction when booting secodnary CPUs in CPS mode
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47837
2015-12-11 15:02:36 +00:00
John Crispin
81c999bbda ramips: mt7621: use symbolic names of gic interrupt settings
This also adds dts nodes for cpc and mc for documentation purposes

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47836
2015-12-11 15:02:13 +00:00
John Crispin
6df4426245 ralink: bump to the target to v4.3
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47831
2015-12-10 19:06:32 +00:00
Felix Fietkau
09335a0a2f build: fix arch used during dts compilation
Use kernel arch for dts compilation.
Also use Image/BuildDTB to build dts for ramips.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47823
2015-12-10 12:39:32 +00:00
Jo-Philipp Wich
527ec2af59 all: remove dummy ucidef_set_interface_loopback() from board.d
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47744
2015-12-03 23:13:00 +00:00
Jo-Philipp Wich
8f8b702f85 board.d: remove redundant ucidef_set_interfaces_lan_wan() calls
This removes calls to ucidef_set_interfaces_lan_wan() and
ucidef_set_interfaces_lan() on boards where all relevant info can be
inferred from the switch definition.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47722
2015-12-03 17:30:56 +00:00
Jo-Philipp Wich
9b02e73188 board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()
This changes uci-defaults-new.sh, config_generate and all relevant board.d
files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into
a single function.

Also removes now superfluous enable and reset arguments.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47721
2015-12-03 17:30:24 +00:00
Jo-Philipp Wich
d17a64c7c0 base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()
Out of 69 switch definitions, only 3 pass something different than "1" as
values for reset and enable, with one of those three being invalid.

This change ...

 * removes the reset and enable arguments from ucidef_add_switch()
 * unconditionally writes reset:1 and enable:1 to JSON
 * converts the three users of nonstandard values to ucidef_add_switch_attr()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47720
2015-12-03 17:30:08 +00:00
Jo-Philipp Wich
de51026515 ramips: switch ucidef_add_switch_vlan() to ucidef_add_switch_ports()
This migrates the final board.d user of ucidef_add_switch_vlan() to the new
ucidef_add_switch_ports() approach, fixing some logic errors for a few boards
along the way.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47717
2015-12-03 15:46:29 +00:00
John Crispin
06af966094 ramips: remove duplicate patch
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47670
2015-11-28 23:26:03 +00:00
John Crispin
82557aee85 ramips: adapt VoCore to new second spi device code
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47667
2015-11-28 23:24:52 +00:00
John Crispin
af14fa011c ramips: add second SPI clocks
These clocks were missing in the changes introduced in r47573-47580

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

SVN-Revision: 47666
2015-11-28 23:24:40 +00:00
Jo-Philipp Wich
ecf5b4fab7 ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47657
2015-11-26 12:46:04 +00:00
John Crispin
7b4acdeff6 ralink: renable nand support
CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619.

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

SVN-Revision: 47640
2015-11-24 22:00:55 +00:00
Felix Fietkau
d8a62fdbc2 ramips: fix typo in image makefile (#18712)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47627
2015-11-24 19:29:56 +00:00
John Crispin
8c1f5141ce ralink: add support for netis WF-2881
netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN.
It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0.
The following patch adds support for this device.

this device only works on top of UBI.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons (reset button)
* ethernet switch and USB diag LEDs
* UART
* GPIOs
* sysupgrade

Tested and not working
* failsafe

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 47619
2015-11-24 18:29:26 +00:00
John Crispin
e9baf8265b ramips: add support for Youku YK1
Changes since V1:
I resend this patch for current trunk.The former V1 patch is for CC branch.

Signed-off-by: Shonn Lu <countrysideboy@qq.com>

SVN-Revision: 47617
2015-11-24 18:29:02 +00:00
John Crispin
12b6f4cf71 ramips: add second spi master sysclk
for mt7620, rt3883 and rt5350

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47616
2015-11-24 18:28:54 +00:00
John Crispin
c550ad3d3a ramips: update dtsi files to support second spi device
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47580
2015-11-22 11:49:13 +00:00
John Crispin
a941b34008 ramips: use transfer_one instead of transfer_one_message on rt2880 spi
* use kernel buildin transfer_one_message. we only need to implement
transfer_one and set_cs function
* should support use gpio as cs pin
* deselected the spi device when setup and add debug info
* only reset device when first driver probe

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47579
2015-11-22 11:49:04 +00:00
John Crispin
95aa28da81 ramips: move rt2880 spi clock and reset init code to spi_prepare_message
before spi transfer. use spi_prepare_message to setup spi hardware. it
will setup MSB, spi mode and speed
remove sys_freq member and speed check code

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47578
2015-11-22 11:48:57 +00:00
John Crispin
a58dec6275 ramips: improve rt2880 spi setup
* check clock rate, SPI mode, and word sizes
* setup spi polarity
* enable spi1 hw if need

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47577
2015-11-22 11:48:51 +00:00
John Crispin
2ce886f149 ramips: clean up rt2880 spi probe/remove
* fill struct according to the member order
* add error clean up
* set min/max spi speed. so we don't need to check again

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47576
2015-11-22 11:48:45 +00:00
John Crispin
bf89d139e1 ramips: improve rt2880 spi wait ready function
use loops_per_jiffy, spi clock speed and write bytes to get the
spi loop count. if loop to 0 than spi operation timeout.
remove usleep. we only write 1 byte to spi device. use busy loop
would be better.

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47575
2015-11-22 11:48:34 +00:00
John Crispin
702c480dfe ramips: remove rt2880 spi lock and clean bit operation
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47574
2015-11-22 11:48:21 +00:00
John Crispin
13fbd6fea7 ramips: add rt2880/mt7620 spi register defines
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47573
2015-11-22 11:48:10 +00:00
John Crispin
55ee2e0ef7 ralink: add missing nand layer hack
It turned out that mtk_nand driver uses some sophisticated accounting and a
general nand code must be patched.

This patch adds required read and erase calls to a general nand code. I
used a  code  for re6500 released by Linksys as a reference.

All required operations (erase, write and read) are usable. However I found
that jffs2 filesystem can be created only on top of a ubi volume. I tried
to create jffs2 directly on mtd device but pages with clean markers are
became uncorrectable.

Signed-off-by: Kirill Berezin <fyiwdt@gmail.com>

SVN-Revision: 47565
2015-11-21 21:25:33 +00:00
John Crispin
40ddc71cc9 ramips: init usb power for Lenovo Y1S
Signed-off-by: Shonn Lu <countrysideboy@qq.com>

SVN-Revision: 47557
2015-11-21 21:24:38 +00:00
Felix Fietkau
b95aed986a ramips: minor fixes for mt7621 profiles
* remove references to non-existing kmod-usb3-mt7621
 * ZTB WG2626 doesn't have an RTC (thanks to Piotr Dymacz!)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47407
2015-11-07 12:51:48 +00:00
John Crispin
aebf73f045 ramips: fix previous commit
r47388 accidentially changed 2 files too many

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

SVN-Revision: 47389
2015-11-05 10:03:58 +00:00
John Crispin
dc699dd547 ramips: minor tweak to the lks7688 baord name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47388
2015-11-05 10:01:23 +00:00
John Crispin
2350c149b5 ramips: add feature to blink led on sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47373
2015-11-03 13:32:02 +00:00
John Crispin
165244a222 ramips: add support for ZBT WG2626
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47351
2015-11-02 10:18:19 +00:00
John Crispin
0f4b153e3d ramips: add eeprom mtd partition to the Asus RP-N53 dts
This patch adds the eeprom property to the dts for the Asus RP-N53. It is necessary to get the wifi in the soc working.

Signed-off-by:  Alberto Mattea <alberto@mattea.info>

SVN-Revision: 47350
2015-11-02 10:18:09 +00:00
John Crispin
907c67fa87 ramips: preinit: use iproute2 instead of vconfig
Replace use of vconfig with the corresponding iproute2 syntax in
/lib/preinit/07_set_preinit_iface_ramips

The switch reset work-around needed on some ramips targets used the
deprecated vconfig tool to bring up the pre-init/failsafe interface.
This doesn't work on recent builds where vconfig is no longer being
deployed, resulting in the device being unreachable when triggered
into failsafe mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47349
2015-11-02 10:18:02 +00:00
John Crispin
3760b95702 ramips: add support for Dovado tiny AC
Add support for Dovado tiny AC wifi router.

Soc: mt7620a
ram: 64MB
flash: 8MB
1x usb 2.0
two gigabit lan ports

5ghz wlan is not supported on this board since there is no gpl driverfor mt7610e wifi chip.

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47348
2015-11-02 10:17:51 +00:00
John Crispin
83693c911a ramips: add function to change rt2x00 wifi eeprom mac
Some boards like dovado tiny ac have generic ralink mac in onflash wifi eeprom.
Add eeprom_set_macaddr function to rt2x00 eeprom extract script which changes mac addr insde eeprom dump.

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47347
2015-11-02 10:17:41 +00:00
John Crispin
a76de8e7b3 ramips: mt7620 add icplus phy driver kernel config symbol
Add missing icplus phy driver kernel config symbol to mt7620 subtarget.
This is needed since some mt7620 devices have icplus ip1001 ethernet transceiver

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47346
2015-11-02 10:17:35 +00:00
John Crispin
8fa6927415 ramips: add support for the Asus RP-N53 in the "02_network" boot script
This patch adds a case for the Asus RP-N53 in the "02_network" boot script. Without this, the lan interface does not get configured on startup, effectively bricking the device.

Signed-off-by:  Alberto Mattea <alberto@mattea.info>

SVN-Revision: 47345
2015-11-02 10:17:26 +00:00
John Crispin
ed30ca8e39 ramips: rt305x: enable seama mtdsplit parser
D-Link DIR-610 A1 needs seama mtdsplit parser.
This patch should fix #18046.

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

SVN-Revision: 47341
2015-11-02 10:16:56 +00:00
John Crispin
6dcbf74a94 ramips: rt305x: update kernel config symbols
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 47340
2015-11-02 10:16:48 +00:00
Hauke Mehrtens
55a912f43e kernel: update kernel 3.18 to version 3.18.23
Changelog:
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.22
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.23

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47334
2015-11-01 13:45:57 +00:00
Felix Fietkau
b100027a83 ramips: fix for kernel 4.0 napi repoll need return budgets number
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47306
2015-10-30 22:32:49 +00:00
John Crispin
228eeb647e ramips: make the alsa driver register the codec
this allows using the codec even if it is not listed in the DTS

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

SVN-Revision: 47256
2015-10-26 09:00:42 +00:00
John Crispin
e043ada1d5 ramips: gpio-mt7621 was not handling irqs above 31 properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47238
2015-10-20 07:09:20 +00:00
John Crispin
7295e9fb8b ramips: add alsa support
add the SDK alsa driver. this has only been tested on mt7628/88 and wm8960.
mt7620 is only compile tested.

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

SVN-Revision: 47205
2015-10-19 10:07:54 +00:00
John Crispin
f5d5cb0114 ramips: add a baurate hack
When talking to an atmel controller we need 9600 or 250000 baud.
as 250000 does not exist we use 2500000.

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

SVN-Revision: 47204
2015-10-19 10:07:43 +00:00
John Crispin
51dd991d39 ramips: add LinkIt Smart7688 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47203
2015-10-19 10:07:38 +00:00
John Crispin
b0f7e6bc83 ramips: fix /target/linux/ramips/dts/HC5XXX.dtsi
dtb complained about those lines

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

SVN-Revision: 47151
2015-10-07 08:00:40 +00:00
Felix Fietkau
2686dc6dd8 ramips: enable mt76 by default for the mt7620 subtarget (for devices with mt7620 + mt7612)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47146
2015-10-06 12:32:31 +00:00
Felix Fietkau
38389c79c2 ramips: improve read performance of the m25p80 chunked io patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47137
2015-10-05 11:34:16 +00:00
John Crispin
b4db6d29d3 ramips: improve systick timer
when sleep mode is disable use MIPS as clocksource and clockevent instead of systick.
because MIPS timer has higher resolution 5ns less than systick 20us and
larger counter bits 32 > 16.
clean interrupt by write compare register at isr.
fix typo cause sleep mode not enable.

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47122
2015-10-05 10:27:09 +00:00
John Crispin
10f75a2b7f ramips: fix use remove_irq to release irqaction resource
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47121
2015-10-05 10:27:04 +00:00
John Crispin
ccf89e71f2 ramips: add support for 16MB VoCore
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47120
2015-10-05 10:27:00 +00:00
John Crispin
948e67cb16 ramips: fix size-cells for spi nodes
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47119
2015-10-05 10:26:54 +00:00
John Crispin
d4cd8f89eb ramips: Ralink RT3883 RGMII pinmux fix.
Due to datasheet of rt3883 SoC rgmii1 port handles pins 84-95 and rgmii2 port handles pins 72-83. When this function ports gets added to rt3883_pinmux_data there's wrong pinmux bits set (RT3883_GPIO_MODE_GE1 manages 84-95 pins and RT3883_GPIO_MODE_GE2 manages 72-83). So when enabling rgmii2 as GPIO driver confuses hardware and nothing work, neither rgmii nor gpio.
Also in '0030-pinctrl-ralink-add-pinctrl-driver.patch' typo in name of rgmii2 port.

Signed-off-by: Nick Leiten <nickleiten@gmail.com>

SVN-Revision: 47118
2015-10-05 10:26:40 +00:00
John Crispin
aecac14cc4 ramips: Enable rx of 1536 bytes ethernet frames on MT7621
The default switch frame size (with FCS + header) is 1536 bytes. But the
GMAC only accepted frames up to 1522 bytes. Setting it to 1536 allows to
receive ethernet frames using the full of MTU 1500 + an extra VLAN header +
VLAN header added by the switch.

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

SVN-Revision: 47117
2015-10-05 10:26:34 +00:00
John Crispin
7b306e3eb3 ramips: Fix too small rx buffer
The driver assumes that the maximum received buffer for non-jumbo frames is
1536 bytes. But the allocation of the rx fragment doesn't reflect that. It
currently allocates fragments which will only be large enough to be used as
rx buffer with the size of 1534 bytes. This is problematic because the GMAC
will now try to write to 2 bytes which don't belong to its receive buffer
when a large enough ethernet frame is received.

This may already be a problem on existing chips but will at least become a
problem when the 1536 byte rx modus is enabled on MT7621a. It is required
on this SoC to receive ethernet frames which use their full 1500 bytes MTU
and a VLAN header next to the switch VLAN tag.

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

SVN-Revision: 47116
2015-10-05 10:26:28 +00:00
John Crispin
6b4985b105 ramips: Fix setting of rx buffer length
The length of the DMA rx buffer was always set to 0 because the function
for extracting the length was used to calculate the value for setting it.
Instead the macro has to be split in a get and set function similar to the
TX_DMA_(GET_|)PLEN(0|1) macro.

No problem was noticed on MT7621a before this was changed and thus maybe it
was hidden by different problem which is not yet fixed.

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

SVN-Revision: 47115
2015-10-05 10:26:21 +00:00
John Crispin
1aab21df9f ramips: Allow to receive vlan over untag ports on MT7530
The MT7530 switch driver with enable_vlan set will automatically set all
ports to the user port mode. The hardware will remove the incoming vlan tag
on these ports and use it for its internal vlan. This is usually not wanted
and makes it impossible to communicate via vlan over the switch in both
directions.

It is possible to configure a switch port to "transparent mode" when this
port is only used as untag in the switch VLANs. This will disable the VLAN
untagging of packets when they were received on this port. The tagging on
"tag" ports based on the vlan id is still working.

The transparent port mode cannot be used when a port is both used in a VLAN
as "tag" and in another one as "untag" port.

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

SVN-Revision: 47114
2015-10-05 10:26:09 +00:00
John Crispin
dd8f5abb23 ramips: Add build files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com <http://www.hiwifi.com/>. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
    1: Spaces -> Tabs
    2: Removed some packages

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47113
2015-10-05 10:26:02 +00:00
John Crispin
e6e373d348 ramips: Add DTS files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
  1: Merged most stuff into dtsi file
  2: Remove unnecessary empty lines.

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47112
2015-10-05 10:25:53 +00:00
John Crispin
c10bdf11ff ramips: Add base-files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
   1: Fixed model order
   2: Remove manufacturer name from model name
   3: Use a hacky but prettier way to get mac address.

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47111
2015-10-05 10:25:47 +00:00
John Crispin
7ad419a9f1 ralink: add irq to mt7628 gpio node
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47076
2015-10-01 19:12:14 +00:00
John Crispin
e1b1b0cbfd ralink: the mmc driver can now handle CD lines that are active low
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47074
2015-10-01 18:13:47 +00:00
John Crispin
9e1268b168 ralink: speed selection was broken in spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47073
2015-10-01 15:35:44 +00:00
John Crispin
f453508b3e ramips: Fix pinmux functions for MT7621
The pinctrl-rt2880 code doesn't support multiple functions with the same
name. This will result in a incorrect pinmux configuration.

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

SVN-Revision: 46963
2015-09-16 08:31:52 +00:00
John Crispin
3a149a2910 ramips: add mt7621/3/8 support to the I2C driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46959
2015-09-16 08:31:15 +00:00
John Crispin
e6a9d5edf2 ramips: fix reported vendor name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46958
2015-09-16 08:31:10 +00:00
John Crispin
86a1e46b63 ramips: add proper mt7688 detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46957
2015-09-16 08:31:00 +00:00
John Crispin
85d5b9984d ramips: add speed and mode settings to spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46956
2015-09-16 08:30:43 +00:00
John Crispin
38c28154bd ramips: add get_direction() callback and irq support to gpio-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46955
2015-09-16 08:30:17 +00:00
John Crispin
23d79b60ce ramips: more m7628 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46954
2015-09-16 08:30:06 +00:00
John Crispin
9473837653 ramips: add mt7628 pwm driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46953
2015-09-16 08:29:55 +00:00
John Crispin
9dfe1f6fbe ramips: make pinctrl work on newer socs
newer socs have 2 mux registers

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

SVN-Revision: 46952
2015-09-16 08:29:45 +00:00
John Crispin
710520d5c7 ramips: make the mt7628 spi driver work for both cs lines
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46951
2015-09-16 08:29:40 +00:00
John Crispin
6f07b8a659 ramips: make the early_printk code detect which uart is used
only tested on mt7628

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

SVN-Revision: 46950
2015-09-16 08:29:31 +00:00
John Crispin
57c5910535 ramips: Added WIZnet WizFi630A Platform based on Ralink RT5350
This patch is to add the WIZnet WizFi630A board as a new platform. The board is in mini pci express form factor.

Signed-off-by: Tobias Welz <tw@wiznet.eu>

SVN-Revision: 46921
2015-09-14 20:09:31 +00:00
John Crispin
2efdc7c896 ramips: add support for Planex DB-WRT01
This patch add support for Planex DB-WRT01. DANBOARD route on
 the MT7620A SoC with two Ethernet port and a 802.11n 2.4 GHz radio.
 DANBOARD is Cartoon character.

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

SVN-Revision: 46918
2015-09-14 20:08:55 +00:00
Felix Fietkau
fcee359813 ramips: fix chunked-io support for big flash chips (#20504)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46904
2015-09-14 06:54:15 +00:00
Felix Fietkau
1956cc7018 ramips: enable external amplifier for Xiaomi MiWiFi Mini
Attempt to boost the 2.4 GHz signal, currently very low.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>

SVN-Revision: 46891
2015-09-12 10:22:41 +00:00
Felix Fietkau
d9857f5468 ramips: Enable RTC support for PBR-M1
The PBR-M1 and other upcoming MT7621 boards have RTC chips on them. The
PBR-M1 also selects the kmod-rtc-pcf8563 by default. But the module itself
will not be build because CONFIG_RTC_CLASS is currently not enabled for its
kernel.

Enabling this option should fix the problem of the missing rtc device on
these boards.

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

SVN-Revision: 46857
2015-09-11 16:32:58 +00:00
Jonas Gorski
7d6cff4882 kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

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

SVN-Revision: 46768
2015-09-02 10:18:15 +00:00
Felix Fietkau
7747092ed1 ramips: fix devicetree corruption with some boot loaders if the caches are not ready at boot
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46766
2015-09-02 09:24:05 +00:00
Jonas Gorski
efb2c403cf ramips: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

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

SVN-Revision: 46759
2015-08-30 12:18:14 +00:00
John Crispin
402c2d008b ramips: move patches around
0073 needs to applied afert 0102

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

SVN-Revision: 46667
2015-08-17 10:13:46 +00:00
John Crispin
0f155a330e ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts
Instead of using board name provided explicitly as text in LED name, ex.:

[...]
mlwg2)
	status_led="mlwg2:blue:system"
[...]

use $board variable, which allows to combine together multiple boards with same color and LED names, ex:

[...]
mlw221|\
mlwg2)
	status_led="$board:blue:system"
[...]

The above approach allows to shrink size of code in base-files/etc/board.d/01_leds and base-files/etc/diag.sh scripts dramatically.
One thing to keep in mind here is that we assume to use proper and consistent LED naming scheme ("device:color:led-name").

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

SVN-Revision: 46665
2015-08-17 06:24:47 +00:00
John Crispin
1a392636a5 ramips: use consistent naming scheme for LEDs
The upstream LED naming convention is "device:color:led-name", but it seems that many of supported boards in OpenWrt don't follow this approach.
The following patch fixes this inconsistency in dts{,i} files and updates base-files scripts for ramips target:
 * fixes wrong indentation
 * keeps case statements structure in same convention as in other scripts (no empty line after ";;", no indentation for case...esac body)
 * fixes wrong LED names for some of boards (makes them the same as in dts{,i} files)
 * combines boards with same configuration (ex. set_wifi_led "rt2800pci-phy0::radio" in 01_leds)

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

SVN-Revision: 46664
2015-08-17 06:24:34 +00:00
John Crispin
eba4a143c6 ramips: reorder the sysupgrade script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46660
2015-08-17 06:18:38 +00:00
John Crispin
aa4c6e27b4 ramips: reorder patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46659
2015-08-17 06:18:30 +00:00
John Crispin
87df7da757 ramips: Fix MT7621 pinmux bits for uart3, uart2, mdio
The MT7621 uses a 2 bit wide configuration of the sdhci, spi, mdio, pcie,
wdt, uart2 and uart3 in the GPIO_MODE register. It was correctly done
for sdhci, spi, pcie and wdt, The same has to be done for uart3, uart2
and mdio.

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

SVN-Revision: 46645
2015-08-17 06:15:49 +00:00
John Crispin
09851afd33 ramips: Fix amount of MT7621 pins controlled by spi group
The PINS conntrolled by the SPI bits in the GPIO_MODE register is always
7 and not 8 for nand mode.

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

SVN-Revision: 46644
2015-08-17 06:15:44 +00:00
John Crispin
9ed654e389 ramips: Fix uart2/uart3 pinmux order on MT7621
The uart3 setting in GPIO_MODE register is before the uart2 setting. Also
don't mix uart2 and uart3 function/groups.

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

SVN-Revision: 46643
2015-08-17 06:15:34 +00:00
John Crispin
f32116987f ramips: remove unnecessary LED declaration for WT1520 in diag.sh
This device doesn't have defined LEDs in its dts file.

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

SVN-Revision: 46635
2015-08-17 06:03:42 +00:00
John Crispin
2f0449419f ramips: fix indentation, case statements structure and optimize base-files/etc/board.d/02_network
The following patch:
 * fixes wrong indentation
 * combines together boards with same configuration
 * removes unnecessary spaces
 * removes empty lines after ";;" and uses only "|\" (for consistency)
 * orders boards alphabetically

in base-files/etc/board.d/02_network script.

One bug was left untouched: freestation5 board is listed twice in case statement, in ramips_setup_macs().

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

SVN-Revision: 46634
2015-08-17 06:02:59 +00:00
John Crispin
4069a8e49c ramips: be consistent with case statement in base-files/lib/upgrade/platform.sh
Always use "|\" (without spaces) and keep boards in alphabetical order.

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

SVN-Revision: 46633
2015-08-17 06:01:49 +00:00
John Crispin
a18b35a2f1 ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.sh
This patch:
 * fixes various mistakes (leading spaces, wrong or missing model names)
 * shortens model strings (we don't need to use whole model string from dts file, make it for consistency and as optimization)
 * sorts boards alphabetically

in base-files/lib/ramips.sh script.

Case statement was tested after above changes with simple script, which:
 * takes model string from dts{,i} file (model = "...")
 * provides this value as case input ($machine)
 * returns output ($name)

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

SVN-Revision: 46632
2015-08-17 06:01:44 +00:00
John Crispin
57e614c179 ramips: fix various mistakes in subtargets *.mk profiles
This patch:
 * fixes wrong indentation
 * fixes wrong names and descriptions (ex. Dlink -> D-Link)
 * changes filenames to manufacturer names
 * moves oem/unknown manufacturers boards to misc.mk profiles
 * combines profiles for boards from the same manufacturers in one file (ex. Olimex)
 * fix profile files structure (keep the same convention as in other targets, ex. ar71xx)

in various .mk profiles, in ramips target.

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

SVN-Revision: 46631
2015-08-17 06:01:38 +00:00
John Crispin
0d464c360f ramips: remove old code for Edimax BR-6524N
It seems that support for Edimax BR-6524N was dropped long time ago (dts file for this device is missing).
This patch removes remaining code.

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

SVN-Revision: 46630
2015-08-17 06:01:23 +00:00
John Crispin
2fe5cf2bd6 ramips: fix 7Links PX-4885 dts{, i}, board, image and profile names
The following patch changes 7Links PX-4885 dts{,i} filenames, board, image and profile names from "PX4885" to "PX-4885" (for consistency).

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

SVN-Revision: 46629
2015-08-17 06:01:06 +00:00
John Crispin
e4b6dcee5e ramips: fix Buffalo WMR-300 dts, board, image and profile names
The following patch changes Buffalo WMR-300 dts filename, board, image and profile names from "WMR300" to "WMR-300" (for consistency).

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

SVN-Revision: 46628
2015-08-17 06:00:49 +00:00
John Crispin
713c81e97b ramips: fix Omnima models, images and profiles names
Official names for supported Omnima products are (as on website):
 * Omnima HPM
 * Omnima MiniEMBWiFi
 * Omnima MiniEMBPlug

This patch changes:
 * board names
 * dts filenames
 * profile names
 * image filenames
 * LED names

for Omnima devices, for consistency.

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

SVN-Revision: 46627
2015-08-17 06:00:11 +00:00
John Crispin
0bb270429d ramips: fix Edimax BR-6425 board name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46626
2015-08-17 05:59:57 +00:00
John Crispin
40f808600c ramips: fix Tenda W150M model name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46625
2015-08-17 05:59:47 +00:00
John Crispin
b52ac01d27 ramips: fix Aigale Ai-BR100 dts and profile names
The following patch changes dts filename and profile name for Aigale Ai-BR100 (for consistency).

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

SVN-Revision: 46624
2015-08-17 05:59:36 +00:00
John Crispin
633c46a1d4 ramips: fix Olimex models, images and profiles names
Official names for RT5350F based OLinuXino products are "RT5350F-OLinuXino{,-EVB}" as on official manufacturer website.
The following patch:
 * changes board names from "olinuxino-rt5350f{,-evb}" to "rt5350f-olinuxino{,-evb}"
 * changes filenames of dts and profile files
 * changes image filenames

for Olimex RT5350F-OLinuXino{,-EVB} devices.

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

SVN-Revision: 46623
2015-08-17 05:59:29 +00:00
John Crispin
66f6c9e231 ramips: fix Sitecom WL-341v3 board and image names
The following patch changes:
 * board name from "wl341v3" to "wl-341v3"
 * dts filename
 * LED names in dts file

for Sitecom WL-341v3 device.

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

SVN-Revision: 46622
2015-08-17 05:59:12 +00:00
John Crispin
102073ca17 ramips: fix Argus ATP-52B board and image names
The following patch:
 * changes board name from "argus-atp52b" to "atp-52b"
 * changes dts filename
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Argus ATP-52B device.

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

SVN-Revision: 46621
2015-08-17 05:58:57 +00:00
John Crispin
f38d42b8e4 ramips: fix Belkin F7C027 image name
This patch removes manufacturer from Belkin F7C027 image name ("belkinf7c027" -> "f7c027").

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

SVN-Revision: 46620
2015-08-17 05:58:44 +00:00
John Crispin
5e84d173fa ramips: fix Asus RT-N56U dts filename
Other Asus RT-N dts files are named "RT-N..." (not "RTN..."), so use the same for RT-N56U.

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

SVN-Revision: 46619
2015-08-17 05:58:35 +00:00
John Crispin
7bf1db0dcb ramips: fix UPVEL model names
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46618
2015-08-17 05:58:20 +00:00
John Crispin
a0b8c60134 ramips: fix Xiaomi MiWiFi Mini board, image and profile names
The following patch:
 * changes board name from "xiaomi-miwifi-mini" to "miwifi-mini"
 * changes filenames of dts and profile
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Xiaomi MiWiFi Mini device.

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

SVN-Revision: 46617
2015-08-17 05:58:15 +00:00
John Crispin
5a6690a7a6 ramips: fix Asus RP-N53 and Lenovo Y1{, S} image names
This patch:
 * fixes typo (rp_n53 -> rp-n53) in Asus RP-N53 image name
 * removes manufacturer from image names for Lenovo Y1{,S} devices

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

SVN-Revision: 46616
2015-08-17 05:58:07 +00:00
John Crispin
5e1ea4810b ramips: fix Asus WL-330N{, 3G} boards names
There are other Asus boards supported in ramips target, so use the same naming scheme for WL-330N{,3G} boards and their dts files.

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

SVN-Revision: 46615
2015-08-17 05:57:55 +00:00
John Crispin
f38db77707 ramips: fix Zbtlink ZBT-WR8305RT board name
There is another Zbtlink board (ZBT-WA05) supported in ramips target, so use the same naming scheme for ZBT-WR8305RT board and its dts file.

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

SVN-Revision: 46614
2015-08-17 05:57:41 +00:00
John Crispin
553fea9f19 ramips: fix indentation and other mistakes in .dts{, i} files
The following patch fixes:
 * wrong indentations
 * doubled gpio-keys-polled nodes (DIR-300-B7, DIR-320-B1, DIR-610-A1)
 * duplicate spacings
 * empty lines at end of files and after last child nodes
 * trailing and leading whitespace
 * unnecessary and commented-out code
 * missing empty lines between nodes and between properties and nodes
 * unnecessary empty lines between nodes properties [1]

in .dts{,i} files, for ramips target.

[1] Some of empty lines in SOCs dtsi files were left untouched, because they seem to be there for a reason (readability?).

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

SVN-Revision: 46613
2015-08-17 05:57:18 +00:00
Hauke Mehrtens
0b8643af4f kernel: update 3.18 to 3.18.20
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.20

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46570
2015-08-09 11:09:52 +00:00
Felix Fietkau
ba05254353 ramips: Fix Ticket #20153 swap radio calibration data pointers on the RE6500
This patch fixes weak radio signal reported by nikola.georgiev

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

SVN-Revision: 46545
2015-08-02 15:08:14 +00:00
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
2015-07-26 13:01:43 +00:00
John Crispin
1b6a6abf04 ramips: add additional uarts to mt7628.dtsi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46477
2015-07-24 09:12:21 +00:00
John Crispin
37495247d2 ramips: make sd driver depend on mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46476
2015-07-24 09:12:16 +00:00
John Crispin
351a55ac29 ramips: add CD polling to sd driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46475
2015-07-24 09:12:10 +00:00
John Crispin
ebe957fad6 ramips: various mt7688 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46474
2015-07-24 09:12:02 +00:00
John Crispin
e04e44a223 ramips: add subtarget for mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46473
2015-07-24 09:11:56 +00:00
John Crispin
7449ea88db ramips: add clock strecthing support to i2c driver
fixes #19816

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

SVN-Revision: 46472
2015-07-24 09:11:42 +00:00
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
2015-07-24 09:09:22 +00:00
Felix Fietkau
363f32c8ac ramips: enable mt76 by default for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46410
2015-07-18 16:47:05 +00:00
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
2015-07-17 12:51:08 +00:00
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
2015-07-14 09:57:08 +00:00
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
2015-07-14 07:41:19 +00:00
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
2015-07-14 07:40:22 +00:00
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
2015-07-14 07:39:19 +00:00
Felix Fietkau
1e6479aa87 ramips: collect rx related members to fe_rx_ring struct
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 46295
2015-07-10 19:41:48 +00:00
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
2015-07-10 19:41:42 +00:00
John Crispin
2658b33f68 ramips: a5-v11 board fix power led blinking at boot
Signed-off-by: Konrad Kotowicz <skoti1@go2.pl>

SVN-Revision: 46215
2015-07-07 13:43:37 +00:00
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
2015-07-07 13:43:28 +00:00
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
2015-06-30 23:26:09 +00:00
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
2015-06-21 14:02:13 +00:00
John Crispin
2238b75285 ralink: add support for mt7621 switch counters
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 46050
2015-06-18 18:21:52 +00:00
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
2015-06-18 18:20:56 +00:00
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
2015-06-18 18:20:46 +00:00
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
2015-06-18 18:20:40 +00:00
John Crispin
765efbf10e ramips: fix a bug in the cevt code on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46038
2015-06-18 11:57:07 +00:00
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
2015-06-17 09:54:55 +00:00
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
2015-06-08 12:51:13 +00:00
John Crispin
bd87d11e58 ralink: add missing symbol
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45918
2015-06-07 07:12:23 +00:00
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
2015-06-05 14:12:25 +00:00
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
2015-06-05 08:59:57 +00:00
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
2015-06-05 08:59:48 +00:00
Felix Fietkau
0d043d3ac0 ramips: fix ethernet vlan tx offload support check when delete
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 45893
2015-06-05 08:59:42 +00:00
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
2015-06-05 08:07:41 +00:00
Felix Fietkau
69d79ea951 ramips: use highmem on the FireWRT board
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45890
2015-06-04 21:45:24 +00:00
Felix Fietkau
d7023e105f ramips: enable highmem support for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45889
2015-06-04 21:45:12 +00:00
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
2015-06-04 21:45:01 +00:00
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
2015-05-30 09:39:37 +00:00
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
2015-05-30 09:01:41 +00:00
Felix Fietkau
a6df9f0472 ramips: fix buttons on WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45845
2015-05-29 22:42:32 +00:00
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
2015-05-29 21:42:06 +00:00
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
2015-05-29 21:25:23 +00:00
Felix Fietkau
8b42d93358 ramips: implement sysupgrade support for whr-300hp2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45842
2015-05-29 21:13:28 +00:00
John Crispin
adbec3f132 ramips: fix imagebuilder
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45820
2015-05-29 11:28:10 +00:00
John Crispin
3f9999b44b ramips: dont set illacc to y by default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45795
2015-05-27 20:06:06 +00:00
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
2015-05-27 20:02:04 +00:00
Felix Fietkau
83703fc076 ramips: check size after padding
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 45777
2015-05-27 14:56:22 +00:00
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
2015-05-25 18:02:32 +00:00
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
2015-05-23 15:27:10 +00:00
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
2015-05-23 15:27:05 +00:00
John Crispin
4810f3f803 ramips: fix switch names for several boards in device tree
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45723
2015-05-23 15:26:51 +00:00
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
2015-05-23 15:26:39 +00:00
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
2015-05-21 19:32:46 +00:00
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
2015-05-03 17:56:32 +00:00
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
2015-04-28 13:31:08 +00:00
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
2015-04-21 12:42:42 +00:00
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
2015-04-19 16:31:54 +00:00
John Crispin
607a7a35be ralink: fix cevt-r4k hack
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45342
2015-04-10 08:27:44 +00:00
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
2015-04-09 10:32:37 +00:00
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
2015-04-01 08:31:46 +00:00
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
2015-03-30 20:20:08 +00:00
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
2015-03-27 19:07:29 +00:00
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
2015-03-26 16:24:19 +00:00
John Crispin
2cedb63d84 ralink: the xhci patch broke ehci Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45027
2015-03-26 14:49:26 +00:00
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
2015-03-26 12:23:02 +00:00
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
2015-03-26 10:59:51 +00:00
John Crispin
024e0c1835 ralink: add FireWRT power button
Signed-off-by: Jay Weng <fl.service@t-firefly.com>

SVN-Revision: 45019
2015-03-26 10:59:36 +00:00
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
2015-03-26 10:59:31 +00:00
Felix Fietkau
e890a3bc9a ramips: make ethernet register map u16 instead of u32
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44940
2015-03-22 15:11:14 +00:00
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
2015-03-21 12:08:07 +00:00
Felix Fietkau
975e1357e6 ramips: fix LAN/WAN MAC address for WSR-600/1166
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44903
2015-03-20 09:37:07 +00:00
Felix Fietkau
dac483acb4 ramips: fix WSR-1166 green power LED
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44898
2015-03-19 21:51:44 +00:00
John Crispin
553528371b ralink: fix mt7621 i2c name
Signed-off-by: zouxf <fl.service@t-firefly.com>

SVN-Revision: 44868
2015-03-17 09:44:14 +00:00
John Crispin
7648d80c90 ralink: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44811
2015-03-16 07:39:46 +00:00
John Crispin
c7229b96b7 ralink: support change tx/rx ring size
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44741
2015-03-13 08:38:08 +00:00
John Crispin
2c94eef5df ralink: use random generate mac address instead of default one.
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44740
2015-03-13 08:38:01 +00:00
John Crispin
800da5a02e ralink: add wifi 5g dts info for cy-swr1100
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44739
2015-03-13 08:37:45 +00:00
John Crispin
835b17c333 ralink: resize the flash partition for FireWRT
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44691
2015-03-12 10:06:31 +00:00
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
2015-03-12 10:06:17 +00:00
John Crispin
0496393f9c ralink: FireWRT flash size is up to 16M.
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44661
2015-03-11 15:55:28 +00:00
John Crispin
260dea38fb ralink: add FireWRT IO multiplexing
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44660
2015-03-11 15:55:16 +00:00
John Crispin
9654b38319 ralink: add missing symbol that broke full builds
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44642
2015-03-10 11:03:16 +00:00
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
2015-03-06 07:56:47 +00:00
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
2015-03-06 07:56:34 +00:00
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
2015-03-06 07:56:08 +00:00
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
2015-03-06 07:55:57 +00:00
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
2015-03-01 11:37:15 +00:00
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
2015-02-22 08:28:42 +00:00
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
2015-02-22 08:28:35 +00:00
John Crispin
52b2a2c398 ralink: bump to v3.18
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44495
2015-02-19 14:04:47 +00:00
John Crispin
64db436416 ramips: fix the mt7628 dts file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44494
2015-02-19 14:04:41 +00:00
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
2015-02-16 21:19:18 +00:00
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
2015-02-16 21:18:59 +00:00
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
2015-02-14 20:48:53 +00:00
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
2015-02-12 08:07:39 +00:00
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
2015-02-11 13:05:14 +00:00
Nicolas Thill
29a57ce073 ramips/mt7620: add missing config symbol
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44399
2015-02-11 12:13:49 +00:00
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
2015-02-09 19:34:49 +00:00
John Crispin
525cd8aedb ralink: change rt3883 cpu type to 74kc
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44370
2015-02-09 19:34:32 +00:00
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
2015-02-09 12:15:45 +00:00
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
2015-02-09 12:15:17 +00:00
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
2015-02-09 12:15:00 +00:00
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
2015-02-09 12:13:55 +00:00
Luka Perkov
4b0fbf3072 ramips: fix patches after 3.14.32 bump
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44324
2015-02-08 15:42:42 +00:00
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
2015-02-07 19:58:58 +00:00
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
2015-02-07 19:58:52 +00:00
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
2015-02-03 10:11:11 +00:00
John Crispin
b41bf7479e ralink: cleanup firefly default packages
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44244
2015-02-02 09:02:35 +00:00
John Crispin
043f462be4 ralink: add FireWRT button detail
Signed-off-by: wengbj <fl.service@t-firefly.com>

SVN-Revision: 44242
2015-02-02 09:02:16 +00:00
John Crispin
d725678a43 ralink: add FireWRT led detail
Signed-off-by: wengbj <fl.service@t-firefly.com>

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

SVN-Revision: 44240
2015-02-02 09:02:02 +00:00
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
2015-02-02 09:01:07 +00:00
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
2015-02-01 08:20:37 +00:00
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
2015-01-28 12:06:22 +00:00
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
2015-01-24 22:45:28 +00:00
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
2015-01-24 22:45:23 +00:00
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
2015-01-24 22:45:16 +00:00
Felix Fietkau
5d4837706a ramips: fix ethernet vlan tx offload support check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44115
2015-01-24 22:45:10 +00:00
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
2015-01-22 09:35:22 +00:00
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
2015-01-22 09:35:12 +00:00
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
2015-01-20 06:34:28 +00:00
Felix Fietkau
9e7cc83edc ralink: fix ethernet rx buffer size breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44047
2015-01-18 20:17:41 +00:00
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
2015-01-18 20:17:28 +00:00
Felix Fietkau
b3ca42ec8f ralink: correct handle hardware rx 2bytes offset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44045
2015-01-18 20:17:18 +00:00
Felix Fietkau
03ea0cf6f1 ralink: use fe_reset to control all reset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44044
2015-01-18 20:17:07 +00:00
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
2015-01-18 20:16:50 +00:00
Felix Fietkau
69ee1807ed ralink: add ethernet fe and esw reset control bit
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44042
2015-01-18 20:16:44 +00:00
Felix Fietkau
a5b578c2d9 ralink: reduce access to uncached tx/rx dma ring buffer
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44041
2015-01-18 20:16:35 +00:00
Felix Fietkau
68f50c4e2d ramips: downgrade mt7621 "Spurious GIC Interrupt" to debug messages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44028
2015-01-18 09:25:49 +00:00
Felix Fietkau
b0e6e6e2f2 ramips: add mt7621 cpu feature overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44027
2015-01-18 09:25:43 +00:00
Felix Fietkau
f66cca61d2 ramips: refresh kernel patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44025
2015-01-18 09:25:32 +00:00
Felix Fietkau
632be658d5 ramips: add missing copyright info for relocate stub
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44017
2015-01-17 21:22:36 +00:00
Felix Fietkau
40b740b232 ramips: add preliminary support for DIR-860L B1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44016
2015-01-17 21:20:05 +00:00
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
2015-01-17 21:19:38 +00:00
Felix Fietkau
82f21058a1 ramips: enable the seama mtdsplit parser
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44013
2015-01-17 21:19:30 +00:00
Felix Fietkau
590e0d7f81 ramips: register mt76 device tree info for WSR-1166DHP
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44010
2015-01-17 16:50:59 +00:00
Felix Fietkau
070f67aa9b ramips: register mt7621 pcie through device tree
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44009
2015-01-17 16:50:51 +00:00
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
2015-01-17 14:50:59 +00:00
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
2015-01-17 14:06:13 +00:00
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
2015-01-17 13:13:55 +00:00
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
2015-01-17 07:07:36 +00:00
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
2015-01-17 07:06:59 +00:00
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
2015-01-17 07:06:51 +00:00
Felix Fietkau
bc78885e70 ramips: add missing -Os cflag for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43954
2015-01-13 00:34:49 +00:00
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
2015-01-13 00:34:45 +00:00
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
2015-01-13 00:34:38 +00:00
Felix Fietkau
5b0d18093d ramips: convert mt7621 images to new image building code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43908
2015-01-10 15:26:53 +00:00
Felix Fietkau
e66f1292aa ramips: simplify mkimage kernel loadaddr/entry handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43906
2015-01-10 15:26:38 +00:00
Felix Fietkau
48d8bc4f97 ramips: add preliminary Archer C20i support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43898
2015-01-09 15:40:51 +00:00
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
2015-01-08 20:26:20 +00:00
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
2015-01-08 20:26:13 +00:00
John Crispin
2ea64717e2 ramips: update BR-6475ND dts
Update firmware location for 2.4GHz radio on the Edimax BR-6475nD.

Signed-off-by: Christopher Lais <chris+openwrt@zenthought.org>

SVN-Revision: 43881
2015-01-08 20:26:02 +00:00
John Crispin
f9dcd95919 ramips: base-files: Whitespace fixes.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 43880
2015-01-08 20:25:55 +00:00
Felix Fietkau
7cc5b6f9e9 all targets: remove all =m kernel config symbols
modules build during the kernel compile phase are ignored anyway,
all modules should be built using KernelPackage in
package/kernel/linux/modules/*
selecting the appropriate config symbols there rather than in
target/linux/*/config-*

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43842
2015-01-05 13:02:44 +00:00
Felix Fietkau
fd7be4073a ramips: fix WSR-600DHP flash layout
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43819
2015-01-03 18:31:27 +00:00
Felix Fietkau
373c84c30b ramips: fix WSR-1166DHP flash layout
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43818
2015-01-03 18:31:17 +00:00
Felix Fietkau
ada0452b14 ramips: fix WSR-{600,1166} names
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43817
2015-01-03 18:31:11 +00:00
Felix Fietkau
ca32b89cc0 ramips: fix wsr-1166 sysupgrade support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43816
2015-01-03 18:31:06 +00:00
Felix Fietkau
88e8f99f7f ramips: on mt7621 only enable xhci for the eval board (still needs patch cleanup to take effect)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43815
2015-01-03 18:30:57 +00:00
Felix Fietkau
bdc35c8ef4 ramips: fix WSR-600 image format
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43814
2015-01-02 21:53:45 +00:00
Felix Fietkau
8eb074756d ramips: use CONFIG_MTD_SPLIT_UIMAGE_FW instead of CONFIG_MTD_UIMAGE_SPLIT
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43813
2015-01-02 21:53:38 +00:00
Felix Fietkau
ed20caeb65 ramips: fix image format for WSR-1166
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43812
2015-01-02 21:53:31 +00:00
Felix Fietkau
10c2bdbc4f ramips: disable ethernet checksum offloads for mt7621, they are broken
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43811
2015-01-02 21:53:24 +00:00
Felix Fietkau
51b1f0ca5c ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43810
2015-01-02 21:53:18 +00:00
Felix Fietkau
81e3014e6d ramips: rework and fix m25p80 chunked-io support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43808
2015-01-02 21:53:02 +00:00
Felix Fietkau
aefd3c569c ramips: split mt7621 spi into a separate driver, increase maximum transfer size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43807
2015-01-02 21:52:53 +00:00
Imre Kaloz
6bfd210ade honor the bootloader's bootargs
Only overwrite the bootloader's bootargs if "chosen" exists in the dtb

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43802
2015-01-02 16:48:20 +00:00
John Crispin
0ffb7323d0 ralink: remove partitoon map from mt7621.dtsi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43720
2014-12-15 15:55:37 +00:00
John Crispin
019ea725aa add "preinit_regular" diag.sh set_state argument
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43715
2014-12-15 10:37:00 +00:00
Rafał Miłecki
fbea00b031 ramips: update mtd patches to apply after changes from r43700
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43709
2014-12-15 09:10:43 +00:00
John Crispin
6f2b7567b8 ralink: drop old pinmux nodes from dts files
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43701
2014-12-14 08:57:16 +00:00
John Crispin
263070a2e7 ramips:Add support for Aigale Ai-BR100
Aigale Ai-BR100 is a router with mt7620a soc.
There are only 2 lights on the board (WAN and WLAN) so I used the wlan light as the status led.

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

SVN-Revision: 43681
2014-12-13 08:07:03 +00:00
John Crispin
6c4e7b22eb ralink: fix lenovo y1 wan port mapping
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43667
2014-12-12 16:17:31 +00:00
John Crispin
b1f7a027da ralink: make uartf functional on AWM002
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43664
2014-12-12 16:17:03 +00:00
John Crispin
1ef2106725 ralink: mt7621 was missing a symbol that made the CC builder fail
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43629
2014-12-11 18:54:30 +00:00
Felix Fietkau
9a495f6bbb kernel: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43564
2014-12-08 12:04:25 +00:00
John Crispin
8a123f6f66 ramips: generate factory images for Nexx devices
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 43541
2014-12-07 16:53:22 +00:00
John Crispin
d04c4a311e ralink: mt7621 is a 1004Kc
Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 43514
2014-12-03 20:22:42 +00:00
John Crispin
506cf51b53 ralink: fix pci reset patch
sorry, forgot to make target/update before commiting the last patch

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

SVN-Revision: 43374
2014-11-24 20:39:48 +00:00
John Crispin
41f9765acd ralink: add proper reset of pci core
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43370
2014-11-24 19:12:35 +00:00
John Crispin
d93dc245e5 ralink: various fixes to the wm8960 setup code
still no sound but the codec is properly detected now, powers up and i can hear
noise on the speakers.

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

SVN-Revision: 43305
2014-11-19 09:20:12 +00:00
John Crispin
989bfd815b ralink: make the dmaengine driver compile under 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43304
2014-11-19 09:20:02 +00:00
John Crispin
e1f6d0dd0a ralink: fix tx vlan offload and hardware status
hardware status and tx vlan offload support on all targets
except rt5350. so i modify the IS_ENABLE condition only for
mt7621.
support mt7621 hardware status reference by SDK. but i don't
have mt7621. if not work just set mt7621 FE_REG_FE_COUNTER_BASE
to 0 to let software count.

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

SVN-Revision: 43303
2014-11-19 09:19:57 +00:00
John Crispin
a5f562993e ralink: support netconsole
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 43302
2014-11-19 09:19:49 +00:00
John Crispin
9c5dfd9546 ralink: improve tx vlan offload
hardware tx vlan offload only support max 16 vids
now use add/delete vlan interface to update vlan id table
when duplicate vlan id index detect.
disable hardware tx vlan offload support.

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

SVN-Revision: 43301
2014-11-19 09:19:43 +00:00
John Crispin
510ff1f1b8 ralink: merge the mt7620a/n subtargets
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43300
2014-11-19 09:19:38 +00:00
John Crispin
752745a85a ralink: set ralink_soc on mt7621
sdhci failed to init because of this

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

SVN-Revision: 43293
2014-11-17 21:58:30 +00:00
John Crispin
32d4348540 ralink: fix pcie reset
some old mt7620a uboots dont reset the pcie core properly. work around this
issue in the kernel driver.

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

SVN-Revision: 43292
2014-11-17 16:27:48 +00:00
Felix Fietkau
28b26fa603 ramips: disable 2.4 ghz on 802.11ac wifi on WHR-1166D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43283
2014-11-16 12:26:53 +00:00
Felix Fietkau
b3f2d3d01b ramips: use mediatek,mtd-eeprom instead of ralink for mt76
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43282
2014-11-16 12:26:47 +00:00
Felix Fietkau
02c319c27a ramips: fix default config breakage on whr-1166d
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43281
2014-11-16 11:39:19 +00:00
John Crispin
c073bf6bdf ralink: few updates tot he sdhci probe code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43275
2014-11-15 14:35:32 +00:00
John Crispin
ce1c580efb ralink: make the sdhci module build again
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43274
2014-11-14 18:51:41 +00:00
John Crispin
7cc72e4b93 ralink: dont define pm_poweroff
this makes gpio-poweroff work

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

SVN-Revision: 43254
2014-11-14 16:53:40 +00:00
John Crispin
be23eaa8c3 ralink: fix bank detection in mt7621 gpio driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43253
2014-11-14 16:53:34 +00:00
John Crispin
6d4282086d ralink: enable the proper drivers in the mt7621 config
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43252
2014-11-14 16:53:29 +00:00
John Crispin
0767ee848a ralink: fix broken pinmux function naming inside mt7621.c
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43251
2014-11-14 16:53:21 +00:00
John Crispin
8cde8a05c9 ralink: update sdhci driver
the new driver handles newer SoCs

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

SVN-Revision: 43250
2014-11-14 16:53:15 +00:00
John Crispin
66463a5b5d ralink: update pcie driver to load ranges from dts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43249
2014-11-14 16:53:07 +00:00
John Crispin
7963782b86 ralink: add a new global ralink_soc variable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43248
2014-11-14 16:53:01 +00:00
John Crispin
caa29dea2c ralink: update ethernet driver to use new ralink_soc variable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43247
2014-11-14 16:52:52 +00:00
John Crispin
bf8bb5b611 ralink: fix the 10mbit bug on mt7621
a missing "val =" caused the AN bit in the phy0 reg to be flushed.

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

SVN-Revision: 43246
2014-11-14 16:52:47 +00:00
John Crispin
194ca6127e ralink: improve mt7530 support
the SDK does a bit of extra init that we did not do yet when using an external mt7530.

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

SVN-Revision: 43245
2014-11-14 16:52:42 +00:00
John Crispin
0371dabc13 ralink: add support for WSR-600/1166
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43244
2014-11-14 16:52:36 +00:00
John Crispin
062828aee0 ralink: mt7621 has a different base addr for PVID
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43243
2014-11-14 16:52:30 +00:00
John Crispin
938e1e03fb ralink: drop some unused code from pci-mt7620a
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43242
2014-11-14 16:52:25 +00:00
John Crispin
bfcdc8711c ralink: fix up dts for mt7621 eval board
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43238
2014-11-12 14:55:00 +00:00
John Crispin
86e3315ece ralink: add support for mt7621 ethernet
somehow all switch ports still come up as 10mbit.

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

SVN-Revision: 43237
2014-11-12 14:54:50 +00:00
John Crispin
45814d150a ralink: more mt7530 fixes
make 1166 wan port work. this broke due to the esw_polling bug

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

SVN-Revision: 43236
2014-11-11 11:46:16 +00:00
John Crispin
e399931376 ralink: fix mdio polling of external phys if only 1 phy exists
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43235
2014-11-11 11:46:09 +00:00
John Crispin
6623feb572 ralink: remove IC plus phy driver
this driver confuses some boards

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

SVN-Revision: 43234
2014-11-11 11:46:02 +00:00
Luka Perkov
da53ac677f ralink: DCS-930: enable sound
Camera has microphone; in order to use it by default enable sound support.

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

SVN-Revision: 43232
2014-11-11 00:08:05 +00:00
Luka Perkov
494c6e7f6e ralink: update DCS-930 dts
* read MAC address from factory partition
* remove port defines since there is only one port (most likely C/P error)

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

SVN-Revision: 43231
2014-11-11 00:05:14 +00:00
Felix Fietkau
9e98d559f6 ramips: fix initramfs image build handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43219
2014-11-08 15:40:17 +00:00
Felix Fietkau
455ba77b6a ramips: add eeprom data for 802.11ac wlan on WHR-1166D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43218
2014-11-08 14:15:49 +00:00
Felix Fietkau
29f71d384f ramips: add missing size/address-cells to device tree include files
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43217
2014-11-08 14:15:44 +00:00
John Crispin
604a3e5134 ralink: fix a regression that broke pcie on mt7621
i accidentally dropped 2 lines while adding mt7628 support

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

SVN-Revision: 43216
2014-11-08 13:45:26 +00:00
Felix Fietkau
07754ac297 ramips: enable sysupgrade for whr-600d, whr-1166d
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43213
2014-11-08 12:18:58 +00:00
John Crispin
503a34ca50 ralink: fix the compat string for mt7620a pci
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43211
2014-11-08 12:12:05 +00:00
John Crispin
89f74722b7 ralink: assign default ranges inside the pci driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43207
2014-11-07 10:51:08 +00:00
John Crispin
9007e2244f ralink: mt7628 does not actually need this fix for the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43206
2014-11-07 10:51:00 +00:00
John Crispin
c32ad22e40 ralink: improve r43200
r43200 tries to detect if the fixup is needed or not. control the behaviour via
OF instead and disable unused ports.

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

SVN-Revision: 43201
2014-11-06 12:19:53 +00:00
John Crispin
0cc0ba2b3a ralink: only apply ephy1 fixup if the phy is present
this broke e1700 lan2 as the fixup was applied to the phy inside the mt7530.

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

SVN-Revision: 43200
2014-11-06 11:11:44 +00:00
John Crispin
78b6222851 ralink: tweak e1700 dts file
the current driver code wont know which mt7530 to apply the llllw setting to.

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

SVN-Revision: 43199
2014-11-06 09:31:45 +00:00
John Crispin
c5954fc510 ralink: make pci driver handle mt7628
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43198
2014-11-06 09:31:37 +00:00
John Crispin
cadf517107 ralink: add support for mt7628
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43197
2014-11-06 09:31:31 +00:00
John Crispin
f8404aaf9e ralink: add mt7628 support to the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43196
2014-11-06 09:31:19 +00:00
John Crispin
26504289df ralink: cleanup ethernet Makefile/Kconfig
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43195
2014-11-06 09:31:09 +00:00
John Crispin
d524fe46fd ralink: move ethernet driver to files/
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43194
2014-11-06 09:31:03 +00:00
Imre Kaloz
d738d22bf8 add support for the Linksys E1700
SVN-Revision: 43186
2014-11-05 14:37:13 +00:00
John Crispin
b25b58a96a ralink: add pci bidge node to mt7620a dts file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43172
2014-11-03 20:20:46 +00:00
John Crispin
cc142739f2 ralink: fix wan port on whr-1166
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43171
2014-11-03 20:20:40 +00:00
John Crispin
cc5194cf03 ramips: add support for Airlink101 AR670W
This is a RT2880-based board, 32MB RAM, 4MB flash. The bootloader
is a hacked u-Boot that reads an LZMA image directly, so we skip
generating the uImage header and enable the lzma mtdsplit parser.

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

SVN-Revision: 43153
2014-11-03 08:00:13 +00:00
John Crispin
2f30ba5328 ralink: make sure a mii_bus is loaded before accesing its state
this caused a crash on boot

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

SVN-Revision: 43120
2014-10-30 10:10:57 +00:00
John Crispin
0b64dca49d ralink: load mt7530 driver on the 3 buffalo units
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43119
2014-10-30 10:10:51 +00:00
John Crispin
0b19244498 ralink: mt7530 - force wan port up
some bootloaders (linksys e1700) set wonky hw trap values. reset this upon boot to make all ports work.

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

SVN-Revision: 43117
2014-10-30 08:44:00 +00:00
John Crispin
38692d14f2 ralink: fix mt7530 for newer silicon revisions
latest mt7530 silicon seems to have a different phy id.

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

SVN-Revision: 43113
2014-10-30 08:07:49 +00:00
John Crispin
152d692a1f ramips: improve ralink ethernet driver
Change list:
* add tx scatter gather function.
* add software rx vlan offload to let GRO work.
* add jumbo frame support. because use build_skb so max MTU is 3812.
* enable hardware tx vlan.
* enable GRO and remove LRO. because it can improve performance and can work on forwarding.
* enable/fix tx padding function.
* let napi handle tx clean up.
* support ethtool operation. now support message level, hardware status and coalesce.
* ethtool support use mdio to get phy status only on mt7620. need modify dts file and add phy info to support it.

Notes:
* build and test on rt2880, rt3052, rt3352, rt3662, rt5350 and mt7620a.
* TCP NAT performance improve. test with netperf.
  - rt2880(gigabit) from 5x to 12x Mbps.
  - rt3x5x from 6x to 94 Mbps.
  - rt5250 from 5x to 8x Mbps.
  - rt3662(gigabit) from 6x to 42x Mbps with GRO. 23x Mbps without GRO. 66x Mbps with jumbo frame.
  - mt7620 still 94Mbps.
* TSO function not tested. because i don't have mt7620 with eco >= 5. and the hardware don't support to set MSS. it will have problem.

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

SVN-Revision: 43108
2014-10-29 19:43:59 +00:00
John Crispin
c0bf47232a ralink: fix switch config on mt7530 evb
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43105
2014-10-29 18:51:02 +00:00
John Crispin
8223e78121 ralink: fix a off by 4 bug in mt7530
0x8100000c vs 0x810000c0 int he pvc register this caused the cascade with an external mt7530 to fail.

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

SVN-Revision: 43104
2014-10-29 18:49:46 +00:00
John Crispin
d0bf15f235 ramips: add support for A5-V11 board (resubmit)
(Reposted due to an issue with the patchwork server during original submission)

Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key)

Signed-off-by: Gareth Bryan <gareth@mx9.org>

SVN-Revision: 43102
2014-10-29 11:01:17 +00:00
John Crispin
d1a1ad3e66 ramips: fix filenames in PorayDualSize factory images
SVN-Revision: 43073
2014-10-26 17:18:45 +00:00
Felix Fietkau
c288d2d6d9 kernel: makefiles: make use of new var KERNEL_PATCHVER
replace all occurences of LINUX_VERSION with the cleaner
approach. future kernel upgrades must mostly touch only
one file. the only platform left is netlogic, because it
uses a intermediate kernel 3.14.16

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 43047
2014-10-24 19:34:02 +00:00
John Crispin
5c33e9565b ramips: add comments for image/Makefile.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42991
2014-10-20 06:29:51 +00:00
John Crispin
6e1637f8fa firmware-utils: restore compilation of mkhilinkfw.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42989
2014-10-20 06:29:38 +00:00
John Crispin
7bac455a4c ramips: add support for Nexx WT3020 devices
SVN-Revision: 42983
2014-10-20 06:28:48 +00:00
John Crispin
5b40a150ea ramips: sort boards in upgrade/platform.sh alphabetically
SVN-Revision: 42982
2014-10-20 06:28:39 +00:00
Felix Fietkau
35e9d448f2 ramips: fix usercfg partition offset for WHR-1166D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42958
2014-10-19 08:45:56 +00:00
John Crispin
20940138ac scripts: fix wrong usage of '==' operator
[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42911
2014-10-14 12:21:11 +00:00
John Crispin
06a849575d ralink: Build 8M image for 7Links PX-4885
7Links PX-4885 (clones) can also be purchased with 8MB flash.
Creating images for these routers, use dtsi for common part

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

SVN-Revision: 42892
2014-10-13 19:41:36 +00:00
John Crispin
1bbc5de86e ralink: various i2c related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42868
2014-10-10 08:56:53 +00:00
John Crispin
af1207b58c ramips: add support for Nexx WT1520
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 42867
2014-10-10 08:56:43 +00:00
John Crispin
97c202968a ralink: various i2c fixes
the driver did not handle all states correctly causing a deadlock of the i2c hw block.

Signed-off-by: Ing.Michele Mogioni <michele.mogioni@unimc.it>

SVN-Revision: 42807
2014-10-06 20:05:13 +00:00
John Crispin
d76b7e0221 ramips: D-Link DIR-810L: make led naming consistent with other boards
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 42789
2014-10-06 04:52:36 +00:00
John Crispin
98114e7cdd ralink: Add missing code to free GPIO on Ralink SoC
Signed-off-by: schildt@ibr.cs.tu-bs.de
Acked-by: info@gerhard-bertelsmann.de

SVN-Revision: 42788
2014-10-06 04:52:26 +00:00
John Crispin
b04bb3eea7 ramips: Support for RAMIPS based Tripmate HT-TM02 board
Provides support for the Tripmate HT-TM02 personal router including LEDs and
reset button. “Mode” switch is not supported. New profile includes full set
of packages required to enable LEDs, USB, and LUCI. Patches were applied
against trunk snapshot r42649. Functionality has been tested in AP, basic wifi
client, wifi router, and routed client modes - all good.

Signed-off-by: Ron Curry <wingspinner@gmail.com>

SVN-Revision: 42785
2014-10-06 04:52:07 +00:00
John Crispin
d4cc995c53 ramips: D-Link DIR-810L. Add support for SoC 2.4 GHz wireless and fix leds naming
SVN-Revision: 42619
2014-09-19 11:07:08 +00:00
John Crispin
4ef1237545 ralink: drop dwc_otg support. dwc2 seems stable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42617
2014-09-19 10:52:37 +00:00
John Crispin
17cf9c4593 ralink: drop 3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42481
2014-09-12 06:50:46 +00:00
Luka Perkov
02629d8f87 kernel: update 3.14 to 3.14.18
Targets were build tested and patches are refreshed.

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

SVN-Revision: 42463
2014-09-10 21:40:19 +00:00
John Crispin
4662c3b847 ralink: dwc_otg->dwc2
the old dwc_otg driver is starting to fall apart and fails on newer 3g
modems and some storage devices. switch to the upstream dwc2 driver which
is no longer in staging/.

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

SVN-Revision: 42446
2014-09-08 17:33:16 +00:00
John Crispin
bdba024c7b ralink: add dwc2 device_reset() call
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42445
2014-09-08 17:32:52 +00:00
John Crispin
4d96ccd87a target: set myself as maintainer
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42335
2014-08-30 09:59:18 +00:00
John Crispin
d1f8b9bd76 ralink: DIR-645 picks up incorrect MAC address in DTS file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42321
2014-08-28 09:19:56 +00:00
John Crispin
24a6617585 ramips: unbreak i2c for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42315
2014-08-28 06:05:36 +00:00
John Crispin
1349ebb5ba ralink: set 3.14 as default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42305
2014-08-26 13:12:12 +00:00
John Crispin
0c14bea523 ralink: the mt7620 evb has a usb port
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42293
2014-08-25 16:31:13 +00:00
John Crispin
d3d9d55cde ralink: a few 3.14 related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42292
2014-08-25 16:31:09 +00:00
John Crispin
843fc45e27 ralink: fix mt7620 ohci 3.14
the ohci phy was not reset properly

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

SVN-Revision: 42291
2014-08-25 16:31:05 +00:00
John Crispin
ca737049d2 ralink: fix mt7620 ohci 3.10
the ohci phy was not reset properly

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

SVN-Revision: 42290
2014-08-25 16:31:01 +00:00
John Crispin
3d00a1109e ralink: mt7620 has obchi/ehci and not dwc2
fix the default package selection

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

SVN-Revision: 42289
2014-08-25 16:30:57 +00:00
John Crispin
fdc41e2fd7 ramips: enable second SPI for VoCore
This patch enables the second SPI as spidev and also fixes some typos.

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

SVN-Revision: 42277
2014-08-25 06:35:46 +00:00
John Crispin
a3fd3dc796 ramips: second spi device on rt5350
This is based on Jon Smirl's patch with the following changes:
- Set CS polarity as low by default.
- Add support for changing CS polarity.
- Add support for changing LSB/MSB.
- Add support for changing SPI mode.
- Fix indentations.

I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed.

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

SVN-Revision: 42276
2014-08-25 06:35:42 +00:00
John Crispin
e9e519a147 ramips: fix OMNI-PLUG.dts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42232
2014-08-21 06:41:27 +00:00
John Crispin
ff3ea02772 ramips: add omni plug leds
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42201
2014-08-18 16:09:21 +00:00
John Crispin
d04cab8dfc ramips: Add support for Omnima MiniPlug
This patch adds support for the Omnima MiniPlug RT5350 based board, 8MB SPI flash

Signed-off-by: Ivan Ignjatic<ivan@omnima.co.uk>

SVN-Revision: 42200
2014-08-18 16:06:48 +00:00
John Crispin
be6bbc7975 ramips: fix switch config for Edimax 3G-6200n
Switch in Edimax 3G-6200n also require full switch reset, not only vlan definitions. Tested on Edimax 3G-6200n.

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

SVN-Revision: 42194
2014-08-18 13:10:04 +00:00
John Crispin
60bf96e3a0 ralink: clean up HAME profiles, remove unnecessary packages.
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42192
2014-08-18 13:09:46 +00:00
John Crispin
a62e8bd145 ramips: add mpr-a1 to default profile
Add hame mpr-a1 to default ramips profile.

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

SVN-Revision: 42191
2014-08-18 13:09:43 +00:00
John Crispin
bb9a23aca2 ramips: Hame: change LED name mpr-x -> hame
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42190
2014-08-18 13:09:39 +00:00
John Crispin
0fc4383d69 ramips: make use of the new board detection layer
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42186
2014-08-18 13:09:20 +00:00
John Crispin
3a9752bbd2 ramips: add a workaround to fix failsafe on RT5350
Due to TCP connections not working when VLAN is disabled, this is
needed to get failsafe functional.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 42179
2014-08-18 13:08:52 +00:00
John Crispin
f80312613d ramips: enable additional GPIOs on HAME MPR-A1
According to the pcb tracing results[1] by anton.rad[2] MPR-A1s expose
6 unused GPIOs, only one of them working as configured in the current
DTS. This patch enables GPIO22-26.

Tested on hardware.

[1] http://i.imgur.com/kHVW2Ox.jpg
[2] https://forum.openwrt.org/viewtopic.php?pid=222698#p222698

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 42178
2014-08-18 13:08:48 +00:00
John Crispin
bf1e92f526 ralink: add back the gpio_export_named() patch for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42176
2014-08-18 13:08:33 +00:00
John Crispin
bc67bd2295 ralink: add 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42040
2014-08-07 14:41:19 +00:00
John Crispin
997ca19fd2 ralink: revert r37163
https://dev.openwrt.org/ticket/17071

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

SVN-Revision: 42036
2014-08-07 12:38:20 +00:00
John Crispin
17b8d9c976 ramips: add profile for easyacc wizard8800
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41986
2014-08-03 14:31:18 +00:00
John Crispin
058a5c85ef firmware-utils: made mkdir615h1 work for all Senao-produced devices as mksenaofw and cleaned up some of its formatting
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 41962
2014-08-03 11:13:58 +00:00
John Crispin
04e4ff282a ramips:support Lenovo AC1200 Wireless router
Lenovo AC1200 series has two types, Y1 and Y1S.
Y1S has 256MB DDR2, Y1 only has 128MB and Y1 have no Giga Port.

Signed-off-by: Lintel <lintel.huang@gmail.com>

SVN-Revision: 41961
2014-08-03 11:13:52 +00:00
John Crispin
21845cb45d ramips: Add support for VoCore
This is based and tested on VoCore Alpha, but other stuff like status/eth LEDs are present on the final board revision + VoDock.
All GPIOs are exported, except spi/i2c.

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

SVN-Revision: 41939
2014-08-01 20:51:24 +00:00
John Crispin
7d9bac5247 ramips: Add support for SPI_CS1 pinmux
This patch adds support for setting SPI_CS1 as Chip Select, Watchdog reset output and GPIO#27.

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

SVN-Revision: 41938
2014-08-01 20:51:14 +00:00
John Crispin
9efd7ebd34 ramips: add support for easyacc wizard8800
Signed-off-by: Sebastian Wendel <s.wendel@sourceindex.de>

SVN-Revision: 41936
2014-08-01 11:19:50 +00:00
John Crispin
c6674722b9 ramips: Fix LEDs on the Kingston MLW221
LED Fix up for the Kingston Mobilelite Wireless (MLW-221)

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

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

SVN-Revision: 41933
2014-08-01 11:19:39 +00:00
John Crispin
6fb04ff871 ramips: correct typo ubsphy -> usbphy
This appears to be a typo.

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41859
2014-07-28 15:26:36 +00:00
John Crispin
6f6dc62ca2 ramips: fix mode switch gpio for AsiaRF AWM eval board
Fix a typo: gpio 21 is already used for the WPS led.  Gpio 20 is the
right one (tested) for the mode switch.  Confirmed that
/sys/kernel/debug/gpio state followed the position of the switch.

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41858
2014-07-28 15:26:32 +00:00
John Crispin
636f2b83e6 ramips: add ethernet macaddr to dts for AWM003-EVB
Follows the pattern of http://patchwork.openwrt.org/patch/5970/

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41857
2014-07-28 15:26:23 +00:00
John Crispin
5b4abf87d7 ramips: add support for Kingston MLW221
This patch adds support for the Kingston Mobilelite Wireless (MLW-221)

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

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

SVN-Revision: 41841
2014-07-26 20:36:22 +00:00
John Crispin
b77e92e020 ramips: ethernet mac cleanup
Compile tested all subtargets and profiles.
Unfortunately I don't own any board affected by these changes, so no run tests.

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41839
2014-07-26 20:36:09 +00:00
John Crispin
443aee86bf ramips: fix vlan configuration for asiarf avm003
The earlier r41797 change was missing this part, to enable the right
vlan configuration.

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41838
2014-07-26 20:36:01 +00:00
John Crispin
08fb5fb326 ramips: fix sysupgrade for asiarf awm003
Since the earlier r41797 change, the board_name for awm003 has been
miscalculated, and sysupgrade has been broken.  This seems to fix it.

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41837
2014-07-26 20:35:46 +00:00
John Crispin
0b5b8de818 ramips: fix gpio mapping on MZK-750DHP
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41811
2014-07-23 07:49:54 +00:00
John Crispin
e5d4e5dee3 ramips: fix missing inclusion of system.sh for mtd_get_mac_binary and friends.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 41810
2014-07-23 07:49:50 +00:00
John Crispin
2c356c4bb7 ramips: add a profile for AWM003
same as AWM002 but with 64mb RAM

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

SVN-Revision: 41797
2014-07-22 09:58:21 +00:00
John Crispin
ba63338d3f kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41776
2014-07-20 17:31:11 +00:00
John Crispin
4d22954db0 ramips: fix mac address partitions on ASL-26555
ASL-26555 16MB: caldata is present on uboot-env and devdata, but the proper one seems to be the devdata, since mac address corresponds to Amper, the real manufacturer, meanwhile the caldata on  uboot-env corresponds to D-Link.
ASL-26555 8MB: caldata is only present on uboot-env, but its mac address corresponds to Alpha, the real manufacturer.

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

SVN-Revision: 41768
2014-07-20 17:30:28 +00:00
John Crispin
f44d3f9980 ramips: soc wmac eeprom cleanup
Move eeprom extraction from scripts to dts files.
Additionally there are few other changes like:
- whitespace fixes
- add partition labels where needed
- BR6524N board doesn't exist (lost in translation?)
- fix Edimax 3g-6200nl model
- add wmac eeprom to dts for Asus RT-N14U board

Compile tested all subtargets and their profiles.
Run tested on:
- Asus RT-N15
- Asus RT-N14U
- Buffalo WHR-600D
- Argus ATP52B
- Sparklan WCR-150GN

Few problems noted:
- many boards didn't have wmac eeprom information defined at all
- several boards don't have any patitions defined (see FIXME comments in dts)

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41680
2014-07-17 10:55:31 +00:00
John Crispin
74db9511dc ramips: basic support for Planex MZK-750DHP
some gpios are still missing.

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

SVN-Revision: 41654
2014-07-14 17:10:39 +00:00
John Crispin
e33584f6b8 ramips: squelch mdio debugging info on rt2880 ethernet
Use pr_debug rather than pr_info since it is only relevant
for debugging.

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

SVN-Revision: 41653
2014-07-14 17:05:40 +00:00
John Crispin
76ba6846a2 ramips: fix port mapping and extract wmac eeprom on ZBT-WA05 board
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41634
2014-07-14 07:38:32 +00:00
John Crispin
8c577d9fde ramips: extract mac address from flash on WHR-600D board
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41633
2014-07-14 07:38:28 +00:00
John Crispin
4af1b51ec3 ramips: extract default lan_mac from eth0
The default case of ramips_setup_macs() is useful when mtd-mac-address is defined in dts.
But lan_mac is not set by default, this results in lan and wan having the same mac.

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41632
2014-07-14 07:38:23 +00:00
John Crispin
ba3988fb16 ramips: add support for WR8305RT board
Signed-off-by: Jorge Vargas <jorge.vargas@sosvia.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41584
2014-07-12 06:54:03 +00:00
John Crispin
03faf4618e ramips: add support for Zbtlink WA05 router
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41579
2014-07-10 22:02:28 +00:00
John Crispin
6134a3de30 target/linux/*: more dead package cleanups
found 2 more

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

SVN-Revision: 41574
2014-07-10 20:15:50 +00:00
John Crispin
32e93efc73 target/linux/*: more dead package cleanups
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41571
2014-07-10 20:05:43 +00:00
John Crispin
94802dca60 ralink: wpa does not exist, use wpad-mini instead
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41561
2014-07-10 19:16:19 +00:00
John Crispin
bbfb3baaed ramips: add missing rt3352 usb phy node to dts
Signed-off-by: michael <igvtee@gmail.com>

SVN-Revision: 41476
2014-07-02 16:37:30 +00:00
John Crispin
62287e589d ramips: fix target rt5350 only have 28 gpios
Signed-off-by: michael <igvtee@gmail.com>

SVN-Revision: 41475
2014-07-02 16:37:26 +00:00
John Crispin
80e3282739 ralink: make xhci platform depend on mt7621
this broke CONFIG_ALL builds for mt7620

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

SVN-Revision: 41471
2014-07-02 14:32:43 +00:00
John Crispin
3d81a4ef82 ralink: add Wansview NCS601W IP Camera
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41453
2014-07-02 07:42:44 +00:00
John Crispin
c749b310ed ralink: register wifi firmware for WRTnode
After r41444 wifi working on WRTnode. Tested.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41452
2014-07-01 18:17:55 +00:00
John Crispin
9c84f72f85 ramips: set default vid of each vlan, so it won't need be set explicitly.
Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>

SVN-Revision: 41448
2014-07-01 13:18:27 +00:00
John Crispin
4ddc0f9ff3 ramips: add WHR-1166 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41447
2014-07-01 10:26:42 +00:00
John Crispin
3c88de0d47 ramips: sync the WHR-600D flash layout with that of the vendor FW
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41446
2014-07-01 10:26:38 +00:00
John Crispin
2e8c6e4128 ramips: add wmac to mt7620a device tree
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41445
2014-07-01 10:26:33 +00:00
John Crispin
5f6e7e1f44 ramips: add wmac to mt7620n device tree
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41444
2014-07-01 10:26:30 +00:00
John Crispin
bbd8f9c96a ramips: enable wmac clock for mt7620
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 41443
2014-07-01 10:26:25 +00:00
John Crispin
22c4f2475b ralink: refresh kernel patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41353
2014-06-26 13:47:50 +00:00
John Crispin
994e5ce2f9 kernel: update 3.10.36->3.10.44
205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8

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

SVN-Revision: 41351
2014-06-26 13:47:42 +00:00
John Crispin
975728813a ralink: fix up WRTNode vs WRTNODE in the dts file
https://dev.openwrt.org/ticket/16899

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

SVN-Revision: 41343
2014-06-26 11:43:26 +00:00
John Crispin
021e728962 ralink: Update MT7530 switch driver.
- Support set VLAN ID of each vlan.
- Support untag feature.
- Replace register address with C MACRO.
- There are 8 ports for MT7530 actually.

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>

SVN-Revision: 41331
2014-06-24 18:14:14 +00:00
John Crispin
9284956ad8 ramips: cleanup some rt305x profiles
move both asus boards to asus.mk
rename HW5503G profile to HW550-3G to match name in image/Makefile
(fixes #16599)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41271
2014-06-19 14:13:07 +00:00
John Crispin
dc5fe5f73f ramips: RT-N56U support fixes and factory image creation
Signed-off-by: Mikko Hissa <mikko.hissa@werzek.com>

SVN-Revision: 41224
2014-06-16 18:57:20 +00:00
John Crispin
4d7ed2a8a0 ramips: fixes XDXRN502J reset button
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41217
2014-06-16 18:54:53 +00:00
John Crispin
2fe435081d ramips: add vlan configuration for asiarf awm002-evb
Without this, the ports all end up on vlan 1.  This enables a separate
WAN port that works.

Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41216
2014-06-16 18:54:48 +00:00
John Crispin
ab390d6c05 ramips: restore AWM002-EVB profile in asiarf.mk
In a recent revision (r41177) John Crispin removed the profile for the
AsiaRF AWM002 eval board while adding another AsiaRF board.  This
patch restores AWM002 and also corrects a misspelling and an
apparently errant reference to an Allnet ALL0239-3G device.

Signed-off-by: Galen Seitz <galens@seitzassoc.com>
Signed-off-by: Russell Senior <russell@personaltelco.net>

SVN-Revision: 41215
2014-06-16 18:54:42 +00:00
John Crispin
6d213a644d ramips: add asiarf awapn2403 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41177
2014-06-13 09:16:15 +00:00
Felix Fietkau
231f15c9db ramips: fix rt2x00 handling of default packages for subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41145
2014-06-11 17:01:19 +00:00
John Crispin
3306a4f9ab ralink: fix asiarf/awm002 switch setup
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40939
2014-06-02 12:44:57 +00:00
John Crispin
7437d84814 ralink: add seama image can be upgrade by sysupgrade
generate sysupgrade image by combine two images.
one is kernel image with seama header.
another is root fs image.

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

SVN-Revision: 40922
2014-06-02 12:43:49 +00:00
John Crispin
f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 40915
2014-06-02 12:43:22 +00:00
John Crispin
712dec1027 ramips: add missing profile for DIR-615-D
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 40911
2014-06-02 12:43:07 +00:00
John Crispin
9b728bebfb ramips: fix not set lan/wan mac address
The first switch case is default case. Then it will only
match default case. cause not update the lan/wan mac address.
And in the default switch case the param lan_mac is empty.
it will case error message 'arithmetic syntax error' when
call macaddr_add function.

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

SVN-Revision: 40910
2014-06-02 12:43:04 +00:00
John Crispin
813a7c3827 ralink: Add support for samsung cy-swr1100 wireless router
It is base on rt3662 soc with dual band 802.11n
wireless router. Use rtl8367R switch chip.
This patch adds a profile for this board.
It use seama image header. so i also enable it
on kernel config.

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

SVN-Revision: 40908
2014-06-02 12:42:52 +00:00
John Crispin
efd09832fe ramips: Support for Teltonika RUT5XX
Hi Hartmut,

Thanks for your feedback, I have reformated the patch accordingly.

Added support for Teltonika RUT5XX hardware.

Signed-off-by: Steffen Weinreich <steve@weinreich.org>

SVN-Revision: 40907
2014-06-02 12:42:48 +00:00
John Crispin
583b908bc7 ralink: Enable Asus RT-N10+ in menuconfig targets
This patch adds "Asus RT-N10+" as a target option in menuconfig. The device has been supported for a while but is currently missing a profile (.mk).
Signed-off-by: Randolph Kuntz <8D961920@galaxymail.org>

SVN-Revision: 40903
2014-06-02 12:41:45 +00:00
John Crispin
4a7a0d2536 ralink: add dir-645 to the eeprom hotplug script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40561
2014-04-23 07:52:56 +00:00
John Crispin
720a0a1df1 ramips: register clock device for the WMAC on RT3883
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40557
2014-04-23 07:51:57 +00:00
John Crispin
cd5f3584e2 ramips: Add support for the 7Links PX-4885 wireless router.
The 7Links PX-4885 is a small battery-powered wireless router.
It is based on a RT5350F WiSoC and features one ethernet port and one
USB port. It is a Hame MPR-A1 clone, except it has different GPIOs,
a different battery and more RAM (32 MB).
This patch adds a profile for this board, the corresponding device tree
file and the adequate base-files changes (incl. sysupgrade).

Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org>

SVN-Revision: 40554
2014-04-22 08:08:51 +00:00
John Crispin
284ada8a3e ramips: build factory-compatible image for AR725W
Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 40552
2014-04-22 08:08:42 +00:00
John Crispin
cb91087991 ramips: add Airlink101 AR725W userland support
Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 40550
2014-04-22 08:08:35 +00:00
John Crispin
2b2d274bfa ramips: Add Airlink101 AR725W board support
Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 40549
2014-04-22 08:08:31 +00:00
John Crispin
010dcd092f ralink: add port_init for rt2880
Forgotten patch to fix ethernet for rt2880.
Based on previously submitted patch from Claudio.

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40504
2014-04-13 18:01:08 +00:00
John Crispin
7ae1d573ae Fix Asus rt-n15 board support
* gpio leds and buttons
* ethernet

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40494
2014-04-12 21:22:04 +00:00
John Crispin
3d6ba83fe4 rt2880 DT fixes
* add pinctrl
* fix ethernet port
* make wifi available by default

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40493
2014-04-12 21:22:00 +00:00
John Crispin
fa86c30538 Fix pinmux-rt2880
The last arg to FUNC() is count, not last pin.

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40492
2014-04-12 21:21:56 +00:00
John Crispin
73160c1ad6 Add wmac clock for rt2880
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40491
2014-04-12 21:21:53 +00:00
John Crispin
72803e0e27 Don't try to generate whr-g300n image if it's going to be more than 4M
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 40489
2014-04-12 21:21:44 +00:00
Gabor Juhos
d2812cb036 kernel: update 3.10 to 3.10.36
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40467
2014-04-12 11:59:07 +00:00
John Crispin
f1e31f8266 ralink: fix WHR-300HP2 mtd size
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40419
2014-04-07 15:10:26 +00:00