diff mbox series

[1/1] test/py: use valid device tree in test_fit.py

Message ID 20191218100559.43521-1-xypron.glpk@gmx.de
State Accepted
Commit 954ab3c7b78ffb5ad469fed9306298631e4f54f7
Delegated to: Tom Rini
Headers show
Series [1/1] test/py: use valid device tree in test_fit.py | expand

Commit Message

Heinrich Schuchardt Dec. 18, 2019, 10:05 a.m. UTC
The device tree compiler expects that a node with a unit-address has a reg
property.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 test/py/tests/test_fit.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--
2.24.0

Comments

Simon Glass Dec. 27, 2019, 4:42 p.m. UTC | #1
On Wed, 18 Dec 2019 at 03:06, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> The device tree compiler expects that a node with a unit-address has a reg
> property.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  test/py/tests/test_fit.py | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Jan. 16, 2020, 2:41 p.m. UTC | #2
On Wed, Dec 18, 2019 at 11:05:59AM +0100, Heinrich Schuchardt wrote:

> The device tree compiler expects that a node with a unit-address has a reg
> property.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/test/py/tests/test_fit.py b/test/py/tests/test_fit.py
index 356d9a20f2..84b3f95850 100755
--- a/test/py/tests/test_fit.py
+++ b/test/py/tests/test_fit.py
@@ -83,13 +83,16 @@  base_fdt = '''
 /dts-v1/;

 / {
-        model = "Sandbox Verified Boot Test";
-        compatible = "sandbox";
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	model = "Sandbox Verified Boot Test";
+	compatible = "sandbox";

 	reset@0 {
 		compatible = "sandbox,reset";
+		reg = <0>;
 	};
-
 };
 '''