From e042d7593a0b7544259fd2d22240e78d18912746 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Wed, 12 Feb 2025 12:39:02 +0100 Subject: [PATCH] Raspberry Pi: Copy Bluetooth device address in DT The firmware sets local-bd-address, copy it when loading a new DT. Signed-off-by: Fiona Klute Signed-off-by: Peter Robinson --- board/raspberrypi/rpi/rpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 43efb0dbc1d..70d3c35499b 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -599,6 +599,9 @@ void update_fdt_from_fw(void *fdt, void *fw_fdt) /* address of the PHY device as provided by the firmware */ copy_property(fdt, fw_fdt, "ethernet0/mdio@e14/ethernet-phy@1", "reg"); + + /* Bluetooth device address as provided by the firmware */ + copy_property(fdt, fw_fdt, "/soc/serial@7e201000/bluetooth", "local-bd-address"); } int ft_board_setup(void *blob, struct bd_info *bd)