Skip to content

Commit ae019f0

Browse files
Kwiboommind
authored andcommitted
arm64: dts: rockchip: Fix UART DMA support for RK3528
Trying to use UART2 DMA for Bluetooth on ArmSoM Sige1 result in tx timeout when using dma-names = "tx", "rx" as required by the dt-binding: Bluetooth: hci0: command 0x0c03 tx timeout Bluetooth: hci0: BCM: Reset failed (-110) Change the dmas order to fix UART DMA support on RK3528. With this fixed Bluetooth can be loaded using DMA on ArmSoM Sige1: Bluetooth: hci0: BCM: chip id 159 Bluetooth: hci0: BCM: features 0x0f Bluetooth: hci0: BCM4362A2 Bluetooth: hci0: BCM4362A2 (000.017.017) build 0000 Bluetooth: hci0: BCM4362A2 'brcm/BCM4362A2.hcd' Patch Bluetooth: hci0: BCM: features 0x0f Bluetooth: hci0: BCM43752A2 UART 37.4MHz Ampak AP6398 sLNA iLNA CL1 [Version: 1091.1173] Bluetooth: hci0: BCM4362A2 (000.017.017) build 1173 Fixes: ab6fcb5 ("arm64: dts: rockchip: Add UART DMA support for RK3528") Signed-off-by: Jonas Karlman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 954f070 commit ae019f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

arch/arm64/boot/dts/rockchip/rk3528.dtsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@
595595
clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
596596
clock-names = "baudclk", "apb_pclk";
597597
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
598-
dmas = <&dmac 8>, <&dmac 9>;
598+
dmas = <&dmac 9>, <&dmac 8>;
599599
reg-io-width = <4>;
600600
reg-shift = <2>;
601601
status = "disabled";
@@ -607,7 +607,7 @@
607607
clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
608608
clock-names = "baudclk", "apb_pclk";
609609
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
610-
dmas = <&dmac 10>, <&dmac 11>;
610+
dmas = <&dmac 11>, <&dmac 10>;
611611
reg-io-width = <4>;
612612
reg-shift = <2>;
613613
status = "disabled";
@@ -619,7 +619,7 @@
619619
clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
620620
clock-names = "baudclk", "apb_pclk";
621621
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
622-
dmas = <&dmac 12>, <&dmac 13>;
622+
dmas = <&dmac 13>, <&dmac 12>;
623623
reg-io-width = <4>;
624624
reg-shift = <2>;
625625
status = "disabled";
@@ -631,7 +631,7 @@
631631
clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
632632
clock-names = "baudclk", "apb_pclk";
633633
interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
634-
dmas = <&dmac 14>, <&dmac 15>;
634+
dmas = <&dmac 15>, <&dmac 14>;
635635
reg-io-width = <4>;
636636
reg-shift = <2>;
637637
status = "disabled";
@@ -643,7 +643,7 @@
643643
clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
644644
clock-names = "baudclk", "apb_pclk";
645645
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
646-
dmas = <&dmac 16>, <&dmac 17>;
646+
dmas = <&dmac 17>, <&dmac 16>;
647647
reg-io-width = <4>;
648648
reg-shift = <2>;
649649
status = "disabled";
@@ -655,7 +655,7 @@
655655
clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
656656
clock-names = "baudclk", "apb_pclk";
657657
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
658-
dmas = <&dmac 18>, <&dmac 19>;
658+
dmas = <&dmac 19>, <&dmac 18>;
659659
reg-io-width = <4>;
660660
reg-shift = <2>;
661661
status = "disabled";
@@ -667,7 +667,7 @@
667667
clocks = <&cru SCLK_UART6>, <&cru PCLK_UART6>;
668668
clock-names = "baudclk", "apb_pclk";
669669
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
670-
dmas = <&dmac 20>, <&dmac 21>;
670+
dmas = <&dmac 21>, <&dmac 20>;
671671
reg-io-width = <4>;
672672
reg-shift = <2>;
673673
status = "disabled";
@@ -679,7 +679,7 @@
679679
clocks = <&cru SCLK_UART7>, <&cru PCLK_UART7>;
680680
clock-names = "baudclk", "apb_pclk";
681681
interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
682-
dmas = <&dmac 22>, <&dmac 23>;
682+
dmas = <&dmac 23>, <&dmac 22>;
683683
reg-io-width = <4>;
684684
reg-shift = <2>;
685685
status = "disabled";

0 commit comments

Comments
 (0)