5274 Commits

Author SHA1 Message Date
Milivoje Legenovic
28862c7c0e Odroid-M2: Fix USB-C port in OTG mode
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
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
2026-04-05 07:13:17 +02:00
EvilOlaf
ee436991e8 rockchip64-6.18: rewrite kernel patches against 6.18.21
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-04-03 09:06:52 +02:00
Milivoje Legenovic
db136dc811 Odroid-M2: Add support for Hardkernel ODROID-Vu8S panel
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
2026-04-03 07:41:18 +02:00
kay-lambdadelta
9d0073e243 Fixed missing MIPI_DSI_MODE_VIDEO
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-31 12:49:46 +02:00
EvilOlaf
8f7e151b9d sunxi-7.0: restore original patch headers again
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
@rpardini How to prevent that?
2026-03-30 17:06:13 +02:00
EvilOlaf
ba5599d48c sunxi-7.0: rewrite kernel patches for 7.0-rc6 2026-03-30 17:06:13 +02:00
EvilOlaf
30c3bce26d uefi-x86-7.0: rewrite kernel patches for 7.0-rc6 2026-03-30 17:06:13 +02:00
EvilOlaf
41fd17871c rockchip64-7.0: rewrite patches for 7.0-rc6 2026-03-30 17:06:13 +02:00
Patrick Yavitz
57f51bc199 SpacemiT: Disable k1-usb: add disconnect function support
Patch made it upstream.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-03-30 05:59:54 -04:00
EvilOlaf
8324bee7d6 sunxi-6.18: restore original patch headers
make them persistent against rewrites
2026-03-29 17:38:42 +02:00
EvilOlaf
9b317850f8 sunxi-6.18: rewrite kernel patches for 6.18.20 2026-03-29 17:38:42 +02:00
Igor Pecovnik
b993528b67 sunxi: remove BSP GMAC/EPHY patch that breaks H6 internal EMAC
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
The chraac BSP patch (driver-allwinner-h618-emac / 0203) introduced
conflicting out-of-tree drivers (sunxi-gmac, sunxi-ephy, sunxi-ac200)
that clash with the correct mainline AC200 stack already in place:
- sunxi-ac200.c conflicts with the mainline ac200.c (0201)
- sunxi-ephy.c conflicts with the mainline ac200-phy.c (0202)
- sunxi-gmac.c is an unnecessary BSP replacement for dwmac-sun8i
- removes of_gpio_flags enum from gpiolib-of.c, breaking other drivers
- depends on PWM_SUNXI_ENHANCE which doesn't exist in mainline

H6 internal EMAC is correctly handled by the mainline stack:
ac200.c + ac200-ephy-ctl.c (ac200-v3) + ac200-phy.c + DTS patches.
H618 EMAC is covered by dwmac-sun8i + drv-net-stmmac-dwmac-sun8i-
add-second-emac-clock patch.

Remove the patch from sunxi-6.12, 6.18 and 7.0, and drop the leftover
CONFIG_SUNXI_GMAC=m from the legacy kernel config. Also align
CONFIG_SUN4I_EMAC to =m (matching current/edge) in legacy config.

Signed-off-by: Igor Pecovnik <igor@armbian.com>
2026-03-28 22:01:33 +01:00
Shlomi Marco
01c18256c6 rockchip64: rk3528: fix ethernet PHY detection on NanoPi Zero2 (6.18 + 7.0)
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
Fix ethernet PHY not being detected on the NanoPi Zero2. The MDIO bus
scan was failing because the PHY reset GPIO was only defined on the
PHY child node inside the MDIO bus. The kernel processes this reset
after the MDIO scan, but the PHY needs reset released before it will
respond on the bus.

Move the reset control to the gmac1 node using snps,reset-gpios and
snps,reset-delays-us properties. The stmmac driver handles these
during MDIO bus registration, before scanning for PHY devices.

Also change CONFIG_MOTORCOMM_PHY from module (m) to built-in (y) in
the rockchip64 kernel config. As a module, the PHY driver loads too
late for the MDIO bus scan to find the PHY during boot.

Tested on hardware: ethernet link at 1000Mbps full duplex confirmed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 00:09:43 +01:00
Shlomi Marco
8e3d777f87 rockchip64: rk3528: enable USB OTG mode and fix PHY timer crash (6.18 + 7.0)
Enable USB OTG/gadget mode on the NanoPi Zero2 USB-C port by adding
extcon binding and snps,dis_u2_susphy_quirk to the DWC3 node. The
extcon binding coordinates role switching between the DWC3 and USB2
PHY OTG state machines, which previously conflicted and caused memory
corruption.

Also fix a use-after-free in the inno-usb2 PHY driver where the OTG
state machine delayed works (otg_sm_work, chg_work, sm_work) were not
canceled on driver removal. This caused a kernel panic ~2 seconds
after boot when dr_mode was set to "otg" or "peripheral". The fix
registers devm cleanup actions to cancel the works automatically.

Tested on hardware: USB-A host port, USB-C gadget (NCM ethernet),
and USB-C OTG mode all verified working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 00:09:43 +01:00
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
0d118c45ec kernel: rockchip64: add ASoC es8328 LRCK sharing fix
This commit introduces a patch for the rockchip64 kernel (current 6.18 and
edge 7.0 branches) to fix audio routing issues affecting the ES8328 codec.

The patch modifies the ASoC es8328 driver to explicitly allow sharing the
LRCK (Left/Right Clock) between the microphone and playback interfaces.
This is required for hardware designs where capture and playback must share
the same clock line.

Signed-off-by: c127dev <contact@c127.dev>
2026-03-28 00:08:59 +01:00
c127dev
d7541bf0fd boards: rockchip64: rk3588: add Orange Pi 5 Pro support to edge kernel
This commit enables full support for the Orange Pi 5 Pro on the edge
Linux kernel (rockchip64-7.0). It synchronizes the device tree additions
with the current kernel and includes the necessary eFUSE MAC address fix for
the Motorcomm Ethernet controller.

Key additions and modifications:

1. Device Tree Updates (rk3588s-orangepi-5-pro.dts):
   - Added support for DisplayPort 1.4 to HDMI 2.0 (DP0/VP2).
   - Configured USB3 Type-A ports (with USB2 OTG PHY) and explicitly set the
     USB-C port to power-delivery only (no FUSB302/data/alt-mode).
   - Configured combphy2_psu for NVMe M.2 slot support by disabling
     conflicting USB3 modes.
   - Re-mapped fan to PWM2 and LEDs to PWM3/PWM15.
   - Added full AP6256 Wi-Fi/Bluetooth support (SDIO and UART9).

2. Motorcomm YT6801 Ethernet Support (Patches):
   - Included fix for Motorcomm YT6801 eFUSE MAC address read failures
     on the 7.0 kernel.

Signed-off-by: c127dev <contact@c127.dev>
2026-03-28 00:08:59 +01:00
c127dev
0982ab8879 boards: rockchip64: rk3588: add Orange Pi 5 Pro support to current kernel
This commit enables full support for the Orange Pi 5 Pro on the current
Linux kernel (rockchip64-6.18). It includes a comprehensive device tree,
board configuration updates, and a series of patches for the PCIe Motorcomm
YT6801 Ethernet controller.

Key additions and modifications:

1. Device Tree Updates (rk3588s-orangepi-5-pro.dts):
   - Added support for DisplayPort 1.4 to HDMI 2.0 (DP0/VP2).
   - Configured USB3 Type-A ports (with USB2 OTG PHY) and explicitly set the
     USB-C port to power-delivery only (no FUSB302/data/alt-mode).
   - Configured combphy2_psu for NVMe M.2 slot support by disabling
     conflicting USB3 modes.
   - Re-mapped fan to PWM2 and LEDs to PWM3/PWM15.
   - Added full AP6256 Wi-Fi/Bluetooth support (SDIO and UART9).

2. Motorcomm YT6801 Ethernet Support (Patches 1-5):
   - Added generic suspend/resume helper for PCI-based controllers.
   - Backported glue driver for Motorcomm YT6801 and YT8531S PHY support.
   - Included fixes for eFUSE MAC address read failures.
   - Resolved specific stmmac/motorcomm driver compilation errors and
     panics on kernel 6.18.

3. Board Configuration (orangepi5pro.csc):
   - Refactored U-Boot configuration selection logic, segregating mainline
     and vendor branches correctly.
   - Configured the Armbian build system to automatically enable the newly
     added Motorcomm PHY, STMMAC_ETH, and STMMAC_PLATFORM kernel configs
     for the "current" and "edge" branches.

Signed-off-by: c127dev <contact@c127.dev>
2026-03-28 00:08:59 +01:00
Maxim Medvedev
391026f0af mkspi: fix devicetree opp voltage settings
Fix for `vdd_logic: Failed to set regulator voltages: -22` bug (starting from 6.18 kernel)

With reference to:
- https://github.com/armbian/build/pull/9569
- https://github.com/redrathnure/armbian-mkspi/issues/66

(cherry picked from commit 9cbfaf1394b261e70ddad30cb510f91f3e2bee90)
2026-03-28 00:08:02 +01:00
EvilOlaf
501ad52946 sunxi-6.18: drm/gem-dma: Support dedicated DMA device for allocation
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-27 15:19:07 +01:00
EvilOlaf
d944703ab8 sunxi-7.0: drm/gem-dma: Support dedicated DMA device for allocation 2026-03-27 15:19:07 +01:00
Patrick Yavitz
5c298a8075 SpacemiT: Update linux 6.6.99 to 6.6.100
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-03-26 19:52:06 -04:00
Patrick Yavitz
6e0ec8ba13 SpacemiT MUSE Book: Add the k1-musebook.dts
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2026-03-26 19:52:06 -04:00
Igor Pecovnik
c2df3920bc uefi-arm64-6.12: revert exit() API change 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
Remove patch 1003 which incorrectly changes exit() to pass struct device *
instead of struct platform_device *. In kernel 6.12, the signature is:
  void (*exit)(struct platform_device *pdev, void *priv);
2026-03-26 11:54:42 +01:00
Igor Pecovnik
5e9dafdd3d uefi-arm64-6.12: fix stmmac compilation errors
Remove incompatible patches that try to use non-existent kernel APIs:
- 1001: stmmac_axi_blen_to_mask() and axi_blen_regval don't exist in 6.12
- 1002: plat->core_type and DWMAC_CORE_GMAC don't exist in 6.12

The base patch (1000) already uses the correct 6.12 APIs:
- axi->axi_blen array
- plat->has_gmac field
2026-03-26 11:54:42 +01:00
EvilOlaf
f990145091 sunxi: fix iommu driver patch to allow compilation
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-26 07:27:57 +01:00
EvilOlaf
6ada2b002c sunxi-7.0: rewrite patches against rc5
kernel config rewrite was also done but resulted in no changes
2026-03-25 23:42:48 +01:00
EvilOlaf
8af35319e6 sunxi-7.0: fix iommu driver patch 2026-03-25 23:42:48 +01:00
EvilOlaf
d3cfe95412 sunxi-edge: rewrite kernel patches against 7.0-rc4 2026-03-25 23:42:48 +01:00
EvilOlaf
f737bb6fd6 sunxi-7.0: fix broken patch 2026-03-25 23:42:48 +01:00
EvilOlaf
7127ac5dda sunxi-7.0: adjust two patches to adapt for megi's changes 2026-03-25 23:42:48 +01:00
EvilOlaf
4daf7ffa43 sunxi-7.0: disable unneeded defcon patch from megi 2026-03-25 23:42:48 +01:00
EvilOlaf
6713e8e111 sunxi-7.0: fix context for iommu driver patch 2026-03-25 23:42:48 +01:00
EvilOlaf
a5b5766b88 sunxi-7.0: new series.conf 2026-03-25 23:42:48 +01:00
EvilOlaf
bb1753ac36 sunxi-7.0: copy over everything left 2026-03-25 23:42:48 +01:00
EvilOlaf
34ce4f9237 sunxi-7.0: extract all relevant branches from megi (again) 2026-03-25 23:42:48 +01:00
Igor Pecovnik
d99502e374 stmmac: Refactor Phytium ethernet patches into modular components
Split the monolithic Phytium ethernet driver patch into multiple
focused patches for better maintainability:

- 1000: Original Phytium onboard ethernet drivers and ACPI glue
- 1001: Adapt to stmmac removal of axi_blen array
- 1002: Adapt to stmmac replace has_xxxx with core_type
- 1003: Adapt to stmmac pass struct device to init/exit methods
- 1004: Fix stmmac compilation warnings

Signed-off-by: Igor Pecovnik <igor@armbian.com>
2026-03-25 23:39:10 +01:00
EvilOlaf
c53e3b4e2e uefi-arm64: rewrite patches for 7.0-rc4 2026-03-25 22:48:50 +01:00
EvilOlaf
d7a1a0fe62 uefi-x86: rewrite kernel patches to 7.0-rc4 2026-03-25 22:48:50 +01:00
EvilOlaf
52aba9a656 uefi-edge: move loong64, arm64 and x86 patches to 7.0 2026-03-25 22:48:50 +01:00
EvilOlaf
527c94de18 rockchip64-6.18: rewrite patches against 6.18.20 2026-03-25 22:44:51 +01:00
EvilOlaf
7af2c39e5c uefi-x86-6.18: rewrite kernel patches against 6.18.20 2026-03-25 22:44:39 +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
Alex Ling
33699ef1b7 sm8550-6.18: Fix TF card IO performance regression
- Fix the issue that downstream MSM sdhc driver cannot work on 6.18.14
   or newer kernel
 - Switch back to downstream MSM sdhc driver for Ayn Odin2 devices to
   fix the IO performance regression brought by upstream driver.

Before this fix, average sequential read bandwidth on a UHS-I SDR104
card is 16.8MiB/s. After this fix applied, it is 85.1MiB/s.

It fixes commit f785a6d9fdd2f6751f739d6863e1beec6d98484b

Signed-off-by: Alex Ling <ling_kasim@hotmail.com>
2026-03-23 11:07:32 +01:00
RubyComm
39ee5e7c10
nanopi-zero2: add USB support for RK3528 (current + edge) (#9500)
* rockchip64: add USB support for RK3528 / NanoPi Zero2 (6.18 + 7.0)

Add three kernel patches for USB support on the RK3528 SoC:
- phy-rockchip-inno-usb2: Add RK3528 USB2 PHY driver support
- rk3528.dtsi: Add xHCI, EHCI, OHCI and USB2 PHY device tree nodes
- nanopi-zero2: Enable USB host and OTG ports

Tested on hardware: USB storage, PCIe (AX210 WiFi) all working.

* rockchip64: fix USB patches for RK3528 (6.18 + 7.0)

- Fix error handling in USB2 PHY tuning: use individual return checks
  instead of ret |= pattern (thanks @coderabbitai)
- Remove power-domains properties from USB DTS nodes: causes kernel
  panic (synchronous external abort in rockchip_pmu_set_idle_request)
  as RK3528 PMU idle request registers are not ready for these domains
- Fix patch hunk headers to match updated line counts

Tested on hardware: both current (6.18) and edge (6.19) boot
successfully with working USB.

* rockchip64: rk3528: change USB-C dr_mode from host to otg (6.18 + 7.0)

The DWC3 controller on the NanoPi Zero2 USB-C port was set to
host-only mode, preventing USB gadget functionality. Change to
OTG mode to support both host and peripheral use cases.

* rockchip64: rk3528: fix USB PHY regmap and revert dr_mode to host (6.18 + 7.0)

Fix the USB2 PHY driver probe to use phy_base for port register access
instead of the vo_grf syscon. The RK3528 PHY port registers (UTMI
status, VBUS detection, etc.) reside in the PHY register space, not
in the Video Output GRF. Using the wrong regmap caused register
accesses to hit unrelated hardware when the OTG state machine runs.

Revert dr_mode back to "host" as OTG/peripheral mode triggers a kernel
panic from timer corruption during DWC3 gadget initialization. This
needs further investigation before OTG support can be enabled.
2026-03-23 11:06:11 +01:00
retro98boy
84c67d2e8e HACK: Ignore SError to enable rk3399 PCIe bus enumeration 2026-03-23 11:04:55 +01:00
Jürgen Herrmann
a0e11ec3ec
Qidi X-6: fix devicetree opp voltage settings (#9577)
* change regulator-min-microvolt to 1.4V

* adapt new voltage regulator values

* revert vdd_arm regulator due to boot time errors

* revert vdd_arm min voltage due to errors

* Generic aic8800-dkms.sh extension

* fix typo in filename

* remove file
2026-03-23 11:03:58 +01:00
kay-lambdadelta
ef2fa1f006 Fix application of Retroid Pocket 5/mini device trees 2026-03-23 07:37:05 +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
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