Merge pull request #864 from gsomlo/gls-json2dts-eth

json2dts.py: fix mac0 reg property style for consistency
This commit is contained in:
enjoy-digital 2021-03-26 08:33:14 +01:00 committed by GitHub
commit 60d518a5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -198,9 +198,10 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
dts += """ dts += """
mac0: mac@{ethmac_csr_base:x} {{ mac0: mac@{ethmac_csr_base:x} {{
compatible = "litex,liteeth"; compatible = "litex,liteeth";
reg = <0x{ethmac_csr_base:x} 0x7c>, reg = <
<0x{ethphy_csr_base:x} 0x0a>, 0x{ethmac_csr_base:x} 0x7c
<0x{ethmac_mem_base:x} 0x{ethmac_mem_size:x}>; 0x{ethphy_csr_base:x} 0x0a
0x{ethmac_mem_base:x} 0x{ethmac_mem_size:x}>;
tx-fifo-depth = <{ethmac_tx_slots}>; tx-fifo-depth = <{ethmac_tx_slots}>;
rx-fifo-depth = <{ethmac_rx_slots}>; rx-fifo-depth = <{ethmac_rx_slots}>;
{ethmac_interrupt} {ethmac_interrupt}