diff mbox series

[v2,03/10] sandbox: dts: test: add a node for ofnode_get_child_count()

Message ID 1584780715-29632-4-git-send-email-chunfeng.yun@mediatek.com
State New
Headers show
Series Add support for MediaTek xHCI host controller | expand

Commit Message

Chunfeng Yun (云春峰) March 21, 2020, 8:51 a.m. UTC
Add a node to test ofnode_get_child_count()

Signed-off-by: Chunfeng Yun <chunfeng.yun at 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(+)

Comments

Simon Glass March 23, 2020, 3:37 p.m. UTC | #1
On Sat, 21 Mar 2020 at 02:52, Chunfeng Yun <chunfeng.yun at mediatek.com> wrote:
>
> Add a node to test ofnode_get_child_count()
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun at 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(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

But please squash with previous patch so the tests pass. It is OK to
change test.dts along with other commits.

Regards,
Simon
Chunfeng Yun (云春峰) March 24, 2020, 3:58 a.m. UTC | #2
On Mon, 2020-03-23 at 09:37 -0600, Simon Glass wrote:
> On Sat, 21 Mar 2020 at 02:52, Chunfeng Yun <chunfeng.yun at mediatek.com> wrote:
> >
> > Add a node to test ofnode_get_child_count()
> >
> > Signed-off-by: Chunfeng Yun <chunfeng.yun at 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(+)
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> But please squash with previous patch so the tests pass. It is OK to
> change test.dts along with other commits.
Ok, thanks

> 
> Regards,
> Simon
diff mbox series

Patch

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";
 	};