Re: [PATCH] dt-bindings: u-boot: Add variables for bootscript location

2023-05-22 Thread Michal Simek




On 5/11/23 16:33, Michal Simek wrote:

From: Algapally Santosh Sagar 

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 
Signed-off-by: Michal Simek 
---

The patch targets dtschema repository.

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


I sent pull request to dt-schema.

https://github.com/devicetree-org/dt-schema/pull/105

Thanks,
Michal


[PATCH] dt-bindings: u-boot: Add variables for bootscript location

2023-05-11 Thread Michal Simek
From: Algapally Santosh Sagar 

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 
Signed-off-by: Michal Simek 
---

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 --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>;
   };
 };
-- 
2.36.1