arm: dts: sunxi: h3/h5: Fix I2S2 node
Subsystems (2)
Jernej Skrabec
maintainerPATCH 1/1 arm: dts: sunxi: h3/h5: Fix I2S2 node
I2S2 controller has RX DMA channel according to documentation.
Add it.
--- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sunxi-h3-h5.dtsi +2 -2
@@ -670,9 +670,9 @@ i2s2: i2s@1c22800 { interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>; clock-names = "apb", "mod"; - dmas = <&dma 27>; + dmas = <&dma 27>, <&dma 27>; resets = <&ccu RST_BUS_I2S2>; - dma-names = "tx"; + dma-names = "tx", "rx"; status = "disabled"; };
Signature · 1 line
2.33.0
Jernej Škrabec
maintainerHi all,
Dne nedelja, 05. september 2021 ob 21:26:28 CEST je Jernej Skrabec napisal(a):
Quoted 2 lines
I2S2 controller has RX DMA channel according to documentation.
Sorry for mistake. This is not true. Documentation doesn't have RX DMA documented (I2S2 is connected to HDMI).
Marcus, do you remember if loopback mode actually works on H3, with DMA enabled? Maybe DMA is there, just undocumented. Some SoCs (H6, R40) have RX DMA channel documented, even though it's used for HDMI TX only, and others don't (A64, H3, H5).
Anyway, I got report that I2S driver from 5.14 onwards can't register controller anymore due to missing RX DMA channel. So either driver or DT has to be fixed.
Please disregard this patch for now.
Best regards,
Jernej
arch/arm/boot/dts/sunxi-h3-
Quoted 9 lines
Add it.
Fixes cd7c897821a0 ("arm: dts: sunxi: h3/h5: Add I2S2 node")Signed-off-by Jernej Skrabec <[email protected]>--- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/sunxi-h3- renamed from arch/arm/boot/dts/sunxi-h3-h5.dtsi +0
-0
h5.dtsi
arch/arm/boot/dts/sunxi-h3-h5.dtsi i2s2: i2s@1c22800 { · line 670
Quoted 5 lines
index
c7428df9469e..bd26f2059220100644arch/arm/boot/dts/sunxi-h3-h5.dtsi +0
-0@@ -670,9 +670,9 @@ i2s2: i2s@1c22800 { interrupts = <GIC_SPI 15
IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/sunxi-h3-h5.dtsi i2s2: i2s@1c22800 { · line 671
Quoted 1 line
arch/arm/boot/dts/sunxi-h3-h5.dtsi +0
-0clocks = <&ccu CLK_BUS_I2S2>, <&ccu
CLK_I2S2>;
Quoted 13 lines
arch/arm/boot/dts/sunxi-h3-h5.dtsi +2
-2clock-names = "apb", "mod"; - dmas = <&dma 27>; + dmas = <&dma 27>, <&dma 27>; resets = <&ccu RST_BUS_I2S2>; - dma-names = "tx"; + dma-names = "tx", "rx"; status = "disabled"; };Signature · 1 line
2.33.0