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

generate_svd: generalize DTS parser #18

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

Conversation

rmsyn
Copy link

@rmsyn rmsyn commented Sep 10, 2023

Generalizes the DTS parser to not rely on the presence of the reg-names field to parse reg field in peripherals child nodes.

Instead, rely on the structure as defined by the DTS specification, i.e. the address field is first indexed at <address-cells> - 1, and the size field is second indexed at <address-cells> + <size-cells> - 1.

Search compatible list for clic0, clint0, and plic0 strings, and modifies the script_path to point to the relevant regmap generator.

Adds instructions for flattening DTS files that include C and/or DTSI files.

@rmsyn rmsyn force-pushed the fixup/generalize-dts-parser branch 2 times, most recently from 9c255ed to a217b8e Compare September 13, 2023 03:09
Generalizes the DTS parser to not rely on the presence of the
`reg-names` field to parse `reg` field in peripherals child nodes.

Instead, rely on the structure as defined by the DTS specification, i.e.
the address field is first indexed at `<address-cells> - 1`, and the
size field is second indexed at `<address-cells> + <size-cells> - 1`.

Search compatible list for `clic0`, `clint0`, and `plic0` strings, and
modifies the `script_path` to point to the relevant regmap generator.
Adds instructions for flattening DTS files that include C and/or DTSI
files.
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