Raspberry Pi: Copy Bluetooth device address in DT
authorFiona Klute <fiona.klute@gmx.de>
Wed, 12 Feb 2025 11:39:02 +0000 (12:39 +0100)
committerPeter Robinson <pbrobinson@gmail.com>
Thu, 13 Mar 2025 11:06:16 +0000 (11:06 +0000)
The firmware sets local-bd-address, copy it when loading a new DT.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
board/raspberrypi/rpi/rpi.c

index 43efb0d..70d3c35 100644 (file)
@@ -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)