From dd2dacf8ee0604107e93354cc2968e8f3bdf5cf0 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Sat, 23 Jun 2018 12:18:09 +0530 Subject: hdata: Fix dtc warnings Fix dtc warnings related to mcbist node. Warning (reg_format): "reg" property in /xscom@623fc00000000/mcbist@1 has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Warning (reg_format): "reg" property in /xscom@623fc00000000/mcbist@2 has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Warning (reg_format): "reg" property in /xscom@603fc00000000/mcbist@1 has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Warning (reg_format): "reg" property in /xscom@603fc00000000/mcbist@2 has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Ideally we should add proper xscom range here... but we are not getting that information in HDAT today. Lets fix warning until we get proper data in HDAT. Signed-off-by: Vasant Hegde Signed-off-by: Stewart Smith --- hdata/memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hdata') diff --git a/hdata/memory.c b/hdata/memory.c index ecce881d..72a72e11 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -448,7 +448,9 @@ static void add_memory_controller(const struct HDIF_common_hdr *msarea, if (!mcbist) { mcbist = dt_new_addr(xscom, "mcbist", mcbist_id); assert(mcbist); - dt_add_mem_reg_property(mcbist, mcbist_id); + dt_add_property_cells(mcbist, "#address-cells", 1); + dt_add_property_cells(mcbist, "#size-cells", 0); + dt_add_property_cells(mcbist, "reg", mcbist_id, 0); } mcs_id = MS_CONTROLLER_MCS_ID(controller_id); -- cgit v1.2.1