Skip to content

Commit

Permalink
arm64: dts: Prepare for #size-cells = 2
Browse files Browse the repository at this point in the history
With a future release of the firmware, it will be possible to use dts
files with a top-level #size-cells of 2. This patch adds the remaining
necessary changes to make that work, gated by the macro symbol
FIRMWARE_UDPATED.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Feb 5, 2025
1 parent 65bda81 commit 371daf4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
/* Will be filled by the bootloader */
memory@0 {
device_type = "memory";
#ifndef FIRMWARE_UPDATED
reg = <0 0 0x28000000>;
#else
reg = <0 0 0x0 0x28000000>;
#endif
};

leds: leds {
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
/* Will be filled by the bootloader */
memory@0 {
device_type = "memory";
#ifndef FIRMWARE_UPDATED
reg = <0 0 0x28000000>;
#else
reg = <0 0 0x0 0x28000000>;
#endif
};

leds: leds {
Expand Down
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ pciex4: &pcie2 { };
compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
#address-cells = <1>;
#size-cells = <1>;
#ifndef FIRMWARE_UPDATED
reg = <0x0 0x0 0x0>;
#else
reg = <0x0 0x0 0x0 0x0>;
#endif
no-map;
status = "disabled";
};
Expand All @@ -291,7 +295,11 @@ pciex4: &pcie2 { };
compatible = "raspberrypi,bootloader-public-key", "nvmem-rmem";
#address-cells = <1>;
#size-cells = <1>;
#ifndef FIRMWARE_UPDATED
reg = <0x0 0x0 0x0>;
#else
reg = <0x0 0x0 0x0 0x0>;
#endif
no-map;
status = "disabled";
};
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/broadcom/bcm2712.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,11 @@

hvs: hvs@107c580000 {
compatible = "brcm,bcm2712-hvs";
#ifndef FIRMWARE_UPDATED
reg = <0x10 0x7c580000 0x1a000>;
#else
reg = <0x10 0x7c580000 0x0 0x1a000>;
#endif
interrupt-parent = <&disp_intr>;
interrupts = <2>, <9>, <16>;
interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";
Expand Down

0 comments on commit 371daf4

Please sign in to comment.