Skip to contentSkip to conversation

firmware: raspberrypi: Add bcm2712 revD compatible check

PATCH Applied Peter Robinson 4 participants 4 messages Nov 2 – Nov 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: raspberrypi: Add bcm2712 revD compatible check

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")
---
 drivers/firmware/raspberrypi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/firmware/raspberrypi.c +2 -1
index 443459c8c90fa..ab1c77aeb199c 100644
@@ -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",
Signature · 1 line
2.56.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 6 lines

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")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#3 lore raw
In reply to Peter Robinson

From: Florian Fainelli <[email protected]>

Quoted 7 lines · Peter Robinson

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")

---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks! --
Florian