]> git.baikalelectronics.ru Git - uboot.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)
commitf6afffffad9370ad4ef92877e9390271acdc405d
treeb871b36ff2b7bfdd3a8f7ebd032ab8755efe75f5
parentd076bbb26d5f5c22f151927c85a09c76bf4aa0cb
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