firmware: raspberrypi: Add bcm2712 revD compatible check
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.
--- drivers/firmware/raspberrypi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/firmware/raspberrypi.c +2 -1
@@ -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
[email protected]
AI reviewSashiko 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")Signed-off-by Peter Robinson <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
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")Signed-off-by Peter Robinson <[email protected]>
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")Signed-off-by Peter Robinson <[email protected]>---
Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks! --
Florian