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 <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven 2021-03-26 15:36:30 +01:00
parent 54d2578f04
commit a7a70fa2f0
1 changed files with 4 additions and 5 deletions

View File

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