update rockchip 32 bit edge kernel to 6.17

* import new layout for libreelec patches (no more mbox)
* refactor existing patches to kernel 6.17
* fix uboot issue causing VOP IOMMU page fault and no screen
This commit is contained in:
Paolo Sabatino
2025-09-17 20:40:19 +02:00
committed by Paolo
parent 4db2f1abd2
commit 29317c6f7e
245 changed files with 29685 additions and 8654 deletions

View File

@@ -10,10 +10,10 @@ Subject: add xt-q8lv-10 device tree
diff --git a/arch/arm/dts/rk3288-xt-q8l-v10-u-boot.dtsi b/arch/arm/dts/rk3288-xt-q8l-v10-u-boot.dtsi
new file mode 100644
index 000000000000..111111111111
index 0000000000..a18950fbce
--- /dev/null
+++ b/arch/arm/dts/rk3288-xt-q8l-v10-u-boot.dtsi
@@ -0,0 +1,70 @@
@@ -0,0 +1,94 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019 Rockchip Electronics Co., Ltd
@@ -84,6 +84,31 @@ index 000000000000..111111111111
+&sdmmc_pwr {
+ bootph-pre-ram;
+};
+
+&emmc_bus1 {
+ bootph-pre-ram;
+};
+
+&emmc_bus4 {
+ bootph-pre-ram;
+};
+
+&emmc_bus8 {
+ bootph-pre-ram;
+};
+
+&emmc_clk {
+ bootph-pre-ram;
+};
+
+&emmc_cmd {
+ bootph-pre-ram;
+};
+
+&emmc_pwr {
+ bootph-pre-ram;
+};
diff --git a/arch/arm/dts/rk3288-xt-q8l-v10.dts b/arch/arm/dts/rk3288-xt-q8l-v10.dts
new file mode 100755
index 000000000000..111111111111
@@ -499,8 +524,6 @@ index 000000000000..111111111111
+
+&pinctrl {
+
+ bootph-pre-ram;
+
+ /*
+ This pin configuration enables the power led and, most important,
+ the power hold pin of the act8846 pmic. Without the power hold
@@ -552,6 +575,7 @@ index 000000000000..111111111111
+ };*/
+
+ pwr_hold: pwr-hold {
+ bootph-all;
+ rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+
@@ -586,6 +610,7 @@ index 000000000000..111111111111
+ leds {
+
+ power_led: power-led {
+ bootph-all;
+ rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+
@@ -795,4 +820,3 @@ index 000000000000..111111111111
+
--
Armbian

View File

@@ -0,0 +1,71 @@
From eb780535ef9545a927dea283ca576ca6bc2b14e1 Mon Sep 17 00:00:00 2001
From: Paolo Sabatino <paolo.sabatino@gmail.com>
Date: Wed, 17 Sep 2025 12:03:15 +0200
Subject: [PATCH] Fix Linux kernel complaining about IOMMU page fault
rk3288 remove handle does not get called at all
because the driver is missing the DM_FLAG_OS_PREPARE flag.
Also adds proper reset of VOP clocks to further clean
up VOP state.
---
drivers/video/rockchip/rk3288_vop.c | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c
index 282831eaac..9e88f3538b 100644
--- a/drivers/video/rockchip/rk3288_vop.c
+++ b/drivers/video/rockchip/rk3288_vop.c
@@ -10,6 +10,7 @@
#include <regmap.h>
#include <syscon.h>
#include <video.h>
+#include <reset.h>
#include <asm/global_data.h>
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/grf_rk3288.h>
@@ -69,16 +70,32 @@ static int rk3288_vop_probe(struct udevice *dev)
return rk_vop_probe(dev);
}
-static int rk_vop_remove(struct udevice *dev)
+static int rk3288_vop_remove(struct udevice *dev)
{
struct rk_vop_priv *priv = dev_get_priv(dev);
struct rk3288_vop *regs = priv->regs;
+ struct rk3288_vop *win_regs = priv->regs + priv->win_offset;
+ struct reset_ctl_bulk resets;
+ struct reset_ctl dclk_rst;
+ int ret;
setbits_le32(&regs->sys_ctrl, V_STANDBY_EN(1));
/* wait frame complete (60Hz) to enter standby */
mdelay(17);
+ ret = reset_get_bulk(dev, &resets);
+ if (ret) {
+ printf("failed to get resets (ret=%d)\n", ret);
+ return ret;
+ }
+
+ reset_assert_bulk(&resets);
+ udelay(20);
+
+ reset_deassert_bulk(&resets);
+ udelay(20);
+
return 0;
}
@@ -103,6 +120,7 @@ U_BOOT_DRIVER(rockchip_rk3288_vop) = {
.ops = &rk3288_vop_ops,
.bind = rk_vop_bind,
.probe = rk3288_vop_probe,
- .remove = rk_vop_remove,
+ .remove = rk3288_vop_remove,
.priv_auto = sizeof(struct rk_vop_priv),
+ .flags = DM_FLAG_OS_PREPARE
};
--
2.43.0