]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: px30: bind sub-nodes for GRF (syscon)
authorQuentin Schulz <quentin.schulz@cherry.de>
Fri, 14 Jun 2024 16:54:12 +0000 (18:54 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 17 Jul 2024 03:54:38 +0000 (11:54 +0800)
There are some sub-nodes under the grf DT nodes, so add bind callback
function in syscon_px30 driver to scan them recursively.

Fixes: e9ccb2f526ed ("rockchip: add px30 architecture core")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/px30/syscon_px30.c

index c9de57493d8cf89bad64edafc1dde8ae9e90055c..893a5234baa94750ea5575e9b8474260dfd6c236 100644 (file)
@@ -18,6 +18,9 @@ static const struct udevice_id px30_syscon_ids[] = {
 U_BOOT_DRIVER(syscon_px30) = {
        .id = UCLASS_SYSCON,
        .name = "px30_syscon",
+#if CONFIG_IS_ENABLED(OF_REAL)
+       .bind = dm_scan_fdt_dev,
+#endif
        .of_match = px30_syscon_ids,
 };