summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mediatek: mt7622: convert unifi6lr-v{1,2,3}-ubootmod to fitblkDaniel Golle2024-02-156-9/+33
| | | | | | No bootloader changes needed in this case, smooth transition. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblkDaniel Golle2024-02-1517-71/+358
| | | | | | | Modernize bootloader and flash memory layout of the BPi-R64 similar to how it has also been done for the BPi-R3. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* arm-trusted-firmware-mediatek: add UBI-enabled builds for MT7622Daniel Golle2024-02-151-1/+20
| | | | | | | Use custom UBI start address 0x80000 on MT7622 which is more than enough for a single bl2 (MT7622 BootROM doesn't support redundant bl2). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: BananaPi BPi-R3 bootloader updateDaniel Golle2024-02-155-29/+145
| | | | | | | | | | | | | | | * Switch to all-UBI layout on SPI-NAND * use fitblk driver instead of uImage.FIT partition parser * adapt sysupgrade * bump COMPAT_VERSION Remove BROKEN mark now that all needed changes are done. Boards running images generated before this commit will require full reflash of the bootloader, re-install from SD card is the easiest way to achieve that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-envtools: mediatek_filogic: update bpi-r3Daniel Golle2024-02-151-16/+4
| | | | | | Unify env configuration now that BPi-R4 and BPi-R3 both use fitblk. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: bpi-r3: all-UBI NAND layout, use fitblkDaniel Golle2024-02-153-40/+137
| | | | | | | | | | Modernize U-Boot to provide a better reference: * store fip image in UBI now that TF-A supports that * switch from uImage.FIT partition parser to new fitblk virtual firmware block driver (root=/dev/fit0) * automatically set root device according to boot_mode register Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* arm-trusted-firmware-mediatek: add mt7986-spim-nand-ubi-ddr4Daniel Golle2024-02-151-0/+11
| | | | | | | Add UBI-enabled build for MT7986 with SPIM-NAND and DDR4 for use with the BananaPi R3 board. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: prepare BananaPi BPi-R3 for upcoming modernizationDaniel Golle2024-02-151-0/+1
| | | | | | Mark board as broken until the complete boot stack has been updated. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-envtools: filogic: add support for BananaPi R4Daniel Golle2024-02-152-0/+25
| | | | | | | | Add environment settings for the BananaPi BPI-R4 router board which can boot from (and store its bootloader environment on) micro SD card, SPI-NAND and eMMC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-envtools: filogic: de-duplicate UBI env settingsDaniel Golle2024-02-151-36/+29
| | | | | | | Use function instead of duplicating the env settings on UBI for OpenWrt-built U-Boot over and over. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: add support for BananaPi BPI-R4 boardDaniel Golle2024-02-1511-4/+735
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware -------- SOC: MediaTek MT7988A (4x Cortex-A73) RAM: 4 GiB DDR4 Flash: 128 MiB Winbond SPI-NAND MMC: 8 GiB eMMC *or* microSD (cannot be used both) ETH: 4x 1GE (1x WAN, 3x LAN) 2x SFP+ (10G, 5G, 2.5G, 1G) USB: on-board USB 3.2 4-port hub 1x USB 3.2 port (type A connector) 1x M.2 for 4G/5G modem 2x mPCIe for additional modems WiFi: optional MediaTek MT7996 Wi-Fi 7 module (using 2x PCIe gen3 x2 on the mPCIe slots and 12V power) Installation ------------ 1. Decompress and write the sdcard image to a micro SD card and use that to boot the R4 (both dip switches in upper position). 2. Use the bootloader menu accessible via the serial console to install to SPI-NAND. 3. Switch to boot from SPI-NAND and install to eMMC. Known issues ------------ - The RST button is hard-wired to the SoC reset and can't be read from software. This can be changed by modifying the board (ie. moving a 0-ohm resistor). However, in order to maintain compatibility with the board as it comes from factory the button isn't used by OpenWrt and the WPS button is used as factory/reset button instead. - various small things still need to be fixed in DT Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: update to U-Boot 2024.01 releaseDaniel Golle2024-02-1569-10550/+171
| | | | | | | | Rebase local patches on top of quarterly timed release, allowing to drop numerous patches which have been accepted upstream since the release of U-Boot 2023.07.02. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: add build for BPi-R4Daniel Golle2024-02-152-0/+1037
| | | | | | | Add build for the BananaPi R4 board which can boot from micro SD, SPI-NAND or eMMC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: mt7988: set rootdisk according to boot deviceDaniel Golle2024-02-151-0/+66
| | | | | | | If nodes /chosen/rootdisk-${bootdevice} exists, set /chosen/rootdisk phandle according to boot device selected by the bootstrap pins. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: fix MMC erase timeoutDaniel Golle2024-02-151-0/+13
| | | | | | | | When erasing large amounts of blocks at once this can take a long time on slow cards. Instead of a fixed timeout, wait longer if more blocks are being erased. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-mediatek: add basic build for ZBT-WG3526 (MT7621, 16M SPI-NOR)Daniel Golle2024-02-152-2/+326
| | | | | | | | | Add basic U-Boot drop-in replacement compatible with the flash layout of the vendor loader of the Zbtlink WG3526 (16M) MT7621 router board. The idea here is a to have a reference build of uboot-mediatek also for a simple MIPS boards more popular than MT7621 RFB. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: add patch for xsphy driver to support pcie2 on MT7988Daniel Golle2024-02-151-0/+167
| | | | | | | Import patch from MediaTek SDK which allows using the third PCIe host controller of the MT7988 SoC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: dts: mt7988: add uart1 and uart2Daniel Golle2024-02-151-0/+103
| | | | | | Add device tree nodes for uart1 and uart2 of the MT7988 SoC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: pinctrl-mt7988: add additional uart1_2_lite groupDaniel Golle2024-02-151-4/+7
| | | | | | | | Add UART pinctrl group for using only pins 80 and 81 for uart1. This is needed on the BPi-R4 as RTS/CTS signals are used for other on-board functions. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: pinctrl-mt7988: add pinconf mapDaniel Golle2024-02-152-0/+147
| | | | | | Add pull-up/pull-down configuration for pins of MT7988. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: switch to pending XFI 10G Ethernet driversDaniel Golle2024-02-1528-1110/+2085
| | | | | | | | | Replace previous patch adding paths and SerDes modes with patch series pending upstream adding dedicated drivers for XFI T-PHY and USXGMII PCS, extends LynxI PCS to be a standalone platform driver and as a consequence makes much less changes to the actual Ethernet driver mtk_eth_soc. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: backport a hell of thermal commitsDaniel Golle2024-02-1552-33/+7222
| | | | | | | Backport almost 50 commits from upstream Linux to improve thermal drivers for MediaTek SoCs and add new LVTS driver for MT7988. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: replace mt7988 clk files with accepted patchesDaniel Golle2024-02-1519-1407/+2212
| | | | | | Replace clock drivers for MT7988 with backported upstream commits. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: backport phylink changes from mainline LinuxDaniel Golle2024-02-1591-335/+5582
| | | | | | | Let's pick a bunch of useful phylink changes which allow us to keep drivers in sync with mainline Linux. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: switch to Linux version 6.1Daniel Golle2024-02-15223-35429/+1
| | | | | | Drop support for Linux 5.15 and switch to Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* package: add fitblk util to release /dev/fit* devicesDaniel Golle2024-02-153-0/+93
| | | | | | | | | Add minimalistic tool to allow releasing /dev/fit* devices which is needed on sysupgrade when using the fitblk driver. The package is hidden in menuconfig, it should only be selected by adding it to the default package selection of boards using it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add pending fitblk uImage.FIT sub-image block driverDaniel Golle2024-02-153-0/+758
| | | | | | | | | Add 'fitblk' driver to replace the rejected/deprecated uImage.FIT partition parser. To use the new driver, add phandle /chosen/rootdisk and point it to the MTD partition, UBI volume or block device holding the uImage.FIT. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: import pending patches adding support for NVMEM on UBI and MMCDaniel Golle2024-02-1522-56/+1876
| | | | | | | Similar to supporting nvmem-layouts on MTD devices, also allow referencing UBI and MMC devices in DT. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: allow skipping deprecated uImage.FIT partition parserDaniel Golle2024-02-151-0/+4
| | | | | | | | | | | | In order to allow gradually migrating the boards currently using the uImage.FIT partition (deprecated/rejected) parser to the new fitblk driver, skip the partition parser code in case the new fitblk driver (which serves the same purpose) is used. As an indicator for the use of the new fitblk driver, check if the /chosen/rootdisk property is present in the Device Tree. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: move uImage.FIT partition parser to mediatek targetDaniel Golle2024-02-157-2/+2
| | | | | | | | | | The partition parser approach has been rejected upstream, it will be replaced by a small block driver which is the solution suggestion by upstream maintainers. As the partition parser has only been used by the mediatek target, as a first step, move it there. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: 6.1: backport UBI device model improvementsDaniel Golle2024-02-155-3/+85
| | | | | | | | Backport two commits from Linux 6.3 wiring up device node parents of ubi devices (pointing to their MTD parent) as well as ubiblock devices (poiting to their parent UBI volume). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* arm-trusted-firmware-mediatek: use UBI on new NAND targetsDaniel Golle2024-02-151-1/+23
| | | | | | | | | | Make use of recently added UBI support in MediaTek's ARM TrustedFirmware-A on new MT7988 SoC. Load fip from static UBI volume instead of fixed offset on SPIM-NAND and SNFI. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* arm-trusted-firmware-mediatek: set HIDDEN=yDaniel Golle2024-02-151-0/+1
| | | | | | | | Hide arm-trusted-firmware-mediatek packages from interactive config. Exposing them only causes confusion and needed variants are anyway selected as dependencies by uboot-mediatek packages. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ipq807x: add support for CMCC RM2-6Chukun Pan2024-02-157-4/+337
| | | | | | | | | | | | | | | | | | Hardware specifications: SoC: Qualcomm IPQ8070A RAM: 512MB of DDR3 Flash: 256MB Micron NAND Ethernet: 2x 1G RJ45 port WiFi1: QCN5024 2x2 2.4GHz WiFi2: QCN5054 2x2 5GHz Fan: 1x GPIO controlled Button: Reset, WPS Flash instructions: Upload factory.bin in stock firmware's upgrade page. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* qualcommax: ipq807x: MX4200 convert qca807x PHY to new implementationPaweł Owoc2024-02-151-15/+22
| | | | | | | Convert qca807x PHY to new implementation like for other devices. Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Reviewed-by: Robert Marko <robimarko@gmail.com>
* qca-ssdk: drop not used Malibu PHY patchRobert Marko2024-02-151-131/+0
| | | | | | | Now that Malibu (QCA807x) PHY-s use an upstream driver we dont need support for defining address of the first PHY in the package so drop the patch. Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: remove usage of malibu_first_phy_addrRobert Marko2024-02-152-19/+0
| | | | | | | | Now that Malibu (QCA807x) PHY is using the upstream driver, we dont need support to define address of the first PHY in package, so remove the malibu_first_phy_addr DTS property. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: use upstreamed QCA807x fixupRobert Marko2024-02-151-3/+6
| | | | | | | Now that QCA807x interface mode check was upstreamed, use the upstreamed version and mark it as such. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools/expat: fix build error with ccacheKoen Vandeputte2024-02-151-0/+1
| | | | | | | | Disable compilation of separate tests as it causes a build error when combined with ccache Fixes: 4a3f430d72 ("tools/expat: update to 2.6.0") Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: fix bidirectional hardware flow offloadFelix Fietkau2024-02-142-1/+26
| | | | | | Fix a bug that was introduced upstream Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ugps: update to Git HEAD (2024-02-14)Petr Štetiar2024-02-141-4/+4
| | | | | | 69561a074d6f ugps: add quality measurement parameters Signed-off-by: Petr Štetiar <ynezz@true.cz>
* wifi-scripts: create the wlan object in board_data if not presentFelix Fietkau2024-02-131-1/+2
| | | | | | Fixes an error in wifi detection Signed-off-by: Felix Fietkau <nbd@nbd.name>
* omap: drop kernel 5.15Andre Heider2024-02-131-691/+0
| | | | | | One version is sufficient for this minor target. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: switch to kernel 6.1Andre Heider2024-02-131-1/+1
| | | | | | Lightly tested on boneblack, no fallout observed so far. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: run kernel_oldconfig for 6.1Andre Heider2024-02-131-8/+28
| | | | | | No manual changes done. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: copy kernel config for 6.1Andre Heider2024-02-131-0/+691
| | | | | | Unmodified copy to ease reviewing follow-up changes. Signed-off-by: Andre Heider <a.heider@gmail.com>
* ucode: update to Git HEAD (2024-02-13)Jo-Philipp Wich2024-02-131-3/+3
| | | | | | | | | | | | | 7e5830edfb38 nl80211: fix datatype of NL80211_BAND_IFTYPE_ATTR_HE_CAP_{MAC,PHY} attrs 5c8fd34bac42 nl80211: fix parsing of NL80211_BAND_ATTR_VHT_MCS_SET attribute e8d4e4fe967d nl80211: fix decoding of NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET attribute 30a3f7ad0433 rtnl: store callback in listener registry only on success 9cbe8294909f rtnl: optimize reception of rtnl events 534417132e18 rtnl: increase event socket rx buffer size limit to 1 MiB 3f9811d2f7b7 compiler: close upvalues on loop control statements Fixes: https://github.com/jow-/ucode.git/issues/187 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* libxml2: update to 2.12.5Nick Hainke2024-02-131-2/+2
| | | | | | | | Release Notes: https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.5 Fixes: CVE-2024-25062 Signed-off-by: Nick Hainke <vincent@systemli.org>
* mediatek: filogic: fixup mt7988a DTS coding styleRafał Miłecki2024-02-132-16/+50
| | | | | | Use coding style as described as preferred in upstream DTS Coding Style. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mediatek: filogic: reorder mt7988a DTS propertiesRafał Miłecki2024-02-132-112/+108
| | | | | | | Use order described as preferred in DTS Coding Style. Mostly just move "compatible", "reg", "ranges" and "status" properties. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>