aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-4.4
Commit message (Collapse)AuthorAgeFilesLines
* lantiq: Register the device tree node with the PCIe controllerMartin Blumenstingl2016-11-261-1/+9
| | | | | | | This allows specifying PCI devices as children of the PCIe controller node to pass configuration data to them. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* lantiq: dwc2 parameters for danubeBen Mulvihill2016-11-211-2/+31
| | | | | | | | | | Parameters for dwc2 on lantiq. A separate dwc2_core_params structure is defined for danube because danube fifo sizes are large enough to be autodetected. This is not the case on arx and vrx. Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
* lantiq: initialise dwc2 on danubeBen Mulvihill2016-11-211-0/+10
| | | | | | Initialise dwc2 usb driver on danube boards as well as ar9 and vr9. Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
* kernel: update kernel 4.4 to version 4.4.32Stijn Tintel2016-11-161-1/+1
| | | | | | | | Refresh patches for all targets that support kernel 4.4. Compile-tested on all targets that use kernel 4.4 and aren't marked broken. Runtime-tested on ar71xx, octeon. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* lantiq: fix pci issue if mem kernel parameter is usedEddi De Pieri2016-11-121-0/+22
| | | | | | | | | | | | | | | | | | | | As specified by e0229a16b0001c08e6c2611fa0bb9814507fced4 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>
* lantiq: drop ralink eeprom handling functionMathias Kresin2016-11-091-73/+9
| | | | | | | The eeprom handling function from the rt2x00 driver is used and this code is obsolete. Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to version 4.4.30Stijn Segers2016-11-022-2/+1
| | | | | | | | | | This patch bumps the 4.4 kernel from .28 to .30 and refreshes the patches. Compile-tested on ar71xx, x86/64, ramips/mt7621, brcm47xx and kirkwood. Run-tested on ar71xx & ramips/mt7621, brcm47xx and kirkwood (last two confirmed by P. Wassi). Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
* lantiq: vpe softdogStefan Koch2016-10-311-0/+171
| | | | | | | | | | | | | (required not-distributable firmware blob - dump it by yourself from original firmware) Signed-off-by: Eddi De Pieri <eddi@depieri.net> (cherry picked from commit eb0ce57270d0b5b81b224b9336cf54707497eede) Modified after cherry-pick: obj in Makefile Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: added support for VPE1Stefan Koch2016-10-311-0/+208
| | | | | | | | | | | | | | | | | | Created minimal patchset based on BB rev 43158 by Eddi De Pieri 14.07/openwrt.git 79472c025449efae9310defad0d3a73cff14d756 If the VR9 based router provides FXS ports and they shoud enabled then the following must added to the kernel command line: mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M maxvpes=1 maxtcs=1 To use FXS 2M of RAM are needed for the VPE firmware. The size is set by vpe1_mem. The available RAM must be reduced by this size using the mem argument. A correct load address (example 0x83e00000) for the firmware must be given, too. Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: fix thermal sensors driverMathias Kresin2016-10-191-5/+21
| | | | | | | | | | | | | | | | | | | | Read the temperature including the decimale place from the CGU_GPHY1_CR register. Decrement the temperature read from the register by 38.0 degree celsius. The temperature range of the sensor is -38.0 to +154 °C and the register value 0 is equal to -38.0 °C. This fixes the report of unrealistic temperatures as seen on all tested boards. Give the SoC a few milliseconds to get the first temperature value. On some rare occasions there is no temperature value in the register when read the first time after activation. This leads to a reported temperature of -38.0 °C on boot. Only version 1.2 of the vr9 SoC has a temperature sensor. Add a check to make sure the driver doesn't load on v1.1 vr9 SoCs. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ntiq: make i2c-lantiqi driver compile againHauke Mehrtens2016-10-031-9/+9
| | | | | | | It missed some changes needed for kernel 4.4. This is only used by the Falcon SoC and not for the xRX SoCs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update to v4.4.23Álvaro Fernández Rojas2016-09-301-3/+3
| | | | | | | Refresh patches for all targets that support kernel 4.4. compile/run-tested on brcm2708/bcm2710 only. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: update kernel 4.4 to version 4.4.20Álvaro Fernández Rojas2016-09-151-1/+1
| | | | | | | Refresh patches for all targets that support kernel 4.4. Compile-tested on brcm2708 only. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: Backport pending appended DTB handling patchesDaniel Gimpelevich2016-09-121-0/+49
| | | | | | | | | | Backport patches from upstream Linux kernel which are making the kernel stores the appended dtb not in the same resisters as defined in the UHI specification, use a separate variable on MIPS. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [some modifications] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: fix ath5k EEPROM loadingMathias Kresin2016-08-241-9/+27
| | | | | | | | | | With 12fe4b579801ea812b64fc7e689716cd39c895ec I switched the ath5k eeprom extraction to an alternate code path. Unfortunately this code seams to be broken since ages and broke the ath5k EEPROM extraction. Reported-by: Mohammed Berdai <mohammed.berdai@gmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me> Acked-by: John Crispin <john@phrozen.org>
* lantiq/xrx200-net: Add support for eth0 as WAN interfaceMartin Schiller2016-08-151-1/+1
| | | | | | | | Use priv->wan instead of priv->id as indicator if packets should go to the Ethernet WAN group (DPID=1) or not (DPID=0). This way, it's independant of interface names or indexes. Signed-off-by: Martin Schiller <mschiller@tdt.de>
* lantiq/xrx200-net: fix "tx ring full" error by introducing second DMA TX channelMartin Schiller2016-08-151-17/+31
| | | | | | | | | | With an own DMA TX channel for each network device (eth0 + eth1) there won't be any "tx ring full" errors any more. This patch also move the spinlocks to the channel level instead of locking the whole xrx200_hw structure. Signed-off-by: Martin Schiller <mschiller@tdt.de>
* lantiq: fix some ethernet driver SMP issuesFelix Fietkau2016-08-111-10/+16
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: drop duplicate and now unused "lantiq, eth-mac" bindingMathias Kresin2016-08-101-52/+1
| | | | | | | | | | | | The device tree binding and the associated code duplicates functionality already patched into the etop driver. The compatible string isn't used any more. Therefore the whole code can be dropped. The "mac-increment" property allowed to increment a mac address received via kernel cmdline. This functionality isn't used by any device and should be added as etop driver device tree property if required again. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: drop orphaned eeprom-handling code branchesMathias Kresin2016-08-101-97/+71
| | | | | | | | | | All device tree nodes are using the named properties now and the code path handling the reg property isn't required any more. The code related to the ath,eep-flash property has been reformatted to be better readable. Signed-off-by: Mathias Kresin <dev@kresin.me>
* Revert "kernel: remove long obsolete gpio spi controller driver patch"Felix Fietkau2016-08-041-3/+3
| | | | This reverts commit 9e62a7668c4085563a907da51a08819c88d04f33.
* kernel: remove long obsolete gpio spi controller driver patchFelix Fietkau2016-08-041-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: add cpu temperatur sensor driver for xrx200Florian Eckert2016-08-031-0/+168
| | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* kernel: remove full cache flush in fuse_copy_do() for MIPSHauke Mehrtens2016-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch was introduced in commit r16412 for the brcm47xx target only and then moved to generic in commit r32395. It was initially added because of ticket #5186 and should fix some problems with fuse file systems and MIPS caches. The commit comment in r32395 says that this a generic problem in MIPS CPUs, but does not name any specifics about that. There was a fix added to kernel 2.6.21 in commit commit 7575a49f20 "[MIPS] Implement flush_anon_page()." that should fix this problem, but that was already available before both commits were done to OpenWrt. I just tested fuse with ntfs.3g without this patch on a BCM4704 (BMIPS3300 V0.6) SoC and haven't seen any problems. Someone reported that removing this patch improves some fuse operations by 5 times on some modern MIPS cores. My test was only a simple "dd if=/dev/zero of=/mnt/zero bs=5000" to an USB stick. This patch removes the patch to OpenWrt, because I assume that it is not needed any more and Felix, the orginal author, also thinks so. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update to version 4.4.14Hauke Mehrtens2016-06-262-72/+78
| | | | | | | | | 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>
* lantiq: remove patch adding support for building without reset controllerHauke Mehrtens2016-06-211-45/+0
| | | | | | | | The lantiq kernel arch code selects CONFIG_RESET_CONTROLLER always, so it is always selected when the lantiq target is build. we do not need support for unselected CONFIG_RESET_CONTROLLER option. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: refresh patchesFelix Fietkau2016-06-156-100/+89
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: the io space was still not big enough for UHCIJohn Crispin2016-06-141-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: fix fritz7320 wifi supportJohn Crispin2016-06-141-4/+13
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: fix io_space_limitJohn Crispin2016-06-141-0/+28
| | | | | | this broke uhci pci support on some arv units Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: gpio-export fails to build if GPIO_SYSFS is not enabledJohn Crispin2016-06-131-7/+11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: fix a regression in the eiu irq loading codeJohn Crispin2016-06-131-0/+78
| | | | | | | | | this worked in 3.18 but broke at some point. the old code that loaded a irq table was incorrewct anyhow as it mapped the irqs int he domain which should really be done when the driver using them loads them and not the irq driver itself. Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: add VLAN handling fixes to xrx200 ethernet driverFelix Fietkau2016-06-131-17/+37
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: fold 0400-xrx200-net-multi-phy.patch into ↵Felix Fietkau2016-06-132-39/+9
| | | | | | 0025-NET-MIPS-lantiq-adds-xrx200-net.patch Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: change xrx200 ethernet driver WRED signal to global to fix spurious ↵Felix Fietkau2016-06-121-3/+4
| | | | | | packet loss issues Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: remove dummy ltq_machine_power_off to fix gpio-poweroff driversFelix Fietkau2016-06-111-0/+23
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: Fix macaddr-setting code on DGN3500 and possibly other devicesDaniel Gimpelevich2016-05-271-4/+4
| | | | Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
* lantiq: disable phy led complex (test) functions by defaultMathias Kresin2016-05-231-2/+2
| | | | | | They can be added using the phy led device tree bindings if required. Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to version 4.4.9Álvaro Fernández Rojas2016-05-101-2/+2
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* lantiq: add device tree binding for the phy clock sourceblogic2016-05-101-0/+30
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 49283
* lantiq: handle the dual-firmware layout of brnbootblogic2016-05-101-0/+93
| | | | | | | | | | | | | | | | | brnboot based devices can have two Image partitions. When flashing images via the brnboot recovery web interface, the Image partitions are written alternating. The current active Image partition is stored in the first byte of the Primary_Setting partition by using 0x00 for Code_Image_0 and 0x01 for Code_Image_1. By using the information about the active "Code Image", it is possible to ensure that the rootfs belongs to the current booted Image/Kernel. Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 49281
* lantiq: use the same functionality for all ethernet phys ledblogic2016-05-101-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VGV7510KW22 has the leds for LAN1-3 connected to pin1 of the phys and the led for LAN4 connect to pin0 of the phy. This results with the current configuration in a fast flashing LAN4 led as soon as a network cable is connected. Something similar was reported on the forum[1] for the VGV7519 as well. Since it isn't predicable to which pin a (single) phy led is connected, use the (default) pin1 functionality Constant On: 10/100/1000MBit Blink Fast: None Blink Slow: None Pulse: TX/RX for all ethernet phy leds. After checking pictures of all vr9 boards, it looks like only the VG3503J has more than one led connected per phy. Using the phy led device tree bindings to assign the functionality to the "additional" leds, the VG3503J phy leds should behave as before. Signed-off-by: Mathias Kresin <openwrt@kresin.me> [1] https://forum.openwrt.org/viewtopic.php?pid=321523 SVN-Revision: 49270
* lantiq: fix minor typos in 11G/22F phy driverblogic2016-05-101-2/+2
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 49269
* kernel: update kernel 4.4 to version 4.4.8Álvaro Fernández Rojas2016-04-241-1/+1
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: update kernel 4.4 to version 4.4.7Hauke Mehrtens2016-04-161-1/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49176
* lantiq: use upstream mechanism to append device tree fileJohn Crispin2016-03-204-63/+85
| | | | | | | | | | | Instead of using our patch-dtb program just place the device tree behind the kernel binary and then let the in kernel mechanism fetch it. This also adds support for having the device tree file in the boot loader. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49050
* kernel: update kernel 4.4 to version 4.4.3Hauke Mehrtens2016-02-253-6/+6
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48783
* lantiq: fix wrong parameter order in xway_nand driverJohn Crispin2016-02-081-1/+1
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48656
* lantiq: fix PHY state handling issueFelix Fietkau2016-01-291-0/+38
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48546
* lantiq: Add support for linux 4.4Felix Fietkau2016-01-1834-0/+17892
The following patches were dropped because they are already applied upstream: - 0038-MIPS-lantiq-fpi-on-ar9.patch - 0039-MIPS-lantiq-initialize-usb-on-boot.patch - 0042-USB-DWC2-big-endian-support.patch - 0043-gpio-stp-xway-fix-phy-mask.patch All other patches were simply refreshed, except the following: - 0001-MIPS-lantiq-add-pcie-driver.patch Changes to arch/mips/lantiq/xway/sysctrl.c (these changes disabled some PMU gates for the vrx200 / VR9 SoCs) were removed since the upstream kernel disables unused PMU gates automatically (since 95135bfa7ead1becc2879230f72583dde2b71a0c "MIPS: Lantiq: Deactivate most of the devices by default"). - 0025-NET-MIPS-lantiq-adds-xrx200-net.patch Since OpenWrt commit 55ba20afcc2fe785146316e5be2c2473cb329885 drivers should use of_get_mac_address(). of_get_mac_address_mtd is not available for drivers anymore since it's called automatically within of_get_mac_address(). - 0028-NET-lantiq-various-etop-fixes.patch Same changes as in 0025-NET-MIPS-lantiq-adds-xrx200-net.patch While refreshing the kernel configuration SPI support had to be moved to config-4.4 because otherwise M25P80 was disabled. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> SVN-Revision: 48307