Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupt parent phandle typos in interrupt-map example #27

Open
ulfalizer opened this issue Jun 7, 2019 · 3 comments
Open

Interrupt parent phandle typos in interrupt-map example #27

ulfalizer opened this issue Jun 7, 2019 · 3 comments

Comments

@ulfalizer
Copy link

In the PCI interrupt-map example, &open-pic should be &open_pic (with a label added to /soc/open-pic, which can't have - in it), or &{/soc/open-pic}.

Unrelated, and not sure I've read closely enough: Why is the interrupt parent unit address included in interrupt-map? The phandle already points to its node, so it seems redundant.

@ulfalizer
Copy link
Author

Unrelated, and not sure I've read closely enough: Why is the interrupt parent unit address included in interrupt-map? The phandle already points to its node, so it seems redundant.

Hmm... think I get it now. It's just so that the parent specifier can recursively translated with the same logic as for e.g. gpio-map, making it consistent. Might be nice to clarify that.

@robherring
Copy link
Member

Can you submit a patch to fix this.

It's the child address that is part of the interrupt-map. I think the child address was primarily needed for PCI in some cases.

@ulfalizer
Copy link
Author

It's the child address that is part of the interrupt-map. I think the child address was primarily needed for PCI in some cases.

The parent address is included as well, in addition to the parent phandle:

interrupt-map:

...

child unit address: ...

child interrupt specifier: ...

interrupt-parent: <phandle>

parent unit address: The unit address in the domain of the interrupt parent. The number of 32-bit cells required to specify this address is described by the #address-cells property of the node pointed to by the interrupt-parent field.

parent interrupt specifier: ...

In the PCI example, #address-cells = <0> for the parent though, so it disappears.

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

No branches or pull requests

2 participants