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:
parent
2776b63d1a
commit
e19dfa8800
|
@ -74,7 +74,7 @@ def dts_intr(name, csr, levels=1):
|
||||||
def dts_reg(regs, levels=1):
|
def dts_reg(regs, levels=1):
|
||||||
dtsi = 'reg = <'
|
dtsi = 'reg = <'
|
||||||
|
|
||||||
formatted_registers = '\n'.join(
|
formatted_registers = '>,\n<'.join(
|
||||||
'0x{:x} 0x{:x}'.format(reg['addr'], reg['size'])
|
'0x{:x} 0x{:x}'.format(reg['addr'], reg['size'])
|
||||||
for reg in regs
|
for reg in regs
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue