From 610bfe4d0c52cd84159c1b4a267560c3c0ca550e Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 26 Mar 2021 15:05:33 +0100 Subject: [PATCH] tools/litex_json2dts: Fix DTS indentation - Replace bogus TAB by spaces, - Drop spaces from empty lines. Signed-off-by: Geert Uytterhoeven --- litex/tools/litex_json2dts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/tools/litex_json2dts.py b/litex/tools/litex_json2dts.py index e95fe95b6..c7122de03 100755 --- a/litex/tools/litex_json2dts.py +++ b/litex/tools/litex_json2dts.py @@ -87,7 +87,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): }}; """.format(cpu=cpu, irq=cpu, sys_clk_freq=d["constants"]["config_clock_frequency"], cpu_isa=d["constants"]["cpu_isa"]) dts += """ - }; + }; """ # mor1kx @@ -163,7 +163,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): {cpu_mapping}>; riscv,ndev = <32>; }}; - """.format( +""".format( plic_base =d["memories"]["plic"]["base"], cpu_mapping =("\n" + " "*20).join(["&L{} 11 &L{} 9".format(cpu, cpu) for cpu in cpus])) @@ -275,7 +275,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): bus-width = <0x04>; status = "okay"; }}; - """.format( +""".format( mmc_csr_base = d["csr_bases"]["sdphy"], sdphy_csr_base = d["csr_bases"]["sdphy"], sdcore_csr_base = d["csr_bases"]["sdcore"],