Skip to content

base: fix phandle resolution for vendor-prefixed DTS properties#732

Open
arthokal wants to merge 1 commit intodevicetree-org:masterfrom
arthokal:hdmi-connector
Open

base: fix phandle resolution for vendor-prefixed DTS properties#732
arthokal wants to merge 1 commit intodevicetree-org:masterfrom
arthokal:hdmi-connector

Conversation

@arthokal
Copy link
Copy Markdown
Contributor

@arthokal arthokal commented Apr 8, 2026

DTS property names using a vendor prefix follow the convention , (e.g., xlnx,hdmi-connector and xlnx,xlnx-hdmi-acr-ctrl). The regex pattern used to detect property definitions during phandle resolution was restricted to the character class [a-zA-Z0-9_-], which excludes the comma character. As a result, any property whose name contains a vendor prefix was silently skipped, leaving its phandle references unresolved in the Lopper-generated pl.dtsi.

Extend the character class to [a-zA-Z0-9_,-] to include the comma, allowing vendor-prefixed property names to be matched. This restores correct phandle resolution for properties such as xlnx,hdmi-connector and xlnx,xlnx-hdmi-acr-ctrl generated by SDT for HDMI-related PL IP blocks (e.g., xfmc and audio_ss_0_hdmi_acr_ctrl), bringing the Lopper output in line with the reference SDT-generated pl.dtsi.

DTS property names using a vendor prefix follow the convention
<vendor>,<property> (e.g., xlnx,hdmi-connector and
xlnx,xlnx-hdmi-acr-ctrl). The regex pattern used to detect property
definitions during phandle resolution was restricted to the character
class [a-zA-Z0-9_-], which excludes the comma character. As a result,
any property whose name contains a vendor prefix was silently skipped,
leaving its phandle references unresolved in the Lopper-generated
pl.dtsi.

Extend the character class to [a-zA-Z0-9_,-] to include the comma,
allowing vendor-prefixed property names to be matched. This restores
correct phandle resolution for properties such as xlnx,hdmi-connector
and xlnx,xlnx-hdmi-acr-ctrl generated by SDT for HDMI-related PL IP
blocks (e.g., xfmc and audio_ss_0_hdmi_acr_ctrl), bringing the
Lopper output in line with the reference SDT-generated pl.dtsi.

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

arthokal commented Apr 8, 2026

@onkarharsh ,
Please review.

Copy link
Copy Markdown
Contributor

@onkarharsh onkarharsh left a comment

Choose a reason for hiding this comment

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

Looks good to me

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.

2 participants