alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
@ 2023-03-23 13:05 Saalim Quadri
  2023-03-23 15:15 ` Krzysztof Kozlowski
  2023-03-26 13:10 ` [PATCH v3] " Saalim Quadri
  0 siblings, 2 replies; 13+ messages in thread
From: Saalim Quadri @ 2023-03-23 13:05 UTC (permalink / raw)
  To: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, daniel.baluta
  Cc: alsa-devel, devicetree, linux-kernel, Saalim Quadri

Convert the ALC5632 audio codec bindings to DT schema.

Signed-off-by: Saalim Quadri <danascape@gmail.com>
---
 .../devicetree/bindings/sound/alc5632.txt     | 43 -------------
 .../bindings/sound/realtek,alc5632.yaml       | 63 +++++++++++++++++++
 2 files changed, 63 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/alc5632.txt
 create mode 100644 Documentation/devicetree/bindings/sound/realtek,alc5632.yaml

diff --git a/Documentation/devicetree/bindings/sound/alc5632.txt b/Documentation/devicetree/bindings/sound/alc5632.txt
deleted file mode 100644
index ffd886d110bd..000000000000
--- a/Documentation/devicetree/bindings/sound/alc5632.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-ALC5632 audio CODEC
-
-This device supports I2C only.
-
-Required properties:
-
-  - compatible : "realtek,alc5632"
-
-  - reg : the I2C address of the device.
-
-  - gpio-controller : Indicates this device is a GPIO controller.
-
-  - #gpio-cells : Should be two. The first cell is the pin number and the
-    second cell is used to specify optional parameters (currently unused).
-
-Pins on the device (for linking into audio routes):
-
-  * SPK_OUTP
-  * SPK_OUTN
-  * HP_OUT_L
-  * HP_OUT_R
-  * AUX_OUT_P
-  * AUX_OUT_N
-  * LINE_IN_L
-  * LINE_IN_R
-  * PHONE_P
-  * PHONE_N
-  * MIC1_P
-  * MIC1_N
-  * MIC2_P
-  * MIC2_N
-  * MICBIAS1
-  * DMICDAT
-
-Example:
-
-alc5632: alc5632@1e {
-	compatible = "realtek,alc5632";
-	reg = <0x1a>;
-
-	gpio-controller;
-	#gpio-cells = <2>;
-};
diff --git a/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
new file mode 100644
index 000000000000..7c2de067fb27
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/realtek,alc5632.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ALC5632 audio CODEC
+
+description: |
+  Pins on the device (for linking into audio routes):
+      * SPK_OUTP
+      * SPK_OUTN
+      * HP_OUT_L
+      * HP_OUT_R
+      * AUX_OUT_P
+      * AUX_OUT_N
+      * LINE_IN_L
+      * LINE_IN_R
+      * PHONE_P
+      * PHONE_N
+      * MIC1_P
+      * MIC1_N
+      * MIC2_P
+      * MIC2_N
+      * MICBIAS1
+      * DMICDAT
+
+maintainers:
+  - Liam Girdwood <lgirdwood@gmail.com>
+
+properties:
+  compatible:
+    const: realtek,alc5632
+
+  reg:
+    maxItems: 1
+
+  '#gpio-cells':
+    const: 2
+
+  gpio-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#gpio-cells'
+  - gpio-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        alc5632: alc5632@1a {
+            compatible = "realtek,alc5632";
+            reg = <0x1a>;
+            gpio-controller;
+            #gpio-cells = <2>;
+        };
+    };
-- 
2.34.1


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

* Re: [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 13:05 [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema Saalim Quadri
@ 2023-03-23 15:15 ` Krzysztof Kozlowski
  2023-03-23 17:11   ` Saalim Quadri
  2023-03-26 13:10 ` [PATCH v3] " Saalim Quadri
  1 sibling, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-23 15:15 UTC (permalink / raw)
  To: Saalim Quadri, lgirdwood, broonie, robh+dt,
	krzysztof.kozlowski+dt, daniel.baluta
  Cc: alsa-devel, devicetree, linux-kernel

On 23/03/2023 14:05, Saalim Quadri wrote:
> Convert the ALC5632 audio codec bindings to DT schema.
> 
> Signed-off-by: Saalim Quadri <danascape@gmail.com>


Thank you for your patch. There is something to discuss/improve.


> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/realtek,alc5632.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ALC5632 audio CODEC
> +
> +description: |
> +  Pins on the device (for linking into audio routes):
> +      * SPK_OUTP
> +      * SPK_OUTN
> +      * HP_OUT_L
> +      * HP_OUT_R
> +      * AUX_OUT_P
> +      * AUX_OUT_N
> +      * LINE_IN_L
> +      * LINE_IN_R
> +      * PHONE_P
> +      * PHONE_N
> +      * MIC1_P
> +      * MIC1_N
> +      * MIC2_P
> +      * MIC2_N
> +      * MICBIAS1
> +      * DMICDAT
> +
> +maintainers:
> +  - Liam Girdwood <lgirdwood@gmail.com>

This should not be subsystem maintainer but someone related to the
device. It's maintainer or interested contributor. Unless that's the
case here?

> +
> +properties:
> +  compatible:
> +    const: realtek,alc5632
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#gpio-cells':
> +    const: 2
> +
> +  gpio-controller: true
> +
> +required:
> +  - compatible
> +  - reg
> +  - '#gpio-cells'
> +  - gpio-controller
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        alc5632: alc5632@1a {

Node name: codec
and drop alc5632 label

> +            compatible = "realtek,alc5632";
> +            reg = <0x1a>;
> +            gpio-controller;
> +            #gpio-cells = <2>;
> +        };
> +    };

Best regards,
Krzysztof


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

* Re: [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 15:15 ` Krzysztof Kozlowski
@ 2023-03-23 17:11   ` Saalim Quadri
  2023-03-23 19:08     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 13+ messages in thread
From: Saalim Quadri @ 2023-03-23 17:11 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: alsa-devel, broonie, danascape, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

Hello,

This is my first time using the Linux Kernel Mailing List. I apologise if I commit any mistakes.

> This should not be subsystem maintainer but someone related to the
> device. It's maintainer or interested contributor. Unless that's the
> case here?

yes it is wrong, he is not the subsystem maintainer. I will send the updated patch.

I have a doubt, for the maintainers list, is it required to include all the names of the subsystem maintainer
in the yaml too? As for this codec, there are 4, shall I include the names of all of them or the one to whom the
module is authored to?

Apologies,

Saalim

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

* Re: [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 17:11   ` Saalim Quadri
@ 2023-03-23 19:08     ` Krzysztof Kozlowski
  2023-03-23 19:17       ` Mark Brown
  0 siblings, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-23 19:08 UTC (permalink / raw)
  To: Saalim Quadri
  Cc: alsa-devel, broonie, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

On 23/03/2023 18:11, Saalim Quadri wrote:
> Hello,
> 
> This is my first time using the Linux Kernel Mailing List. I apologise if I commit any mistakes.
> 
>> This should not be subsystem maintainer but someone related to the
>> device. It's maintainer or interested contributor. Unless that's the
>> case here?
> 
> yes it is wrong, he is not the subsystem maintainer. I will send the updated patch.
> 
> I have a doubt, for the maintainers list, is it required to include all the names of the subsystem maintainer
> in the yaml too? As for this codec, there are 4, shall I include the names of all of them or the one to whom the
> module is authored to?

Depends, choose one or two names, maybe the most active.

Best regards,
Krzysztof


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

* Re: [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:08     ` Krzysztof Kozlowski
@ 2023-03-23 19:17       ` Mark Brown
  2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
  2023-03-24  8:45         ` [PATCH] " Krzysztof Kozlowski
  0 siblings, 2 replies; 13+ messages in thread
From: Mark Brown @ 2023-03-23 19:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Saalim Quadri, alsa-devel, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

On Thu, Mar 23, 2023 at 08:08:33PM +0100, Krzysztof Kozlowski wrote:
> On 23/03/2023 18:11, Saalim Quadri wrote:

> > I have a doubt, for the maintainers list, is it required to include all the names of the subsystem maintainer
> > in the yaml too? As for this codec, there are 4, shall I include the names of all of them or the one to whom the

> Depends, choose one or two names, maybe the most active.

Note that the binding should have maintainers for the specific binding,
not the kernel subsystem.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* [PATCH v2] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:17       ` Mark Brown
@ 2023-03-23 19:37         ` Saalim Quadri
  2023-03-24  0:03           ` Mark Brown
                             ` (2 more replies)
  2023-03-24  8:45         ` [PATCH] " Krzysztof Kozlowski
  1 sibling, 3 replies; 13+ messages in thread
From: Saalim Quadri @ 2023-03-23 19:37 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, danascape, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, krzysztof.kozlowski, lgirdwood,
	linux-kernel, robh+dt

Convert the ALC5632 audio codec bindings to DT schema.

Signed-off-by: Saalim Quadri <danascape@gmail.com>
---
 .../devicetree/bindings/sound/alc5632.txt     | 43 -------------
 .../bindings/sound/realtek,alc5632.yaml       | 64 +++++++++++++++++++
 2 files changed, 64 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/alc5632.txt
 create mode 100644 Documentation/devicetree/bindings/sound/realtek,alc5632.yaml

diff --git a/Documentation/devicetree/bindings/sound/alc5632.txt b/Documentation/devicetree/bindings/sound/alc5632.txt
deleted file mode 100644
index ffd886d110bd..000000000000
--- a/Documentation/devicetree/bindings/sound/alc5632.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-ALC5632 audio CODEC
-
-This device supports I2C only.
-
-Required properties:
-
-  - compatible : "realtek,alc5632"
-
-  - reg : the I2C address of the device.
-
-  - gpio-controller : Indicates this device is a GPIO controller.
-
-  - #gpio-cells : Should be two. The first cell is the pin number and the
-    second cell is used to specify optional parameters (currently unused).
-
-Pins on the device (for linking into audio routes):
-
-  * SPK_OUTP
-  * SPK_OUTN
-  * HP_OUT_L
-  * HP_OUT_R
-  * AUX_OUT_P
-  * AUX_OUT_N
-  * LINE_IN_L
-  * LINE_IN_R
-  * PHONE_P
-  * PHONE_N
-  * MIC1_P
-  * MIC1_N
-  * MIC2_P
-  * MIC2_N
-  * MICBIAS1
-  * DMICDAT
-
-Example:
-
-alc5632: alc5632@1e {
-	compatible = "realtek,alc5632";
-	reg = <0x1a>;
-
-	gpio-controller;
-	#gpio-cells = <2>;
-};
diff --git a/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
new file mode 100644
index 000000000000..3de18b0fd3fd
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/realtek,alc5632.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ALC5632 audio CODEC
+
+description: |
+  Pins on the device (for linking into audio routes):
+      * SPK_OUTP
+      * SPK_OUTN
+      * HP_OUT_L
+      * HP_OUT_R
+      * AUX_OUT_P
+      * AUX_OUT_N
+      * LINE_IN_L
+      * LINE_IN_R
+      * PHONE_P
+      * PHONE_N
+      * MIC1_P
+      * MIC1_N
+      * MIC2_P
+      * MIC2_N
+      * MICBIAS1
+      * DMICDAT
+
+maintainers:
+  - Leon Romanovsky <leon@leon.nu>
+  - Mark Brown <broonie@kernel.org>
+
+properties:
+  compatible:
+    const: realtek,alc5632
+
+  reg:
+    maxItems: 1
+
+  '#gpio-cells':
+    const: 2
+
+  gpio-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#gpio-cells'
+  - gpio-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        alc5632: codec@1a {
+            compatible = "realtek,alc5632";
+            reg = <0x1a>;
+            gpio-controller;
+            #gpio-cells = <2>;
+        };
+    };
-- 
2.34.1


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

* Re: [PATCH v2] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
@ 2023-03-24  0:03           ` Mark Brown
  2023-03-24  8:43           ` Krzysztof Kozlowski
  2023-03-24  8:45           ` Krzysztof Kozlowski
  2 siblings, 0 replies; 13+ messages in thread
From: Mark Brown @ 2023-03-24  0:03 UTC (permalink / raw)
  To: Saalim Quadri
  Cc: alsa-devel, daniel.baluta, devicetree, krzysztof.kozlowski+dt,
	krzysztof.kozlowski, lgirdwood, linux-kernel, robh+dt,
	Leon Romanovsky

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Fri, Mar 24, 2023 at 01:07:09AM +0530, Saalim Quadri wrote:

> +maintainers:
> +  - Leon Romanovsky <leon@leon.nu>
> +  - Mark Brown <broonie@kernel.org>

I know nothing specific about this device so shouldn't be listed.  CCing
Leon for him to confirm.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v2] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
  2023-03-24  0:03           ` Mark Brown
@ 2023-03-24  8:43           ` Krzysztof Kozlowski
  2023-03-24  8:45           ` Krzysztof Kozlowski
  2 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-24  8:43 UTC (permalink / raw)
  To: Saalim Quadri, broonie
  Cc: alsa-devel, daniel.baluta, devicetree, krzysztof.kozlowski+dt,
	lgirdwood, linux-kernel, robh+dt

On 23/03/2023 20:37, Saalim Quadri wrote:
> Convert the ALC5632 audio codec bindings to DT schema.
> 
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---


> +
> +maintainers:
> +  - Leon Romanovsky <leon@leon.nu>

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC.  It might happen, that command when run on an older
kernel, gives you outdated entries.  Therefore please be sure you base
your patches on recent Linux kernel.

> +  - Mark Brown <broonie@kernel.org>
> +
> +properties:
> +  compatible:
> +    const: realtek,alc5632
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#gpio-cells':
> +    const: 2
> +
> +  gpio-controller: true
> +
> +required:
> +  - compatible
> +  - reg
> +  - '#gpio-cells'
> +  - gpio-controller
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        alc5632: codec@1a {

Drop label "alc5632".


Best regards,
Krzysztof


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

* Re: [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:17       ` Mark Brown
  2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
@ 2023-03-24  8:45         ` Krzysztof Kozlowski
  2023-03-25 16:36           ` [PATCH v2] " Saalim Quadri
  1 sibling, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-24  8:45 UTC (permalink / raw)
  To: Mark Brown
  Cc: Saalim Quadri, alsa-devel, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

On 23/03/2023 20:17, Mark Brown wrote:
> On Thu, Mar 23, 2023 at 08:08:33PM +0100, Krzysztof Kozlowski wrote:
>> On 23/03/2023 18:11, Saalim Quadri wrote:
> 
>>> I have a doubt, for the maintainers list, is it required to include all the names of the subsystem maintainer
>>> in the yaml too? As for this codec, there are 4, shall I include the names of all of them or the one to whom the
> 
>> Depends, choose one or two names, maybe the most active.
> 
> Note that the binding should have maintainers for the specific binding,
> not the kernel subsystem.

Yes. That's what I also said in the beginning, but for some reason
Saalim cut this part... and re-added subsystem maintainers.

Best regards,
Krzysztof


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

* Re: [PATCH v2] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
  2023-03-24  0:03           ` Mark Brown
  2023-03-24  8:43           ` Krzysztof Kozlowski
@ 2023-03-24  8:45           ` Krzysztof Kozlowski
  2 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-24  8:45 UTC (permalink / raw)
  To: Saalim Quadri, broonie
  Cc: alsa-devel, daniel.baluta, devicetree, krzysztof.kozlowski+dt,
	lgirdwood, linux-kernel, robh+dt

On 23/03/2023 20:37, Saalim Quadri wrote:
> Convert the ALC5632 audio codec bindings to DT schema.
> 
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---
>  .../devicetree/bindings/sound/alc5632.txt     | 43 -------------
>  .../bindings/sound/realtek,alc5632.yaml       | 64 +++++++++++++++++++
>  2 files changed, 64 insertions(+), 43 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/alc5632.txt

Also, do not attach your new patches to some other threads. Each
patchset version is new submission and new thread.

Best regards,
Krzysztof


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

* Re: [PATCH v2] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-24  8:45         ` [PATCH] " Krzysztof Kozlowski
@ 2023-03-25 16:36           ` Saalim Quadri
  0 siblings, 0 replies; 13+ messages in thread
From: Saalim Quadri @ 2023-03-25 16:36 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: alsa-devel, broonie, danascape, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt


> Yes. That's what I also said in the beginning, but for some reason
> Saalim cut this part... and re-added subsystem maintainers.

The file was last updated a few years back and it was by Mark, so I added him as well, while the
original binding was written by Leon only, so I added him as well.

Regards,

Saalim

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

* [PATCH v3] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-23 13:05 [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema Saalim Quadri
  2023-03-23 15:15 ` Krzysztof Kozlowski
@ 2023-03-26 13:10 ` Saalim Quadri
  2023-03-26 14:46   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 13+ messages in thread
From: Saalim Quadri @ 2023-03-26 13:10 UTC (permalink / raw)
  To: danascape
  Cc: alsa-devel, broonie, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

Convert the ALC5632 audio codec bindings to DT schema.

Signed-off-by: Saalim Quadri <danascape@gmail.com>
---
 .../devicetree/bindings/sound/alc5632.txt     | 43 -------------
 .../bindings/sound/realtek,alc5632.yaml       | 63 +++++++++++++++++++
 2 files changed, 63 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/alc5632.txt
 create mode 100644 Documentation/devicetree/bindings/sound/realtek,alc5632.yaml

diff --git a/Documentation/devicetree/bindings/sound/alc5632.txt b/Documentation/devicetree/bindings/sound/alc5632.txt
deleted file mode 100644
index ffd886d110bd..000000000000
--- a/Documentation/devicetree/bindings/sound/alc5632.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-ALC5632 audio CODEC
-
-This device supports I2C only.
-
-Required properties:
-
-  - compatible : "realtek,alc5632"
-
-  - reg : the I2C address of the device.
-
-  - gpio-controller : Indicates this device is a GPIO controller.
-
-  - #gpio-cells : Should be two. The first cell is the pin number and the
-    second cell is used to specify optional parameters (currently unused).
-
-Pins on the device (for linking into audio routes):
-
-  * SPK_OUTP
-  * SPK_OUTN
-  * HP_OUT_L
-  * HP_OUT_R
-  * AUX_OUT_P
-  * AUX_OUT_N
-  * LINE_IN_L
-  * LINE_IN_R
-  * PHONE_P
-  * PHONE_N
-  * MIC1_P
-  * MIC1_N
-  * MIC2_P
-  * MIC2_N
-  * MICBIAS1
-  * DMICDAT
-
-Example:
-
-alc5632: alc5632@1e {
-	compatible = "realtek,alc5632";
-	reg = <0x1a>;
-
-	gpio-controller;
-	#gpio-cells = <2>;
-};
diff --git a/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
new file mode 100644
index 000000000000..e399c35f48e0
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/realtek,alc5632.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ALC5632 audio CODEC
+
+description: |
+  Pins on the device (for linking into audio routes):
+      * SPK_OUTP
+      * SPK_OUTN
+      * HP_OUT_L
+      * HP_OUT_R
+      * AUX_OUT_P
+      * AUX_OUT_N
+      * LINE_IN_L
+      * LINE_IN_R
+      * PHONE_P
+      * PHONE_N
+      * MIC1_P
+      * MIC1_N
+      * MIC2_P
+      * MIC2_N
+      * MICBIAS1
+      * DMICDAT
+
+maintainers:
+  - Leon Romanovsky <leon@leon.nu>
+
+properties:
+  compatible:
+    const: realtek,alc5632
+
+  reg:
+    maxItems: 1
+
+  '#gpio-cells':
+    const: 2
+
+  gpio-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#gpio-cells'
+  - gpio-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        alc5632: codec@1a {
+            compatible = "realtek,alc5632";
+            reg = <0x1a>;
+            gpio-controller;
+            #gpio-cells = <2>;
+        };
+    };
-- 
2.34.1


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

* Re: [PATCH v3] ASoC: dt-bindings: alc5632: Convert to dtschema
  2023-03-26 13:10 ` [PATCH v3] " Saalim Quadri
@ 2023-03-26 14:46   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-26 14:46 UTC (permalink / raw)
  To: Saalim Quadri
  Cc: alsa-devel, broonie, daniel.baluta, devicetree,
	krzysztof.kozlowski+dt, lgirdwood, linux-kernel, robh+dt

On 26/03/2023 15:10, Saalim Quadri wrote:
> Convert the ALC5632 audio codec bindings to DT schema.

You got comment about threading. Do not ignore it.

> 
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---

Where is the changelog? What happened here?

>  .../devicetree/bindings/sound/alc5632.txt     | 43 -------------


> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        alc5632: codec@1a {

No improvements here.

> +            compatible = "realtek,alc5632";
> +            reg = <0x1a>;
> +            gpio-controller;
> +            #gpio-cells = <2>;
> +        };
> +    };

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-03-29 16:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 13:05 [PATCH] ASoC: dt-bindings: alc5632: Convert to dtschema Saalim Quadri
2023-03-23 15:15 ` Krzysztof Kozlowski
2023-03-23 17:11   ` Saalim Quadri
2023-03-23 19:08     ` Krzysztof Kozlowski
2023-03-23 19:17       ` Mark Brown
2023-03-23 19:37         ` [PATCH v2] " Saalim Quadri
2023-03-24  0:03           ` Mark Brown
2023-03-24  8:43           ` Krzysztof Kozlowski
2023-03-24  8:45           ` Krzysztof Kozlowski
2023-03-24  8:45         ` [PATCH] " Krzysztof Kozlowski
2023-03-25 16:36           ` [PATCH v2] " Saalim Quadri
2023-03-26 13:10 ` [PATCH v3] " Saalim Quadri
2023-03-26 14:46   ` Krzysztof Kozlowski

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).