diff mbox series

dt-bindings: u-boot: Add variables for bootscript location

Message ID ca0715934133dbce6a5a3fd91483e0af92ea8ac6.1683815597.git.michal.simek@amd.com
State New
Headers show
Series dt-bindings: u-boot: Add variables for bootscript location | expand

Commit Message

Michal Simek May 11, 2023, 2:33 p.m. UTC
From: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>

Add bootscr-address and offset-from-ram-start properties to help in easier
picking of boot script file when automated flows are used.

The bootscr-address holds the full 64 bit address of the bootscript
file.

The bootscr-offset-from-ram-start holds the offset address of the
bootscript file from the start of the ram base in systems with RAM
detection.

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

The patch targets dtschema repository.

We would like to get opinion about option names before sending PR via
github.

---
 dtschema/schemas/options/u-boot.yaml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
diff mbox series

Patch

diff --git a/dtschema/schemas/options/u-boot.yaml b/dtschema/schemas/options/u-boot.yaml
index 71dfda71e4e2..565b54a424ae 100644
--- a/dtschema/schemas/options/u-boot.yaml
+++ b/dtschema/schemas/options/u-boot.yaml
@@ -71,6 +71,21 @@  properties:
       2: use simplified command line (e.g. avoid hush)
       3... reserved
 
+  bootscr-address:
+    $ref: types.yaml#/definitions/uint64
+    default: 0x0
+    description:
+      This property holds the full address of the boot script file. This helps in
+      making automated flows easier by fetching address directly from DT.
+
+  bootscr-offset-from-ram-start:
+    $ref: types.yaml#/definitions/uint64
+    default: 0x0
+    description:
+      This property holds the boot script file offset from start of the ram base
+      address. This helps in making automated flows easier by fetching address
+      directly from DT.
+
   silent-console:
     $ref: /schemas/types.yaml#/definitions/uint32
     default: 0
@@ -101,6 +116,8 @@  examples:
         bootcmd = "vboot go auto";
         bootdelay-sec = <(-1)>;
         bootsecure = <1>;
+        bootscr-address = <0x1000>;
+        bootscr-offset-from-ram-start = <0x2000>;
         silent-console = <1>;
       };
     };