Skip to content

Commit

Permalink
tools/litex_json2dts_zephyr: fix reg format
Browse files Browse the repository at this point in the history
addr size pairs should be enclosed '< >' and comma separated to be
dts compliant.
  • Loading branch information
Andrew Dennison committed May 30, 2024
1 parent 10e5456 commit 398c75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/tools/litex_json2dts_zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 398c75b

Please sign in to comment.