[PATCH 14/18] riscv: dts: zhihe: add A210 UARTs
Philipp Zabel
p.zabel at pengutronix.de
Thu Oct 22 02:22:51 PDT 2026
On Do, 2026-10-22 at 03:53 +0800, Han Gao via B4 Relay wrote:
> From: Zhiguo Zhu <zhiguo.zhu at linux.alibaba.com>
>
> Add the ten A210 UARTs with their clocks, resets and interrupts, using
> the snps,dw-apb-uart compatible.
>
> Signed-off-by: Zhiguo Zhu <zhiguo.zhu at linux.alibaba.com>
> Co-developed-by: Han Gao <gaohan at iscas.ac.cn>
> Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
> ---
> arch/riscv/boot/dts/zhihe/a210.dtsi | 150 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 150 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/zhihe/a210.dtsi b/arch/riscv/boot/dts/zhihe/a210.dtsi
> index bbad51a3edb0..a07b67d10633 100644
> --- a/arch/riscv/boot/dts/zhihe/a210.dtsi
> +++ b/arch/riscv/boot/dts/zhihe/a210.dtsi
> @@ -405,6 +405,66 @@ rst_peri1: reset-controller at 2010400 {
> #reset-cells = <1>;
> };
>
> + uart0: serial at 2014000 {
> + compatible = "snps,dw-apb-uart";
Prepend a vendor compatible if you need two resets, similar to
"starfive,jh7100-uart"?
> + reg = <0x0 0x02014000 0x0 0x400>;
> + clocks = <&clk_peri PERI1_UART0_SCLK_EN>,
> + <&clk_peri PERI1_UART0_PCLK_EN>;
> + clock-names = "baudclk", "apb_pclk";
> + interrupt-parent = <&intc>;
> + interrupts = <321 IRQ_TYPE_LEVEL_HIGH>;
> + reg-io-width = <4>;
> + reg-shift = <2>;
> + resets = <&rst_peri1 PERI1_UART0_PRST>;
This looks to me like it should be
resets = <&rst_peri1 PERI1_UART0_PRST>,
<&rst_peri1 PERI1_UART0_S_RST>;
instead.
regards
Philipp
More information about the linux-riscv
mailing list