diff options
author | Mark Brown <[email protected]> | 2023-06-07 21:16:47 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-06-07 21:16:47 +0100 |
commit | 143e19547f9bbd0cc7ae6dffa87f05c14f040cdc (patch) | |
tree | 7490487aac87e16d4504978bbb1c085e80444b79 | |
parent | 99f3e7de7a100eddcf92af55a7e23000afeed35c (diff) | |
parent | fe748da7c216528d46adb4c6f4a969346ec3a452 (diff) |
ASoC: stm32: fix dtbs_check warnings
Merge series from Olivier Moysan <[email protected]>:
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
-rw-r--r-- | Documentation/devicetree/bindings/sound/cirrus,cs42l51.yaml | 11 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs42l51.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs42l51.yaml index 670b67ec0b61..f7bafbd4f1c2 100644 --- a/Documentation/devicetree/bindings/sound/cirrus,cs42l51.yaml +++ b/Documentation/devicetree/bindings/sound/cirrus,cs42l51.yaml @@ -44,6 +44,10 @@ properties: VAHP-supply: description: phandle to voltage regulator of headphone + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + required: - compatible - reg @@ -69,6 +73,13 @@ examples: VA-supply = <®_audio>; VAHP-supply = <®_audio>; reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>; + + /* assume audio-graph */ + port { + cpu_endpoint: endpoint { + remote-endpoint = <&cpu_endpoint>; + }; + }; }; }; ... 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>; + }; + }; }; ... |