riscv: dts: spacemit: Fix uart0 problem with bash shell 46/316546/1
authorMichal Wilczynski <m.wilczynski@samsung.com>
Thu, 22 Aug 2024 09:20:02 +0000 (11:20 +0200)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Thu, 22 Aug 2024 11:54:04 +0000 (13:54 +0200)
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 <m.wilczynski@samsung.com>
arch/riscv/boot/dts/spacemit/k1.dtsi

index eaa1369c2514daeb9afba736212885951ef133f3..70a0fb10fe1b900ebd2961fafb7ec69820268961 100644 (file)
                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 {