[PATCH] firmware: raspberrypi: Add bcm2712 revD compatible check
Peter Robinson
pbrobinson at gmail.com
Mon Nov 2 09:02:24 PST 2026
The bcm2712 revD doesn't contain the base SoC compatible of the revC
because they're not fully compatible, we need to check both else we
don't match for newer devices and the RTC doesn't get enumerated.
Fixes: dba67294e2151 ("rtc: Add Raspberry Pi 5 RTC driver")
Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
---
drivers/firmware/raspberrypi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
index 443459c8c90fa..ab1c77aeb199c 100644
--- a/drivers/firmware/raspberrypi.c
+++ b/drivers/firmware/raspberrypi.c
@@ -240,7 +240,8 @@ static void rpi_register_rtc_driver(struct device *dev)
* Check if our model of Raspberry Pi board is from the 5th gen
* as the RTC is only present on that model.
*/
- if (!of_machine_is_compatible("brcm,bcm2712"))
+ if (!(of_machine_is_compatible("brcm,bcm2712") ||
+ of_machine_is_compatible("brcm,bcm2712-d0")))
return;
pdev = platform_device_register_data(dev, "raspberrypi-rtc",
--
2.56.0
More information about the linux-arm-kernel
mailing list