Skip to content

Conversation

soburi
Copy link
Owner

@soburi soburi commented Oct 3, 2025

Summary

  • add a list_bus_nodes.py helper that walks bindings for bus definitions and membership with optional CSV output
  • document the helper in the DTS scripts README

Testing

  • python scripts/dts/list_bus_nodes.py | head (fails: PyYAML not installed in environment)

https://chatgpt.com/codex/tasks/task_e_68dfa52c6c148322bb77c9c68f88cdd9

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 133 to 136
binding_files = [str(path) for path in find_binding_files(bindings_root)]

bindings = bindings_from_paths(binding_files)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Skip bindings without compatibles before loading

The script gathers every YAML file under the bindings root and feeds them to bindings_from_paths(). Many files in dts/bindings are include fragments such as base.yaml that intentionally omit a compatible key; Binding() raises EDTError for those by default. With the current call the tool aborts before producing any output as soon as it encounters such a file, so the default invocation (list_bus_nodes.py with no arguments) cannot succeed even when PyYAML is installed. Consider filtering the list to only bindings with compatible or pass ignore_errors=True so include-only YAML does not kill the script.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant