The branch main has been updated by br:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=95b8b67f3c4b5cdbc48557359e6b2e1ef423ed26

commit 95b8b67f3c4b5cdbc48557359e6b2e1ef423ed26
Author:     Ruslan Bukin <b...@freebsd.org>
AuthorDate: 2025-02-03 11:39:21 +0000
Commit:     Ruslan Bukin <b...@freebsd.org>
CommitDate: 2025-02-03 11:39:21 +0000

    bhyve/riscv: add clock-frequency property to DTS.
    
    Add clock-frequency property to the UART adapter node in DTS.
    
    Differential Revision:  https://reviews.freebsd.org/D48699
---
 usr.sbin/bhyve/riscv/fdt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.sbin/bhyve/riscv/fdt.c b/usr.sbin/bhyve/riscv/fdt.c
index 81296714e013..fa66b761f08c 100644
--- a/usr.sbin/bhyve/riscv/fdt.c
+++ b/usr.sbin/bhyve/riscv/fdt.c
@@ -222,6 +222,7 @@ fdt_add_uart(uint64_t uart_base, uint64_t uart_size, int 
intr)
        fdt_begin_node(fdt, node_name);
        fdt_property_string(fdt, "compatible", "ns16550");
        set_single_reg(fdt, uart_base, uart_size);
+       fdt_property_u32(fdt, "clock-frequency", 3686400);
        fdt_property_u32(fdt, "interrupt-parent", aplic_phandle);
        fdt_property_placeholder(fdt, "interrupts", 2 * sizeof(uint32_t),
            &interrupts);

Reply via email to