[PATCH 4/6] ARM: dts: bcm2711: Expose boot-loader configuration

From: Nicolas Saenz Julienne
Date: Tue Dec 15 2020 - 11:03:32 EST


RPi4's co-processor will copy the board's bootloader configuration in
memory. Expose it to user-space by using 'nvmem-rmem'.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@xxxxxxx>
---
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
index c58e58e8ce39..261169eb5e3b 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
@@ -26,6 +26,17 @@ aliases {
ethernet0 = &genet;
pcie0 = &pcie0;
eeprom = &eeprom;
+ fw_config = &fw_config;
+ };
+
+ fw_config: fw-config {
+ compatible = "nvmem-rmem";
+ memory-region = <&eeprom>;
+ /*
+ * Will be enabled by the bootloader if the reserved memory
+ * region is valid.
+ */
+ status = "disabled";
};

leds {
--
2.29.2