Skip to content

Commit 8d53dbd

Browse files
committed
arm64: dts: Prepare for #size-cells = 2
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]>
1 parent 65bda81 commit 8d53dbd

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts

+4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
/* Will be filled by the bootloader */
1818
memory@0 {
1919
device_type = "memory";
20+
#ifndef FIRMWARE_UPDATED
2021
reg = <0 0 0x28000000>;
22+
#else
23+
reg = <0 0 0 0x28000000>;
24+
#endif
2125
};
2226

2327
leds: leds {

arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi

+4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
/* Will be filled by the bootloader */
1717
memory@0 {
1818
device_type = "memory";
19+
#ifndef FIRMWARE_UPDATED
1920
reg = <0 0 0x28000000>;
21+
#else
22+
reg = <0 0 0 0x28000000>;
23+
#endif
2024
};
2125

2226
leds: leds {

arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi

+8
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,11 @@ pciex4: &pcie2 { };
279279
compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
280280
#address-cells = <1>;
281281
#size-cells = <1>;
282+
#ifndef FIRMWARE_UPDATED
282283
reg = <0x0 0x0 0x0>;
284+
#else
285+
reg = <0x0 0x0 0x0 0x0>;
286+
#endif
283287
no-map;
284288
status = "disabled";
285289
};
@@ -291,7 +295,11 @@ pciex4: &pcie2 { };
291295
compatible = "raspberrypi,bootloader-public-key", "nvmem-rmem";
292296
#address-cells = <1>;
293297
#size-cells = <1>;
298+
#ifndef FIRMWARE_UPDATED
294299
reg = <0x0 0x0 0x0>;
300+
#else
301+
reg = <0x0 0x0 0x0 0x0>;
302+
#endif
295303
no-map;
296304
status = "disabled";
297305
};

arch/arm64/boot/dts/broadcom/bcm2712.dtsi

+4
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,11 @@
458458

459459
hvs: hvs@107c580000 {
460460
compatible = "brcm,bcm2712-hvs";
461+
#ifndef FIRMWARE_UPDATED
461462
reg = <0x10 0x7c580000 0x1a000>;
463+
#else
464+
reg = <0x10 0x7c580000 0x0 0x1a000>;
465+
#endif
462466
interrupt-parent = <&disp_intr>;
463467
interrupts = <2>, <9>, <16>;
464468
interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";

0 commit comments

Comments
 (0)