aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* kernel: fix jffs2 compilation with GCC_PLUGIN_RANDSTRUCT enabledMatt Merhar2021-09-132-2/+2
| | | | | | | | | Designated initializers are required when using the randstruct GCC plugin, otherwise an error like the following is seen: ./include/linux/lzma.h:60:31: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init] Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
* kernel: Add missing kernel config optionsHauke Mehrtens2021-09-135-5/+6
| | | | | | | These options are selectable when some of the kernel debug options like KERNEL_SOFTLOCKUP_DETECTOR are selected. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ipq806x: switch to kernel 5.10Ansuel Smith2021-09-121-2/+1
| | | | | | | | | Move kernel version to 5.10 as has been tested by many users with positive feedback. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [Tested on: ipq8064/g10; ipq8065/nbg6817] Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
* ipq40xx: Fix board-2.bin package name for Plasma Cloud PA2200Sven Eckelmann2021-09-121-1/+1
| | | | | | | | | | | The board data file for the Plasma Cloud PA2200 is not part of the default board-2.bin which is shipped by ath10k-board-qca4019. A typo in the device package name resulted in a not correctly selected package for the device specific board-2.bin. The wifi driver has therefore loaded the wrong calibration information into the wifi chip. Fixes: 4871fd2616ac ("ipq40xx: add support for Plasma Cloud PA2200") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* ipq40xx: Fix board-2.bin package name for Plasma Cloud PA1200Sven Eckelmann2021-09-121-1/+1
| | | | | | | | | | | The board data file for the Plasma Cloud PA1200 is not part of the default board-2.bin which is shipped by ath10k-board-qca4019. A typo in the device package name resulted in a not correctly selected package for the device specific board-2.bin. The wifi driver has therefore loaded the wrong calibration information into the wifi chip. Fixes: ea5bb6bbfee0 ("ipq40xx: add support for Plasma Cloud PA1200") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* ipq40xx: Select correct board-2.bin for EnGenius EMR3500Sven Eckelmann2021-09-121-0/+1
| | | | | | | | | The board data file for the EnGenius EMR3500 is not part of the default board-2.bin which is shipped by ath10k-board-qca4019. As result, the wrong calibration information will be loaded into the wifi chip. Fixes: 3f61e5e1b97e ("ipq40xx: add support for EnGenius EMR3500") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* ipq40xx: Select correct board-2.bin for EnGenius EMD1Sven Eckelmann2021-09-121-0/+1
| | | | | | | | | The board data file for the EnGenius EMD1 is not part of the default board-2.bin which is shipped by ath10k-board-qca4019. As result, the wrong calibration information will be loaded into the wifi chip. Fixes: 51f303597839 ("ipq40xx: add support for EnGenius EMD1") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* kernel: bump 5.10 to 5.10.62Rui Salvaterra2021-09-095-20/+20
| | | | | | Patches automatically refreshed. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* mvebu: add support for iEi Puzzle-M901/Puzzle-M902Ian Chang2021-09-096-0/+868
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specification ---------------------- * CN9130 SoC, Quad-core ARMv8 Cortex-72 @ 2200 MHz * 4 GB DDR * 4 GB eMMC * mmcblk0 - mmcblk0p1 64M kernel_1 - mmcblk0p2 64M kernel_2 - mmcblk0p3 512M rootfs_1 - mmcblk0p4 512M rootfs_2 - mmcblk0p5 512M Reserved - mmcblk0p6 64M Reserved - mmcblk0p7 1.8G rootfs_data * 4 MB (SPI Flash) * 6 x 2.5 Gigabit ports (Puzzle-M901) - External PHY with 6 ports (AQR112R) * 6 x 2.5 Gigabit ports (Puzzle-M902) - External PHY with 6 ports (AQR112R) 3 x 10 Gigabit ports (Puzzle-M902) - External PHY with 3 ports (AQR113R) * 4 x Front panel LED * 1 x USB 3.0 * Reset button on Rear panel * UART (115200 8N1,header on PCB) Flash instructions: The original firmware is based on OpenWrt. Flash firmware using LuCI and CLI Signed-off-by: Ian Chang <ianchang@ieiworld.com>
* mvebu: backport CN9130 dts necessary files changes to 5.4Ian Chang2021-09-0910-0/+2883
| | | | | | | | | 1. Add support for Marvell CN9130 SoC 2. Add support for CP115,and create an armada-cp11x.dtsi file which will be used to instantiate both CP110 and CP115 3. Add support for AP807/AP807-quad,AP807 is a major component of CN9130 SoC series 4. Drop PCIe I/O ranges from CP11x file and externalize PCIe macros from CP11x file Signed-off-by: Ian Chang <ianchang@ieiworld.com>
* kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21Hauke Mehrtens2021-09-0916-16/+2
| | | | | | | | | | | | The default value for CONFIG_RCU_CPU_STALL_TIMEOUT was changed from 60 seconds to 21 seconds in 2012 in the upstream kernel. Some targets already use 21 seconds. This patch changes the default value in the generic configuration to 21 seconds and removes the target specific configuration options. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
* x86: switch to kernel 5.10Paul Spooren2021-09-081-2/+1
| | | | | | | Seems to be working fine in QEMU and the wild. Signed-off-by: Paul Spooren <mail@aparcar.org> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
* mvebu: switch to kernel 5.10Rui Salvaterra2021-09-081-2/+1
| | | | | | | | | | It's been brewing on my cortexa9 subtarget (Turris Omnia) for months. Perfectly stable. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> [modify subject to match previous updates] Signed-off-by: Paul Spooren <mail@aparcar.org>
* bcm53xx: specify switch ports for more devicesRafał Miłecki2021-09-072-0/+864
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* linux: backport DSA b53 driver fixes for switch portsRafał Miłecki2021-09-072-0/+82
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ramips: add support for Sitecom WLR-4100 v1 002Andrea Poletti2021-09-053-1/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sitecom WLR-4100 v1 002 (marked as X4 N300) is a wireless router Specification: SoC: MT7620A RAM: 64 MB DDR2 Flash: MX25L6405D SPI NOR 8 MB WIFI: 2.4 GHz integrated Ethernet: 5x 10/100/1000 Mbps QCA8337 USB: 1x 2.0 LEDS: 2x GPIO controlled, 5x switch Buttons: 1x GPIO controlled UART: row of 4 unpopulated holes near USB port, starting count from white triangle on PCB: VCC 3.3V GND TX RX baud: 115200, parity: none, flow control: none Installation Connect to one of LAN (yellow) ethernet ports, Open router configuration interface, Go to Toolbox > Firmware, Browse for OpenWrt factory image with dlf extension and hit Apply, Wait few minutes, after the Power LED will stop blinking, the router is ready for configuration. Known issues Some USB 2.0 devices work at full speed mode 1.1 only MAC addresses factory partition only contains one (binary) MAC address in 0x4. u-boot-env contains four (ascii) MAC addresses, of which two appear to be valid. factory 0x4 **:**:**:**:b9:84 binary u-boot-env ethaddr **:**:**:**:b9:84 ascii u-boot-env wanaddr **:**:**:**:b9:85 ascii u-boot-env wlanaddr 00:AA:BB:CC:DD:12 ascii u-boot-env iNICaddr 00:AA:BB:CC:DD:22 ascii The factory firmware only assigns ethaddr. Thus, we take the binary value which we can use directly in DTS. Additional information OEM firmware shell password is: SitecomSenao useful for creating backup of original firmware. There is also another revision of this device (v1 001), based on RT3352 SoC Signed-off-by: Andrea Poletti <polex73@yahoo.it> [remove config DT label, convert to nvmem, remove MAC address setup from u-boot-env, add MAC address info to commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ath79: add support for TP-Link TL-WA1201 v2Robert Balas2021-09-055-2/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This device is a wireless access point working on the 2.4 GHz and 5 GHz band, based on Qualcomm/Atheros QCA9563 + QCA9886. Specification - 775 MHz CPU - 128 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - QCA9563: 2.4 GHz 3x3 - QCA9886: 5 GHz - AR8033: 1x 1 Gbs Ethernet - 4x LED, WPS factory reset and power button - bare UART on PCB (accessible through testpoints) Methods for Flashing: - Apply factory image in OEM firmware web-gui. Wait a minute after the progress bar completes and restart the device. - Sysupgrade on top of existing OpenWRT image - Solder wires onto UART testpoints and attach a terminal. Boot the device and press enter to enter u-boot's menu. Then issue the following commands 1. setenv serverip your-server-ip setenv ipaddr your-device-ip 2. tftp 0x80060000 openwrt-squashfs.bin (Rembember output of size in hex, henceforth "sizeinhex") 3. erase 0x9f030000 +"sizeinhex" 4. cp.b 0x80060000 0x9f030000 0x"sizeinhex" 5. reboot Recover: - U-boot serial console Signed-off-by: Robert Balas <balasr@iis.ee.ethz.ch> [convert to nvmem] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* mediatek: add support for TOTOLINK A8000RUChuanhong Guo2021-09-033-0/+345
| | | | | | | | | | | | | | | | | | Specifications: - SoC: MT7622 - RAM: 512MB - Flash: MX35LF1GE4AB 128MB SPI NAND - Ethernet: RTL8367S 5x1GbE - WiFi: 2.4G: MT7622 5G: MT7615N x2 - Other ports: USB3.0 x1 Flash instruction: *important*: upgrade vendor firmware to at least V7.1cu.643_B20200521 1. hold the reset button and power on the device. wait for about 10s before releasing the reset button. 2. upload sysupgrade.bin via u-boot recovery page on http://192.168.1.1 Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* kernel: add missing CONFIG_SECURITY_NETWORK_XFRM ksymRui Salvaterra2021-08-312-0/+2
| | | | | | | | | Paul noticed a build failure [1] due to this missing symbol. Add it as disabled to both generic kconfigs. [1] https://github.com/aparcar/openwrt/runs/3480872706?check_suite_focus=true#step:11:63 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* bcm53xx: switch to the kernel 5.10Rafał Miłecki2021-08-311-1/+1
| | | | | | With PCI and USB regressions fixed it should be safe to switch now. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: fix kmod-i2c-bcm-iproc for kernel 5.10Rafał Miłecki2021-08-311-1/+3
| | | | | | | | | | | | | | | | | | | | | I2C_BCM_IPROC selects I2C_SLAVE which in turn makes two new symbols available: I2C_SLAVE_EEPROM and I2C_SLAVE_TESTUNIT. That was causing: I2C support (I2C) [M/n/y/?] m Enable compatibility bits for old user-space (I2C_COMPAT) [N/y/?] n I2C device interface (I2C_CHARDEV) [M/n/?] m I2C bus multiplexing support (I2C_MUX) [N/m/?] n Autoselect pertinent helper modules (I2C_HELPER_AUTO) [N/y/?] n SMBus-specific protocols (I2C_SMBUS) [N/m/?] n I2C/SMBus Test Stub (I2C_STUB) [N/m/?] n I2C slave support (I2C_SLAVE) [Y/?] y I2C eeprom slave driver (I2C_SLAVE_EEPROM) [N/m/?] n I2C eeprom testunit driver (I2C_SLAVE_TESTUNIT) [N/m/?] (NEW) Ideally I2C_SLAVE should probably be packaged as kmod-i2c-slabe. For now just modify kmod-i2c-bcm-iproc to fix kernel compilation. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: fix USB in kernel 5.10Rafał Miłecki2021-08-311-0/+41
| | | | | | | This makes USB controller driver work with USBs that are always powered on (don't require toggling any GPIO). Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ramips: minew g1-c: use default static address for lan instead of dhcpAlexander Couzens2021-08-311-5/+1
| | | | | | | | | As Adrian Schmutzler suggested on github [1] the device should follow the default behaviour on ethernet using a static address instead using dhcp. [1] https://github.com/openwrt/openwrt/commit/8d497b65704f62294a4bbc0e1f5aa4eb1dbf9e24 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* bcm53xx: backport missed DT patch cleaning up CRU blockRafał Miłecki2021-08-3014-22/+196
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ramips: w2914ns-v2: consolidate leds nodes into dtsiSungbo Eo2021-08-304-33/+11
| | | | | | | | | | | | w2914ns-v2, 11acnas, and freezio use almost same board and thus share a common dtsi file. Now that LED labels do not contain "devicename" since commit c846dd91f0a6 ("ramips: remove model name from LED labels"), let's move the leds nodes to dtsi and remove them from dts. Note that freezio has only one USB 3.0 port and adding &ehci_port2 trigger does not incur any visible changes. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* ramips: provide default BLOCKSIZE for Device/seamaAdrian Schmutzler2021-08-303-2/+1
| | | | | | | The Device/seama shared definition requires BLOCKSIZE, so it should have a default value for this variable. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ipq806x: add missing enclosing partitions block for TP-Link C2600Filip Matijević2021-08-301-146/+152
| | | | | | | | | | | | | | | | | | | | The partitions that have compatible property set are skipped by mtd if they are not contained inside a partitions node and this breaks fetching MAC address from "default-mac" partition. Fix this by defining all the partitions inside partitions node with compatible = "fixed-partitions" as nvmem requires the standard partitions scheme to work correctly. Fixes: FS#3945 Fixes: cd36d71655ee ("ipq806x/dts: Add Archer C2600 DTS") Fixes: 0458a8993ca1 ("ipq806x: convert mtd-mac-address to nvmem implementation") Signed-off-by: Filip Matijević <filip.matijevic.pz@gmail.com> Reviewed-by: Ansuel Smith <ansuelsmth@gmail.com> [adjust commit title/message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ath79: remove redundant BLOCKSIZE of 64k from devicesAdrian Schmutzler2021-08-302-4/+0
| | | | | | | BLOCKSIZE = 64k is set in Device/Default, i.e. global default on the target. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* bcm53xx: backport the latest upstream DT changesRafał Miłecki2021-08-2925-2/+2324
| | | | | | | | This includes: 1. BCM5301X changes from 5.14 and queued 5.15 stuff 2. NSP changes from 5.11 - 5.15 for kernel 5.10 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: move two symbols to the generic kconfigsRui Salvaterra2021-08-2957-115/+11
| | | | | | | CONFIG_RCU_{NEED_SEGCBLIST,STALL_COMMON} are set basically everywhere. Move them to the generic kconfigs. And resort the generic kconfigs while at it. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* kernel: disable CONFIG_RCU_EXPERT and friendsRui Salvaterra2021-08-2914-23/+2
| | | | | | | | | | | | | | Based on the existing documentation [1][2], I dare anyone to demonstrate that we need to fine-tune these RCU parameters. The (performance) breakage potential for doing so is immense, so let's just please put down this loaded footgun. Disable CONFIG_RCU_EXPERT and its dependent symbols. Additionally, remove the CONFIG_RCU_EXPERT symbol from the target kconfigs which contain it. [1] https://www.kernel.org/doc/Documentation/RCU/Design/Data-Structures/Data-Structures.html [2] https://lwn.net/Articles/777214/ Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* kernel: fix warning about unused try_to_force_loadAnsuel Smith2021-08-292-2/+34
| | | | | | | There is a longlasting warn about unused defined try_to_force_load. Fix this by including this function only when actually used. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* kernel: bump 5.4 to 5.4.143John Audia2021-08-2916-63/+24
| | | | | | | | | | | | | | | | | | Manually rebased: bcm27xx/patches-5.4/950-1031-net-lan78xx-Ack-pending-PHY-ints-when-resetting.patch Removed upstreamed: mvebu/patches-5.4/100-cpufreq-armada-37xx-forbid-cpufreq-for-1.2-GHz-variant.patch All other patches automatically rebased. Build system: x86_64 Build-tested: ipq806x/R7800 Run-tested: ipq806x/R7800 No dmesg regressions, everything functional Signed-off-by: John Audia <graysky@archlinux.us>
* kernel: bump 5.10 to 5.10.61John Audia2021-08-2924-103/+38
| | | | | | | | | | | | | | | | | | Manually rebased: bcm27xx/patches-5.10/950-1031-net-lan78xx-Ack-pending-PHY-ints-when-resetting.patch Removed upstreamed: mvebu/patches-5.10/101-cpufreq-armada-37xx-forbid-cpufreq-for-1.2-GHz-variant.patch All other patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B No dmesg regressions, everything functional Signed-off-by: John Audia <graysky@archlinux.us>
* ath79: fix spelling of DEVICE_MODEL for D-Link DAP-2695Sebastian Schaper2021-08-281-1/+1
| | | | | | | | | | Change `DAP-2965` to `DAP-2695` for device selection in menuconfig. Fixes: cd09f26660b6 ("ath79: add support for D-Link DAP-2695-A1") Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net> [add Fixes] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: add label-mac for TL-MR3020 v3David Bauer2021-08-281-0/+1
| | | | | | | | The TP-Link TL-MR3020 v3 only has a single MAC address assigned for ethernet LAN as well as WiFi. This MAC address is also printed on the casing. Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: enable fast-read for TL-MR3020 v3David Bauer2021-08-281-0/+1
| | | | | | | | The GigaDevices GD25Q64B found on the TL-MR3020 v3 supports the fast read instruction. Add the required DT property in order to enable usage of this property. Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: increase SPI frequency for TL-MR3020 v3David Bauer2021-08-281-1/+1
| | | | | | | The GigaDevices GD25Q64B supports higher SPI clocks than 10 MHz. While 100 MHz do not work reliably, 50 MHz works without issues. Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: fix input type for TL-MR3020 v3David Bauer2021-08-281-0/+2
| | | | | | | | | The modec{1,2} keys are actually switches. Add the respective DTS properties to avoid accidental activation of failsafe mode. Signed-off-by: David Bauer <mail@david-bauer.net>
* kernel: properly handle paging errors in fit partition parserDaniel Golle2021-08-271-2/+5
| | | | | | | | The uImage.FIT partition uses page mapping without properly handling paging errors. This can lead to Kernel Oops in case of read errors while trying to parse uImage.FIT partitions. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: mt7623: replace kconfig symbol for snand driverChuanhong Guo2021-08-271-1/+1
| | | | | | | this change was missing during the spi-nand driver replacement, causing build failure. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: mt7629: manually add missing kconfigChuanhong Guo2021-08-271-0/+3
| | | | | | | | | These options doesn't show up unless some kernel packages are selected, so they are not covered by kernel_menuconfig. Manually add them so that a build with all kmods can pass without user interaction. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: mt7629: build with linux 5.10Chuanhong Guo2021-08-274-96/+16
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: bmt: set default bmt oob offset to 0Chuanhong Guo2021-08-271-1/+1
| | | | | | | | there's no driver level remapping of oob data in the new spi-nand driver and bmt oob signature starts at 0x0 of the dumped oob data. change the default value to 0 for the new spi-nand driver. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: mtk-snand: check request size against chip infoChuanhong Guo2021-08-271-9/+13
| | | | | | | | | mtd->size will be overrided by BMT which makes all mtd requests made by bmt fail in request size checking. this commit changes the driver to check against actual chip size in chip info as a workaround. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: attach bmt to the new snand driverChuanhong Guo2021-08-271-27/+36
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: change dts to use the new snand driverChuanhong Guo2021-08-277-250/+165
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: remove spi-nand hacks from 5.10Chuanhong Guo2021-08-274-1538/+0
| | | | | | | we now have a standalone mtd driver and the old spi-mem driver along with the hack in spi-nand core can be removed. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: enable new spi-nand driver for kernel 5.10Weijie Gao2021-08-271-0/+1
| | | | | | | This patch enables new spi-nand driver for mt7622 and mt7629. Signed-off-by: Weijie Gao <hackpascal@gmail.com> Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: add a new spi-nand driver for kernel 5.10Weijie Gao2021-08-2711-0/+3992
| | | | | | | | | | | | | This patch adds a new spi-nand driver which implements the SNFI of mt7622 and mt7629. Unlike the existing snfi driver which makes use of the spi-mem framework and the spi-nand framework with modified ecc support, this driver is implemented directly on the mtd framework with other components untouched, and provides better performance, and behaves exactly the same as the nand framework. Signed-off-by: Weijie Gao <hackpascal@gmail.com>