linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema
@ 2022-01-29 12:23 Krzysztof Kozlowski
  2022-01-29 12:23 ` [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property Krzysztof Kozlowski
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:23 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

Hi,

The patchset is based on Rob's sound-dai changes:
https://lore.kernel.org/all/20220126231427.1638089-1-robh@kernel.org/

Changes since v1:
1. Correct samsung,snow cpu/sound-dai.

Best regards,
Krzysztof

Krzysztof Kozlowski (6):
  ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property
  ASoC: dt-bindings: samsung,arndale: convert to dtschema
  ASoC: dt-bindings: samsung,arndale: document ALC5631
  ASoC: dt-bindings: samsung,smdk5250: convert to dtschema
  ASoC: dt-bindings: samsung,snow: convert to dtschema
  ASoC: dt-bindings: samsung,tm2: convert to dtschema

 .../devicetree/bindings/sound/arndale.txt     | 25 ------
 .../bindings/sound/samsung,aries-wm8994.yaml  |  4 +
 .../bindings/sound/samsung,arndale.yaml       | 45 +++++++++++
 .../bindings/sound/samsung,smdk-wm8994.txt    | 14 ----
 .../bindings/sound/samsung,smdk5250.yaml      | 38 +++++++++
 .../bindings/sound/samsung,snow.yaml          | 74 +++++++++++++++++
 .../bindings/sound/samsung,tm2-audio.txt      | 42 ----------
 .../bindings/sound/samsung,tm2.yaml           | 80 +++++++++++++++++++
 .../devicetree/bindings/sound/snow.txt        | 31 -------
 9 files changed, 241 insertions(+), 112 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/arndale.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,arndale.yaml
 delete mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,snow.yaml
 delete mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2.yaml
 delete mode 100644 Documentation/devicetree/bindings/sound/snow.txt

-- 
2.32.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
@ 2022-01-29 12:23 ` Krzysztof Kozlowski
  2022-02-09 20:58   ` Rob Herring
  2022-01-29 12:24 ` [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:23 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

The cpu and codec nodes must provide sound-dai property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../devicetree/bindings/sound/samsung,aries-wm8994.yaml       | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
index 4ffa275b3c49..97f83eeaf091 100644
--- a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
+++ b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
@@ -30,6 +30,8 @@ properties:
         description: |
           phandles to the I2S controller and bluetooth codec,
           in that order
+    required:
+      - sound-dai
 
   codec:
     type: object
@@ -37,6 +39,8 @@ properties:
       sound-dai:
         maxItems: 1
         description: phandle to the WM8994 CODEC
+    required:
+      - sound-dai
 
   samsung,audio-routing:
     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
  2022-01-29 12:23 ` [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property Krzysztof Kozlowski
@ 2022-01-29 12:24 ` Krzysztof Kozlowski
  2022-02-09 20:58   ` Rob Herring
  2022-01-29 12:24 ` [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:24 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

Convert the audio complex on Arndale boards with Samsung Exynos SoC to
DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../devicetree/bindings/sound/arndale.txt     | 25 -----------
 .../bindings/sound/samsung,arndale.yaml       | 44 +++++++++++++++++++
 2 files changed, 44 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/arndale.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,arndale.yaml

diff --git a/Documentation/devicetree/bindings/sound/arndale.txt b/Documentation/devicetree/bindings/sound/arndale.txt
deleted file mode 100644
index 17530120ccfc..000000000000
--- a/Documentation/devicetree/bindings/sound/arndale.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-Audio Binding for Arndale boards
-
-Required properties:
-- compatible : Can be one of the following:
-		"samsung,arndale-rt5631",
-		"samsung,arndale-wm1811"
-
-- samsung,audio-cpu: The phandle of the Samsung I2S controller
-- samsung,audio-codec: The phandle of the audio codec
-
-Optional:
-- samsung,model: The name of the sound-card
-
-Arndale Boards has many audio daughter cards, one of them is
-rt5631/alc5631. Below example shows audio bindings for rt5631/
-alc5631 based codec.
-
-Example:
-
-sound {
-		compatible = "samsung,arndale-rt5631";
-
-		samsung,audio-cpu = <&i2s0>
-		samsung,audio-codec = <&rt5631>;
-};
diff --git a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml
new file mode 100644
index 000000000000..e7dc65637f02
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/samsung,arndale.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Insignal Arndale boards audio complex
+
+maintainers:
+  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
+  - Sylwester Nawrocki <s.nawrocki@samsung.com>
+
+properties:
+  compatible:
+    enum:
+      - samsung,arndale-rt5631
+      - samsung,arndale-wm1811
+
+  samsung,audio-codec:
+    description: Phandle to the audio codec.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+  samsung,audio-cpu:
+    description: Phandle to the Samsung I2S controller.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+  samsung,model:
+    description: The user-visible name of this sound complex.
+    $ref: /schemas/types.yaml#/definitions/string
+
+required:
+  - compatible
+  - samsung,audio-codec
+  - samsung,audio-cpu
+
+additionalProperties: false
+
+examples:
+  - |
+    sound {
+        compatible = "samsung,arndale-rt5631";
+        samsung,audio-cpu = <&i2s0>;
+        samsung,audio-codec = <&rt5631>;
+    };
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
  2022-01-29 12:23 ` [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property Krzysztof Kozlowski
  2022-01-29 12:24 ` [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Krzysztof Kozlowski
@ 2022-01-29 12:24 ` Krzysztof Kozlowski
  2022-02-09 20:58   ` Rob Herring
  2022-01-29 12:24 ` [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:24 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

The Arndale audio complex might come with ALC5631 which is compatible
with RT5631.  Document the compatible since it is used in Linux kernel
sources.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/sound/samsung,arndale.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml
index e7dc65637f02..cea2bf3544f0 100644
--- a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml
+++ b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml
@@ -13,6 +13,7 @@ maintainers:
 properties:
   compatible:
     enum:
+      - samsung,arndale-alc5631
       - samsung,arndale-rt5631
       - samsung,arndale-wm1811
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2022-01-29 12:24 ` [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Krzysztof Kozlowski
@ 2022-01-29 12:24 ` Krzysztof Kozlowski
  2022-02-09 21:01   ` Rob Herring
  2022-01-29 12:24 ` [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:24 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

Convert the audio complex on SMDK5250 boards with Samsung Exynos SoC to
DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../bindings/sound/samsung,smdk-wm8994.txt    | 14 -------
 .../bindings/sound/samsung,smdk5250.yaml      | 38 +++++++++++++++++++
 2 files changed, 38 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml

diff --git a/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt b/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt
deleted file mode 100644
index 4686646fb122..000000000000
--- a/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Samsung SMDK audio complex
-
-Required properties:
-- compatible : "samsung,smdk-wm8994"
-- samsung,i2s-controller: The phandle of the Samsung I2S0 controller
-- samsung,audio-codec: The phandle of the WM8994 audio codec
-Example:
-
-sound {
-		compatible = "samsung,smdk-wm8994";
-
-		samsung,i2s-controller = <&i2s0>;
-		samsung,audio-codec = <&wm8994>;
-};
diff --git a/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml b/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml
new file mode 100644
index 000000000000..cb51af90435e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/samsung,smdk5250.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung SMDK5250 audio complex with WM8994 codec
+
+maintainers:
+  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
+  - Sylwester Nawrocki <s.nawrocki@samsung.com>
+
+properties:
+  compatible:
+    const: samsung,smdk-wm8994
+
+  samsung,audio-codec:
+    description: Phandle to the audio codec.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+  samsung,i2s-controller:
+    description: Phandle to the Samsung I2S controller.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+  - samsung,audio-codec
+  - samsung,i2s-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    sound {
+        compatible = "samsung,smdk-wm8994";
+        samsung,i2s-controller = <&i2s0>;
+        samsung,audio-codec = <&wm8994>;
+    };
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: convert to dtschema
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2022-01-29 12:24 ` [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Krzysztof Kozlowski
@ 2022-01-29 12:24 ` Krzysztof Kozlowski
  2022-02-09 21:02   ` Rob Herring
  2022-01-29 12:24 ` [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: " Krzysztof Kozlowski
  2022-02-10 16:53 ` [PATCH v2 0/6] ASoC: dt-bindings: samsung: " Mark Brown
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:24 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

Convert the audio complex on Google Snow boards with Samsung Exynos SoC
to DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../bindings/sound/samsung,snow.yaml          | 74 +++++++++++++++++++
 .../devicetree/bindings/sound/snow.txt        | 31 --------
 2 files changed, 74 insertions(+), 31 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,snow.yaml
 delete mode 100644 Documentation/devicetree/bindings/sound/snow.txt

diff --git a/Documentation/devicetree/bindings/sound/samsung,snow.yaml b/Documentation/devicetree/bindings/sound/samsung,snow.yaml
new file mode 100644
index 000000000000..0c3b3302b842
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/samsung,snow.yaml
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/samsung,snow.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Google Snow audio complex with MAX9809x codec
+
+maintainers:
+  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
+  - Sylwester Nawrocki <s.nawrocki@samsung.com>
+
+properties:
+  compatible:
+    enum:
+      - google,snow-audio-max98090
+      - google,snow-audio-max98091
+      - google,snow-audio-max98095
+
+  codec:
+    type: object
+    properties:
+      sound-dai:
+        description: List of phandles to the CODEC and HDMI IP nodes.
+        items:
+          - description: Phandle to the MAX98090, MAX98091 or MAX98095 CODEC.
+          - description: Phandle to the HDMI IP block node.
+    required:
+      - sound-dai
+
+  cpu:
+    type: object
+    properties:
+      sound-dai:
+        description: Phandle to the Samsung I2S controller.
+        maxItems: 1
+    required:
+      - sound-dai
+
+  samsung,audio-codec:
+    description: Phandle to the audio codec.
+    $ref: /schemas/types.yaml#/definitions/phandle
+    deprecated: true
+
+  samsung,i2s-controller:
+    description: Phandle to the Samsung I2S controller.
+    $ref: /schemas/types.yaml#/definitions/phandle
+    deprecated: true
+
+  samsung,model:
+    description: The user-visible name of this sound complex.
+    $ref: /schemas/types.yaml#/definitions/string
+
+required:
+  - compatible
+  - codec
+  - cpu
+
+additionalProperties: false
+
+examples:
+  - |
+    sound {
+        compatible = "google,snow-audio-max98095";
+        samsung,model = "Snow-I2S-MAX98095";
+
+        cpu {
+            sound-dai = <&i2s0 0>;
+        };
+
+        codec {
+            sound-dai = <&max98095 0>, <&hdmi>;
+        };
+    };
diff --git a/Documentation/devicetree/bindings/sound/snow.txt b/Documentation/devicetree/bindings/sound/snow.txt
deleted file mode 100644
index 80fd9a87bb3f..000000000000
--- a/Documentation/devicetree/bindings/sound/snow.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Audio Binding for Snow boards
-
-Required properties:
-- compatible : Can be one of the following,
-			"google,snow-audio-max98090" or
-			"google,snow-audio-max98091" or
-			"google,snow-audio-max98095"
-- samsung,i2s-controller (deprecated): The phandle of the Samsung I2S controller
-- samsung,audio-codec (deprecated): The phandle of the audio codec
-
-Required sub-nodes:
-
- - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S
-    controller
- - 'codec' subnode with a 'sound-dai' property containing list of phandles
-    to the CODEC nodes, first entry must be the phandle of the MAX98090,
-    MAX98091 or MAX98095 CODEC (exact device type is indicated by the compatible
-    string) and the second entry must be the phandle of the HDMI IP block node
-
-Optional:
-- samsung,model: The name of the sound-card
-
-Example:
-
-sound {
-		compatible = "google,snow-audio-max98095";
-
-		samsung,model = "Snow-I2S-MAX98095";
-		samsung,i2s-controller = <&i2s0>;
-		samsung,audio-codec = <&max98095>;
-};
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: convert to dtschema
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2022-01-29 12:24 ` [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: " Krzysztof Kozlowski
@ 2022-01-29 12:24 ` Krzysztof Kozlowski
  2022-02-09 21:13   ` Rob Herring
  2022-02-10 16:53 ` [PATCH v2 0/6] ASoC: dt-bindings: samsung: " Mark Brown
  6 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2022-01-29 12:24 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Sylwester Nawrocki, Jonathan Bakker, alsa-devel, devicetree,
	linux-kernel

Convert the audio complex on Samsung TM2 boards with Samsung Exynos SoC
to DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../bindings/sound/samsung,tm2-audio.txt      | 42 ----------
 .../bindings/sound/samsung,tm2.yaml           | 80 +++++++++++++++++++
 2 files changed, 80 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt
 create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2.yaml

diff --git a/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt b/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt
deleted file mode 100644
index f5ccc12ddc00..000000000000
--- a/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-Samsung Exynos5433 TM2(E) audio complex with WM5110 codec
-
-Required properties:
-
- - compatible		 : "samsung,tm2-audio"
- - model		 : the user-visible name of this sound complex
- - audio-codec		 : the first entry should be phandle of the wm5110 audio
-			   codec node, as described in ../mfd/arizona.txt;
-			   the second entry should be phandle of the HDMI
-			   transmitter node
- - i2s-controller	 : the list of phandle and argument tuples pointing to
-			   I2S controllers, the first entry should be I2S0 and
-			   the second one I2S1
- - audio-amplifier	 : the phandle of the MAX98504 amplifier
- - samsung,audio-routing : a list of the connections between audio components;
-			   each entry is a pair of strings, the first being the
-			   connection's sink, the second being the connection's
-			   source; valid names for sources and sinks are the
-			   WM5110's and MAX98504's pins and the jacks on the
-			   board: HP, SPK, Main Mic, Sub Mic, Third Mic,
-			   Headset Mic
- - mic-bias-gpios	 : GPIO pin that enables the Main Mic bias regulator
-
-
-Example:
-
-sound {
-	compatible = "samsung,tm2-audio";
-	audio-codec = <&wm5110>, <&hdmi>;
-	i2s-controller = <&i2s0 0>, <&i2s1 0>;
-	audio-amplifier = <&max98504>;
-	mic-bias-gpios = <&gpr3 2 0>;
-	model = "wm5110";
-	samsung,audio-routing =
-		"HP", "HPOUT1L",
-		"HP", "HPOUT1R",
-		"SPK", "SPKOUT",
-		"SPKOUT", "HPOUT2L",
-		"SPKOUT", "HPOUT2R",
-		"Main Mic", "MICBIAS2",
-		"IN1R", "Main Mic";
-};
diff --git a/Documentation/devicetree/bindings/sound/samsung,tm2.yaml b/Documentation/devicetree/bindings/sound/samsung,tm2.yaml
new file mode 100644
index 000000000000..74712d6f3ef4
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/samsung,tm2.yaml
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/samsung,tm2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung Exynos5433 TM2(E) audio complex with WM5110 codec
+
+maintainers:
+  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
+  - Sylwester Nawrocki <s.nawrocki@samsung.com>
+
+properties:
+  compatible:
+    const: samsung,tm2-audio
+
+  audio-amplifier:
+    description: Phandle to the MAX98504 amplifier.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+  audio-codec:
+    description: Phandles to the codecs.
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - description: Phandle to the WM5110 audio codec.
+      - description: Phandle to the HDMI transmitter node.
+
+  samsung,audio-routing:
+    description: |
+      List of the connections between audio components; each entry is
+      a pair of strings, the first being the connection's sink, the second
+      being the connection's source; valid names for sources and sinks are the
+      WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main
+      Mic, Sub Mic, Third Mic, Headset Mic.
+    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
+
+  i2s-controller:
+    description: Phandles to the I2S controllers.
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - description: Phandle to I2S0.
+      - description: Phandle to I2S1.
+
+  mic-bias-gpios:
+    description: GPIO pin that enables the Main Mic bias regulator.
+
+  model:
+    description: The user-visible name of this sound complex.
+    $ref: /schemas/types.yaml#/definitions/string
+
+required:
+  - compatible
+  - audio-amplifier
+  - audio-codec
+  - samsung,audio-routing
+  - i2s-controller
+  - mic-bias-gpios
+  - model
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    sound {
+        compatible = "samsung,tm2-audio";
+        audio-codec = <&wm5110>, <&hdmi>;
+        i2s-controller = <&i2s0 0>, <&i2s1 0>;
+        audio-amplifier = <&max98504>;
+        mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
+        model = "wm5110";
+        samsung,audio-routing = "HP", "HPOUT1L",
+                                "HP", "HPOUT1R",
+                                "SPK", "SPKOUT",
+                                "SPKOUT", "HPOUT2L",
+                                "SPKOUT", "HPOUT2R",
+                                "RCV", "HPOUT3L",
+                                "RCV", "HPOUT3R";
+    };
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property
  2022-01-29 12:23 ` [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property Krzysztof Kozlowski
@ 2022-02-09 20:58   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 20:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Liam Girdwood, Rob Herring, linux-kernel, alsa-devel,
	Jonathan Bakker, Sylwester Nawrocki, Mark Brown, devicetree

On Sat, 29 Jan 2022 13:23:52 +0100, Krzysztof Kozlowski wrote:
> The cpu and codec nodes must provide sound-dai property.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  .../devicetree/bindings/sound/samsung,aries-wm8994.yaml       | 4 ++++
>  1 file changed, 4 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema
  2022-01-29 12:24 ` [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Krzysztof Kozlowski
@ 2022-02-09 20:58   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 20:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jonathan Bakker, devicetree, Mark Brown, linux-kernel,
	Rob Herring, Sylwester Nawrocki, alsa-devel, Liam Girdwood

On Sat, 29 Jan 2022 13:24:26 +0100, Krzysztof Kozlowski wrote:
> Convert the audio complex on Arndale boards with Samsung Exynos SoC to
> DT schema format.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  .../devicetree/bindings/sound/arndale.txt     | 25 -----------
>  .../bindings/sound/samsung,arndale.yaml       | 44 +++++++++++++++++++
>  2 files changed, 44 insertions(+), 25 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/arndale.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/samsung,arndale.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631
  2022-01-29 12:24 ` [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Krzysztof Kozlowski
@ 2022-02-09 20:58   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 20:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, devicetree, Mark Brown, linux-kernel, alsa-devel,
	Liam Girdwood, Sylwester Nawrocki, Jonathan Bakker

On Sat, 29 Jan 2022 13:24:27 +0100, Krzysztof Kozlowski wrote:
> The Arndale audio complex might come with ALC5631 which is compatible
> with RT5631.  Document the compatible since it is used in Linux kernel
> sources.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  Documentation/devicetree/bindings/sound/samsung,arndale.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema
  2022-01-29 12:24 ` [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Krzysztof Kozlowski
@ 2022-02-09 21:01   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 21:01 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Liam Girdwood, Sylwester Nawrocki, Jonathan Bakker, devicetree,
	Rob Herring, linux-kernel, Mark Brown, alsa-devel

On Sat, 29 Jan 2022 13:24:28 +0100, Krzysztof Kozlowski wrote:
> Convert the audio complex on SMDK5250 boards with Samsung Exynos SoC to
> DT schema format.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  .../bindings/sound/samsung,smdk-wm8994.txt    | 14 -------
>  .../bindings/sound/samsung,smdk5250.yaml      | 38 +++++++++++++++++++
>  2 files changed, 38 insertions(+), 14 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: convert to dtschema
  2022-01-29 12:24 ` [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: " Krzysztof Kozlowski
@ 2022-02-09 21:02   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 21:02 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sylwester Nawrocki, Jonathan Bakker, alsa-devel, Mark Brown,
	Rob Herring, Liam Girdwood, devicetree, linux-kernel

On Sat, 29 Jan 2022 13:24:29 +0100, Krzysztof Kozlowski wrote:
> Convert the audio complex on Google Snow boards with Samsung Exynos SoC
> to DT schema format.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  .../bindings/sound/samsung,snow.yaml          | 74 +++++++++++++++++++
>  .../devicetree/bindings/sound/snow.txt        | 31 --------
>  2 files changed, 74 insertions(+), 31 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/sound/samsung,snow.yaml
>  delete mode 100644 Documentation/devicetree/bindings/sound/snow.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: convert to dtschema
  2022-01-29 12:24 ` [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: " Krzysztof Kozlowski
@ 2022-02-09 21:13   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2022-02-09 21:13 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sylwester Nawrocki, Mark Brown, Liam Girdwood, devicetree,
	linux-kernel, Rob Herring, Jonathan Bakker, alsa-devel

On Sat, 29 Jan 2022 13:24:30 +0100, Krzysztof Kozlowski wrote:
> Convert the audio complex on Samsung TM2 boards with Samsung Exynos SoC
> to DT schema format.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  .../bindings/sound/samsung,tm2-audio.txt      | 42 ----------
>  .../bindings/sound/samsung,tm2.yaml           | 80 +++++++++++++++++++
>  2 files changed, 80 insertions(+), 42 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema
  2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2022-01-29 12:24 ` [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: " Krzysztof Kozlowski
@ 2022-02-10 16:53 ` Mark Brown
  6 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2022-02-10 16:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski, alsa-devel, Jonathan Bakker, Rob Herring,
	linux-kernel, devicetree, Liam Girdwood, Sylwester Nawrocki

On Sat, 29 Jan 2022 13:23:51 +0100, Krzysztof Kozlowski wrote:
> The patchset is based on Rob's sound-dai changes:
> https://lore.kernel.org/all/20220126231427.1638089-1-robh@kernel.org/
> 
> Changes since v1:
> 1. Correct samsung,snow cpu/sound-dai.
> 
> Best regards,
> Krzysztof
> 
> [...]

Applied to

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

Thanks!

[1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property
      commit: 7f021b723ea51ae94329e6d76f68189e1696deca
[2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema
      commit: 0412539614a223817646150d910ab6fedbb80507
[3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631
      commit: b6145d8f0d6436a83a31024d4f9953d7088710b4
[4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema
      commit: 6752770d590594ff42fc19e74c30059d34f133af
[5/6] ASoC: dt-bindings: samsung,snow: convert to dtschema
      commit: a7e5305f7ab03cf3ae19ddd3f29919a7a2da0e5d
[6/6] ASoC: dt-bindings: samsung,tm2: convert to dtschema
      commit: c1fc51ebb098cd43a68ebc82fde51364c207de32

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] 14+ messages in thread

end of thread, other threads:[~2022-02-10 16:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-29 12:23 [PATCH v2 0/6] ASoC: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
2022-01-29 12:23 ` [PATCH v2 1/6] ASoC: dt-bindings: samsung,aries-wm8994: require sound-dai property Krzysztof Kozlowski
2022-02-09 20:58   ` Rob Herring
2022-01-29 12:24 ` [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Krzysztof Kozlowski
2022-02-09 20:58   ` Rob Herring
2022-01-29 12:24 ` [PATCH v2 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Krzysztof Kozlowski
2022-02-09 20:58   ` Rob Herring
2022-01-29 12:24 ` [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Krzysztof Kozlowski
2022-02-09 21:01   ` Rob Herring
2022-01-29 12:24 ` [PATCH v2 5/6] ASoC: dt-bindings: samsung,snow: " Krzysztof Kozlowski
2022-02-09 21:02   ` Rob Herring
2022-01-29 12:24 ` [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: " Krzysztof Kozlowski
2022-02-09 21:13   ` Rob Herring
2022-02-10 16:53 ` [PATCH v2 0/6] ASoC: dt-bindings: samsung: " 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).