]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/virt: Add serial aliases in DTB
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Jun 2024 16:23:41 +0000 (17:23 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 21 Jun 2024 13:01:59 +0000 (14:01 +0100)
commit9ed2fb65cc827904241dee189c801c10079c2fe3
treea54bd837f30cbbf0721dc1df3df90a49f294990f
parent813b59e8b8ab5d284672e0bbd79173df2e25e01d
hw/arm/virt: Add serial aliases in DTB

If there is more than one UART in the DTB, then there is no guarantee
on which order a guest is supposed to initialise them.  The standard
solution to this is "serialN" entries in the "/aliases" node of the
dtb which give the nodename of the UARTs.

At the moment we only have two UARTs in the DTB when one is for
the Secure world and one for the Non-Secure world, so this isn't
really a problem. However if we want to add a second NS UART we'll
need the aliases to ensure guests pick the right one.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240610162343.2131524-2-peter.maydell@linaro.org
hw/arm/virt.c