[PATCH v5 3/3] arm: dts: am335x-sancloud-bbe-lite: UEFI SPI export

Paul Barker paul.barker at sancloud.com
Wed Nov 23 18:50:06 CET 2022


Add properties to the Authenta SPI flash device node to enable access by
a UEFI application using a fixed GUID.

Signed-off-by: Paul Barker <paul.barker at sancloud.com>
---
 arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi | 13 ++++++++++---
 arch/arm/dts/am335x-sancloud-bbe-lite.dts         |  2 +-
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi b/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi
index 01c105ebb383..6c4ff67f9a4b 100644
--- a/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi
+++ b/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi
@@ -38,7 +38,14 @@
 
 &spi0 {
 	u-boot,dm-pre-reloc;
-	channel at 0 {
-		u-boot,dm-pre-reloc;
-	};
+};
+
+&authenta_flash {
+	u-boot,dm-pre-reloc;
+
+	u-boot,uefi-spi-vendor = "micron";
+	u-boot,uefi-spi-part-number = "mt25ql128abb";
+	/* GUID in UEFI format: 77126730-a4ca-4386-b341-881fe18e7f7d */
+	u-boot,uefi-spi-io-guid = [30 67 12 77 ca a4 86 43
+				   b3 41 88 1f e1 8e 7f 7d];
 };
diff --git a/arch/arm/dts/am335x-sancloud-bbe-lite.dts b/arch/arm/dts/am335x-sancloud-bbe-lite.dts
index 8ffbc72dc57e..3909092a140f 100644
--- a/arch/arm/dts/am335x-sancloud-bbe-lite.dts
+++ b/arch/arm/dts/am335x-sancloud-bbe-lite.dts
@@ -37,7 +37,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&bb_spi0_pins>;
 
-	channel at 0 {
+	authenta_flash: channel at 0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-- 
2.25.1



More information about the U-Boot mailing list