Skip to contentSkip to conversation

ARM: dts: stm32: Replace SAI format with dai-format DT property

PATCH In review Marek Vasut 3 participants 3 messages Sep 27, 2022 – Oct 20, 2022

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

PATCH 1/1 ARM: dts: stm32: Replace SAI format with dai-format DT property

The dai-format and format are handled equally by sound-core.c , the later is however the only documented property in audio-graph-port.yaml . Switch to the later.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: [email protected]
To: [email protected]

---
 arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi      | 4 ++--
 arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 2 +-
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi             | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi +2 -2
index 5f586f024060f..4709677151aac 100644
@@ -242,7 +242,7 @@ sai2a: audio-controller@4400b004 {
 		sai2a_port: port {
 			sai2a_endpoint: endpoint {
 				remote-endpoint = <&sgtl5000_tx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
 				mclk-fs = <512>;
 				dai-tdm-slot-num = <2>;
 				dai-tdm-slot-width = <16>;
@@ -260,7 +260,7 @@ sai2b: audio-controller@4400b024 {
 		sai2b_port: port {
 			sai2b_endpoint: endpoint {
 				remote-endpoint = <&sgtl5000_rx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
 				mclk-fs = <512>;
 				dai-tdm-slot-num = <2>;
 				dai-tdm-slot-width = <16>;
arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi +1 -1
index aa79ed1cb1f15..50af4a27d6be4 100644
@@ -358,7 +358,7 @@ sai2a: audio-controller@4400b004 {
 		sai2a_port: port {
 			sai2a_endpoint: endpoint {
 				remote-endpoint = <&adv7513_i2s0>;
-				format = "i2s";
+				dai-format = "i2s";
 				mclk-fs = <256>;
 			};
 		};
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +2 -2
index 6afff983069b6..7798a2e17c5ca 100644
@@ -508,7 +508,7 @@ sai2a: audio-controller@4400b004 {
 		sai2a_port: port {
 			sai2a_endpoint: endpoint {
 				remote-endpoint = <&cs42l51_tx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
 				mclk-fs = <256>;
 				dai-tdm-slot-num = <2>;
 				dai-tdm-slot-width = <32>;
@@ -526,7 +526,7 @@ sai2b: audio-controller@4400b024 {
 		sai2b_port: port {
 			sai2b_endpoint: endpoint {
 				remote-endpoint = <&cs42l51_rx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
 				mclk-fs = <256>;
 				dai-tdm-slot-num = <2>;
 				dai-tdm-slot-width = <32>;
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reviewed-by on v1 1/1
#1 lore raw

Hi Marek,

Thanks for your patch.
You can add my:

BRs

Quoted 66 lines · Marek Vasut

The dai-format and format are handled equally by sound-core.c , the later is however the only documented property in audio-graph-port.yaml . Switch to the later.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: [email protected]
To: [email protected]

---
  arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi      | 4 ++--
  arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 2 +-
  arch/arm/boot/dts/stm32mp15xx-dkx.dtsi             | 4 ++--
  3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi +2 -2
index 5f586f024060f..4709677151aac 100644
@@ -242,7 +242,7 @@ sai2a: audio-controller@4400b004 {
  		sai2a_port: port {
  			sai2a_endpoint: endpoint {
  				remote-endpoint = <&sgtl5000_tx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
  				mclk-fs = <512>;
  				dai-tdm-slot-num = <2>;
  				dai-tdm-slot-width = <16>;
@@ -260,7 +260,7 @@ sai2b: audio-controller@4400b024 {
  		sai2b_port: port {
  			sai2b_endpoint: endpoint {
  				remote-endpoint = <&sgtl5000_rx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
  				mclk-fs = <512>;
  				dai-tdm-slot-num = <2>;
  				dai-tdm-slot-width = <16>;
arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi +1 -1
index aa79ed1cb1f15..50af4a27d6be4 100644
@@ -358,7 +358,7 @@ sai2a: audio-controller@4400b004 {
  		sai2a_port: port {
  			sai2a_endpoint: endpoint {
  				remote-endpoint = <&adv7513_i2s0>;
-				format = "i2s";
+				dai-format = "i2s";
  				mclk-fs = <256>;
  			};
  		};
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +1 -1
index 6afff983069b6..7798a2e17c5ca 100644
@@ -508,7 +508,7 @@ sai2a: audio-controller@4400b004 {
  		sai2a_port: port {
  			sai2a_endpoint: endpoint {
  				remote-endpoint = <&cs42l51_tx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
  				mclk-fs = <256>;
  				dai-tdm-slot-num = <2>;
  				dai-tdm-slot-width = <32>;

arch/arm/boot/dts/stm32mp15xx-dkx.dtsi sai2b: audio-controller@4400b024 { · line 532

Quoted 8 lines
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +1 -1
@@ -526,7 +526,7 @@ sai2b: audio-controller@4400b024 {
  		sai2b_port: port {
  			sai2b_endpoint: endpoint {
  				remote-endpoint = <&cs42l51_rx_endpoint>;
-				format = "i2s";
+				dai-format = "i2s";
  				mclk-fs = <256>;
  				dai-tdm-slot-num = <2>;
  				dai-tdm-slot-width = <32>;

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#2 lore raw
In reply to Marek Vasut
Quoted 11 lines · Marek Vasut

The dai-format and format are handled equally by sound-core.c , the later is however the only documented property in audio-graph-port.yaml . Switch to the later.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: [email protected]
To: [email protected]

Quoted 5 lines
---
  arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi      | 4 ++--
  arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 2 +-
  arch/arm/boot/dts/stm32mp15xx-dkx.dtsi             | 4 ++--
  3 files changed, 5 insertions(+), 5 deletions(-)

Applied on stm32-next.

Thanks.
Alex

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel