]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: broadcom: Add firmware clocks and power nodes to Pi5 DT
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 25 Oct 2024 17:16:05 +0000 (18:16 +0100)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Tue, 17 Dec 2024 19:38:44 +0000 (11:38 -0800)
BCM2712 still uses the firmware clocks and power drivers, so add
them to the base device tree.

The brcm,bcm2836-l1-intc controller isn't used on this platform.
It is used on 32-bit kernels for the smp_boot_secondary hook, but
BCM2712 can't run a 32-bit kernel.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20241025-drm-vc4-2712-support-v2-34-35efa83c8fc0@raspberrypi.com
Link: https://lore.kernel.org/r/20241212-dt-bcm2712-fixes-v3-7-44a7f3390331@raspberrypi.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
arch/arm64/boot/dts/broadcom/bcm2712.dtsi

index 2bdbb6780242a14faad97ad0ca08b91107cb8aa0..92a2ada037f3912f473f59944c11919b80ca1bdb 100644 (file)
        sd-uhs-ddr50;
        sd-uhs-sdr104;
 };
+
+&soc {
+       firmware: firmware {
+               compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               mboxes = <&mailbox>;
+               dma-ranges;
+
+               firmware_clocks: clocks {
+                       compatible = "raspberrypi,firmware-clocks";
+                       #clock-cells = <1>;
+               };
+
+               reset: reset {
+                       compatible = "raspberrypi,firmware-reset";
+                       #reset-cells = <1>;
+               };
+       };
+
+       power: power {
+               compatible = "raspberrypi,bcm2835-power";
+               firmware = <&firmware>;
+               #power-domain-cells = <1>;
+       };
+
+};
index 6e5a984c1d4ea113d220bf5bbad6d35a8e3c83f6..c610461940443dfe0e6c1e466fc4d77420f3073f 100644 (file)
                        #mbox-cells = <0>;
                };
 
-               local_intc: interrupt-controller@7cd00000 {
-                       compatible = "brcm,bcm2836-l1-intc";
-                       reg = <0x7cd00000 0x100>;
-               };
-
                uart10: serial@7d001000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x7d001000 0x200>;