summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2020-05-02 12:35:10 +0300
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-02 13:32:28 +0300
commitbf6ad91629d05c58c99d0cd763f865ae0670102a (patch)
tree6419c319235bc671e6a871f9c4cb40b84c1d5fa2 /arch
parent89b84b85e9c5d80e1b5eb5b52cc6596ba32135c7 (diff)
downloadu-boot-bf6ad91629d05c58c99d0cd763f865ae0670102a.tar.xz
test: dm: add test item for ofnode_get_child_count()
Add a test item for ofnode_get_child_count() Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 4bccfbe6e1..9c00e94501 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -218,6 +218,24 @@
compatible = "denx,u-boot-fdt-test1";
};
+ i-test {
+ compatible = "mediatek,u-boot-fdt-test";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ subnode@0 {
+ reg = <0>;
+ };
+
+ subnode@1 {
+ reg = <1>;
+ };
+
+ subnode@2 {
+ reg = <2>;
+ };
+ };
+
devres-test {
compatible = "denx,u-boot-devres-test";
};