]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead of path
authorMarek Behún <marek.behun@nic.cz>
Fri, 26 Nov 2021 13:57:11 +0000 (14:57 +0100)
committerStefan Roese <sr@denx.de>
Sun, 19 Dec 2021 08:50:47 +0000 (09:50 +0100)
commitbcf6971d536793eb99e12ff857cc018963d7cd46
treeb871b36ff2b7bfdd3a8f7ebd032ab8755efe75f5
parent9ab0c2f837241b819b23cbb5d48fa43acc2938d5
arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead of path

It is better to find DT nodes by compatible strings or aliases instead
of path.

There were issues with Linux some DTBs having different names of some
nodes, e.g.
  internal-regs
instead of
  internal-regs@d0000000

This should be a generic fix for such issues.

Also since fdt_support now contains needed functions, we can drop our
own implementations.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/turris_mox.c