Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json2dts zephyr: enhance it #2198

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

maass-hamburg
Copy link
Contributor

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 the ethmac_handler function to handle separate RX and TX buffers, updating the generate_dts_config function to include overlay handlers, and making the --config argument optional.

Enhancements to Ethernet buffer handling:

Improvements to overlay handlers:

Configuration generation updates:

split ethmac buffers, supported in zephyr since 4.0.0.
see zephyrproject-rtos/zephyr@239df9c

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
add prbs0, wich is already part of the zephyr dt,
this makes sure to deactivate it, if we don't use it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
…value

The default value of CONFIG_LITEX_CSR_DATA_WIDTH in zephyr is 32,
so only add it, if it is not 32.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
make the config overlay file optional, in most cases it will
already be empty.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
make generate_dts_config() reuseable externallly by
providing the overlay handlers as an argument.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
add handler for ethphy mdio

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
don't skip interrupt 0.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant