Thermal: Armbian's sun50i-a64.dtsi patch powers the board off at 90 C,
where mainline and Allwinner's BSP use 110 C and the A64 is rated below
125 C junction. A fanless Recore at full load reached 90 C within a minute
and switched itself off until power-cycled. With these trips - 75 C and
85 C passive, the second straight to the lowest OPP (648 MHz), critical at
105 C, and passive polling at 250 ms (0 left step_wise too slow) - the same
board held about 76-88 C for 15 minutes at full load. cpu_alert1 becomes
passive because step_wise skips hot trips, so its map never acted.
ramoops: 1 MiB at 0x6ff00000, between U-Boot's initrd and device tree and
the CMA pool, so the kernel's last messages survive a reboot in
/sys/fs/pstore. Used with CONFIG_PSTORE_RAM (next commit).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The A5 and A6 trees set assigned-clock-rates on the Mali without
assigned-clocks, so the rate names no clock and is never applied: the GPU
runs at whatever rate it inherits (about 297 MHz). Name CLK_GPU.
180 rather than the 120 MHz that was meant: on an A6, fullscreen Mali
rendering with memtester on locked RAM gave memory errors at 240 MHz and
none in three passes at 180 MHz; both boards share a DRAM part that is
marginal under combined GPU and memory load.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RK3568 boards with NVMe (Odroid M1) loop in Root Port reset on edge 7.3
and never mount the rootfs. The 7.3 link-down recovery resets the Root
Port on every LINK_REQ_RST_NOT interrupt; the reset re-raises that
interrupt after the link is already up, so recovery repeats forever.
Recover only when the link is genuinely down. Keep the feature.
Tested on: Odroid M1 (RK3568) with NVMe, edge 7.3.0-rc6. Boots to login,
nvme0n1 enumerates, zero Root Port resets.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
The driver now shares the SD lines at probe, so it has to probe after
the regulators that own them: vqmmc-supply and vmmc-supply on ODROID-C4/
HC4 and JetHub D2, vqmmc-supply on BananaPi CM4. BananaPi M2S has no
regulator on these lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GPIOE_2 belongs to gpio_ao, as the board's TF_IO regulator already has
it. On the EE bank the same number is GPIOZ_14, the RTL8211F interrupt
line, which meson64-reboot would drive at restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without regulator-always-on the card stays unpowered after a warm
reboot, and the boot ROM does not power the slot itself: with the SPI
NOR erased, HC4 loops in the ROM on SD:800. meson64-reboot power-cycles
the card at restart and leaves it powered, so the mainline property can
stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The driver stopped building on 7.x when <linux/of_gpio.h> was removed.
Port it to the descriptor API and keep only the SD card power cycle on
restart.
The lines belong to the SD regulators: regulator-gpio requests the IO
voltage switch exclusively, and the regulators configure the lines from
their own DT flags. Wait for the regulators named by vqmmc-supply and
vmmc-supply, then share their descriptors at probe. The power cycle runs
from a SYS_OFF_MODE_RESTART handler, which emergency_restart() calls as
well, so SysRq-B and a reboot after a panic also reset the card.
The power-off override with the vendor SiP call is dropped; power-off
keeps using PSCI. On HC4 with 6.18.55 the override hangs `poweroff`
after "reboot: Power down" (RCU stall, CPUs 1-3 offline); edge, which
has no override, powers off cleanly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename only, the content is Patrick's original; on edge and
bleedingedge this re-enables the patch. The gpiod port and the DT
property rename follow as separate patches of the series.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- t2-related stuff is heavily in-flux upstream
- a dozen of applet2's patches vs -rc5 don't apply vs -rc6
- for now just drop and let's wait for folks
- .config: re-do, t2's patches had broken `SND` stuff, restore, rewrite
Vendor-kernel DTS changes belong in armbian/linux-rockchip, not the
build framework (per review). Keep only the mainline rockchip64
(current/edge/bleedingedge) patches here. Vendor fix opened separately
against the kernel repo.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Same change for rockchip64 current (6.18), edge (7.2) and
bleedingedge (7.3). The OPi5 sd-uhs-sdr104 lives in the shared
upstream rk3588s-orangepi-5.dtsi; the &sdmmc block is identical
across all three, so one patch applies to each. Precautionary.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Suspected cause of intermittent SD corruption on OPi5. Drop the
marginal UHS SDR104 (150 MHz) mode; slot falls back to high-speed
(50 MHz, 3.3 V). Precautionary, not yet proven. Validated on hardware:
card drops SDR104 -> high-speed, ~22 MB/s, soak clean.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
- propagate a failed phy_init_hw(): __stmmac_open() now jumps to
init_error instead of continuing into stmmac_hw_setup() with an
unconfigured PHY, and stmmac_resume() unlocks rtnl and returns the
error instead of continuing into the DMA reset, matching the existing
hw_setup failure path in each function.
- maxio_read_paged()/maxio_write_paged(): check the page-select write
and stop immediately if it fails; propagate a failed restore of
MAXIO_PAGE_SELECT instead of reporting success.
- config_init(): count read/write failures while clearing the PHY-side
RGMII TX/RX delays, so an un-cleared delay no longer looks like a
successful init.
- maxio_adcc_check(): treat a negative paged read as an error rather
than as an ADC bit pattern, so failed reads can no longer make
maxio_self_check() report success and bypass the config_init check.
Verified with patch --dry-run and git apply --check against the Armbian
6.18.53 worktree, pristine v6.18.53 and v7.2, plus compiling both
modified files with the worktree's own gcc invocation (no warnings).
- stmmac_resume(): run the ID-guarded phy_init_hw() after
phylink_prepare_resume(), so the vendor config_init runs again. The
Maxio resume callbacks issue BMCR_RESET, which drops the vendor clock
configuration that provides the RX clock, otherwise the DMA reset can
fail with "DMA engine initialization failed" after resume.
- make the file-local helpers static: with CONFIG_MAXIO_PHY=y they
otherwise leak into the global namespace.
- maxio_read_paged()/maxio_write_paged(): return the negative page-read
error immediately instead of writing it back to MAXIO_PAGE_SELECT.
- both config_init() implementations: log the failure and return -EIO
instead of always returning 0; drop the no-op "ret |= 1".
- maxio_mae0621a_probe(): use msleep() instead of busy-waiting mdelay().
Refresh the embedded diffstat and hunk headers. Verified with
patch --dry-run and git apply --check against the Armbian 6.18.53
worktree, pristine v6.18.53 and v7.2.
KickPi K2B V2 (hardware revision V2.2, DDR3) uses a Maxio MAE0621A
Gigabit PHY (PHY ID 0x7b744411) on the RGMII port. Without a driver the
generic PHY driver binds, but it never programs the clock-mode
registers, so the PHY does not drive the RGMII RX clock and
sun8i_dwmac_soft_reset() times out with "Failed to reset the dma".
The driver also clears the PHY-side 2ns TX/RX delays (page 0xd08,
TXCR 0x11 bit8 / RXCR 0x15 bit3) so that only the MAC-side
allwinner,{tx,rx}-delay-ps from the DTS apply; otherwise frames above
~800 bytes are dropped at 1G.
Ported from patch/kernel/archive/rockchip64-7.2/general-drv-net-phy-
Add-maxio-phys-driver.patch and registered in series.conf for both
kernel patch directories used by sun50iw9-bpi (current = 6.18,
edge = 7.2).
Verified with `patch --dry-run` against v6.18, v6.18.53 and v7.2.
With the OTG-C port dual-role, its PHY had phy-supply = <&otg_switch>.
The PHY is powered whenever dwc3 is up, so the rk817 boost drove VBUS
permanently; the rk817 then measured its own ~4.7 V as charger input and
ignored a real charger on the DC port, so the battery never charged
under Linux (reported by a user; unbinding fcc00000.usb made it charge
immediately).
Drop the phy-supply and hand OTG_SWITCH to a regulator-output node
instead. VBUS is off at boot, so a charger is detected on plug/unplug
and the battery charges (~1.5 A measured); the new rgds-otg helper
switches it on through the node's sysfs "state" when a bus-powered
device needs power, and off again to charge. With VBUS on, charging
stops (measured: ~470 mA discharge), which is why it is not the default.
Enable CONFIG_REGULATOR_USERSPACE_CONSUMER on edge and bleedingedge for
the node, and document the switch in the controls README.
Signed-off-by: crackerjacques <jack@supremeoverlordjabs.co>
- fix fd655 digits on segment display
- also fix indentation (tabs, not spaces)
- fix indentation under the mali node; use tabs, not spaces
- describe LED (red:status) heartbeat
- fix fd655 digits on segment display
- also fix indentation (tabs, not spaces)
- fix indentation under the mali node; use tabs, not spaces
- describe LED (red:status) heartbeat
* improved usb3 support on kernel 6.18, 7.3, and 7.2
7.2 got an experimental feature allowing usb3 to be switched from "host mode to “peripheral mode.
After more testing, if its working, will be added to kernel 7.3 and 6.18.
* minor fixes
* added warning in README file of kernel 7.2 overlay regarding CM5 dtso.
---------
Co-authored-by: ECO1AI <ECO1AI@github.com>
* d1: backport the module loading fix for modern GCC
GCC unwind tables cause unsupported relocations in D1 kernel modules.
Disable unwind tables so modules required during boot can load.
Backport upstream commit 2f394c0e7d1129a35156e492bc8f445fb20f43ac.
Tested on MangoPi MQ Pro hardware: PASS.
* d1: backport the ext4 online resize checksum fix
Online rootfs expansion can leave invalid ext4 superblock checksums.
Update the checksum after the overhead value changes.
Backport upstream commit a408f33e895e455f16cf964cb5cd4979b658db7b.
Tested on MangoPi MQ Pro hardware: PASS.
* sunxi: backport the D1 kernel memory handoff fix
Adapt upstream 43177705ab29 for D1. Prevent the kernel from rejecting its initrd.
Tested on MangoPi MQ Pro hardware: PASS.
* mangopi-mq: replace bundled boot firmware with source builds
Use built Boot0, OpenSBI, and U-Boot instead of bundled firmware. Keep GPT entries outside firmware slots.
Tested on MangoPi MQ Pro hardware: PASS.
* mangopi-mq: retain the existing kernel DTB
Keep the Nezha kernel DTB for the source firmware transition.
The MQ Pro DTB lacks routing required by the current audio driver.
* d1: include the RTL8723DS Wi-Fi driver
The D1 kernel configuration selects RTL8723DS, but the driver is omitted.
Include the driver for MangoPi MQ Pro SDIO Wi-Fi.
Tested on MangoPi MQ Pro hardware: PASS.
* d1: backport wireless regulatory database certificate fixes
The D1 kernel cannot validate databases signed by the current upstream maintainer.
Backport the certificate and its build fix.
Select the upstream-signed database when the distribution provides it.
Tested on MangoPi MQ Pro hardware: PASS.
Review point: the fanout removal was validated against a K2B V2.2
image, not V1 hardware, and the V1 AIC8800 SDIO radio may need the
external 32 kHz clock. Put the four properties back in both archives
(upstream state; x32clk_fanout_pin comes from arm64-dts-sun50i-h616-
add-i2c-uart-pinctrl) and keep the 200 ms power-on delay. The
kickpi-k2b-v2 file keeps its own pwrseq: the DTB extracted from the
verified K2B V2.2 image has no fanout. Both archives compile.
dt-validate (CHECK_DTBS=y) flagged the vendor-style node name:
rtc8563@51 (haoyu,hym8563): $nodename:0: 'rtc8563@51' does not match
'^rtc(@.*|-([0-9]|[1-9][0-9]+))?$'
Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml requires
'rtc@51' (example in the binding), matching every upstream hym8563
user. Nothing references the old node name (no label consumers, no
/aliases entry, u-boot dts has no RTC node), so the rename is purely
schema-conformance; the driver still binds via compatible.
Validation after the change (6.18 archive, kernel make CHECK_DTBS=y):
exit 0, warnings 84 -> 83, the rtc warning is the only one removed,
no new warnings. Both sunxi-6.18 and sunxi-7.2 copies updated
(byte-identical), cpp+dtc compile green for both.
Add sun50i-h618-kickpi-k2b-v2.dts for sunxi-6.18 (current) and
sunxi-7.2 (edge), derived from the existing kickpi-k2b DTS (Patrick
Yavitz) with the V2.2 changes:
- model/compatible "KICKPI K2B V2" / "kickpi,kickpi-k2b-v2"
- enable ehci3/ohci3 (USB3), i2c3 with a Haoyu HYM8563 RTC at 0x51,
spi1 and uart5 (Bluetooth), and label the system LED "sys_led"
- instantiate the AXP313A PMIC via the axp313a.dtsi include already
carried by Armbian instead of an inline copy, and override the
DRAM regulator to 1.5 V
- attach the GPU OPP table for DVFS
sun50i-h616-gpu-opp.dtsi does not exist in mainline; this adds the
10-entry table (306-600 MHz, target 810-950 mV, 990 mV ceiling)
recovered from the DTB of a KickPi K2B V2.2 image verified to boot
on hardware. The voltages line up with this board's vdd-gpu-sys
regulator range (810-990 mV).
Also harden the existing kickpi-k2b DTS in both archives:
- drop the unused phy-supply on emac0; the MAE0621 PHY sits on the
always-on 3.3 V rail, so the property only adds a no-op regulator
reference
- sdio_pwrseq: drop the OSC32K fanout clock and pin muxing and raise
post-power-on-delay-ms from 100 to 200, matching the sequence of
the bootable K2B V2.2 image; the SWT6621S then powers up reliably
- include the GPU OPP table there as well
All four DTS files compile against the Armbian 6.18.53 sunxi
worktree; the resulting kickpi-k2b-v2 DTB matches the DTB extracted
from the verified image once phandles and unreferenced
/omit-if-no-ref/ pinctrl nodes are normalized away.
Enable the front panel 4-digit 7-segment display on the Magicsee C400
Plus (Amlogic S912 / Meson GXM).
The display is driven by an FD655 controller connected via a bit-banged
I2C bus. The following changes are applied:
- Add an i2c-gpio node to bit-bang the bus on GPIOs 65 (SCL) and 66
(SDA), with open-drain configuration and pull-ups enabled.
- Describe the 4 digits with a standard 7-segment mapping. The
controller only supports 5 grids (0-4), so the digits use grids 0-3.
- Omit the leds sub-node as the panel on this board revision does not
expose any function icons (Bluetooth, LAN, etc.).
- Move the &mali node to the bottom of the file for alphabetical
ordering; no functional change.
This makes the display show the system hostname on boot and allows
user-space control through /sys/class/leds/display/.
Signed-off-by: Josema <jomadeto@gmail.com>
6.12.111 backported d65adf854772 ("ASoC: meson: aiu: Validate written
enum values", stable 8a6d6735e7c0), which adds an item bounds check at
the top of aiu_codec_ctrl_mux_put_enum(). Hunk #2 of
general-meson-aiu-Fix-HDMI-codec-control-selection.patch rewrites that
function and no longer applies, so `oldlts` fails at patching.
Keep the upstream check as context, the same way meson64-6.18 carries
this patch (4c291cd73). The diff body is otherwise unchanged.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Kernel 6.18.55 added two intel_quirks entries since 6.18.46.
This shifted the enum and the quirk table, so both hunks rejected.
Re-anchor the enum and table entries. Build reaches compile again.
Tested: uefi-x86 kernel 6.18.55 patch apply (git apply + patch --fuzz=0).
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Support for current mainline Linux 6.18 and U-Boot 2026.07. To make
evaluation easier, includes support for the DSI-to-HDMI adapter board
(the overlay itself and the Xorg config) so it's easier to run anywhere.
Tested on a Verdin iMX8M Mini with the Yavia Development Board.
Signed-off-by: Lucas Hehl <lucas@hehl.com.br>
Accelerate the wireless module boot path on the BananaPi BPI-M4 Zero
by eliminating redundant scanning cycles, removing aggressive polling
overhead, and pruning conservative power sequencing delays.
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>