Skip to content

Conversation

@arthokal
Copy link

@arthokal arthokal commented Dec 6, 2025

Replace plat.buf() string manipulation with LopperTree/LopperNode APIs for generating device tree overlays. This improves maintainability and aligns with Lopper's architecture

Key changes:

  • Use LopperTree operations (+, -, overlay_of()) instead of string buffers
  • Add helper functions
  • Implement proper phandle resolution via tree.resolve()
  • Add support for cortexa78-versalnet and short platform names
  • Remove complex tab/indentation tracking logic
  • Add comprehensive error handling and validation

Replace plat.buf() string manipulation with LopperTree/LopperNode APIs for generating device tree overlays.
This improves maintainability and aligns with Lopper's architecture

Key changes:
- Use LopperTree operations (+, -, overlay_of()) instead of string buffers
- Add helper functions
- Implement proper phandle resolution via tree.resolve()
- Add support for cortexa78-versalnet and short platform names
- Remove complex tab/indentation tracking logic
- Add comprehensive error handling and validation

Signed-off-by: Aravind Thokala <aravind.thokala@amd.com>
@arthokal
Copy link
Author

arthokal commented Dec 6, 2025

@onkarharsh ,
Please review this.

Signed-off-by: Aravind Thokala <aravind.thokala@amd.com>
Signed-off-by: Aravind Thokala <aravind.thokala@amd.com>
@arthokal arthokal changed the title lopper: assists: xlnx_overlay_dt: Refactor to use Lopper tree operations WIP: lopper: assists: xlnx_overlay_dt: Refactor to use Lopper tree operations Dec 8, 2025
…nfiguration

Rely on Lopper's built-in phandle learning instead of manually registering
axistream-connected, pcs-handle, and remote_endpoint properties.

Lopper automatically discovers phandle properties by scanning input DTS
files for &label references during schema generation. This simplifies the
code and automatically handles new driver properties with phandles.

Signed-off-by: Aravind Thokala <aravind.thokala@amd.com>
@arthokal arthokal changed the title WIP: lopper: assists: xlnx_overlay_dt: Refactor to use Lopper tree operations lopper: assists: xlnx_overlay_dt: Refactor to use Lopper tree operations Dec 15, 2025
@zeddii
Copy link
Collaborator

zeddii commented Dec 18, 2025

Is this still WIP ? Do we think it is ready for merge ?

@onkarharsh
Copy link
Contributor

onkarharsh commented Dec 23, 2025

Hi @sathishkumar-amd / @kedareswararao , Please review this change once. I don't have the full awareness of the changes here.

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.

5 participants