From d8b844bbda33afb0eae4272137ad4e21a6d35ebf Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 4 Dec 2020 16:38:48 +0100 Subject: [PATCH] tools/litex_json2dts: Group tuples in liteeth reg property To improve human readability and enable automatic validation, the tuples in "reg" properties should be grouped using angle brackets. 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 e2317794a..345b111dd 100755 --- a/litex/tools/litex_json2dts.py +++ b/litex/tools/litex_json2dts.py @@ -183,9 +183,9 @@ def generate_dts(d): dts += """ mac0: mac@{ethmac_csr_base:x} {{ compatible = "litex,liteeth"; - reg = <0x{ethmac_csr_base:x} 0x7c - 0x{ethphy_csr_base:x} 0x0a - 0x{ethmac_mem_base:x} 0x2000>; + reg = <0x{ethmac_csr_base:x} 0x7c>, + <0x{ethphy_csr_base:x} 0x0a>, + <0x{ethmac_mem_base:x} 0x2000>; tx-fifo-depth = <{ethmac_tx_slots}>; rx-fifo-depth = <{ethmac_rx_slots}>; }};