From a7a70fa2f0464159781c87dd97f77900fa4de002 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 26 Mar 2021 15:36:30 +0100 Subject: [PATCH] tools/litex_json2dts: Fix mmc node mmc@f0006800:reg:0: [4026558464, 256, 4026560512, 256, 4026562560, 256, 4026564608, 256] is too long From schema: dt-schema/dtschema/schemas/simple-bus.yaml mmc@f0006800:reg:0: [4026558464, 256, 4026560512, 256, 4026562560, 256, 4026564608, 256] is too long From schema: dt-schema/dtschema/schemas/reg.yaml Fix this by grouping the tuples in the "reg" property using angle brackets. Signed-off-by: Geert Uytterhoeven --- litex/tools/litex_json2dts.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/litex/tools/litex_json2dts.py b/litex/tools/litex_json2dts.py index 79e51a6f3..4248837c9 100755 --- a/litex/tools/litex_json2dts.py +++ b/litex/tools/litex_json2dts.py @@ -267,11 +267,10 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): dts += """ mmc0: mmc@{mmc_csr_base:x} {{ compatible = "litex,mmc"; - reg = < - 0x{sdphy_csr_base:x} 0x100 - 0x{sdcore_csr_base:x} 0x100 - 0x{sdblock2mem:x} 0x100 - 0x{sdmem2block:x} 0x100>; + reg = <0x{sdphy_csr_base:x} 0x100>, + <0x{sdcore_csr_base:x} 0x100>, + <0x{sdblock2mem:x} 0x100>, + <0x{sdmem2block:x} 0x100>; bus-width = <0x04>; status = "okay"; }};