Re: [PATCH v5 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART
From: Kevin Hilman
Date: Thu Apr 18 2019 - 19:22:37 EST
Paul Walmsley <paul.walmsley@xxxxxxxxxx> writes:
> This series adds a serial driver, with console support, for the
> UART IP block present on the SiFive FU540 SoC. The programming
> model is straightforward, but unique.
> Boot-tested on a SiFive FU540 HiFive-U board, using BBL and the
> open-source FSBL (with appropriate patches to the DT data).
> This fifth version fixes a bug in the set_termios handler,
> found by Andreas Schwab <schwab@xxxxxxx>.
> The patches in this series can also be found, with the PRCI patches,
> DT patches, and DT prerequisite patch, at:
I tried this branch, and it doesn't boot on my unleashed board.
Here's the boot log when I pass the DT built from your branch via
I also tried the same thing, but using the DT that's hard-coded into
SBI/u-boot. That doesn't boot fully either, but one thing I noted is
that with the DT from the kernel tree, the printk timestamps aren't
moving. Maybe I'm still missing some kconfig options to enable the
right clock and/or IRQ controllers? I'm using this fragment on top of
the default defconfig (arch/riscv/configs/defconfig).
Could you share the defconfig you're using when testing your branch?
Also for reference, I'm able to successfully build/boot the
5.1-rc1-unleashed branch from Atish's tree using that kconfig
fragment (and the hard-coded DT from u-boot/SBI). Full log here.