From: Bruno Leite Date: Tue, 15 Apr 2025 08:30:14 +0000 (+0200) Subject: rpi: copy over uart clock-frequency in DT X-Git-Tag: v2025.07-rc1~47^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0270806ffea732bd0835c14892740a9b82703788;p=pandora-u-boot.git rpi: copy over uart clock-frequency in DT rpi5 firmware sets uart_clk clock-frequency in the firmware and patches it to the DT, copy it over when loading a new DT. Signed-off-by: Bruno Leite Reviewed-by: Peter Robinson Tested-by: Peter Robinson --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 6ecd3eb120f..049904b93fb 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -602,6 +602,9 @@ void update_fdt_from_fw(void *fdt, void *fw_fdt) /* Bluetooth device address as provided by the firmware */ copy_property(fdt, fw_fdt, "/soc/serial@7e201000/bluetooth", "local-bd-address"); + + /* copy uart clk as provided by the firmware */ + copy_property(fdt, fw_fdt, "/clocks/clk-uart", "clock-frequency"); } int ft_board_setup(void *blob, struct bd_info *bd)