Skip to content

lopper: assists: Model TTC counters as child nodes - #792

Merged
zeddii merged 1 commit into
devicetree-org:masterfrom
katrusatyasri:ttc-counter-model
Jul 28, 2026
Merged

lopper: assists: Model TTC counters as child nodes#792
zeddii merged 1 commit into
devicetree-org:masterfrom
katrusatyasri:ttc-counter-model

Conversation

@katrusatyasri

Copy link
Copy Markdown

Update the TTC node generation logic based on review feedback to model TTC counters as child nodes of the parent TTC device.

Changes

  • Preserve TTC nodes as parent container nodes.
  • Add #address-cells and #size-cells properties.
  • Generate counter@0, counter@1, and counter@2 child nodes.
  • Move interrupt properties from the parent node to the
    corresponding child counter nodes.
  • Update supported TTC properties for the new hierarchy.

This aligns the generated Devicetree hierarchy with the TTC hardware organization and the Zephyr TTC counter driver model.

Update the TTC node generation logic to model TTC counters as
child nodes of the parent TTC device.

Previously, the lopper assist generated independent TTC
counter nodes. Following review feedback, preserve the TTC
node as a container and generate counter@0, counter@1, and
counter@2 child nodes.

Move interrupt properties from the parent node to the
corresponding child counter nodes and add the required
parent/child hierarchy.

Also update the supported property list to retain the
properties required by the generated TTC container node.

Signed-off-by: Satya Sri <satyasri.katru@amd.com>
@katrusatyasri

Copy link
Copy Markdown
Author

@kedareswararao ,
please review

@kedareswararao kedareswararao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes looks fine to me

@zeddii
zeddii merged commit c6e6161 into devicetree-org:master Jul 28, 2026
3 checks passed
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.

3 participants