From: Michal Wilczynski Date: Thu, 22 Aug 2024 09:20:02 +0000 (+0200) Subject: riscv: dts: spacemit: Fix uart0 problem with bash shell X-Git-Tag: accepted/tizen/unified/x/20240911.015644~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c0f3ee331d84839de828feb2793c4f3adcf70f4;p=platform%2Fkernel%2Flinux-riscv.git riscv: dts: spacemit: Fix uart0 problem with bash shell Using the uart0 node from the proposed upstream commit doesn't work well. The bash shell never appears with this approach. Use the vendor kernel driver ported from [1]. [1] - https://github.com/BPI-SINOVOIP/pi-linux.git Fixes: 8de5738c1378 ("riscv: dts: add initial SpacemiT K1 SoC device tree") Change-Id: Ic55dbd3387179fd5e623a6cc267917b74b2dabb4 Signed-off-by: Michal Wilczynski --- diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi index eaa1369c2514..70a0fb10fe1b 100644 --- a/arch/riscv/boot/dts/spacemit/k1.dtsi +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi @@ -388,13 +388,22 @@ ranges; uart0: serial@d4017000 { - compatible = "spacemit,k1-uart", "intel,xscale-uart"; + compatible = "spacemit,pxa-uart"; reg = <0x0 0xd4017000 0x0 0x100>; + interrupt-parent = <&plic>; interrupts = <42>; - clock-frequency = <14857000>; - reg-shift = <2>; - reg-io-width = <4>; - status = "disabled"; + clocks = <&ccu CLK_UART1>, <&ccu CLK_SLOW_UART>; + clock-names = "func", "gate"; + clk-fpga = <14750000>; + resets = <&reset RESET_UART1>; + power-domains = <&power K1X_PMU_BUS_PWR_DOMAIN>; + clk,pm-runtime,no-sleep; + cpuidle,pm-runtime,sleep; + dmas = <&pdma0 DMA_UART0_RX 1 + &pdma0 DMA_UART0_TX 1>; + dma-names = "rx", "tx"; + interconnects = <&dram_range0>; + interconnect-names = "dma-mem"; }; uart2: serial@d4017100 {