ASoC: dt-bindings: Extend name-prefix.yaml into common DAI properties
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 3 Dec 2022 16:04:40 +0000 (17:04 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Dec 2022 14:05:42 +0000 (14:05 +0000)
Rename name-prefix.yaml into common DAI schema and document
'#sound-dai-cells' for completeness.  The '#sound-dai-cells' cannot be
really constrained, as there are users with value of 0, 1 and 2, but at
least it brings definition to one common place.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221203160442.69594-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
24 files changed:
Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml
Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml
Documentation/devicetree/bindings/sound/amlogic,t9015.yaml
Documentation/devicetree/bindings/sound/awinic,aw8738.yaml
Documentation/devicetree/bindings/sound/dai-common.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/sound/dmic-codec.yaml
Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml
Documentation/devicetree/bindings/sound/name-prefix.yaml [deleted file]
Documentation/devicetree/bindings/sound/nvidia,tegra186-asrc.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-adx.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-amx.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-dmic.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-i2s.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-mixer.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-mvc.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-ope.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra210-sfc.yaml
Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml
Documentation/devicetree/bindings/sound/rt5659.txt
Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml
Documentation/devicetree/bindings/sound/simple-audio-mux.yaml
Documentation/devicetree/bindings/sound/ti,src4xxx.yaml

index 7cdffdb131ac4ca0b8a93d7133b53d595a2ec0b6..74cefdf1b843723a6c060b631b7a9b0e32aee4ab 100644 (file)
@@ -11,7 +11,7 @@ maintainers:
   - Neil Armstrong <neil.armstrong@linaro.org>
 
 allOf:
-  - $ref: /schemas/sound/name-prefix.yaml#
+  - $ref: /schemas/sound/dai-common.yaml#
 
 description: |
   The Amlogic Meson Synopsys Designware Integration is composed of
index 0705f91199a0857beb5bcfb40013966e5e8015d8..6350dfc0a92603639cbf77205edd9b3fabebd333 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Jerome Brunet <jbrunet@baylibre.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 77469a45bb7a47b6f91cc6c5b278c82eb2a839b3..23f82bb89750898d20c866015bc2e1a4b0554846 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Jerome Brunet <jbrunet@baylibre.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 580a3d040abcaf5f6c7218cad5a265f054ef0f29..5f5cccdbeb34558f222468011db23a81dd6f91b5 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Jerome Brunet <jbrunet@baylibre.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index dce86dafe382f9b6fca5a73d94486be81986e3ac..bc6c6b17223809b46a9c2cedf4ebb1240e4b656e 100644 (file)
@@ -15,7 +15,7 @@ description:
   function (primarily the power limit for the amplifier).
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
diff --git a/Documentation/devicetree/bindings/sound/dai-common.yaml b/Documentation/devicetree/bindings/sound/dai-common.yaml
new file mode 100644 (file)
index 0000000..d858eea
--- /dev/null
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/dai-common.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Digital Audio Interface Common Properties
+
+maintainers:
+  - Jerome Brunet <jbrunet@baylibre.com>
+
+properties:
+  sound-name-prefix:
+    $ref: /schemas/types.yaml#/definitions/string
+    description: |
+      Card implementing the routing property define the connection between
+      audio components as list of string pair. Component using the same
+      sink/source names may use this property to prepend the name of their
+      sinks/sources with the provided string.
+
+  '#sound-dai-cells': true
+
+additionalProperties: true
index bba27c98599670167699293fa507c9c2e6d2a097..59ef0cf6b6e5e1bf627e6df7337ac3c7b067c43b 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
index 808f6d2736c7812dda3473526c5fb3fc906edeb0..fe5f0756af2f461029b6bbb84cf402c1105d4abb 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Mark Brown <broonie@kernel.org>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
diff --git a/Documentation/devicetree/bindings/sound/name-prefix.yaml b/Documentation/devicetree/bindings/sound/name-prefix.yaml
deleted file mode 100644 (file)
index 2fe57f8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/sound/name-prefix.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Component sound name prefix
-
-maintainers:
-  - Jerome Brunet <jbrunet@baylibre.com>
-
-properties:
-  sound-name-prefix:
-    $ref: /schemas/types.yaml#/definitions/string
-    description: |
-      Card implementing the routing property define the connection between
-      audio components as list of string pair. Component using the same
-      sink/source names may use this property to prepend the name of their
-      sinks/sources with the provided string.
-
-additionalProperties: true
index d82415c212719efc488d9cecdd96f83d6b006cdf..e15f387c4c29826584fa71938865f7726036d119 100644 (file)
@@ -23,7 +23,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 3d538df878ead7c522e3141d9c122550a46cd56c..e1362c77472bb5e58e2882074c1d2c32afb63096 100644 (file)
@@ -18,7 +18,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index ea0dc0ece1bca19ee8b9f304c00ac359ee930149..e4c871797fa6cc993117cb7a2e3943e811963240 100644 (file)
@@ -19,7 +19,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 1aff61f072bbf2eb254febc68f42e0926352e488..021b72546ba4b66da331cfd437f17162bc1e38b6 100644 (file)
@@ -18,7 +18,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 0f9d2b461e02012277b1b05a91718cbcd982bdbb..bff551c35da7a6516498207f2c1e280c827c585d 100644 (file)
@@ -17,7 +17,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 12cd17eede9977577772ea9399ea9f8c6871d9fd..a82f11fb6c9a8c8efe5192a16b776483dd6d7179 100644 (file)
@@ -17,7 +17,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 570b03282aeb1c6d78d36fc55af53debb5988e14..049898f02e85c47d58490e94228e782b225fe811 100644 (file)
@@ -17,7 +17,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 4aecbc847b989028411c8bdff0168635760bb790..d0280d8aa3af8564b1faacb16b3bc27b90315a73 100644 (file)
@@ -20,7 +20,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 9dc9ba590fa39bc479210cfb8da3b9eaf6104f09..5fc03b8771b1c79e456d1c790b435815e9a430e9 100644 (file)
@@ -17,7 +17,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
index 694f890d630594edfbf3c3eb70b336ceafe79787..185ca0be4f0261b457d6ed7f038fd9c42e9fad86 100644 (file)
@@ -17,7 +17,7 @@ maintainers:
   - Sameer Pujar <spujar@nvidia.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   $nodename:
index 7f2e68ff6d342517f09077f93d7f9fd66853a9be..fd2415e231eb81493792ba95f212a8a75aa102c8 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Stephan Gerhold <stephan@gerhold.net>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
index 013f534fa05907996722a25504d51f2e090f8086..8f3f62c0226a845bd2b617a3fe3766eadc068f2c 100644 (file)
@@ -42,7 +42,7 @@ Optional properties:
 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
 - realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin.
 
-- sound-name-prefix: Please refer to name-prefix.yaml
+- sound-name-prefix: Please refer to dai-common.yaml
 
 - ports: A Codec may have a single or multiple I2S interfaces. These
   interfaces on Codec side can be described under 'ports' or 'port'.
index 5428ba9e23a60696dc5076163dd7f7309655fc67..5db1f989d050fc39dacf35f0030b2ce7980aecb3 100644 (file)
@@ -10,7 +10,7 @@ maintainers:
   - Jerome Brunet <jbrunet@baylibre.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
index b5fc35ee9b65722323a109e10523ae257f3299e8..9f319caf3db7494a4739393f43dd6af02d581d32 100644 (file)
@@ -14,7 +14,7 @@ description: |
   their input line is connected to the output line.
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible:
index 9681b72b491858cbab0eaa43d609a058b36c5db3..988ce8d8028fba666baf150e4855b58cda1a2a93 100644 (file)
@@ -14,7 +14,7 @@ maintainers:
   - Matt Flax <flatmax@flatmax.com>
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
 
 properties:
   compatible: