Merge pull request #722 from geertu/master

tools/litex_json2dts: Miscellaneous fixes and improvements
This commit is contained in:
enjoy-digital 2020-12-08 14:01:14 +01:00 committed by GitHub
commit 44d21cb0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -183,9 +183,9 @@ def generate_dts(d):
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{ethmac_csr_base:x} 0x7c>,
0x{ethphy_csr_base:x} 0x0a <0x{ethphy_csr_base:x} 0x0a>,
0x{ethmac_mem_base:x} 0x2000>; <0x{ethmac_mem_base:x} 0x2000>;
tx-fifo-depth = <{ethmac_tx_slots}>; tx-fifo-depth = <{ethmac_tx_slots}>;
rx-fifo-depth = <{ethmac_rx_slots}>; rx-fifo-depth = <{ethmac_rx_slots}>;
}}; }};
@ -254,7 +254,7 @@ def generate_dts(d):
litespi,num-cs = <1>; litespi,num-cs = <1>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <0>;
spidev0: spidev@0 {{ spidev0: spidev@0 {{
compatible = "linux,spidev"; compatible = "linux,spidev";
@ -302,7 +302,7 @@ def generate_dts(d):
litespi,num-cs = <1>; litespi,num-cs = <1>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <0>;
mmc-slot@0 {{ mmc-slot@0 {{
compatible = "mmc-spi-slot"; compatible = "mmc-spi-slot";