Commit graph

16677 commits

Author SHA1 Message Date
dpeddi
8565630e14 lantiq: add tapi/vmmc to VGV7519 defaults
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
2016-11-16 10:57:48 +01:00
dpeddi
0ce929228a lantiq: enable VMMC for VGV7519
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
2016-11-16 10:57:48 +01:00
Eddi De Pieri
904a6751b6 lantiq: add tapi/vmmc to VGV7510KW22 defaults
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
2016-11-16 10:57:14 +01:00
Eddi De Pieri
fe9a757984 lantiq: enable VMMC for VGV7510KW22
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
2016-11-16 10:57:14 +01:00
Daniel Engberg
ef258a0a41 arm64: boot-wrapper: Add mirror
Adds Google's mirror as primary source and kernel.org as fallback.
Same as commit 0d4f02dfd6

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-11-16 10:54:33 +01:00
Yutang Jiang
4162a7eba6 layerscape: ls1012ardb: only reserve ext4 fs as default firmware.bin
In Device/ls1012ardb IMAGES variable, there are two separate firmware
references to the same packages, while do mult-job compile, the same package
build process will arise conflict occasionally. So, only reserve one ext4 fs
as the default firmware.bin.

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
2016-11-16 10:54:33 +01:00
Yutang Jiang
10889d3ebe layerscape: ls1043ardb: add pad-rootfs to reduce the size of firmware.bin
Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
2016-11-16 10:54:33 +01:00
Koen Vandeputte
3bbc3bd1bd kernel: update kernel 4.4 to version 4.4.31
+ Refresh patches
compile/run-tested on cns3xxx & imx6.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2016-11-16 10:54:33 +01:00
Jaylin Yu
7ee6ab1a31 ar71xx: Add usable, inactive LEDs on OpenMesh devices
OpenMesh devices have often LEDs which are not yet used by OpenWrt. These
should still be available as disabled LEDs in the system configuration for
easier modification.

Signed-off-by: Jaylin Yu <jaylin.yu@open-mesh.com>
[sven.eckelmann@open-mesh.com: Remove LEDs already specified via diag.sh,
 add wifi/status LEDs]
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-11-16 10:54:33 +01:00
FUKAUMI Naoki
0165203304 ar71xx: add support for Buffalo BHR-4GRV2
Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
2016-11-16 10:54:33 +01:00
Andreas Ziegler
40a16fec6a
x86-generic: add MMC support to boot off SD cards
MMC support has been added to x86-64 a while ago, there is no reason not
to support it in x86-generic as well.

Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
[Matthias Schiffer: add commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-16 01:48:19 +01:00
Andreas Ziegler
cf8aa18040
x86: add PATA support to generic and 64 subtargets
PATA support has been removed from x86-generic without any note in LEDE
r538. Not including them makes the generated images incompatible with older
(and some newer) hardware without any significant gain.

Add it back, and also add the same drivers (as far as available) to x86-64.

Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
[Matthias Schiffer: add back x86-generic, update commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-16 01:48:19 +01:00
Matthias Schiffer
fe6a3415e0
x86: refresh generic subtarget config
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-16 01:48:19 +01:00
Martin Weinelt
5247ac2f80
ar71xx, ramips: reduce CPU load and flickering on devices using rsslieds
Polling every 40ms causes more than 10% CPU load on weak devices. An
interval of 200ms is much more reasonable.

Signed-off-by: Martin Weinelt <martin@darmstadt.freifunk.net>
[Matthias Schiffer: adapt OpenWrt patch; add ramips; extend commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-16 01:42:15 +01:00
Matthias Schiffer
7ef0d7c4fc
ar71xx: enable HSR tuner on Ubiquiti UAP Outdoor+
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-15 18:54:07 +01:00
Matthias Schiffer
60983a486c
ar71xx: fix DEVICE_TITLE for Ubiquiti UAP Outdoor+
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-15 18:54:06 +01:00
Matthias Schiffer
fa845e9978
ath9k: add support for the HSR tuner of the Ubiquiti UAP Outdoor+
Without setting the HSR to the selected channel, the WLAN of the UAP
Outdoor+ will exhibit high packet loss in RX.

Based-on-patch-by: Stefan Rompf <stefan@loplof.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-15 18:54:06 +01:00
Felix Fietkau
728ab77d3d ramips: fix polling switch interrupts
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 20:06:15 +01:00
Felix Fietkau
3d0e965c8b ramips: add port index in switch config for buffalo WHR-* and WSR-* devices
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 20:04:36 +01:00
Felix Fietkau
1a1c3c690f bcm53xx: add switch config for Buffalo WXR-1900DHP and WZR-1750DHP
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 20:03:21 +01:00
Felix Fietkau
ecab500232 lantiq: fix port indexing for WBMR-300
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 20:03:02 +01:00
Felix Fietkau
4cdbc90a37 ramips: add hack to detect missing mt7621 cpu cores
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 19:59:32 +01:00
Felix Fietkau
a17872ec4f ramips: fix status LED for WHR-300HP2
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-14 17:55:27 +01:00
Mathias Kresin
5640986001 mvebu: revert remove of mvsw61xx device tree nodes
The marvell,88e6352 and marvell,88e6172 compatible strings are used in
target/linux/generic/files/drivers/net/phy/mvsw61xx.c. No idea why grep
missed them when I searched for them.

Thanks to Syrone Wong for noticing and reporting my mistake.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-13 09:03:52 +01:00
Mathias Kresin
2b55c83e68 treewide: dts: use keycode defines from input dt-binding
All compiled device tree files not mentioned are binary identical to the
former ones.

Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts.

Due to the include of the input binding header, the BTN_* node names in:

  - ramips/GL-MT300A.dts
  - ramips/GL-MT300N.dts
  - ramips/GL-MT750.dts
  - ramips/Timecloud.dts

will be changed by the compiler to the numerical equivalent.

Move the binding include of lantiq boards to the file where they are
used the first time to hint the user where the values do come from.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-13 07:07:58 +01:00
Mathias Kresin
77b807999d treewide: dts: use C style includes
No functional change but allows me to use one script to compile all
device tree source files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-12 21:04:15 +01:00
Mathias Kresin
de40d45363 treewide: dts: fix dtc compiler warnings
Fixes invalid device tree parameters.

Drop the mvsw61xx node used in mvebu device tree source files. It looks
like some kind of ethernet switch cargo cult. Neither the
marvell,88e6352 nor the marvell,88e6172 compatible strings can be found
in any LEDE file or in the kernel sources.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-12 21:04:15 +01:00
Christian Lamparter
b9f609161d apm821xx: remove replaced netgear, wndr4700-usb dwc2 definiton
This special dwc2 device definition for the Netgear WNDR4700
has been replaced by amcc,usb-otg-405ex.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-11-12 21:04:15 +01:00
Christian Lamparter
ebaa82a2ca apm821xx: consolidate apm821xx device trees files
This patch moves the common SoC device tree entries
from the currently four supported platforms into a
common apm82181.dtsi.

Furthermore, this patch also changes the GPIO, IRQ and
input definitions of the supported platforms to use the
defined dt-bindings macros for GPIO_ACTIVE_LOW|HIGH,
KEY_WPS|RESTART|*, IRQ_TYPE_* when it's appropriate.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-11-12 21:04:15 +01:00
Christian Lamparter
3a112113e7 apm821xx: add amcc, usb-otg-405ex devicetree definition
This patch adds support for the amcc,usb-otg-405ex device
which is found in all APM82181 SoCs.
Note: The system can't use the generic "snps,dwc2" compatible
because of the special ahbcfg configuration. The default
GAHBCFG_HBSTLEN_INCR4 of snps,dwc2 can cause a system hang
when the USB and SATA is used concurrently.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-11-12 21:04:15 +01:00
Eddi De Pieri
07bc0d6089 lantiq: fix pci issue if mem kernel parameter is used
As specified by e0229a16b0 if the VR9
based router provides FXS ports and they should enabled then the
following must added to the kernel command line:

  mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M

By adding mem= parameter a pci device stop working correctly. The
pci-lantiq.c module use get_num_physpages() to compute dynamically the
memory amount of the board.

The mem= make the module to compute in the wrong way the BAR11MASK, so
in this situation the mask is misaligned with the dma area that the
hardware expects.

This patch is a port of what legacy ifxmips_pci.c does.

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
2016-11-12 21:04:15 +01:00
Matthias Schiffer
9cac5e8be0
ar71xx: generate region-coded factory images for TP-Link TL-WR841ND v11
The latest stock firmwares for US and EU regions have started checking the
region code.

Tested-by: Andreas Ziegler <ml@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-11 03:29:59 +01:00
Jo-Philipp Wich
998632bae2 arm64: boot-wrapper: add mirror checksum
Some builders have troubles cloning the boot-wrapper-aarch64.git repository so
provide a mirror checksum to allow downloading from sources.lede-project.org
instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-11-10 17:24:25 +01:00
Mathias Kresin
cc5c8f681e ramips: add TEW-691GR/TEW-692GR 2.4 GHz interface mac addresses
Assign an unused MAC addresses to the 2.4GHz wifi interface as it was
originally planed but not possible.

The MAC address numbering of the TEW-691GR changes to the following
pattern:

  LAN:  AA:BB:CC:DD:EE:0C
  WIFI: AA:BB:CC:DD:EE:0D
  WAN:  AA:BB:CC:DD:EE:0F

The MAC address numbering of the TEW-692GR changes to the following
pattern:

  LAN:    AA:BB:CC:DD:EE:e4
  WAN:    AA:BB:CC:DD:EE:e5
  2.4GHz: AA:BB:CC:DD:EE:e7
  5 GHz:  AA:BB:CC:DD:EE:e8

Set the label and compatible string for the TEW-692GR PCIe wireless
according to the the PCI binding documentation.

Use the wifi@0,0 label and the pci0,0 compatible string since the PCI
vendor and device id is unknown. It should work anyway since the
compatible string isn't evaluated (yet).

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:23:00 +01:00
Mathias Kresin
d8dd207ea6 ramips: use the ralink,mtd-eeprom device tree property
Use the ralink,mtd-eeprom instead of invoking the userspace firmware
loader.

Set the label and compatible string according to the the PCI binding
documentation.

Use the wifi@0,0 label and the pci0,0 compatible string in case the
PCI vendor and device id is unknown. It should work anyway since the
compatible string isn't evaluated (yet).

This commit might fixes the PCIe wireless for the Buffalo WHR-600D.
This board was mentioned in the board 10-rt2x00-eeprom firmware hotplug
script but never had the correct eeprom name set to trigger the
firmware from flash extraction.

Use the usual eeprom for the soc wmac of the Dovado Tiny AC.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:22:59 +01:00
Mathias Kresin
21d8de78dc lantiq: drop ralink eeprom handling function
The eeprom handling function from the rt2x00 driver is used and this
code is obsolete.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:02:18 +01:00
Mathias Kresin
7fd5171a34 lantiq: use the device tree bindings from rt2x00 driver
Set a device specific wireless mac address for ARV7506PW11, VGV7519 and
VGV7510KW22. The one from the EEPROM is a generic one and the same on
all boards.

Use the wifi@0,0 label and the pci0,0 compatible string for the
ARV7519PW and ARV7525PW since the pci vendor and device id is unknown.
It should work anyway since the compatible string isn't evaluated
(yet).

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:02:18 +01:00
Mathias Kresin
13208e89d0 lantiq: fix VGV7519 and VGV7510KW22 mac addresses
The VGV7510KW22 stock firmware uses the following mac-addresses:

lan      (ifno 1): AA:BB:CC:DD:EE:60
wlan     (ifno 2): AA:BB:CC:DD:EE:61
atm0     (ifno 3): AA:BB:CC:DD:EE:62
atm1/wan (ifno 4): AA:BB:CC:DD:EE:63

The VGV7519 stock firmware uses the following mac-addresses:

lan:  AA:BB:CC:DD:EE:EF
wlan: AA:BB:CC:DD:EE:EF
wan:  AA:BB:CC:DD:EE:EE

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:02:18 +01:00
Mathias Kresin
e7c019c24d mac80211: rt2x00: fold patches
The patch 615-rt2x00-fix_20mhz_clk.patch fixes code introduced by
611-rt2x00-rf_vals-rt3352-xtal20.patch and makes the the platform data
property clk_is_20mhz obsolete.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-09 20:02:18 +01:00
Felix Fietkau
462a7c0e96 ar71xx: fix kernel relocate stub parallel build issue
Use per-kernel directory

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-08 11:51:27 +01:00
Rafał Miłecki
28955d9707 kernel: use upstreamed patch for BCM53573 support in bcm47xxsflash
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-11-08 11:36:39 +01:00
Christian Lamparter
b5638bb64e apm821xx: redo WAN green and yellow LEDs
Because the WAN port is handled by the internal AR8327N switch, the
device should use swconfig_leds trigger to handle the link activity
of the WAN LED. This has the added bonus that the WAN LED will now
go dark if there's no ethernet cable connected to the WAN port.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-11-08 11:17:10 +01:00
Pavel Kubelun
524d7a7cde ipq806x: fix pcie reset gpios
Fix perst-gpios property in accordance to the driver, so it stops spamming that it can't parse it.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
2016-11-08 11:17:10 +01:00
Henryk Heisig
4ad68fa0a2 ar71xx: tl-wpa8630: Fix kernel lenght
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-11-08 11:17:10 +01:00
Henryk Heisig
1b2b3cb8be ar71xx: wpa8630: change board name to tl-wpa8630
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-11-08 11:17:10 +01:00
Roger Pueyo Centelles
5f6e948551 ramips: Add support for Wavlink WL-WN575A3
This commit adds support for the Wavlink WL-WN575A3, a dual-band wall-plug
wireless router with the following specifications:

 - CPU: MediaTek MT7628AN 580MHz
 - Flash: 8MB
 - RAM: 64MB
 - Ethernet: 2x 10/100 Mbps (switched)
 - 2.4 GHz: 802.11b/g/n SoC, MIMO 2x2, 20 dBm
 - 5 GHz: 802.11a/n/ac MT7612E, MIMO 2x2, 20 dBm
 - Antennas: 4x external (2 per radio), non-detachable
 - LEDs: 4 programmable + LAN, WAN, POWER
 - Buttons: reset, WPS

Flashing instructions:

Factory U-boot launches a TFTP client if WPS button is pressed during power-on.
Rename the sysupgrade file and configure a TFTP as follows:

 - Client (WL-WN575A3) IP: 192.168.10.101
 - Server IP: 192.168.10.100
 - Filename: firmware.bin

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2016-11-08 11:17:10 +01:00
BangLang Huang
bc4109845d ramips: fix Newifi D1 profile
the images were generated for the wrong flash size.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
2016-11-08 11:17:10 +01:00
Rafał Miłecki
e2a65f4aa5 bgmac: backport small DMA fix
It's supposed to significantly improve performance but doesn't seem to
affect Northstar unfortunately. It seems only some other platforms were
limited because of this DMA setup mistake.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-11-07 14:42:58 +01:00
Rafał Miłecki
4fae9db765 kernel: fix bgmac regression causing BCM47186B0 SoC hangs
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-11-07 14:30:32 +01:00
Jo-Philipp Wich
95ac6906aa arm64: switch boot-wrapper to working repository
The original repo in this Makefile disappeared from the internet so use another
copy of this repository on kernel.org. Also switch from git:// to https://
while being at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-11-05 16:10:05 +01:00