* [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema
@ 2022-12-09 17:59 Krzysztof Kozlowski
2022-12-09 21:44 ` Rob Herring
2022-12-27 11:56 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-09 17:59 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski
Cc: Krzysztof Kozlowski, alsa-devel, devicetree, linux-kernel
Convert the Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter
bindings to DT schema. During the conversion, add properties already
used by DTS (sc7180-trogdor-coachz.dts) and Linux driver:
1. wakeup-delay-ms,
2. sound-dai-cells (via referencing dai-common.yaml).
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../bindings/sound/adi,adau7002.txt | 19 ---------
.../bindings/sound/adi,adau7002.yaml | 40 +++++++++++++++++++
2 files changed, 40 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/adi,adau7002.txt
create mode 100644 Documentation/devicetree/bindings/sound/adi,adau7002.yaml
diff --git a/Documentation/devicetree/bindings/sound/adi,adau7002.txt b/Documentation/devicetree/bindings/sound/adi,adau7002.txt
deleted file mode 100644
index f144ee1abf85..000000000000
--- a/Documentation/devicetree/bindings/sound/adi,adau7002.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter
-
-Required properties:
-
- - compatible: Must be "adi,adau7002"
-
-Optional properties:
-
- - IOVDD-supply: Phandle and specifier for the power supply providing the IOVDD
- supply as covered in Documentation/devicetree/bindings/regulator/regulator.txt
-
- If this property is not present it is assumed that the supply pin is
- hardwired to always on.
-
-Example:
- adau7002: pdm-to-i2s {
- compatible = "adi,adau7002";
- IOVDD-supply = <&supply>;
- };
diff --git a/Documentation/devicetree/bindings/sound/adi,adau7002.yaml b/Documentation/devicetree/bindings/sound/adi,adau7002.yaml
new file mode 100644
index 000000000000..fcca0fde7d86
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/adi,adau7002.yaml
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/adi,adau7002.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter
+
+maintainers:
+ - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ const: adi,adau7002
+
+ IOVDD-supply:
+ description:
+ IOVDD power supply, if skipped then it is assumed that the supply pin is
+ hardwired to always on.
+
+ wakeup-delay-ms:
+ description:
+ Delay after power up needed for device to settle.
+
+required:
+ - compatible
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ audio-codec {
+ compatible = "adi,adau7002";
+ IOVDD-supply = <&pp1800_l15a>;
+ #sound-dai-cells = <0>;
+ wakeup-delay-ms = <80>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema
2022-12-09 17:59 [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema Krzysztof Kozlowski
@ 2022-12-09 21:44 ` Rob Herring
2022-12-27 11:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-12-09 21:44 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: linux-kernel, Mark Brown, devicetree, Liam Girdwood, alsa-devel,
Rob Herring, Krzysztof Kozlowski
On Fri, 09 Dec 2022 18:59:46 +0100, Krzysztof Kozlowski wrote:
> Convert the Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter
> bindings to DT schema. During the conversion, add properties already
> used by DTS (sc7180-trogdor-coachz.dts) and Linux driver:
> 1. wakeup-delay-ms,
> 2. sound-dai-cells (via referencing dai-common.yaml).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../bindings/sound/adi,adau7002.txt | 19 ---------
> .../bindings/sound/adi,adau7002.yaml | 40 +++++++++++++++++++
> 2 files changed, 40 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/sound/adi,adau7002.txt
> create mode 100644 Documentation/devicetree/bindings/sound/adi,adau7002.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema
2022-12-09 17:59 [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema Krzysztof Kozlowski
2022-12-09 21:44 ` Rob Herring
@ 2022-12-27 11:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-12-27 11:56 UTC (permalink / raw)
To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski,
Krzysztof Kozlowski
Cc: alsa-devel, devicetree, linux-kernel
On Fri, 09 Dec 2022 18:59:46 +0100, Krzysztof Kozlowski wrote:
> Convert the Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter
> bindings to DT schema. During the conversion, add properties already
> used by DTS (sc7180-trogdor-coachz.dts) and Linux driver:
> 1. wakeup-delay-ms,
> 2. sound-dai-cells (via referencing dai-common.yaml).
>
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: dt-bindings: adi,adau7002: Convert to DT schema
commit: 3bc351aa97e5c4b346c7223749d057ce0c372195
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-27 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09 17:59 [PATCH] ASoC: dt-bindings: adi,adau7002: Convert to DT schema Krzysztof Kozlowski
2022-12-09 21:44 ` Rob Herring
2022-12-27 11:56 ` Mark Brown
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).