-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add support for the N308 rcpu in the SpacemiT K1 SoC and BananaPi BPI-F3 board #95248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
drivers/serial/uart_ns16550.c
Outdated
| #ifdef CONFIG_UART_NS16550_PXA | ||
| ns16550_outbyte(dev_cfg, IER(dev), 0x40); | ||
| #else | ||
| ns16550_outbyte(dev_cfg, IER(dev), 0x00); | ||
| #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way; this should be handled by a quirk property in the DT compatible at least
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review. I've updated it by introduced a new compatible (intel,xscale-uart) to handle it.
Add spacemit vendor prefix. Signed-off-by: Junhui Liu <[email protected]>
Add support for Intel XScale PXA UART, which requires setting the UART Unit Enable (UUE) bit to enable the UART. This is needed for some SoCs, such as the SpacemiT K1, taht implement the PXA UART variant. Signed-off-by: Junhui Liu <[email protected]>
Add the Nuclei N308 RISC-V core, which is a 32-bit processor in the N300 series, featuring a 3-stage pipeline. Signed-off-by: Junhui Liu <[email protected]>
The SpacemiT K1 SoC integrates a Nuclei N308 RISC-V core as a coprocessor, running at a clock frequency of 32768 * 4 Hz. This describes the N308 core, including 256 KiB of on-chip SRAM, and two XScale PXA UART peripherals. Signed-off-by: Junhui Liu <[email protected]>
Add N308 coprocessor support for the SpacemiT K1 SoC, which features eight X60 Linux cores plus a 32-bit Nuclei N308 microcontroller core. Signed-off-by: Junhui Liu <[email protected]>
Add initial support for the Banana Pi BPI-F3, an industrial grade RISC-V development board based on the SpacemiT K1 SoC (8 * X60 cores + N308 coprocessor). Signed-off-by: Junhui Liu <[email protected]>
|



This PR adds support the Banana Pi BPI-F3 board featuring the SpacemiT K1 SoC with the N308 RISC-V core.
The initial support for the board include timer, interrupt-controller and uart.
Currently, we need to boot the Official Bianbu image provided by the vendor. This will enable the N308 and configure uart0 for the N308(pinctrl, clock and reset). Afterward, the Zephyr application can be loaded by JTAG.
The Bianbu image is required until the mainline kernel provides a remoteproc driver, and until Zephyr adds support for reset, pinctrl and clock drivers.
Relevant Links: