summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiona Klute <[email protected]>2025-02-12 12:39:02 +0100
committerPeter Robinson <[email protected]>2025-03-13 11:06:16 +0000
commite042d7593a0b7544259fd2d22240e78d18912746 (patch)
tree4504976353ebcddc409375e2c5ae548717046c5d
parentfc7a3110184a3ca4c227675b20d3a4887210e36c (diff)
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 <[email protected]> Signed-off-by: Peter Robinson <[email protected]>
-rw-r--r--board/raspberrypi/rpi/rpi.c3
1 files changed, 3 insertions, 0 deletions
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)