generate-zephyr-dts.py: new handlers for 'spiflash' and 'identifier_mem'
generate-zephyr-dts.py: new handlers for 'spiflash' and 'identifier_mem'

Added:
 - The 'spiflash' handler maps in the memory region as spi0
 - The 'identifier_mem' handler maps in 256 bytes of static indentification
   rom as dna0.

Example session:

$ ./generate-zephyr-dts.py --dts - --config - src/board.csr.json
Generating overlay for: uart
Generating overlay for: timer0
Generating overlay for: ethmac
Generating overlay for: spiflash
  dtsi key 'spiflash_interrupt' not found, no interrupt override
Generating overlay for: i2c0
  dtsi key 'i2c0' not found, disable i2c0
Generating overlay for: main_ram
Generating overlay for: identifier_mem
  dtsi key 'identifier_mem_interrupt' not found, no interrupt override
No overlay handler for: ctrl at 0xf0000000
No overlay handler for: ethphy at 0xf0001000
No overlay handler for: sdram at 0xf0002000

DTS output:
===========
&uart0 {
    reg = <0xf0003800 0x20>;
    interrupts = <0x0 0>;
};
&timer0 {
    reg = <0xf0003000 0x40>;
    interrupts = <0x1 0>;
};
&eth0 {
    reg = <0xf0000800 0x80 0x80000000 0x2000>;
    interrupts = <0x2 0>;
};
&spi0 {
    reg = <0xf0002800 0xc>;
};
&i2c0 {
    status = "disabled";
};
&ram0 {
    reg = <0x40000000 0x400000>;
};
&dna0 {
    reg = <0xf0001800 0x100>;
};

Config output:
==============
 -DCONFIG_UART_LITEUART=y -DCONFIG_LITEX_TIMER=y -DCONFIG_ETH_LITEETH=y -DCONFIG_SPI_LITESPI=y -DCONFIG_I2C_LITEX=n

Signed-off-by: Henk Vergonet <f53172cc1f7405bac579398b17d886f6d3e46229@gmail.com>

litex-hub/litex-renode