Skip to content

fdt2, panel: Add ability generate panels from soc node#42

Open
barni2000 wants to merge 1 commit intomsm8916-mainline:masterfrom
barni2000:soc_node
Open

fdt2, panel: Add ability generate panels from soc node#42
barni2000 wants to merge 1 commit intomsm8916-mainline:masterfrom
barni2000:soc_node

Conversation

@barni2000
Copy link
Copy Markdown

@barni2000 barni2000 commented Mar 18, 2024

There are some soc (msm8996) where panel related information placed under /soc.

Related issue: #41

There are some soc (msm8996) where panel related information placed
under /soc.

Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
@z3ntu
Copy link
Copy Markdown
Contributor

z3ntu commented May 23, 2025

Any reason this is still marked as Draft?

@barni2000 barni2000 marked this pull request as ready for review May 24, 2025 18:48
Comment thread fdt2.py
[FDT_ERR_NOTFOUND])
if offset == -FDT_ERR_NOTFOUND:
return None
yield offset
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Using yield for a single element is a bit odd, this should return simply the index

Comment thread panel.py
for sub in fdt.subnodes(mdp):
yield sub

for mdp in fdt.find_by_path("/soc"):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And then drop the loop here, it doesn't actually loop over anything.

But I'm a bit skeptical about treating all devices below /soc as panels. Is there anything interesting inside the node or so that we could match on?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants