[PATCH 6/9] rockchip: rk3576: Remove unneeded syscon driver

Jonas Karlman <[email protected]> Tue, 4 Aug 2026 10:57:15 +0000
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <[email protected]>
Modern Rockchip device drivers use syscon_regmap_lookup_by_phandle()
to get a regmap or use a constant to get the fixed base address.

Remove the unneeded RK3576 syscon driver to discourage new uses of
syscon_get_regmap_by_driver_data() or syscon_get_first_range().

The generic_syscon driver will instead be used for the compatible
previously matched by the now removed driver.

Signed-off-by: Jonas Karlman <[email protected]>
---
 arch/arm/mach-rockchip/rk3576/Makefile        |  1 -
 arch/arm/mach-rockchip/rk3576/syscon_rk3576.c | 22 -------------------
 2 files changed, 23 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/rk3576/syscon_rk3576.c

diff --git a/arch/arm/mach-rockchip/rk3576/Makefile b/arch/arm/mach-rockchip/rk3576/Makefile
index cbc58257deba..bd7399cddaac 100644
--- a/arch/arm/mach-rockchip/rk3576/Makefile
+++ b/arch/arm/mach-rockchip/rk3576/Makefile
@@ -6,4 +6,3 @@
 
 obj-y += rk3576.o
 obj-y += clk_rk3576.o
-obj-y += syscon_rk3576.o
diff --git a/arch/arm/mach-rockchip/rk3576/syscon_rk3576.c b/arch/arm/mach-rockchip/rk3576/syscon_rk3576.c
deleted file mode 100644
index 0dbf8f8d9c09..000000000000
--- a/arch/arm/mach-rockchip/rk3576/syscon_rk3576.c
+++ /dev/null
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * (C) Copyright 2023 Rockchip Electronics Co., Ltd
- */
-
-#include <dm.h>
-#include <asm/arch-rockchip/clock.h>
-
-static const struct udevice_id rk3576_syscon_ids[] = {
-	{ .compatible = "rockchip,rk3576-sys-grf", .data = ROCKCHIP_SYSCON_GRF },
-	{ .compatible = "rockchip,rk3576-pmu1-grf",  .data = ROCKCHIP_SYSCON_PMUGRF },
-	{ }
-};
-
-U_BOOT_DRIVER(rockchip_rk3576_syscon) = {
-	.name = "rockchip_rk3576_syscon",
-	.id = UCLASS_SYSCON,
-	.of_match = rk3576_syscon_ids,
-#if CONFIG_IS_ENABLED(OF_REAL)
-	.bind = dm_scan_fdt_dev,
-#endif
-};
-- 
2.54.0