Skip to content

Commit

Permalink
feat: add rockchip-uart-tx-dma
Browse files Browse the repository at this point in the history
* closes radxa-pkg#366
  • Loading branch information
CodeChenL committed Sep 5, 2024
1 parent 9b778dc commit 149a915
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ dtb-$(CONFIG_CPU_RK3588) += \
rock-5b-plus-radxa-display-10hd.dtbo \
rock-5d-radxa-camera-4k.dtbo

dtb-$(CONFIG_ARCH_ROCKCHIP) += rockchip-watchdog.dtbo
dtb-$(CONFIG_ARCH_ROCKCHIP) += rockchip-watchdog.dtbo \
rockchip-uart-tx-dma.dtbo

dtbotxt-$(CONFIG_ARCH_ROCKCHIP) += \
README.overlays
Expand Down
51 changes: 51 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rockchip-uart-tx-dma.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Switch all UART TX to DMA mode";
compatible = "rockchip,rk3566", "rockchip,rk3568", "rockchip,rk3588";
category = "misc";
description = "Switch all UART TX to DMA mode";
};
};

&uart0 {
dma-names = "tx";
};

&uart1 {
dma-names = "tx";
};

&uart2 {
dma-names = "tx";
};

&uart3 {
dma-names = "tx";
};

&uart4 {
dma-names = "tx";
};

&uart5 {
dma-names = "tx";
};

&uart6 {
dma-names = "tx";
};

&uart7 {
dma-names = "tx";
};

&uart8 {
dma-names = "tx";
};

&uart9 {
dma-names = "tx";
};

0 comments on commit 149a915

Please sign in to comment.