]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mfd: bcm2835-pm: Add BCM2712 PM device support
authorPhil Elwell <phil@raspberrypi.com>
Fri, 6 Mar 2026 23:41:22 +0000 (00:41 +0100)
committerLee Jones <lee@kernel.org>
Wed, 25 Mar 2026 12:45:49 +0000 (12:45 +0000)
The BCM2712 SoC includes a power management block that serves as the
power domain for the V3D graphics block. Unlike other PM blocks in
the BCM2835 family, it does not feature an ASB register space.

Conditionally register the PM device depending on the SoC variant.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Co-developed-by: Stanimir Varbanov <svarbanov@suse.de>
Signed-off-by: Stanimir Varbanov <svarbanov@suse.de>
Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/c0b5793868f138bf5c928a12b2763d3e183e2e59.1772839224.git.andrea.porta@suse.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/bcm2835-pm.c

index 2d5dc521b623d1b8362089cfac0521888ce575c8..9e8e3dcf4bcebe922a182703348315a618b379b9 100644 (file)
@@ -98,7 +98,7 @@ static int bcm2835_pm_probe(struct platform_device *pdev)
         * bcm2835-pm binding as the key for whether we can reference
         * the full PM register range and support power domains.
         */
-       if (pm->asb)
+       if (pm->asb || pm->soc == BCM2835_PM_SOC_BCM2712)
                return devm_mfd_add_devices(dev, -1, bcm2835_power_devs,
                                            ARRAY_SIZE(bcm2835_power_devs),
                                            NULL, 0, NULL);