Page MenuHomeFreeBSD

riscv bhyve: add peripheral clock
ClosedPublic

Authored by br on Jan 27 2025, 8:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 2:49 AM
Unknown Object (File)
Wed, Oct 8, 12:00 AM
Unknown Object (File)
Mon, Oct 6, 4:21 AM
Unknown Object (File)
Sep 13 2025, 8:54 PM
Unknown Object (File)
Sep 12 2025, 10:29 PM
Unknown Object (File)
Sep 12 2025, 12:20 PM
Unknown Object (File)
Sep 12 2025, 10:33 AM
Unknown Object (File)
Sep 10 2025, 11:38 AM
Subscribers

Details

Summary

Add a peripheral clock node and use it for UART.
This is needed for Linux.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br requested review of this revision.Jan 27 2025, 8:34 PM

It doesn't need clocks, it needs one of clocks or clock-frequency. QEMU's virt board lists the latter, which is far simpler and preferable in a virtualisation setting. It also uses 3686400 as the frequency, which I believe lets the guest go up to 230400 baud. We should align with QEMU where possible in order to avoid surprises.

Add clock-frequency property to UART instead of defining fixed-clock

This revision was not accepted when it landed; it landed in state Needs Review.Feb 3 2025, 11:53 AM
This revision was automatically updated to reflect the committed changes.