ARM: dts: Add nvmem node for BCM2711 bootloader public key
authorTim Gover <tim.gover@raspberrypi.com>
Fri, 7 Oct 2022 10:04:27 +0000 (11:04 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 12 Oct 2022 16:36:39 +0000 (17:36 +0100)
Make a copy of the bootloader secure-boot public key available to the OS
via an nvmem node. The placement information is populated by the
Raspberry Pi firmware if a public key is present in the BCM2711
bootloader EEPROM.

Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
arch/arm/boot/dts/bcm2711-rpi.dtsi

index ca266c5..3c0bc92 100644 (file)
@@ -15,6 +15,7 @@
                ethernet0 = &genet;
                pcie0 = &pcie0;
                blconfig = &blconfig;
+               blpubkey = &blpubkey;
        };
 };
 
                no-map;
                status = "disabled";
        };
+       /*
+        * RPi4 will copy the binary public key blob (if present) from the bootloader
+        * into memory for use by the OS.
+        */
+       blpubkey: nvram@1 {
+               compatible = "raspberrypi,bootloader-public-key", "nvmem-rmem";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               reg = <0x0 0x0 0x0>;
+               no-map;
+               status = "disabled";
+       };
 };
 
 &vchiq {