Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to the
litex/tools/litex_json2dts_zephyr.py
file to enhance the handling of Ethernet buffers, overlay handlers, and configuration generation. The most important changes include modifying theethmac_handler
function to handle separate RX and TX buffers, updating thegenerate_dts_config
function to include overlay handlers, and making the--config
argument optional.Enhancements to Ethernet buffer handling:
litex/tools/litex_json2dts_zephyr.py
: Updatedethmac_handler
to handle separate RX and TX buffers instead of a single buffer. (supported in zephyr since 4.0.0, see zephyrproject-rtos/zephyr@239df9c)Improvements to overlay handlers:
litex/tools/litex_json2dts_zephyr.py
: Added a new overlay handler forprbs0
in the_overlay_handlers
dictionary.litex/tools/litex_json2dts_zephyr.py
: Modifiedgenerate_dts_config
to acceptoverlay_handlers
as a parameter and utilize it.Configuration generation updates:
litex/tools/litex_json2dts_zephyr.py
: Added a check to ensure the CSR data width is set, when it is different to 32 bits, the default in Zephyr.litex/tools/litex_json2dts_zephyr.py
: Made the--config
argument optional in theparse_args
function.