Commit Graph

6647 Commits

Author SHA1 Message Date
Daniel Golle 87fe8bb382 mediatek: re-add missing patch for Linux 6.1
The patch was wrongly tagged as being part of Linux 6.0 even though it
was only committed with Linux 6.2 and hence needs to be backported for
Linux 6.1.

Fixes: fa79baf4a6 ("generic: copy backport, hack, pending patch and config from 5.15 to 6.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-15 23:05:35 +08:00
Daniel Golle d6bd2cab60 mediatek: re-add dropped properties on BPi-R3
Unfortunately some device tree properties have slipped under the table
when switching from our downstream device tree.

Bring back 3W power for SFP cages and restore thermal trip points to
make sense again.

Fixes: 7a0ec001ff ("mediatek: sync MT7986 device trees with upstream")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-15 22:56:36 +08:00
Daniel Golle 12c2bc20d1 mediatek: use backported Ethernet PHY driver also for 5.15
Backport in-SoC Gigabit Ethernet PHY driver instead of carrying the
driver in files-5.15.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-14 22:51:25 +08:00
Daniel Golle a7509fafb9 mediatek: dts: mt7988a: wire-up mediatek,pio for PHY LEDs
The PHY driver needs to read a register containing the values of the
bootstrap pins (which happen to be the PHY LEDs) to determine the LED
polarities. Allow regmap access to first pinctrl bank by adding the
'syscon' compatible, and reference the pinctrl in the MDIO bus where
the PHY driver will look for it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-14 22:46:26 +08:00
Daniel Golle ebbf939276 mediatek: expose testing Linux 6.1 testing kernel
Set KERNEL_TESTING_PATCHVER:=6.1 to allow building all subtargets with
Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-13 22:11:05 +08:00
Daniel Golle f2be6935f8 mediatek: adapt kernel configuration for Linux 6.1
Update kernel configuration to build Linux 6.1 for all subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-13 22:09:10 +08:00
Daniel Golle 1eef526cb9 mediatek: copy config-5.15 to config-6.1 for all subtargets
To ease review, first copy all subtargets' kernel config-5.15 to the
to-be-adapted config-6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-12 22:54:20 +08:00
Daniel Golle e4165bcd1d mediatek: prepare old rtk switch driver for use with Linux 6.1
The old RealTek RTL8367S switch driver which is used for some MT7622
devices needs to be modified to no longer free the GPIO after reset
has completed.
This is due to Linux 5.19 removing devm_gpio_free via commit
2b038e786f83 ("gpiolib: devres: Get rid of unused devm_gpio_free()")

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-12 22:51:59 +08:00
Daniel Golle a47cff2bc4 mediatek: use DEVICE_DTC_FLAGS and drop DTC_FLAGS
The MT7986 RFB was intended to use device tree overlays and for that
reason modified DTC_FLAGS. zyxel_ex5601-t0-stock later on probably
copied it from there. Both boards do not actually use device tree
overlays, so remove setting DTC_FLAGS from both.

The BPi-R3 does use device tree overlays, use DEVICE_DTC_FLAGS to give
it an extra 4kb of padding for overlays to be applied.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:10:55 +08:00
Daniel Golle 5f201f97e8 mediatek: use DEVICE_DTC_FLAGS for BPi-R64
Make sure there is an extra 4kb of padding to apply device tree overlays
on the BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:09:27 +08:00
Daniel Golle 2d309fec97 image: introduce DEVICE_DTC_FLAGS and DEVICE_DTCO_FLAGS
Handle compiling device tree overlay blobs separate to allow for
overlays being compiled with different parameters, mostly to safe
space.
Allow defining DEVICE_DTC_FLAGS and DEVICE_DTCO_FLAGS as per-device
parameters to be passed to dtc. Previously some boards directly used
DTC_FLAGS in their build recipe which then also affected other boards.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:07:11 +08:00
Daniel Golle b018b4df31 mediatek: set new compat version if booted on R64 and R3
If the board comes up with OpenWrt that means that the bootloader is
recent enough and knows about the new device tree overlays.

Using /etc/board.d/ is not enough in this case because it doesn't
overwrite existing configuration which may exist (and is fine to exist)
if the user updated with 'sysupgrade -F *.itb' and has kept
configuration. They would still need to manually set compat_version
even though the fact that the bootloader env has been updated can be
implied by the fact that the system has started.

Hence we can always set compat_version=1.1 for those two boards using
uci-defaults.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:05:20 +08:00
Daniel Golle 4115f464ae generic: use only first element in bootconf for uImage.FIT
Now that it is possible to load several device tree overlays by
appending their config names to bootconf the uImage.FIT partition
parser need to discard everything after the first '#' character in
bootconf when looking up the config node to be used.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-10 22:55:04 +08:00
Daniel Golle 9f86d11f16 kernel: update FIT partition parser to new property name
The commit "uboot-mediatek: replace patch with accepted commit" changed
the name of the boot configuration property from 'bootconf' to
'u-boot,bootconf'. Reflect this change in the FIT partition parser.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-10 22:52:26 +08:00
Daniel Golle 801b8fdb85 mediatek: adapt files and patches for Linux 6.1
With Linux 6.1 many of our downstream patches and out-of-tree files
can be removed or at least replaced by backported upstream commits.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[fix CMDLINE_OVERRIDE for arm64]
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2024-02-09 21:06:36 +08:00
Daniel Golle 69ebf02aa6 mediatek: copy patches and files for Linux 6.1
First step only copies patches-5.15 and files-5.15 to
patches-6.1 and files-6.1 respectively.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-09 21:02:10 +08:00
Daniel Golle 1dbf719902 mediatek: sync MT7986 device trees with upstream
Sync device tree files for MT7986 boards with what landed in upstream
Linux tree to easy maintainance and also allow for a smooth update to
Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-08 21:21:12 +08:00
Daniel Golle db27068259 kernel: generic: improve FIT partition parser
* only map filesystems configured in 'loadables'
 * allow mapping more than one filesystem (e.g. customization/branding
   or localization in addition to rootfs)
 * small cleaning here and there

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-08 20:56:37 +08:00
arrio464 24e2cfc64f
upx: bump to v4.2.2 (#11878) 2024-02-07 19:41:57 +08:00
Beginner 0d84afc31a
kernel: bump 6.6 to 6.6.16 (#11875) 2024-02-07 12:07:27 +08:00
Beginner 2e862778a3
kernel: bump 6.1 to 6.1.77 (#11874) 2024-02-07 12:02:03 +08:00
Daniel Golle 0e8b0cf63d image: improve uImage.FIT device tree overlay support
Instead of generating full config nodes incl. kernel, generate minimal
config nodes for device tree overlays to be applied to the main config.
In this way, multiple device tree overlays can be applied more easily.
While at it change filenames to upstream style, ie. use dtso and dtbo
suffix for device tree overlays.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-06 13:38:35 +08:00
Daniel Golle b87a11fc43 kernel: generic: use chosen bootconf in FIT partition parser
If the selected boot configuration is stored by U-Boot in '/chosen'
node as 'bootconf' attribute, use that configuration to resolve the
block device used as rootfs. Fall back to use the default configuration
in case 'bootconf' is not present.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-05 23:00:35 +08:00
Daniel Golle 9072333533 generic: deny write to uImage.FIT sub-image partitions
Set policy bit to force read-only mode on uImage.FIT filesystem
sub-images mapped as block partitions by the FIT partition parser.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-05 22:58:59 +08:00
Daniel Golle 9ea2a9923a mediatek: use updated device tree overlay mechanism for BPi-R64
Use new device tree overlay mechanism for the BananaPi BPi-R64 board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-04 22:54:40 +08:00
Daniel Golle faded141e2 uboot-mediatek: adapt BPi-R3 and BPi-R64 to new device tree overlay
Update bootloader environment for BPi-R3 and BPi-R64 to adapt to new
device tree overlay mechanism now that support for multiple device
tree overlays has been added.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-04 22:50:57 +08:00
coolsnowwolf eb3e9ad2e3 mediatek: filogic: add support for CMCC RAX3000M (NAND and eMMC version) 2024-02-03 21:31:05 +08:00
aiamadeus 6606bb39b6 mediatek: add support for ABT ASR3000 2024-02-03 15:10:15 +08:00
Ivan Pavlov 64f24a2334 openssl: update to 3.0.13
Major changes between OpenSSL 3.0.12 and OpenSSL 3.0.13 [30 Jan 2024]

  * Fixed PKCS12 Decoding crashes
    ([CVE-2024-0727])
  * Fixed Excessive time spent checking invalid RSA public keys
    ([CVE-2023-6237])
  * Fixed POLY1305 MAC implementation corrupting vector registers on PowerPC
    CPUs which support PowerISA 2.07
    ([CVE-2023-6129])
  * Fix excessive time spent in DH check / generation with large Q parameter
    value ([CVE-2023-5678])

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2024-02-03 15:03:01 +08:00
coolsnowwolf 9ccbfda2bb Version update to R24.2.2 2024-02-02 22:26:03 +08:00
Beginner 458735dec7
kernel: bump 6.6 to 6.6.15 (#11857) 2024-02-02 11:01:16 +08:00
Beginner e3811adc69
kernel: bump 6.1 to 6.1.76 (#11858) 2024-02-02 11:00:06 +08:00
Daniel Golle d1f7b7d26d kernel: modules: package MT7986 audio drivers
Packages the audio drivers for the MediaTek MT7986 SoC used with
Wolfson WM8960 codec.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-01 22:19:58 +08:00
Daniel Golle e930707404 kernel: modules: break-out WM8960 codec module
Package codec module for WM8960 in its own package to be used by more
than one target.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-01 22:15:16 +08:00
Arimune 299db83def
Add support for Marvell 88W8897 SDIO (#11853) 2024-01-31 12:26:54 +08:00
aiamadeus 2843c0b911 gpio-button-hotplug: fix probe failed 2024-01-31 11:20:35 +08:00
aiamadeus e0ea643c5b ipq60xx: add 1.5GHz CPU frequency 2024-01-31 11:18:11 +08:00
aiamadeus 6c52d1ded1 ipq60xx: add GL.iNet GL-AX1800 support 2024-01-31 00:30:15 +08:00
coolsnowwolf e4dedaf402 Add support to build qualcommax image 2024-01-30 18:04:25 +08:00
coolsnowwolf 5a74937732 ath11k-firmware: add ipq6018 support 2024-01-30 17:50:32 +08:00
coolsnowwolf b7fcf33b05 ipq60xx: rename target to qualcommax 2024-01-30 17:30:36 +08:00
coolsnowwolf 8fcf7f0915 ipq807x: rename target to qualcommax 2024-01-30 11:38:39 +08:00
coolsnowwolf cabbb92abd mac80211: ath11k: add ipq60xx support 2024-01-29 21:50:11 +08:00
coolsnowwolf 8bad26fbd3 package: support qualcommax target 2024-01-29 21:30:23 +08:00
coolsnowwolf 2feb51efeb Fix k3-firmware dependencies 2024-01-29 21:24:06 +08:00
coolsnowwolf 8a89f464cb x86: fix sysupgrade failure 2024-01-28 16:09:53 +08:00
coolsnowwolf 7fd1b241b4 Fix photonicat-firmware dependencies 2024-01-28 15:40:16 +08:00
Beginner 053f193d01
kernel: bump 6.1 to 6.1.75 (#11830) 2024-01-27 08:03:21 +08:00
Beginner ab07e6a93e
kernel: bump 5.4 to 5.4.268 (#11834) 2024-01-27 08:02:23 +08:00
Beginner edb87675dd
kernel: bump 5.15 to 5.15.148 (#11832) 2024-01-27 08:01:24 +08:00