devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: dts: add audio support on stm32mp131
@ 2022-11-18 14:20 Olivier Moysan
  2022-11-18 14:20 ` [PATCH 1/4] ARM: dts: stm32: add i2s nodes " Olivier Moysan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-18 14:20 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue
  Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

Add SAI, I2S, SPDIFRX and DFSDM audio peripherals support for the
STM32MP13 SoC family.

Olivier Moysan (4):
  ARM: dts: stm32: add i2s nodes on stm32mp131
  ARM: dts: stm32: add sai nodes on stm32mp131
  ARM: dts: stm32: add spdifrx node on stm32mp131
  ARM: dts: stm32: add dfsdm node on stm32mp131

 arch/arm/boot/dts/stm32mp131.dtsi | 149 ++++++++++++++++++++++++++++++
 1 file changed, 149 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ARM: dts: stm32: add i2s nodes on stm32mp131
  2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
@ 2022-11-18 14:20 ` Olivier Moysan
  2022-11-18 14:20 ` [PATCH 2/4] ARM: dts: stm32: add sai " Olivier Moysan
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-18 14:20 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue
  Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

Add I2S1, I2S2, I2S3 and I2S4 peripherals support for the
STM32MP13 SoC family.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 44 +++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 2a9b3a5bba83..b8da3844df94 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -121,6 +121,17 @@ scmi_shm: scmi-sram@0 {
 			};
 		};
 
+		i2s2: audio-controller@4000b000 {
+			compatible = "st,stm32h7-i2s";
+			reg = <0x4000b000 0x400>;
+			#sound-dai-cells = <0>;
+			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dmamux1 39 0x400 0x01>,
+			       <&dmamux1 40 0x400 0x01>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
 		spi2: spi@4000b000 {
 			compatible = "st,stm32h7-spi";
 			reg = <0x4000b000 0x400>;
@@ -135,6 +146,17 @@ spi2: spi@4000b000 {
 			status = "disabled";
 		};
 
+		i2s3: audio-controller@4000c000 {
+			compatible = "st,stm32h7-i2s";
+			reg = <0x4000c000 0x400>;
+			#sound-dai-cells = <0>;
+			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dmamux1 61 0x400 0x01>,
+			       <&dmamux1 62 0x400 0x01>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
 		spi3: spi@4000c000 {
 			compatible = "st,stm32h7-spi";
 			reg = <0x4000c000 0x400>;
@@ -194,6 +216,17 @@ i2c2: i2c@40013000 {
 			status = "disabled";
 		};
 
+		i2s1: audio-controller@44004000 {
+			compatible = "st,stm32h7-i2s";
+			reg = <0x44004000 0x400>;
+			#sound-dai-cells = <0>;
+			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dmamux1 37 0x400 0x01>,
+			       <&dmamux1 38 0x400 0x01>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
 		spi1: spi@44004000 {
 			compatible = "st,stm32h7-spi";
 			reg = <0x44004000 0x400>;
@@ -315,6 +348,17 @@ usbotg_hs: usb@49000000 {
 			status = "disabled";
 		};
 
+		i2s4: audio-controller@4c002000 {
+			compatible = "st,stm32h7-i2s";
+			reg = <0x4c002000 0x400>;
+			#sound-dai-cells = <0>;
+			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dmamux1 83 0x400 0x01>,
+			       <&dmamux1 84 0x400 0x01>;
+			dma-names = "rx", "tx";
+			status = "disabled";
+		};
+
 		spi4: spi@4c002000 {
 			compatible = "st,stm32h7-spi";
 			reg = <0x4c002000 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ARM: dts: stm32: add sai nodes on stm32mp131
  2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
  2022-11-18 14:20 ` [PATCH 1/4] ARM: dts: stm32: add i2s nodes " Olivier Moysan
@ 2022-11-18 14:20 ` Olivier Moysan
  2022-11-18 14:20 ` [PATCH 3/4] ARM: dts: stm32: add spdifrx node " Olivier Moysan
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-18 14:20 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue
  Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

Add SAI1 and SAI2 peripherals support for the STM32MP13 SoC family.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Change-Id: I79af484702fa4108c106e6013f82d33638e92e6d
---
 arch/arm/boot/dts/stm32mp131.dtsi | 62 +++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index b8da3844df94..13cf4ee12016 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -241,6 +241,68 @@ spi1: spi@44004000 {
 			status = "disabled";
 		};
 
+		sai1: sai@4400a000 {
+			compatible = "st,stm32h7-sai";
+			reg = <0x4400a000 0x4>, <0x4400a3f0 0x10>;
+			ranges = <0 0x4400a000 0x400>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
+			resets = <&rcc SAI1_R>;
+			status = "disabled";
+
+			sai1a: audio-controller@4400a004 {
+				compatible = "st,stm32-sai-sub-a";
+				reg = <0x4 0x20>;
+				#sound-dai-cells = <0>;
+				clocks = <&rcc SAI1_K>;
+				clock-names = "sai_ck";
+				dmas = <&dmamux1 87 0x400 0x01>;
+				status = "disabled";
+			};
+
+			sai1b: audio-controller@4400a024 {
+				compatible = "st,stm32-sai-sub-b";
+				reg = <0x24 0x20>;
+				#sound-dai-cells = <0>;
+				clocks = <&rcc SAI1_K>;
+				clock-names = "sai_ck";
+				dmas = <&dmamux1 88 0x400 0x01>;
+				status = "disabled";
+			};
+		};
+
+		sai2: sai@4400b000 {
+			compatible = "st,stm32h7-sai";
+			reg = <0x4400b000 0x4>, <0x4400b3f0 0x10>;
+			ranges = <0 0x4400b000 0x400>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+			resets = <&rcc SAI2_R>;
+			status = "disabled";
+
+			sai2a: audio-controller@4400b004 {
+				compatible = "st,stm32-sai-sub-a";
+				reg = <0x4 0x20>;
+				#sound-dai-cells = <0>;
+				clocks = <&rcc SAI2_K>;
+				clock-names = "sai_ck";
+				dmas = <&dmamux1 89 0x400 0x01>;
+				status = "disabled";
+			};
+
+			sai2b: audio-controller@4400b024 {
+				compatible = "st,stm32-sai-sub-b";
+				reg = <0x24 0x20>;
+				#sound-dai-cells = <0>;
+				clocks = <&rcc SAI2_K>;
+				clock-names = "sai_ck";
+				dmas = <&dmamux1 90 0x400 0x01>;
+				status = "disabled";
+			};
+		};
+
 		dma1: dma-controller@48000000 {
 			compatible = "st,stm32-dma";
 			reg = <0x48000000 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ARM: dts: stm32: add spdifrx node on stm32mp131
  2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
  2022-11-18 14:20 ` [PATCH 1/4] ARM: dts: stm32: add i2s nodes " Olivier Moysan
  2022-11-18 14:20 ` [PATCH 2/4] ARM: dts: stm32: add sai " Olivier Moysan
@ 2022-11-18 14:20 ` Olivier Moysan
  2022-11-18 14:20 ` [PATCH 4/4] ARM: dts: stm32: add dfsdm " Olivier Moysan
  2023-01-09 16:55 ` [PATCH 0/4] ARM: dts: add audio support " Alexandre TORGUE
  4 siblings, 0 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-18 14:20 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue
  Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

Add S/PDIFRX peripheral support for the STM32MP13 SoC family.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 13cf4ee12016..5dd5bf47c92b 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -171,6 +171,19 @@ spi3: spi@4000c000 {
 			status = "disabled";
 		};
 
+		spdifrx: audio-controller@4000d000 {
+			compatible = "st,stm32h7-spdifrx";
+			reg = <0x4000d000 0x400>;
+			#sound-dai-cells = <0>;
+			clocks = <&rcc SPDIF_K>;
+			clock-names = "kclk";
+			interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dmamux1 93 0x400 0x01>,
+			       <&dmamux1 94 0x400 0x01>;
+			dma-names = "rx", "rx-ctrl";
+			status = "disabled";
+		};
+
 		uart4: serial@40010000 {
 			compatible = "st,stm32h7-uart";
 			reg = <0x40010000 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ARM: dts: stm32: add dfsdm node on stm32mp131
  2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
                   ` (2 preceding siblings ...)
  2022-11-18 14:20 ` [PATCH 3/4] ARM: dts: stm32: add spdifrx node " Olivier Moysan
@ 2022-11-18 14:20 ` Olivier Moysan
  2023-01-09 16:55 ` [PATCH 0/4] ARM: dts: add audio support " Alexandre TORGUE
  4 siblings, 0 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-18 14:20 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue
  Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

Add DFSDM peripheral support for the STM32MP13 SoC family.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 5dd5bf47c92b..42be0e3176ae 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -316,6 +316,36 @@ sai2b: audio-controller@4400b024 {
 			};
 		};
 
+		dfsdm: dfsdm@4400d000 {
+			compatible = "st,stm32mp1-dfsdm";
+			reg = <0x4400d000 0x800>;
+			clocks = <&rcc DFSDM_K>;
+			clock-names = "dfsdm";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+
+			dfsdm0: filter@0 {
+				compatible = "st,stm32-dfsdm-adc";
+				reg = <0>;
+				#io-channel-cells = <1>;
+				interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&dmamux1 101 0x400 0x01>;
+				dma-names = "rx";
+				status = "disabled";
+			};
+
+			dfsdm1: filter@1 {
+				compatible = "st,stm32-dfsdm-adc";
+				reg = <1>;
+				#io-channel-cells = <1>;
+				interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&dmamux1 102 0x400 0x01>;
+				dma-names = "rx";
+				status = "disabled";
+			};
+		};
+
 		dma1: dma-controller@48000000 {
 			compatible = "st,stm32-dma";
 			reg = <0x48000000 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] ARM: dts: add audio support on stm32mp131
  2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
                   ` (3 preceding siblings ...)
  2022-11-18 14:20 ` [PATCH 4/4] ARM: dts: stm32: add dfsdm " Olivier Moysan
@ 2023-01-09 16:55 ` Alexandre TORGUE
  4 siblings, 0 replies; 6+ messages in thread
From: Alexandre TORGUE @ 2023-01-09 16:55 UTC (permalink / raw)
  To: Olivier Moysan, Rob Herring, Krzysztof Kozlowski, Maxime Coquelin
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel

Hi Olivier

On 11/18/22 15:20, Olivier Moysan wrote:
> Add SAI, I2S, SPDIFRX and DFSDM audio peripherals support for the
> STM32MP13 SoC family.
> 
> Olivier Moysan (4):
>    ARM: dts: stm32: add i2s nodes on stm32mp131
>    ARM: dts: stm32: add sai nodes on stm32mp131
>    ARM: dts: stm32: add spdifrx node on stm32mp131
>    ARM: dts: stm32: add dfsdm node on stm32mp131
> 
>   arch/arm/boot/dts/stm32mp131.dtsi | 149 ++++++++++++++++++++++++++++++
>   1 file changed, 149 insertions(+)
> 

Series applied on stm32-next.

Regards
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-09 16:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18 14:20 [PATCH 0/4] ARM: dts: add audio support on stm32mp131 Olivier Moysan
2022-11-18 14:20 ` [PATCH 1/4] ARM: dts: stm32: add i2s nodes " Olivier Moysan
2022-11-18 14:20 ` [PATCH 2/4] ARM: dts: stm32: add sai " Olivier Moysan
2022-11-18 14:20 ` [PATCH 3/4] ARM: dts: stm32: add spdifrx node " Olivier Moysan
2022-11-18 14:20 ` [PATCH 4/4] ARM: dts: stm32: add dfsdm " Olivier Moysan
2023-01-09 16:55 ` [PATCH 0/4] ARM: dts: add audio support " Alexandre TORGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).