2023-06-06 12:05:49

by Olivier MOYSAN

[permalink] [raw]
Subject: [PATCH v2 0/3] ASoC: stm32: fix dtbs_check warnings

Fix dtbs_check warnings in STM32MP15 DK boards Devices Trees for
STM32 I2S and Cirrus CS42L51 codec.

- Add OF graph port property in I2S and CS42L51 DT bindings.
Fixes warnings:
audio-controller@4000b000: Unevaluated properties are not allowed
('port' was unexpected)
cs42l51@4a: Unevaluated properties are not allowed
('port' was unexpected)
- Correct OF graph DAI audio format property for STM32MP15x Dkx I2S node

Changes in v2:
- Add port example in i2s and cs42l51 binding

Olivier Moysan (3):
ASoC: dt-bindings: stm32: document audio of graph port for i2s
ASoC: dt-bindings: document audio of graph port for cs42l51
ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx

.../devicetree/bindings/sound/cirrus,cs42l51.yaml | 11 +++++++++++
.../devicetree/bindings/sound/st,stm32-i2s.yaml | 11 +++++++++++
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +-
3 files changed, 23 insertions(+), 1 deletion(-)

--
2.25.1



2023-06-06 12:07:50

by Olivier MOYSAN

[permalink] [raw]
Subject: [PATCH v2 3/3] ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx

Use "dai-format" to configure DAI audio format as specified in
audio-graph-port.yaml bindings.

Fixes: 144d1ba70548 ("ARM: dts: stm32: Adapt STM32MP157 DK boards to stm32 DT diversity")
Signed-off-by: Olivier Moysan <[email protected]>
---
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
index e78ba956b9d0..511113f2e399 100644
--- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
+++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
@@ -446,7 +446,7 @@ &i2s2 {
i2s2_port: port {
i2s2_endpoint: endpoint {
remote-endpoint = <&sii9022_tx_endpoint>;
- format = "i2s";
+ dai-format = "i2s";
mclk-fs = <256>;
};
};
--
2.25.1


2023-06-06 12:18:37

by Olivier MOYSAN

[permalink] [raw]
Subject: [PATCH v2 1/3] ASoC: dt-bindings: stm32: document audio of graph port for i2s

When linking the STM32 I2S to another DAI component, according
to audio graph cards bindings, an OF graph port property is expected
in the node. Document the port property.

Signed-off-by: Olivier Moysan <[email protected]>
---
.../devicetree/bindings/sound/st,stm32-i2s.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml b/Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml
index a040d4d31412..b9111d375b93 100644
--- a/Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml
+++ b/Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml
@@ -61,6 +61,10 @@ properties:
description: Configure the I2S device as MCLK clock provider.
const: 0

+ port:
+ $ref: audio-graph-port.yaml#
+ unevaluatedProperties: false
+
required:
- compatible
- "#sound-dai-cells"
@@ -89,6 +93,13 @@ examples:
dma-names = "rx", "tx";
pinctrl-names = "default";
pinctrl-0 = <&i2s2_pins_a>;
+
+ /* assume audio-graph */
+ port {
+ codec_endpoint: endpoint {
+ remote-endpoint = <&codec_endpoint>;
+ };
+ };
};

...
--
2.25.1


2023-06-06 12:40:27

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] ASoC: dt-bindings: stm32: document audio of graph port for i2s

On 06/06/2023 13:56, Olivier Moysan wrote:
> When linking the STM32 I2S to another DAI component, according
> to audio graph cards bindings, an OF graph port property is expected
> in the node. Document the port property.
>
> Signed-off-by: Olivier Moysan <[email protected]>
> ---


Acked-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2023-06-07 21:46:40

by Mark Brown

[permalink] [raw]
Subject: Re: (subset) [PATCH v2 0/3] ASoC: stm32: fix dtbs_check warnings

On Tue, 06 Jun 2023 13:56:01 +0200, Olivier Moysan wrote:
> Fix dtbs_check warnings in STM32MP15 DK boards Devices Trees for
> STM32 I2S and Cirrus CS42L51 codec.
>
> - Add OF graph port property in I2S and CS42L51 DT bindings.
> Fixes warnings:
> audio-controller@4000b000: Unevaluated properties are not allowed
> ('port' was unexpected)
> cs42l51@4a: Unevaluated properties are not allowed
> ('port' was unexpected)
> - Correct OF graph DAI audio format property for STM32MP15x Dkx I2S node
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/3] ASoC: dt-bindings: stm32: document audio of graph port for i2s
commit: 401ec2b8878f34b6baf64fba3e29411c246b785c
[2/3] ASoC: dt-bindings: document audio of graph port for cs42l51
commit: fe748da7c216528d46adb4c6f4a969346ec3a452

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


2023-06-08 12:32:06

by Alexandre TORGUE

[permalink] [raw]
Subject: Re: [PATCH v2 0/3] ASoC: stm32: fix dtbs_check warnings

Hi

On 6/6/23 13:56, Olivier Moysan wrote:
> Fix dtbs_check warnings in STM32MP15 DK boards Devices Trees for
> STM32 I2S and Cirrus CS42L51 codec.
>
> - Add OF graph port property in I2S and CS42L51 DT bindings.
> Fixes warnings:
> audio-controller@4000b000: Unevaluated properties are not allowed
> ('port' was unexpected)
> cs42l51@4a: Unevaluated properties are not allowed
> ('port' was unexpected)
> - Correct OF graph DAI audio format property for STM32MP15x Dkx I2S node
>
> Changes in v2:
> - Add port example in i2s and cs42l51 binding
>
> Olivier Moysan (3):
> ASoC: dt-bindings: stm32: document audio of graph port for i2s
> ASoC: dt-bindings: document audio of graph port for cs42l51
> ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx
>
> .../devicetree/bindings/sound/cirrus,cs42l51.yaml | 11 +++++++++++
> .../devicetree/bindings/sound/st,stm32-i2s.yaml | 11 +++++++++++
> arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +-
> 3 files changed, 23 insertions(+), 1 deletion(-)
>

Patch[3] applied on stm32-next.

Thanks
Alex