[PATCH 7/9] rockchip: rk3528: Remove unneeded syscon driver

Jonas Karlman <[email protected]> Tue, 4 Aug 2026 10:57:16 +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 RK3528 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/rk3528/Makefile        |  1 -
 arch/arm/mach-rockchip/rk3528/syscon_rk3528.c | 19 -------------------
 2 files changed, 20 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/rk3528/syscon_rk3528.c

diff --git a/arch/arm/mach-rockchip/rk3528/Makefile b/arch/arm/mach-rockchip/rk3528/Makefile
index f0c18cd39d29..150536f59025 100644
--- a/arch/arm/mach-rockchip/rk3528/Makefile
+++ b/arch/arm/mach-rockchip/rk3528/Makefile
@@ -2,4 +2,3 @@
 
 obj-y += rk3528.o
 obj-y += clk_rk3528.o
-obj-y += syscon_rk3528.o
diff --git a/arch/arm/mach-rockchip/rk3528/syscon_rk3528.c b/arch/arm/mach-rockchip/rk3528/syscon_rk3528.c
deleted file mode 100644
index 4a32a5f732e9..000000000000
--- a/arch/arm/mach-rockchip/rk3528/syscon_rk3528.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-// Copyright Contributors to the U-Boot project.
-
-#include <dm.h>
-#include <asm/arch-rockchip/clock.h>
-
-static const struct udevice_id rk3528_syscon_ids[] = {
-	{ .compatible = "rockchip,rk3528-grf", .data = ROCKCHIP_SYSCON_GRF },
-	{ }
-};
-
-U_BOOT_DRIVER(rockchip_rk3528_syscon) = {
-	.name = "rockchip_rk3528_syscon",
-	.id = UCLASS_SYSCON,
-	.of_match = rk3528_syscon_ids,
-#if CONFIG_IS_ENABLED(OF_REAL)
-	.bind = dm_scan_fdt_dev,
-#endif
-};
-- 
2.54.0