Skip to contentSkip to conversation

ARM: dts: sun6i: a31: Add DAI nodes

PATCH New codekipper at gmail.com 2 participants 3 messages Sep 3, 2017 – Sep 4, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun6i: a31: Add DAI nodes

From: Marcus Cooper <[email protected]>

Add the new DAI blocks to the device tree.

---
 arch/arm/boot/dts/sun6i-a31.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +26 -0
index b147cb0dc14b..f3d74dc5b292 100644
@@ -662,6 +662,32 @@
 			status = "disabled";
 		};
 
+		i2s0: i2s at 01c22000 {
+			#sound-dai-cells = <0>;
+			compatible = "allwinner,sun6i-a31-i2s";
+			reg = <0x01c22000 0x400>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
+			resets = <&ccu RST_APB1_DAUDIO0>;
+			clock-names = "apb", "mod";
+			dmas = <&dma 3>, <&dma 3>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
+		i2s1: i2s at 01c22400 {
+			#sound-dai-cells = <0>;
+			compatible = "allwinner,sun6i-a31-i2s";
+			reg = <0x01c22400 0x400>;
+			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
+			resets = <&ccu RST_APB1_DAUDIO1>;
+			clock-names = "apb", "mod";
+			dmas = <&dma 4>, <&dma 4>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
 		lradc: lradc at 01c22800 {
 			compatible = "allwinner,sun4i-a10-lradc-keys";
 			reg = <0x01c22800 0x100>;
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 ARM: dts: sun6i: a31: Add DAI nodes

Quoted 5 lines · On 3 September 2017 at 17:08, <[email protected]> wrote:

From: Marcus Cooper <[email protected]>

Add the new DAI blocks to the device tree.

Hi all,
I haven't got a dev board for this SoC but was able to confirm that this worked by setting the loopback bit and recording the playback. BR,
CK

Quoted 44 lines
---
 arch/arm/boot/dts/sun6i-a31.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +26 -1
index b147cb0dc14b..f3d74dc5b292 100644
@@ -662,6 +662,32 @@
                        status = "disabled";
                };
 
+               i2s0: i2s at 01c22000 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun6i-a31-i2s";
+                       reg = <0x01c22000 0x400>;
+                       interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
+                       resets = <&ccu RST_APB1_DAUDIO0>;
+                       clock-names = "apb", "mod";
+                       dmas = <&dma 3>, <&dma 3>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
+               i2s1: i2s at 01c22400 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun6i-a31-i2s";
+                       reg = <0x01c22400 0x400>;
+                       interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
+                       resets = <&ccu RST_APB1_DAUDIO1>;
+                       clock-names = "apb", "mod";
+                       dmas = <&dma 4>, <&dma 4>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                lradc: lradc at 01c22800 {
                        compatible = "allwinner,sun4i-a10-lradc-keys";
                        reg = <0x01c22800 0x100>;
--

2.14.1

#2 lore raw

PATCH 1/1 ARM: dts: sun6i: a31: Add DAI nodes

In reply to codekipper at gmail.com
Quoted 5 lines · codekipper at gmail.com

From: Marcus Cooper <[email protected]>

Add the new DAI blocks to the device tree.

Applied for 4.15, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170904/0e2d2bb1/attachment-0001.sig>