1 From b3a070cf6fe04129d2c174e45c14b98a759e0402 Mon Sep 17 00:00:00 2001
2 From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
3 Date: Fri, 11 Dec 2020 12:22:01 +0100
4 Subject: [PATCH] ARM: dts: bcm2711: Add reserved memory template to
5 hold firmware configuration
7 RPi4's co-processor will copy the board's bootloader[1] configuration
8 into memory for the OS to consume. Specifically, for the bootloader
9 configuration and upgrade user-space routines to query it through
10 nvmem's sysfs interface.
12 Introduce a reserved-memory area template for the co-processor to edit
13 before booting the system so as for Linux not to overwrite that memory
14 and to expose it as an nvmem device.
16 Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
18 [1] https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md
22 - Introduce compatible string
23 - Change alias name to something more explicit
25 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 17 +++++++++++++++++
26 1 file changed, 17 insertions(+)
28 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
29 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
34 + blconfig = &blconfig;
44 + * RPi4's co-processor will copy the board's bootloader configuration
45 + * into memory for the OS to consume. It'll also update this node with
46 + * its placement information.
49 + compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
50 + #address-cells = <1>;
52 + reg = <0x0 0x0 0x0>;
54 + status = "disabled";
58 /* SDHCI is used to control the SDIO for wireless */