1225 Commits

Author SHA1 Message Date
c127dev
da89b16295 fix: address CodeRabbit review (codec error handling, Kconfig constraints and DTS typos)
Signed-off-by: c127dev <contact@c127.dev>
2026-03-28 00:08:59 +01:00
c127dev
2a85514a8c uboot: rockchip: rk3588: add Orange Pi 5 Pro support
This commit adds a suite of 4 patches for U-Boot v2025.10 to enable
full support for the Xunlong Orange Pi 5 Pro SBC.

The Orange Pi 5 Pro introduces several significant hardware departures
from the base Orange Pi 5, necessitating specific driver and DTS
adjustments:

1. Networking (Motorcomm YT6801):
   - The Pro variant replaces the SoC's built-in GMAC1 NIC with a
     PCIe-attached Motorcomm YT6801 controller.
   - Introduce a new glue driver (dwc_eth_qos_motorcomm) to bridge
     the core DWC EQoS IP to the PCIe bus.
   - Core EQoS driver is modified to support the YT6801's unique
     32-byte descriptor size and Descriptor Skip Length requirements.
   - Auto-generation of MAC addresses from CPU ID is disabled to
     preserve the hardware's native eFuse MAC.

2. Audio and I/O:
   - Audio routing is moved from I2S1 to I2S2 (M1 mux) with the
     ES8388 codec on I2C3.
   - LEDs are remapped from GPIO to PWM control (PWM3/PWM15).
   - Headphone amplifier enable is remapped to GPIO4_PB5.

3. Thermal and Power:
   - PWM Fan control is implemented with a specific 20ms (50Hz)
     period. This is CRITICAL because the hardware's RC filter gate
     logic causes MOSFET overheating if standard 25kHz PWM is used.

4. Wireless:
   - Full support for the AP6256 module via SDIO and UART9.

Patch Summary:
- [0001] Board support (DTS, defconfig, doc). DTS based on initial
         submission by Dennis Gilmore.
- [0002] Motorcomm YT6801 PCIe glue driver and PHY support.
- [0003] Core EQoS driver extension for descriptor/DSL overrides.
- [0004] Rockchip board MAC setup bypass for Pro hardware.

Signed-off-by: c127dev <contact@c127.dev>
2026-03-28 00:08:59 +01:00
Tong
6c87c66153
Add Ariaboard Photonicat 2 support for rockchip64-6.18 (#9535)
* Add Ariaboard Photonicat 2 support for rockchip64-6.18

Board configuration:
- config/boards/photonicat2.csc

Kernel config:
- config/kernel/linux-rockchip64-current.config

Device tree:
- patch/kernel/archive/rockchip64-6.18/dt/rk3576-photonicat2.dts

RK3576 SoC patches (rockchip64-6.18):

  0001 gpio: rockchip: set input direction when request irq
    Author: Ye Zhang <ye.zhang@rock-chips.com>
    Source: [PATCH v5 4/4] gpio: rockchip: Update the GPIO driver
    https://lore.kernel.org/r/20241112015408.3139996-5-ye.zhang@rock-chips.com
    Series: https://lore.kernel.org/r/20241112015408.3139996-1-ye.zhang@rock-chips.com

  0002 mmc: dw_mmc-rockchip: add v2 tuning support
    Author: Shawn Lin <shawn.lin@rock-chips.com>
    Posted-by: Detlev Casanova <detlev.casanova@collabora.com>
    Source: [PATCH v3 2/3] Add dw_mmc support for rk3576
    https://lore.kernel.org/r/20240814223555.3695-3-detlev.casanova@collabora.com
    Series: https://lore.kernel.org/r/20240814223555.3695-1-detlev.casanova@collabora.com

  0003 pmdomain: rockchip: Add always on configuration
    Author: Finley Xiao <finley.xiao@rock-chips.com>
    Source: Rockchip BSP (not posted to lore.kernel.org)

  0004 dt-bindings: pwm: Add a new binding for rockchip,rk3576-pwm
  0005 mfd: Add Rockchip mfpwm driver
  0006 pwm: Add rockchip PWMv4 driver
  0007 counter: Add rockchip-pwm-capture driver
  0008 arm64: dts: rockchip: add PWM nodes to RK3576 SoC dtsi
    Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
    Source: [PATCH v3 0/5] Add Rockchip RK3576 PWM Support Through MFPWM
    https://lore.kernel.org/r/20251027-rk3576-pwm-v3-0-654a5cb1e3f8@collabora.com

  0009 arm64: dts: rockchip: add dma-coherent for pcie and gmac of RK3576
    Author: Shawn Lin <shawn.lin@rock-chips.com>
    Source: https://lore.kernel.org/r/1764313762-78063-1-git-send-email-shawn.lin@rock-chips.com

U-Boot:
- patch/u-boot/v2026.01/board_photonicat2/

BSP:
- extensions/photonicat-pm.sh

* Rebase patch against v6.18.19

* photonicat-pm: replace wget with curl for DKMS package download
2026-03-23 11:08:45 +01:00
EvilOlaf
1cfbb9aee0 uboot v2026.04: rewrite patches 2026-03-23 11:04:26 +01:00
Thorsten Maerz
23c56cf558 mksklipad50: fix devicetree opp voltage settings
Voltages for "gpu_opp_table" and "vdd_arm" were wrongly using default
values instead of the customized values from the vendor image, leading
to dmesg errors like
[   19.709834] core: _opp_supported_by_regulators: OPP minuV: 1075000 maxuV: 1075000, not supported by regulator
[   19.710075] lima ff300000.gpu: _opp_add: OPP not supported by regulators (200000000)	0xBEBC200

Thanks to Shadowrom2020 for noticing.
2026-03-21 06:51:52 +01:00
SuperKali
f2b0bab2d0 u-boot: mekotronics-r58x-pro: replace DTS symlink with real copy
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
2026-03-20 15:39:23 +01:00
SuperKali
b2bd84dce0 rockchip64: rk3588: update I2S MCLK gate patches to match upstream v3
Update the I2S MCLK output gate clock patches to match the upstream v3
series. Changes from previous version:

- Split into 4 patches (was 3): added separate patch for
  RK3588_SYSGRF_SOC_CON6 define in rk3588_grf.h
- Use named constant RK3588_SYSGRF_SOC_CON6 instead of magic 0x0318
- Add u-boot patch for clock ID bindings (needed by board DTS files)

6.18 uses kzalloc(sizeof(...)) as kzalloc_obj is not available.
7.0 uses kzalloc_obj as recommended by upstream reviewer.

Upstream: https://lore.kernel.org/linux-rockchip/20260320-rk3588-mclk-gate-grf-v3-0-980338eacd2c@superkali.me/
2026-03-20 15:39:23 +01:00
Shadowrom
73dfccbb8e fix defconfig patch
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
2026-03-20 11:32:46 +01:00
Jürgen Herrmann
12651f0aba
Add support for qidi x-* boards (#9564)
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Data: Sync board list / Send dispatch (push) Has been cancelled
* Add GPU operating points and modify power controller

Makerbase power control adaptions due to voltage regulator limitations

* Add GPU operating points to rk3328-mkspi.dts

Makerbase power control adaptions due to voltage limitations

* Add GPU operating points to rk3328-mkspi.dts

* Remove unused gpu-opp-table node

* Remove unused gpu-opp-table node

* Remove unused gpu-opp-table node from device tree

* revert changes to kernel 6.12

* Add initial support for Qidi-X boards

* enable uart1 by default

* disable spi for screen and touch

* remove spi0 reference

* fix typo

* add new dts to kernel 7.0

* remove unused leds and unused drive

* fix storage

* disable sound output

* fixes for nitpick comments

* fix default device tree

* fix accidental changes

* changed supported boards comment
2026-03-20 00:58:48 +01:00
Ricardo Pardini
65aeda3d9d odroidn2: u-boot: bump to v2026.04-rc3; make fancy, incl LWIP
- fancy: EFI debug, compression, LED, networking with LWIP
- Kwiboo has worked his magic on LWIP in 2026.04
- Use flashcp to write to SPI (mine needed a few times, as my flash is old and failing)
- Move FIP handling from family to board file, but still the same
- flash blue led in preboot once
- adapt 24Mhz mmc patch
2026-03-15 20:26:59 +01:00
Austin Lane
c1472ad132 rockchip: Add CSC board EByte ECB41-PGE (RK3506G) 2026-03-15 20:26:12 +01:00
retro98boy
631abc02c2 CAINIAO CNIoT-CORE: U-Boot: Add a method to prioritize booting from USB drive via the power button
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
2026-03-14 17:18:47 +01:00
retro98boy
7cda4b479b CAINIAO CNIoT-CORE: Improvement and GPIO fix in dts 2026-03-14 17:18:47 +01:00
retro98boy
addbce18a7
csc board: Add NORCO EMB-3531 initial support (#9456)
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
2026-03-10 08:26:16 +01:00
Ricardo Pardini
564493b8ac mekotronics: u-boot: change DT symlinks to rockchip64-7.0 (from 6.19)
- u-boot DT symlinks are not such a great idea during kernel bumps
2026-03-09 19:36:59 +01:00
EvilOlaf
2653bd6f5b orangepi5: rewrite uboot patches against v2026.04-rc3 2026-03-02 16:15:15 +01:00
EvilOlaf
8821837c01 orangepi5: bump u-boot to v2026.04-rc3 2026-02-28 22:28:29 +01:00
Ricardo Pardini
692583a57c mekotronics-r58x-pro: mainline u-boot v2026.04-rc2; mainline 6.19 kernel (edge)
- with its own defconfig (identical to r58x-4g)
- own DT symlink
- fix the vendor DT (was missing the `maizhuo` suffix - no dial gpio keys)
2026-02-25 07:49:59 -03:00
Patrick Yavitz
57694c740d Set devtype devnum and distro_bootpart var when booting from nvme
This will ensure future boot scripts should function correctly.

Tested-on: BPI-F3 and MusePi Pro
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-24 08:17:39 -05:00
Patrick Yavitz
a4de6bfd42 SpacemiT: Quiet MBR support
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-24 08:17:39 -05:00
Patrick Yavitz
0d8faf47da SpacemiT: Update OpenSBI/U-Boot to k1-bl-v2.2.9-release
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-24 08:17:39 -05:00
Martin Schmiedel
59b45120eb MBa8MPxL: update linux and u-boot
- update linux to 6.18.y
- use latest tq-uboot

Signed-off-by: Martin Schmiedel <martin.schmiedel@tq-group.com>
2026-02-23 22:59:11 +01:00
Mecid
77f919f6cd
Rock-4D: Add Edge + RK3576 Mainline U-Boot (with UFS support) (#9421)
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
* Rock-4D: Edge (u-boot and kernel)

* RK3576: Mainline u-boot ufs boot enablement patches

* Rock-4D: Use Mainline u-boot 2026.04-rc2

* Rock-4D: Update KERNEL_TEST_TARGET to edge

* Rock-4D: Use Mainline u-boot on vendor and edge

* Remove vendor branch check for mainline uboot
2026-02-20 21:55:32 +01:00
Sven-Ola Tuecke
77477699b2 OrangePi-RV2/R2V: fix copy/paste error in DT model string
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
1a129fb721 Spacemit: rename patch comment to match patch content
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
27dcadab8f Spacemit: re-add wrongly removed OrangePi RV2 flash chip
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
b99f4bc53b Spacemit: revert XMC flash chip addon, use .config instead 2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
6326273663 Patch fixup to prevent .orig
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
2c8090aaaa OrangePi-RV2: u-boot FIT configs for rv2 and r2s (auto-selected via TLV chip setting)
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
023a546233 OrangePi-RV2: u-boot support for XM25QH128A flash
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Ricardo Pardini
37c5cf652b mekotronics-r58x-4g: u-boot: create -u-boot.dtsi via hook
- saves one .dtsi file in patch/.../dt_uboot
- I had the wrong name (missing `-u-boot` suffix) too so this fixes it too
2026-02-19 09:00:15 -03:00
Ricardo Pardini
576c709fb4 mekotronics-r58x-4g: u-boot: enable tpcm/fusb302 support
- also `tcpm` cmd for debugging
2026-02-19 09:00:15 -03:00
Ricardo Pardini
7ef9f60bf6 mekotronics-r58x-4g: u-boot: bump to v2026.04-rc2 with symlink-shared DT
- u-boot v2026.04-rcX has bumped dt-rebasing to v6.18, thus it knows about
  NPU nodes now and we can simply symlink to kernel DT, reducing duplication by a lot
2026-02-19 09:00:15 -03:00
Ricardo Pardini
c4fb17ca03 u-boot: v2026.04: prepare patching dir for v2026.04
- fileenv patch (same as v2026.01)
- fdt_fixup_ethernet logging patch (same as v2026.01)
- 0000.patching_config.yaml: defconfig/dt_upstream_rockchip/dt_uboot
- notable in v2026.04:
  - dt-rebasing bumped up to v6.18 (which has NPU nodes)
    - this allows us to share complete DTs between kernel and u-boot via symlinks
  - Kwiboo had a go at LWIP which should be usable now; Kwiboo rocks.
2026-02-19 09:00:15 -03:00
Ricardo Pardini
99df7c5760 mekotronics-r58x-4g: mainline u-boot v2026.01; mainline 6.19 kernel (edge)
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
- rockchip64-6.19: mainline kernel (edge/6.19):
  - most stuff works, incl 4G modem, NPU, RS-485, RS-232, HDMI-RX
  - except:
    - type-c (fusb302, I've no schematics nor will to reverse)
    - DisplayPort (I don't have test hardware)
    - Analog Audio (ditto)
- keep vendor u-boot for vendor branch
- mainline u-boot v2026.01:
  - same DT as edge kernel, save for NPU nodes
  - boot order: NVMe -> SATA -> USB -> eMMC -> Ethernet/PXE
  - stable MAC addresses for GMAC0/1 via DT aliases (confirm with logging patch)
2026-02-15 20:18:44 +01:00
Ian Leung
f1f9918752 Orange Pi 3B: Generate alternate SPI image for booting from SATA
This commit enables generation of `u-boot-rockchip-spi-sata.bin`.
Flashing this to SPI flash enables U-Boot to communicate with an
attached SATA m.2 SSD, thereby allowing booting directly from SPI flash
to SATA SSD.
2026-02-15 20:17:20 +01:00
Austin Lane
396ccb439c rockchip: Add CSC board ForLinx OK3506-S12 (RK3506J) 2026-02-12 19:35:49 +01:00
Austin Lane
e2421ab485 RK3506: Pin U-Boot to known-working commit
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Data: Sync board list / Send dispatch (push) Has been cancelled
Kwiboo's `rk3506` branch is WIP / rebased often. Pin to commit hash while upstreaming work is underway.

Also revert (broken) changes that attempted to keep up with this branch.
2026-02-12 01:30:43 +01:00
Ian Leung
a792906065 Orange Pi 3B: Update config
Changes:
- Bump U-Boot to v2026.01
- Add "current" option to kernel target
- Simplify U-Boot processes
2026-02-09 00:27:51 +01:00
Patrick Yavitz
e778848389 OrangePi 3 LTS: Update u-boot defconfig
Source of defconfig additions and mmc patch:
https://github.com/LibreELEC/LibreELEC.tv/tree/master/projects/Allwinner/patches/u-boot

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-08 06:22:47 -05:00
okrc
09b7895004 Radxa-E52C: normalize u-boot patches
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Signed-off-by: okrc <okrc@hexo.dev>
2026-02-07 09:12:37 -06:00
okrc
b31f093eb0 Radxa E52C: add mainline U-Boot support and kernel target configuration
Signed-off-by: okrc <okrc@hexo.dev>
2026-02-07 09:12:37 -06:00
Patrick Yavitz
d984ed1649 OrangePi 3 LTS: Add ethernet support to u-boot defconfig
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Data: Sync board list / Send dispatch (push) Has been cancelled
Consolidate all defconfig patches to one patch.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-06 08:27:47 -05:00
Milivoje Legenovic
1890d7f656 Odroid-M2: update uboot to v2025.10
Some checks failed
Data: Sync board list / Send dispatch (push) Has been cancelled
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
2026-02-05 10:53:09 +01:00
Patrick Yavitz
5e8cca7279 OrangePi 3 LTS: Fixup u-boot LED nodes
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-05 01:04:23 +01:00
Patrick Yavitz
1e5512da7d OrangePi 3 LTS: Remove property kaslr-seed from chosen node
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-04 06:50:27 -05:00
Patrick Yavitz
1df4c30aaa OrangePi 3 LTS: Add DTS and DEFCONFIG to u-boot v2026.01
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-04 06:50:27 -05:00
Patrick Yavitz
7998491d80 KickPi K2B: Fixup typo in u-boot patch
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-03 07:42:47 -05:00
Patrick Yavitz
7e38101ed6 BPI-M4-Zero / KickPi K2B: Update u-boot to v2026.01
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-02-03 07:42:47 -05:00
Igor Pecovnik
956b70340d forge1: switch to RK3506J variant and add OPTEE support
- Change BOOTCONFIG from rk3506b to rk3506j variant
- Update btrfs patch to target correct defconfig
- Add OPTEE image support for secure boot functionality
2026-02-01 17:46:14 +01:00