From 0057d145ddd90c01922636205484088c02a0e45a Mon Sep 17 00:00:00 2001
Message-ID: <0057d145ddd90c01922636205484088c02a0e45a.1748380800.git.megabo...@gmail.com>
From: Evgeny Beysembaev <evg...@contentwise.tech>
Date: Tue, 27 May 2025 13:48:31 +0200
Subject: [PATCH] BCM2711 reboot fix
According to the commit b334c1afad17132a3c2360de64c1cfff90908739 in Linux
kernel, the `compatible` string for the watchdog peripheral in the DTS was modified from
`brcm,bcm2835-pm` to `brcm,bcm2711-pm`, which caused
`rpi4_map_watchdog()` function to fail, leading to inability to reboot
the system under Xen hypervisor.
Signed-off-by: Evgeny Beysembaev <evg...@contentwise.tech>
---
xen/arch/arm/platforms/brcm-raspberry-pi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/arm/platforms/brcm-raspberry-pi.c b/xen/arch/arm/platforms/brcm-raspberry-pi.c
index 811b40b1a6..11e7985575 100644
--- a/xen/arch/arm/platforms/brcm-raspberry-pi.c
+++ b/xen/arch/arm/platforms/brcm-raspberry-pi.c
@@ -60,7 +60,7 @@ static void __iomem *rpi4_map_watchdog(void)
paddr_t start, len;
int ret;
- node = dt_find_compatible_node(NULL, NULL, "brcm,bcm2835-pm");
+ node = dt_find_compatible_node(NULL, NULL, "brcm,bcm2711-pm");
if ( !node )
return NULL;
--
2.47.2