Add a node to test ofnode_get_child_count()

Signed-off-by: Chunfeng Yun <chunfeng....@mediatek.com>
---
v2:
    a new patch to test ofnode_get_child_count() suggested by Simon
---
 arch/sandbox/dts/test.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 4a277934a7..09e69a9d33 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -202,6 +202,24 @@
                compatible = "denx,u-boot-fdt-test1";
        };
 
+       i-test {
+               compatible = "mediatek,u-boot-fdt-test";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               subnode0 {
+                       reg = <0>;
+               };
+
+               subnode1 {
+                       reg = <1>;
+               };
+
+               subnode2 {
+                       reg = <2>;
+               };
+       };
+
        devres-test {
                compatible = "denx,u-boot-devres-test";
        };
-- 
2.25.1

Reply via email to