Skip to content

Is it possible to reference a devicetree alias elsewhere in the devicetree? #52587

Closed Answered by jeremyherbert
jeremyherbert asked this question in Q&A
Discussion options

You must be logged in to vote

I found my answer: https://elinux.org/Device_Tree_Mysteries#Label_vs_aliases_node_property

The working way to do this is:

my_uart: &uart0 {};

/ {
  my_device: my_device {
    compatible = "someone,something";
    label = "My Device";
    base-uart = < &my_uart >
  }
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeremyherbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant