From: pillow <waysorrypub@gmail.com>
To: qemu-devel@nongnu.org
Cc: 17746591750@163.com, maobibo@loongson.cn, lixianglai@loongson.cn,
jiaxun.yang@flygoat.com, mst@redhat.com, imammedo@redhat.com,
anisinha@redhat.com, pillow <waysorrypub@gmail.com>
Subject: [PATCH v4 4/4] hw/loongarch/virt: Fix UART clock frequency in FDT
Date: Thu, 22 Oct 2026 15:22:38 +0800 [thread overview]
Message-ID: <20261022072238.319308-5-waysorrypub@gmail.com> (raw)
In-Reply-To: <20261022072238.319308-1-waysorrypub@gmail.com>
The UART uses baudbase = 115200, corresponding to an input clock of
1843200 Hz. Update the FDT clock-frequency property to match the model.
Signed-off-by: pillow <waysorrypub@gmail.com>
---
hw/loongarch/virt-fdt-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/loongarch/virt-fdt-build.c b/hw/loongarch/virt-fdt-build.c
index c6f5d02..7be71e2 100644
--- a/hw/loongarch/virt-fdt-build.c
+++ b/hw/loongarch/virt-fdt-build.c
@@ -474,7 +474,7 @@ static void fdt_add_uart_node(LoongArchVirtMachineState *lvms,
qemu_fdt_add_subnode(ms->fdt, nodename);
qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "ns16550a");
qemu_fdt_setprop_cells(ms->fdt, nodename, "reg", 0x0, base, 0x0, size);
- qemu_fdt_setprop_cell(ms->fdt, nodename, "clock-frequency", 100000000);
+ qemu_fdt_setprop_cell(ms->fdt, nodename, "clock-frequency", 1843200);
if (chosen) {
qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", nodename);
}
--
2.56.0
prev parent reply other threads:[~2026-10-22 7:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 7:22 [PATCH v4 0/4] hw/loongarch/virt: Fix UART ACPI and FDT pillow
2026-10-22 7:22 ` [PATCH v4 1/4] bios-tables-test-allowed-diff.h: Allow LoongArch DSDT.* pillow
2026-10-22 7:22 ` [PATCH v4 2/4] hw/loongarch/virt-acpi-build: Drop UART _DSD clock and add _STA pillow
2026-10-22 8:15 ` Igor Mammedov
2026-10-22 8:18 ` Igor Mammedov
2026-10-22 9:01 ` way sorry
2026-10-22 9:25 ` way sorry
2026-10-22 11:27 ` Igor Mammedov
2026-10-22 7:22 ` [PATCH v4 3/4] tests/data/acpi/loongarch64: Update expected DSDT.* pillow
2026-10-22 7:22 ` pillow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261022072238.319308-5-waysorrypub@gmail.com \
--to=waysorrypub@gmail.com \
--cc=17746591750@163.com \
--cc=anisinha@redhat.com \
--cc=imammedo@redhat.com \
--cc=jiaxun.yang@flygoat.com \
--cc=lixianglai@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.