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)
Dec 21 2025, 2:30 PM
Unknown Object (File)
Nov 27 2025, 1:34 AM
Unknown Object (File)
Nov 12 2025, 4:42 PM
Unknown Object (File)
Nov 12 2025, 10:59 AM
Unknown Object (File)
Nov 12 2025, 3:51 AM
Unknown Object (File)
Oct 24 2025, 12:02 AM
Unknown Object (File)
Oct 23 2025, 6:48 PM
Unknown Object (File)
Oct 23 2025, 11:42 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.