From 88ec1b3f5ef28a5c349c194dcbb680300039a791 Mon Sep 17 00:00:00 2001 From: Richard Tucker Date: Thu, 31 Mar 2022 16:43:30 +1100 Subject: [PATCH] tools: include LITESD in zephyr dts generator --- litex/tools/litex_json2dts_zephyr.py | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/litex/tools/litex_json2dts_zephyr.py b/litex/tools/litex_json2dts_zephyr.py index c9a07ac13..a064a3d45 100755 --- a/litex/tools/litex_json2dts_zephyr.py +++ b/litex/tools/litex_json2dts_zephyr.py @@ -212,6 +212,36 @@ overlay_handlers = { 'alias': 'spi0', 'config_entry': 'SPI_LITESPI' }, + 'sdblock2mem': { + 'handler': peripheral_handler, + 'alias': 'sdblock2mem', + 'size': 0x18, + 'config_entry': 'SD_LITESD' + }, + 'sdcore': { + 'handler': peripheral_handler, + 'alias': 'sdcore', + 'size': 0x2C, + 'config_entry': 'SD_LITESD' + }, + 'sdirq': { + 'handler': peripheral_handler, + 'alias': 'sdirq', + 'size': 0x0C, + 'config_entry': 'SD_LITESD' + }, + 'sdmem2block': { + 'handler': peripheral_handler, + 'alias': 'sdmem2block', + 'size': 0x18, + 'config_entry': 'SD_LITESD' + }, + 'sdphy': { + 'handler': peripheral_handler, + 'alias': 'sdphy', + 'size': 0x10, + 'config_entry': 'SD_LITESD' + }, 'i2c0' : { 'handler': i2c_handler, 'config_entry': 'I2C_LITEX'