tools/litex_json2dts_zephyr: fix reg format

addr size pairs should be enclosed '< >' and comma separated to be
dts compliant.
This commit is contained in:
Andrew Dennison 2024-05-27 17:03:45 +10:00
parent 2776b63d1a
commit e19dfa8800
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def dts_intr(name, csr, levels=1):
def dts_reg(regs, levels=1):
dtsi = 'reg = <'
formatted_registers = '\n'.join(
formatted_registers = '>,\n<'.join(
'0x{:x} 0x{:x}'.format(reg['addr'], reg['size'])
for reg in regs
)