From patchwork Sat Mar 21 08:51:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2h1bmZlbmcgWXVuICjkupHmmKXls7Ap?= X-Patchwork-Id: 244041 List-Id: U-Boot discussion From: chunfeng.yun at mediatek.com (Chunfeng Yun) Date: Sat, 21 Mar 2020 16:51:48 +0800 Subject: [PATCH v2 03/10] sandbox: dts: test: add a node for ofnode_get_child_count() In-Reply-To: <1584780715-29632-1-git-send-email-chunfeng.yun@mediatek.com> References: <1584780715-29632-1-git-send-email-chunfeng.yun@mediatek.com> Message-ID: <1584780715-29632-4-git-send-email-chunfeng.yun@mediatek.com> Add a node to test ofnode_get_child_count() Signed-off-by: Chunfeng Yun Reviewed-by: Simon Glass --- 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"; };