aboutsummaryrefslogtreecommitdiffstats
path: root/target
Commit message (Collapse)AuthorAgeFilesLines
* imx6: add i2c retries for Ventana /dev/i2c-0Luka Perkov2015-12-281-0/+24
| | | | | | | | | | | | | | On Ventana boards the Gateworks System Controller is the only device on I2C1 (/dev/i2c-0) and it can NAK transfers if it is busy in an ADC loop. Because this is a multi-function device with several slave addresses it is best to add retries at the controller level instead of within each slave driver. This adds a patch that adds 3 retries for i2c transactions only for Ventana boards and only for I2C1 Signed-off-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48012 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: imx: thermal: use CPU temperature grade info for thresholdsLuka Perkov2015-12-281-0/+114
| | | | | | | | | | | | | | | This is a backport of a2291badc355d58ead5c19ae0609468947416040 from thermal-soc accepted upstream. The IMX6Q/IMX6DL SoC's have a 2-bit temperature grade stored in OTP. Instead of assuming 85C for passive cooling threshold and 100C for critical base these thresholds off the thermal gade max CPU temperature: - passive threshold: max - 10C - critical threshold: max - 5C Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48011 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: Add pwm nodesLuka Perkov2015-12-281-0/+276
| | | | | | | | Upstream status: Accepted Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48010 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: ventana: add ecspi3 host controller for GW52xxLuka Perkov2015-12-281-0/+35
| | | | | | | | | | Certain board revisions of the GW52xx support an SPI host controller with a single chip-select going to an off board connector. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48009 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: Add 4.3 supportLuka Perkov2015-12-2812-0/+2539
| | | | | | | | | | | | | | Build and boot tested on the following hardware: * GW54xx * GW53xx * GW52xx * GW51xx * GW552x * GW551x Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48008 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: drop lingering filesLuka Perkov2015-12-282-1072/+0
| | | | | | | | Since 3.18 kernel support was dropped, remove lingering files. Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48007 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix sysupgrade for wnr2200Felix Fietkau2015-12-231-1/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48005 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: fix Image BuilderJohn Crispin2015-12-231-2/+1
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: switch kernel PORT_LINK support to SWITCH_TYPE_LINKJohn Crispin2015-12-231-47/+4
| | | | | | | | | As explained earlier, using SWITCH_TYPE_LINK gives more flexibility, it doesn't require e.g. string parsing to read some data. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47999 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: add SWITCH_TYPE_LINK and support sending link info to user spaceJohn Crispin2015-12-233-0/+74
| | | | | | | | | | | | | So far we were sending link data as a string. It got some drawbacks: 1) Didn't allow writing clean user space apps reading link state. It was needed to do some screen scraping. 2) Forced whole PORT_LINK communication to be string based. Adding support for *setting* port link required passing string and parting it in the kernel space. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47997 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: fix PCI_DEVICE_ID_LANTIQ_PCIEJohn Crispin2015-12-231-10/+2
| | | | | | | | | | | | | | | It's not necessary to define PCI_* if pci_ids.h is included a few lines above. The change to pci_ids.h doesn't look intentional to me, especially since the former value is added to the top of ifxmips_fixup_pcie.c. Both changes were introduced with the kernel 4.1 support patches and were not present in the 3.18 patches. Signed-off-by: Mathias Kresin <openwrt@kresin.me> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47996 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: TDW89x0 - increase spi frequencyJohn Crispin2015-12-231-2/+4
| | | | | | | | | | | | | | | | | Use the same max spi frequency as set in u-boot. According to the datasheets, the Q64-104HIP as well as the Winbond 25Q64FVSIG support spi frequencies up to 50 MHz. During my tests, the Q64-104HIP couldn't be recognized/initialized if the frequency was > 40MHz. Both chips do support fast read as well. While touching the dts file, I fixed the dtc compiler warnings. Signed-off-by: Mathias Kresin <openwrt@kresin.me> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47994 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: disable SW_PORTMAP usage in the ethernet driverJohn Crispin2015-12-231-5/+4
| | | | | | | | | using the special tag in this way lead to port mirroring for certain types of traffic. fallback to using th PMAC_EWAN register for the wan portmap. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47993 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ledtrig-netdev: reset link status & stats after changing device_nameRafał Miłecki2015-12-231-0/+2
| | | | | | | | | Previously switching to non-existing device (interface) could result in leaving LED on. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47990 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ledtrig-netdev: drop locking from timer callback functionRafał Miłecki2015-12-231-11/+13
| | | | | | | | | | We may just delete timer on every trigger update and then start it again if needed. This will let us avoid both: races and locking in frequently called timer callback. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47987 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ledtrig-netdev: switch rwlock to spinlockRafał Miłecki2015-12-231-20/+20
| | | | | | | | | | Read/write lock was adding useless complexity, there wasn't any real gain in case of this driver. Also switch to _bh variants to avoid deadlocks. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47986 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Update preinit script for new ath10k firmwareJohn Crispin2015-12-231-1/+1
| | | | | | Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: refresh patchesJohn Crispin2015-12-237-19/+19
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for QCA956x ethernetJohn Crispin2015-12-231-0/+166
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47982 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: update QCA956x supportJohn Crispin2015-12-232-46/+92
| | | | | | | | | | | - separate qca956x and tp9343 (they use different IDs) - rename qca9561->qca956x for consistency - add missing bits (device reset, gpio output select) - fix wmac setup Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Add support for AirTight Networks C-55John Crispin2015-12-2314-1/+198
| | | | | | | | This patch is to add support for the AirTight Networks C-55 Access Point Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47973 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rb532: switch to 4.1John Crispin2015-12-231-1/+1
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47972 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rb532: build squashfs image by defaultJohn Crispin2015-12-231-1/+1
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47971 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rb532: increase kernel partitionJohn Crispin2015-12-231-1/+1
| | | | | | | | | 4.1 got little bit larger than 4MB and I couldn't get lzma loader working on this platform Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47970 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: Configure LED polarity for TDW8970 and TDW8980.John Crispin2015-12-232-4/+1
| | | | | | | | | This patch configures the correct ath9k WLAN LED polarity for the TDW8970, and for the TDW8980 as well. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47969 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add remaining kernel patch accidentally left out of r47963Felix Fietkau2015-12-231-0/+45
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47966 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: backport all current pppoe kernel fixes to 3.18Felix Fietkau2015-12-2310-20/+260
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47963 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ledtrig-netdev: update base driver instead of patching it for every kernelRafał Miłecki2015-12-235-160/+4
| | | | | | | | | | All supported kernels require patching ledtrig-netdev in the same way, so it's safe to just move these changes to the base version of this driver. We needed these patches for some old kernels 2.6.36 and 3.11. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47962 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel/4.4: add missing config optionsZoltan HERPAI2015-12-201-0/+17
| | | | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47957 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar8216: rework/fix AR8337 MAC swap handlingFelix Fietkau2015-12-207-9/+4
| | | | | | | | | | | | | | In r45970 the MAC swap handling was made opt-in, however some boards have been forgotten during the conversion. Since the reference design uses this MAC swapping, and pretty much all known boards using this chip seem to do so too, enabling the swapping is a more reasonable default than leaving it disabled. Change the code to still allow boards to opt-out of this. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47956 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Add ath79_register_m25p80_large to support >16MB SPI chipsFelix Fietkau2015-12-192-0/+9
| | | | | | | | | | The following patch is to add ath79_register_m25p80_large, which sets is_flash to false to support bit banging. This is needed on some 32MB+ SPI chips, such as the S25FL256S1 Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47952 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: scan nand ubi partition for ath9k eeprom filesFelix Fietkau2015-12-191-0/+21
| | | | | | | | | | The MR18 stores the ath9k eeprom values on the NAND. This patch makes it possible to retrieve the images from there. Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47948 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: refactor 10-ath9k-eepromFelix Fietkau2015-12-191-6/+6
| | | | | | | | | move all library includes and 'firmware already exists' check to the top of the script. Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47947 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: PowerCloud CR5000 openwrt configurationFelix Fietkau2015-12-195-1/+18
| | | | | | | | | | | | OpenWrt configuration part of support for the PowerCloud Systems CR5000. The CR5000 is a dual-band 802.11n wireless router with 8MB flash, 64MB RAM, (unused on stock firmware) USB 2.0 port and five port gigabit ethernet switch. The CR5000 was sold as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47946 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: PowerCloud CR3000 OpenWrt configurationFelix Fietkau2015-12-195-1/+23
| | | | | | | | | | | | OpenWRt configuration part of support for the PowerCloud Systems CR3000. The CR3000 is a 802.11n 2.4 GHz wireless router with 8MB flash, 64MB RAM, a four port gigabit ethernet switch, and a fast ethernet wan port that was sold by PowerCloud Systems as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47945 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: PowerCloud CAP324 OpenWrt configurationFelix Fietkau2015-12-195-0/+17
| | | | | | | | | | | | | | | Openwrt configuration part of support for PowerCloud CAP324 Cloud AP. The CAP324 Cloud AP is a device sold by PowerCloud Systems who's stock firmware (CloudCommand) provides 'cloud' based managment of large numbers access points. The CAP324 is a dual-band 802.11n wireless access point with 16MB flash and 128MB RAM and single gigabit ethernet port. It can be powered via PoE or a wall wart. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47944 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Image generation for PowerCloud CR5000 Cloud RouterFelix Fietkau2015-12-192-0/+36
| | | | | | | | | | | | Kernel part of support for the PowerCloud Systems CR5000. The CR5000 is a dual-band 802.11n wireless router with 8MB flash, 64 MB RAM, (unused in stock firmware) USB 2.0 port, and five port gigabit ethernet switch. The CR5000 was sold as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47943 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Image generation for PowerCloud CR3000 Cloud RouterFelix Fietkau2015-12-192-2/+36
| | | | | | | | | | | | Image generation part of support for PowerCloud CR3000. The CR3000 is a 802.11n 2.4 GHz wireless router with 8MB flash, 64MB RAM, a four port fast ethernet switch, and a fast ethernet wan port which was sold by PowerCloud Systems as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47942 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: PowerCloud CAP324 image generationFelix Fietkau2015-12-192-0/+38
| | | | | | | | | | | | | | | Image generation (and mtd partition) part of support for PowerCloud CAP324 Cloud AP. The CAP324 Cloud AP is a device sold by PowerCloud Systems who's stock firmware (CloudCommand) provides 'cloud' based managment of large numbers of access points. The CAP324 is a dual-band 802.11n wireless access point with 16MB flash and 128MB RAM and single gigabit ethernet port. It can be powered via PoE or a power adaptor. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47941 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Kernel board definition for PowerCloud CR5000Felix Fietkau2015-12-197-0/+192
| | | | | | | | | | | | Kernel part of support for the PowerCloud Systems CR5000. The CR5000 is a dual-band 802.11n wireless router with 8MB flash, 64 MB RAM, (unused in stock firmware) USB 2.0 port, and five port gigabit ethernet switch. The CR5000 was sold as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47940 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Kernel board definition for PowerCloud CR3000Felix Fietkau2015-12-197-0/+176
| | | | | | | | | | | | Kernel part of support for PowerCloud CR3000. The CR3000 is a 802.11n 2.4 GHz wireless router with 8MB flash, 64MB RAM, a four port fast ethernet switch, and a fast ethernet wan port which was sold by PowerCloud Systems as hardware for the Skydog cloud-managed router service. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47939 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Kernel board definition for PowerCloud CAP324Felix Fietkau2015-12-197-0/+148
| | | | | | | | | | | | | | | Kernel part of support for PowerCloud CAP324 Cloud AP. The CAP324 Cloud AP was a device sold by PowerCloud Systems as hardware for the CloudCommand service for 'cloud' based managment of large numbers access points. The CAP324 is a dual-band 802.11n wireless access point with 16MB flash and 128MB RAM and single gigabit ethernet port. It can be powered via PoE or a power adaptor. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devicesFelix Fietkau2015-12-193-12/+4
| | | | | | | | Enable it from .dts files that need it, also remove redundant properties Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 ↵Felix Fietkau2015-12-1894-94/+94
| | | | | | | | to fix probe issues Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: fix switch config for devices with WAN port 0Rafał Miłecki2015-12-181-0/+14
| | | | | | | | | Commit r47866 dropped default values which were handling WAN interface at port 0. Fix it by handling 2 more cases on NVRAM values. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47932 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: update kernel 4.4 configRafał Miłecki2015-12-181-6/+18
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47931 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: add kernel 4.4 supportRafał Miłecki2015-12-1821-0/+2212
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47930 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: update the mt7621 ethernet support patchJohn Crispin2015-12-171-19/+21
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47929 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for TRENDnet TEW-823DRUJohn Crispin2015-12-1713-3/+221
| | | | | | | | | | | | | | Add support for TRENDnet TEW-823DRU: - cpu: QCA9558 @720MHz - flash: 16MB - ram: 256MB - 4+1 RJ45 100/1000Mbps - wifi: QCA9558 (bgn) and QCA9880-BR4A (ac) - 1x USB 2.0 Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47927 3c298f89-4303-0410-b956-a3cf2f4a3e73
* omap: add kernel 4.4John Crispin2015-12-171-0/+721
| | | | | | | | - tested on Beagleboard C4 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47925 3c298f89-4303-0410-b956-a3cf2f4a3e73