The Orange Pi 4 LTS DT defines its own cpu_thermal map1 and overrides
the RK3399 floor. Use the same lower limits: little cores state 2,
big cores state 3.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
step_wise lowers the CPU clock one step per trend change and raises it
again on every small drop. Under sustained load the temperature still
rose to the critical trip and the board shut down. At cpu_alert1 (90 C),
cap the little cores at 1.008 GHz and the big cores at 1.2 GHz. On an
Orange Pi 4 with a small heatsink, these clocks hold 75 C under a
6-core load. step_wise can still throttle further below the floor.
The floor is a cooling state index. Boards that add OPPs above the
default table get a higher floor clock.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
The RK3399 TSADC shuts the board down in hardware at 95 C
(hw-tshut-temp). The DT set the second passive trip to 95 C and the
critical trip to 100 C. The kernel throttled hard only at the
hardware limit and never reached its own critical trip, so under
load the board reset with no log. Set the trips to 85/90/93 C, and
the GPU critical trip to 93 C. The kernel then throttles and shuts
down cleanly before the hardware does.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
patches from https://github.com/armada-os/armada 94f52f80132807976cbcc80ed86f0c1f457ae6a5 (Commits on Oct 11, 2026)
0048b-drm-msm-dsi-fix-pll-init-in-bonded-mode.patch for fixing bonded DSI
1. drop upstreamed patches
2. add patches from https://github.com/armada-os/armada 94f52f80132807976cbcc80ed86f0c1f457ae6a5 (Commits on Oct 11, 2026)
0514-PCI-qcom-honor-iommu-map-cell-count.patch for fixing ath12k wifi
1021-wifi-ath12k-convert-scan-timeout-to-wiphy-delayed-work.patch for
fixing ath12k wifi
Add the current branch (6.18) and bump edge to 7.3. The two Sky1 DT
patches and the Acer Swift 14 patches stay on edge: they do not apply or
build on 6.18.
Enable Tegra, the memory controller drivers, the Tegra SMMU and HDMI audio,
and map the Jetson Nano L4T model to tegra210-p3450-0000.dtb. Without
TEGRA_MC the PMC probe defers forever; without the SMMU, GPU and VIC wait
for the deferred probe timeout.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Add the D1 IOMMU and HDMI patches for mainline v7.3.
Linux 6.1 provides HDMI on this board. Keep it after the move to 7.3.
Add the blend mode property to UI planes. This removes the DRM warning
"pixel format with alpha exposed but blend mode not setup".
Enable the DRM and IOMMU drivers that the output needs.
rk35xx-montjoie-crypto-v2-rk35xx.patch registers every algorithm of the
RK3566/RK3568/RK3588 crypto engine at cra_priority 300, the priority of
the ARMv8 Crypto Extensions drivers. Registered later, the engine wins
the lookup: dm-crypt picks xts-aes-rk2, which serves one request at a
time and makes an NVMe-backed LUKS volume 4.7 times slower than with
xts-aes-ce. The series is not landing upstream, and the engine is slower
than the CPU's Crypto Extensions for every common workload.
Drop the series from rockchip64-6.12, 6.18 and 7.3, with its device tree
nodes, its RK3588 secure reset change and its driver, and remove
CONFIG_CRYPTO_DEV_ROCKCHIP2 and CONFIG_CRYPTO_DEV_ROCKCHIP2_DEBUG from the
rockchip64 and rockchip-rk3588 kernel configs.
Fixes#10968
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the sophgo-sg200x-camera extension and enable it on both Duo S boards. It builds a pinned commit of sg200x-camera-dkms into the kernel. A new sensor then needs a commit there, not new kernel patches.
Keep the two patches that change drivers already in the kernel: CCS PLL and DW9817 support.
Move the CSI-2 receiver, VI and vip_sys nodes into sg2000-camera.dtsi.
The J1 and J2 overlays include it and set only their receiver lanes.
The applied device trees do not change.
Support the Raspberry Pi Camera Module 3 and Camera Module v1 on the J2
connector. Add the IMX708 sensor driver and DW9817 support in
dw9807-vcm. Add the SG2000 CSI-2 receiver and VI capture drivers. Add
J2 overlays for riscv64 and arm64. Build these drivers and OV5647 as
modules.
Enable a camera with overlays=camera-j2-imx708 or camera-j2-ov5647.
mode = <0x23> came with the Kobol device tree in 2020; the same value
first appeared in Armbian with the ROC-RK3328-CC tree in 2018. GPIO LEDs
have no mode property, and nothing under drivers/leds/ reads one. Mainline dropped the same lines from
rk3328-roc-cc in 1692bffec674 ("arm64: dts: rockchip: drop unused LED
mode property from rk3328-roc-cc").
dt-validate against the 7.3 bindings reports it on both LEDs
("'mode' was unexpected"); with the property gone, these two reports
go and the others stay.
Checked on Helios64 (7.3-rc7) with the property removed from the DTB:
status keeps the heartbeat trigger, fault keeps panic, and dmesg shows
no new LED or GPIO errors or warnings.
The DTB loses the two mode properties, nothing else; all 31 patches
apply without fuzz.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pinctrl-0 on &pcie0 and the pcie_prst group for GPIO2_D4 came with the
Kobol device tree. The node has no pinctrl-names, so the state gets the
name "0" instead of "default" (drivers/pinctrl/devicetree.c) and the
pin core never selects it.
Checked on Helios64 (7.3-rc7): with the property in the live tree,
pins 90 and 92 (CLKREQ# and PERST#) are MUX UNCLAIMED.
Naming the state "default" is no fix: in one test on 2026-09-30, resume
failed with a PCIe link training timeout on the third sleep cycle.
Patch 33 only loses the pinctrl-0 line from its context. The DTB loses
the pinctrl-0 property, the pcie-prst node and its __symbols__ entry,
nothing else; all 31 remaining patches apply without fuzz.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fan properties came with the Kobol device tree in 2020.
cooling-min-state and cooling-max-state have no binding and no reader,
then or now. #cooling-cells stays: it is part of the pwm-fan binding and
lets a thermal cooling-maps entry use the fans.
No cooling-maps ever referenced the fans, neither in Armbian's history
nor in mainline, where the fans came in 2021 with cooling-levels only.
fancontrol drives them through hwmon.
Checked on Helios64 (7.3-rc7): both pwm-fan cooling devices keep
max_state 3, fancontrol keeps working, dmesg shows no new errors or
warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both came with the Kobol device tree for the Rockchip BSP 4.4 kernel.
supports-emmc is a BSP-only property: there it sets
RESTRICT_CARD_TYPE_EMMC, so the host probes for eMMC only. Mainline has
no reader for it; no-sd and no-sdio say the same in mainline.
disable-wp sets MMC_CAP2_NO_WRITE_PROTECT, which only the SD card path
checks (drivers/mmc/core/sd.c). &sdhci holds a non-removable eMMC, which
has no write-protect line. The disable-wp of the SD slot, from the
mainline &sdmmc node, stays.
Checked on Helios64 (7.3-rc7): with both properties gone, caps2 loses
only that bit, the eMMC still runs HS400 enhanced strobe, and dmesg
shows no new errors or warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- mac-version: default to the configured version when the property is
missing. The value was used uninitialised.
- wake-maskN: reject a property longer than the 16-byte mask.
- open: check the link under the work lock, as rtl_task() does. The
carrier change was logged twice.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
The SoC MAC has no PCIe config space. The CSI access in rtl_hw_start timed
out on every link up and logged rtl_csiar_cond twice. Link up and link
down were also logged on every status check, not only on a change.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
systemd sets a 10 min reboot timeout. The rtd119x counter wraps after
~159 s, so the driver rejected it and shutdown ran without a watchdog.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
The NAT core writes up to CPUICR_MBUF_2048 into an RX buffer. The driver
allocated 1540 bytes. Heavy RX overwrote kernel memory and the RX ring,
then eth1 stopped with an interrupt storm.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
No node references pcie_phy_sel, so clk_disable_unused gates it while
the PCIe link is still training. The NVMe then shows up only on some
boots and never after a re-probe. Hand it to the PHY as da_ref.
Signed-off-by: SuperKali <hello@superkali.me>
Mainline keeps the eMMC node disabled and never muxes the MDIO pair the
two Airoha PHYs sit behind. It also expects Wi-Fi calibration data that
this board stores nowhere, and the default the driver falls back to
resets the SoC as soon as the radio comes up.
Signed-off-by: SuperKali <hello@superkali.me>
Linux 6.18.57 moved the transport device node reference into
__scmi_device_create() and drops it in scmi_device_release(), so the
SCMI ACPI patch no longer applied. Take the fwnode reference there and
drop the manual get and put pairs from driver.c.
Signed-off-by: SuperKali <hello@superkali.me>
The eFuse of this board reports speed bin 0. The stock OPP table
excludes bin 0 from 1512 MHz and gives no voltage for that bin.
Every 1512 MHz transition failed with -EINVAL and the CPU stayed at
720 MHz.
Set opp-supported-hw = <0x2b> and opp-microvolt-speed0 = <1100000>
for the 1512 MHz OPP. The vendor DTS does the same. Tested: the
governor reaches 1512 MHz, a 30 s stress-ng run passes at 69.6 C.
The MAE0621A PHY driver clears the PHY-side RGMII delay bits at
probe. Plain "rgmii" mode then keeps only the 700 ps MAC TX delay of
the H618 GMAC. That is below the RGMII setup window. The 1G link
comes up but drops 30-100% of packets. 100M is not affected.
Touch the delay bits only when the phy-mode assigns them
(rgmii-txid/rgmii-rxid/rgmii-id). Plain "rgmii" keeps the strapped
PHY delay. The board DTS keeps the vendor values: rgmii,
tx-delay-ps 700, rx-delay-ps 2000.
Tested on KickPi K2B V2 (H618 + MAE0621A-Q2C), kernel 6.18.57:
link at 1G, DHCP lease, ping 0% loss over 200 packets both ways,
iperf3 TCP 310/225 Mbps, UDP 260 Mbps at 0.49% loss, jitter
0.016 ms. All MAC error counters stay zero.
Add opt-in overlays for 128x64 SH1106 and SSD1306 OLED modules on the
Helios4 external I2C header (i2c1, 0x3c). Panels vary, and each
controller needs its own init sequence.
Kbuild also builds the base DTB with each overlay pre-applied. Select
one with fdtfile=armada-388-helios4-oled-<sh1106|ssd1306>.dtb.
The default DTB leaves 0x3c to i2c-dev tools (sys-oled, luma.oled).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carry two upstream series that are still in review:
- Jonas Karlman, "rockchip: Fix devices suspend freeze on
RK3568/RK3566" v2, patch 2/2: give the EHCI/OHCI nodes the usb2phy1
clock, so ohci_suspend() no longer freezes the system.
- Sebastian Reichel, "PCI: dw-rockchip: add system suspend support" v6:
without it the controller is not restored on resume and the NVMe
drive is lost.
The patch files are the ones tested on ODROID-M1 (7.3-rc7): s2idle and
deep both resume with the NVMe and the watchdog working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stable commit ce2eee635fd3 checks the rockchip_pm_add_subdomain() return value.
Patch general-rockchip-various-fixes does not apply. Use the 7.3 context.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
The SCM tzmem pool is capped at 256 KiB and never shrinks, so a 256 KiB
chunk plus its header fails with -ENOMEM on any large MTD read or write.
Use 64 KiB chunks on current and edge until the series is fixed upstream.
Signed-off-by: SuperKali <hello@superkali.me>
Radxa firmware keeps the Q6A SPI NOR behind TrustZone, so Linux can only
reach it through SCM calls. Add the SCM storage series v2 from linux-mtd
plus the Radxa patches that drop the direct QSPI node and allow QSEECOM.
This is the same setup the vendor kernel uses.
Signed-off-by: SuperKali <hello@superkali.me>
add-board-helios64.patch carried every Armbian change to the mainline
rk3399-kobol-helios64.dts in one diff (+655/-77). Split it into patches
01-30, one change each, so it is clear which parts are already
upstream, which are pending and which exist only in Armbian. Each patch
keeps Aditya Prayoga as author and says where it came from.
The resulting DTB is the same. Both trees were compiled with the
kernel cpp flags and dtc -@; the decompiled, sorted DTBs with phandle
values replaced by node paths are identical, and so are the 396
__symbols__ labels. Only cosmetic source differences were dropped
(includes, comments, ordering, values repeated from rk3399-base.dtsi).
Patches 31-33 change only in hunk offsets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename only, no content change. The new names sort in the same order
after add-board-helios64.patch, so the build applies them as before.
The next commit splits add-board-helios64.patch into numbered patches
01-30 in front of these.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a PHY goes away, phylink_phy_give_back_wol() arms the MAC with the
modes the PHY was waking on, but with the password phylink kept, not the
one it just read from the PHY. A SecureOn mode the PHY carried from
before it attached then reaches the MAC with the wrong password.
Copy the PHY's password when SecureOn moves to the MAC, with the same
test phylink_phy_take_wol() uses to keep the PHY's password. No meson64
board hits this: RTL8211F and stmmac support no SecureOn.
Also switch the patch's Assisted-by to the current kernel format.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>