UART0 如何使用DMA模式,而不是interrupt模式?
Posted: 2024-10-31 1:41
目前提示为interrupt 模式,如何改成dma模式?
[ 21.798421] of_dma_request_slave_channel: dma-names property of node '/serial@ff4a0000' missing or empty
[ 21.798452] dw-apb-uart ff4a0000.serial: failed to request DMA, use interrupt mode
dts如下:
uart0: serial@ff4a0000 {
compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
reg = <0xff4a0000 0x100>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>;
reg-io-width = <4>;
dmas = <&dmac 7>, <&dmac 6>;
clock-frequency = <24000000>;
clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
clock-names = "baudclk", "apb_pclk";
pinctrl-names = "default";
pinctrl-0 = <&uart0m0_xfer>;
status = "okay";
};
[ 21.798421] of_dma_request_slave_channel: dma-names property of node '/serial@ff4a0000' missing or empty
[ 21.798452] dw-apb-uart ff4a0000.serial: failed to request DMA, use interrupt mode
dts如下:
uart0: serial@ff4a0000 {
compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
reg = <0xff4a0000 0x100>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>;
reg-io-width = <4>;
dmas = <&dmac 7>, <&dmac 6>;
clock-frequency = <24000000>;
clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
clock-names = "baudclk", "apb_pclk";
pinctrl-names = "default";
pinctrl-0 = <&uart0m0_xfer>;
status = "okay";
};