]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: add reserved-memory node in device tree
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 14 Mar 2020 11:13:39 +0000 (12:13 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:58 +0000 (08:07 -0600)
For testing the handling of memory reservations create a reserved-memory
node in sandbox.dts and sandbox64.dts.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromum.org>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox64.dts

index 2d7db0249ebe87ae3db21ed04fcbec73e4c12022..20f689382979f71a15fa273425b3dd93976640c7 100644 (file)
                reg = <0 CONFIG_SYS_SDRAM_SIZE>;
        };
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               reservation_test0 {
+                       size = <0x4000>;
+                       alignment = <0x2000>;
+               };
+
+               reservation_test1: restest@a000 {
+                       reg = <0x00d0a000 0x2000>;
+               };
+
+               reservation_test2: restest@7000 {
+                       reg = <0x00d07000 0x1000>;
+               };
+       };
+
        cros_ec: cros-ec {
                reg = <0 0>;
                u-boot,dm-pre-reloc;
index 97e33f110eefdfa2deca80d8c4fcd6dce05b11a2..a39f94feec0cd046ebf4f3d99ed0923b06ac1810 100644 (file)
                reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
        };
 
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               reservation_test_size {
+                       size = <0 0x4000>;
+                       alignment = <0 0x2000>;
+               };
+
+               reservation_test@a000 {
+                       reg = <0 0x00d0a000 0 0x2000>;
+               };
+
+               reservation_test@7000 {
+                       reg = <0 0x00d07000 0 0x1000>;
+               };
+       };
+
+       /* ... */
        cros_ec: cros-ec {
                reg = <0 0 0 0>;
                u-boot,dm-pre-reloc;