All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output
@ 2022-12-23 17:04 ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: Francesco Dolcini, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli

From: Francesco Dolcini <francesco.dolcini@toradex.com>

Add support for BTL (Bridge Tied Load) configuration to NAU8822 audio codec,
since this requires adding a new property to the binding convert it from
txt to yaml first.

Emanuele Ghidoli (3):
  ASoC: dt-bindings: nau8822: convert to the dtschema
  ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
  ASoC: nau8822: add speaker Bridge Tied Output configuration

 .../devicetree/bindings/sound/nau8822.txt     | 16 -------
 .../bindings/sound/nuvoton,nau8822.yaml       | 46 +++++++++++++++++++
 sound/soc/codecs/nau8822.c                    |  9 ++++
 sound/soc/codecs/nau8822.h                    |  9 ++++
 4 files changed, 64 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
 create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml

-- 
2.25.1


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

* [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output
@ 2022-12-23 17:04 ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, Krzysztof Kozlowski,
	Francesco Dolcini

From: Francesco Dolcini <francesco.dolcini@toradex.com>

Add support for BTL (Bridge Tied Load) configuration to NAU8822 audio codec,
since this requires adding a new property to the binding convert it from
txt to yaml first.

Emanuele Ghidoli (3):
  ASoC: dt-bindings: nau8822: convert to the dtschema
  ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
  ASoC: nau8822: add speaker Bridge Tied Output configuration

 .../devicetree/bindings/sound/nau8822.txt     | 16 -------
 .../bindings/sound/nuvoton,nau8822.yaml       | 46 +++++++++++++++++++
 sound/soc/codecs/nau8822.c                    |  9 ++++
 sound/soc/codecs/nau8822.h                    |  9 ++++
 4 files changed, 64 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
 create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml

-- 
2.25.1


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

* [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
  2022-12-23 17:04 ` Francesco Dolcini
@ 2022-12-23 17:04   ` Francesco Dolcini
  -1 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: Emanuele Ghidoli, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli, David Lin, Francesco Dolcini

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Convert nau8822 devicetree binding to dtschema.
Change file name to match dtschema naming.

Cc: David Lin <CTLIN0@nuvoton.com>
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 .../devicetree/bindings/sound/nau8822.txt     | 16 --------
 .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
 2 files changed, 40 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
 create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml

diff --git a/Documentation/devicetree/bindings/sound/nau8822.txt b/Documentation/devicetree/bindings/sound/nau8822.txt
deleted file mode 100644
index a471d162d4e5..000000000000
--- a/Documentation/devicetree/bindings/sound/nau8822.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-NAU8822 audio CODEC
-
-This device supports I2C only.
-
-Required properties:
-
-  - compatible : "nuvoton,nau8822"
-
-  - reg : the I2C address of the device.
-
-Example:
-
-codec: nau8822@1a {
-	compatible = "nuvoton,nau8822";
-	reg = <0x1a>;
-};
diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
new file mode 100644
index 000000000000..10464170a98f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.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/nuvoton,nau8822.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NAU8822 audio CODEC
+
+description: |
+  24 bit stereo audio codec with speaker driver.
+  This device supports I2C/SPI. Currently, only I2C bus is supported.
+
+maintainers:
+  - David Lin <CTLIN0@nuvoton.com>
+
+properties:
+  compatible:
+    enum:
+      - nuvoton,nau8822
+
+  reg:
+    maxItems: 1
+
+additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        codec@1a {
+            compatible = "nuvoton,nau8822";
+            reg = <0x1a>;
+        };
+    };
-- 
2.25.1


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

* [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
@ 2022-12-23 17:04   ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, David Lin, Krzysztof Kozlowski,
	Francesco Dolcini, Emanuele Ghidoli

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Convert nau8822 devicetree binding to dtschema.
Change file name to match dtschema naming.

Cc: David Lin <CTLIN0@nuvoton.com>
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 .../devicetree/bindings/sound/nau8822.txt     | 16 --------
 .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
 2 files changed, 40 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
 create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml

diff --git a/Documentation/devicetree/bindings/sound/nau8822.txt b/Documentation/devicetree/bindings/sound/nau8822.txt
deleted file mode 100644
index a471d162d4e5..000000000000
--- a/Documentation/devicetree/bindings/sound/nau8822.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-NAU8822 audio CODEC
-
-This device supports I2C only.
-
-Required properties:
-
-  - compatible : "nuvoton,nau8822"
-
-  - reg : the I2C address of the device.
-
-Example:
-
-codec: nau8822@1a {
-	compatible = "nuvoton,nau8822";
-	reg = <0x1a>;
-};
diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
new file mode 100644
index 000000000000..10464170a98f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.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/nuvoton,nau8822.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NAU8822 audio CODEC
+
+description: |
+  24 bit stereo audio codec with speaker driver.
+  This device supports I2C/SPI. Currently, only I2C bus is supported.
+
+maintainers:
+  - David Lin <CTLIN0@nuvoton.com>
+
+properties:
+  compatible:
+    enum:
+      - nuvoton,nau8822
+
+  reg:
+    maxItems: 1
+
+additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        codec@1a {
+            compatible = "nuvoton,nau8822";
+            reg = <0x1a>;
+        };
+    };
-- 
2.25.1


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

* [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
  2022-12-23 17:04 ` Francesco Dolcini
@ 2022-12-23 17:04   ` Francesco Dolcini
  -1 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: Emanuele Ghidoli, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli, David Lin, Francesco Dolcini

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Add nuvoton,spk-btl to configure the two loudspeaker outputs
as Bridge Tied Load

Cc: David Lin <CTLIN0@nuvoton.com>
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 .../devicetree/bindings/sound/nuvoton,nau8822.yaml          | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
index 10464170a98f..700c57698133 100644
--- a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
+++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
@@ -21,6 +21,12 @@ properties:
   reg:
     maxItems: 1
 
+  nuvoton,spk-btl:
+    description:
+      If set, configure the two loudspeaker outputs as a Bridge Tied Load output
+      to drive a high power external loudspeaker.
+    $ref: /schemas/types.yaml#/definitions/flag
+
 additionalProperties: false
 
 required:
-- 
2.25.1


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

* [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton, spk-btl property to dtschema
@ 2022-12-23 17:04   ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, David Lin, Krzysztof Kozlowski,
	Francesco Dolcini, Emanuele Ghidoli

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Add nuvoton,spk-btl to configure the two loudspeaker outputs
as Bridge Tied Load

Cc: David Lin <CTLIN0@nuvoton.com>
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 .../devicetree/bindings/sound/nuvoton,nau8822.yaml          | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
index 10464170a98f..700c57698133 100644
--- a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
+++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
@@ -21,6 +21,12 @@ properties:
   reg:
     maxItems: 1
 
+  nuvoton,spk-btl:
+    description:
+      If set, configure the two loudspeaker outputs as a Bridge Tied Load output
+      to drive a high power external loudspeaker.
+    $ref: /schemas/types.yaml#/definitions/flag
+
 additionalProperties: false
 
 required:
-- 
2.25.1


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

* [PATCH v1 3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration
  2022-12-23 17:04 ` Francesco Dolcini
@ 2022-12-23 17:04   ` Francesco Dolcini
  -1 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: Emanuele Ghidoli, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli, Francesco Dolcini

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Allow configuring the two loudspeaker outputs as a
single Bridge Tied Load output getting higher output power.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 sound/soc/codecs/nau8822.c | 9 +++++++++
 sound/soc/codecs/nau8822.h | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c
index 1aef281a9972..d5006d8de639 100644
--- a/sound/soc/codecs/nau8822.c
+++ b/sound/soc/codecs/nau8822.c
@@ -1056,6 +1056,7 @@ static const int update_reg[] = {
 static int nau8822_probe(struct snd_soc_component *component)
 {
 	int i;
+	struct device_node *of_node = component->dev->of_node;
 
 	/*
 	 * Set the update bit in all registers, that have one. This way all
@@ -1066,6 +1067,14 @@ static int nau8822_probe(struct snd_soc_component *component)
 		snd_soc_component_update_bits(component,
 			update_reg[i], 0x100, 0x100);
 
+	/* Check property to configure the two loudspeaker outputs as
+	 * a single Bridge Tied Load output
+	 */
+	if (of_property_read_bool(of_node, "nuvoton,spk-btl"))
+		snd_soc_component_update_bits(component,
+					      NAU8822_REG_RIGHT_SPEAKER_CONTROL,
+					      NAU8822_RSUBBYP, NAU8822_RSUBBYP);
+
 	return 0;
 }
 
diff --git a/sound/soc/codecs/nau8822.h b/sound/soc/codecs/nau8822.h
index 547ec057f853..646f6bb64bc5 100644
--- a/sound/soc/codecs/nau8822.h
+++ b/sound/soc/codecs/nau8822.h
@@ -187,6 +187,15 @@
 /* NAU8822_REG_PLL_K3 (0x27) */
 #define NAU8822_PLLK3_MASK			0x1FF
 
+/* NAU8822_REG_RIGHT_SPEAKER_CONTROL (0x2B) */
+#define NAU8822_RMIXMUT				0x20
+#define NAU8822_RSUBBYP				0x10
+
+#define NAU8822_RAUXRSUBG_SFT			1
+#define NAU8822_RAUXRSUBG_MASK			0x0E
+
+#define NAU8822_RAUXSMUT			0x01
+
 /* System Clock Source */
 enum {
 	NAU8822_CLK_MCLK,
-- 
2.25.1


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

* [PATCH v1 3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration
@ 2022-12-23 17:04   ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-23 17:04 UTC (permalink / raw)
  To: alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, Krzysztof Kozlowski,
	Francesco Dolcini, Emanuele Ghidoli

From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>

Allow configuring the two loudspeaker outputs as a
single Bridge Tied Load output getting higher output power.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
 sound/soc/codecs/nau8822.c | 9 +++++++++
 sound/soc/codecs/nau8822.h | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c
index 1aef281a9972..d5006d8de639 100644
--- a/sound/soc/codecs/nau8822.c
+++ b/sound/soc/codecs/nau8822.c
@@ -1056,6 +1056,7 @@ static const int update_reg[] = {
 static int nau8822_probe(struct snd_soc_component *component)
 {
 	int i;
+	struct device_node *of_node = component->dev->of_node;
 
 	/*
 	 * Set the update bit in all registers, that have one. This way all
@@ -1066,6 +1067,14 @@ static int nau8822_probe(struct snd_soc_component *component)
 		snd_soc_component_update_bits(component,
 			update_reg[i], 0x100, 0x100);
 
+	/* Check property to configure the two loudspeaker outputs as
+	 * a single Bridge Tied Load output
+	 */
+	if (of_property_read_bool(of_node, "nuvoton,spk-btl"))
+		snd_soc_component_update_bits(component,
+					      NAU8822_REG_RIGHT_SPEAKER_CONTROL,
+					      NAU8822_RSUBBYP, NAU8822_RSUBBYP);
+
 	return 0;
 }
 
diff --git a/sound/soc/codecs/nau8822.h b/sound/soc/codecs/nau8822.h
index 547ec057f853..646f6bb64bc5 100644
--- a/sound/soc/codecs/nau8822.h
+++ b/sound/soc/codecs/nau8822.h
@@ -187,6 +187,15 @@
 /* NAU8822_REG_PLL_K3 (0x27) */
 #define NAU8822_PLLK3_MASK			0x1FF
 
+/* NAU8822_REG_RIGHT_SPEAKER_CONTROL (0x2B) */
+#define NAU8822_RMIXMUT				0x20
+#define NAU8822_RSUBBYP				0x10
+
+#define NAU8822_RAUXRSUBG_SFT			1
+#define NAU8822_RAUXRSUBG_MASK			0x0E
+
+#define NAU8822_RAUXSMUT			0x01
+
 /* System Clock Source */
 enum {
 	NAU8822_CLK_MCLK,
-- 
2.25.1


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
  2022-12-23 17:04   ` Francesco Dolcini
@ 2022-12-23 19:26     ` Rob Herring
  -1 siblings, 0 replies; 18+ messages in thread
From: Rob Herring @ 2022-12-23 19:26 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: devicetree, kchsu0, Mark Brown, alsa-devel, Francesco Dolcini,
	Jaroslav Kysela, Emanuele Ghidoli, Liam Girdwood, Benjamin Marty,
	wtli, Rob Herring, David Lin, Krzysztof Kozlowski, Takashi Iwai


On Fri, 23 Dec 2022 18:04:02 +0100, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Convert nau8822 devicetree binding to dtschema.
> Change file name to match dtschema naming.
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---
>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>  2 files changed, 40 insertions(+), 16 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> 

Running 'make dtbs_check' with the schema in this patch gives the
following warnings. Consider if they are expected or the schema is
incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check.
This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221223170404.210603-2-francesco@dolcini.it


audio-codec@1a: '#sound-dai-cells', 'AVDD-supply', 'CPVDD-supply', 'DBVDD-supply', 'DCVDD-supply', 'MICVDD-supply', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
	arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dtb
	arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dtb


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
@ 2022-12-23 19:26     ` Rob Herring
  0 siblings, 0 replies; 18+ messages in thread
From: Rob Herring @ 2022-12-23 19:26 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: devicetree, alsa-devel, wtli, Takashi Iwai, kchsu0,
	Liam Girdwood, Rob Herring, Benjamin Marty, Mark Brown,
	David Lin, Krzysztof Kozlowski, Francesco Dolcini,
	Emanuele Ghidoli


On Fri, 23 Dec 2022 18:04:02 +0100, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Convert nau8822 devicetree binding to dtschema.
> Change file name to match dtschema naming.
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---
>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>  2 files changed, 40 insertions(+), 16 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> 

Running 'make dtbs_check' with the schema in this patch gives the
following warnings. Consider if they are expected or the schema is
incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check.
This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221223170404.210603-2-francesco@dolcini.it


audio-codec@1a: '#sound-dai-cells', 'AVDD-supply', 'CPVDD-supply', 'DBVDD-supply', 'DCVDD-supply', 'MICVDD-supply', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
	arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dtb
	arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dtb


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
  2022-12-23 17:04   ` Francesco Dolcini
@ 2022-12-24 13:18     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-24 13:18 UTC (permalink / raw)
  To: Francesco Dolcini, alsa-devel, devicetree
  Cc: Emanuele Ghidoli, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli, David Lin, Francesco Dolcini

On 23/12/2022 18:04, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Convert nau8822 devicetree binding to dtschema.
> Change file name to match dtschema naming.
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---
>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>  2 files changed, 40 insertions(+), 16 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/nau8822.txt b/Documentation/devicetree/bindings/sound/nau8822.txt
> deleted file mode 100644
> index a471d162d4e5..000000000000
> --- a/Documentation/devicetree/bindings/sound/nau8822.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -NAU8822 audio CODEC
> -
> -This device supports I2C only.
> -
> -Required properties:
> -
> -  - compatible : "nuvoton,nau8822"
> -
> -  - reg : the I2C address of the device.
> -
> -Example:
> -
> -codec: nau8822@1a {
> -	compatible = "nuvoton,nau8822";
> -	reg = <0x1a>;
> -};
> diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> new file mode 100644
> index 000000000000..10464170a98f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.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/nuvoton,nau8822.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NAU8822 audio CODEC
> +
> +description: |
> +  24 bit stereo audio codec with speaker driver.
> +  This device supports I2C/SPI. Currently, only I2C bus is supported.

I would skip the last sentence - bindings are independent of OS, so the
sentence might be not true in different systems/versions.

> +
> +maintainers:
> +  - David Lin <CTLIN0@nuvoton.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - nuvoton,nau8822
> +
> +  reg:
> +    maxItems: 1
> +
> +additionalProperties: false

Please put "additionalProperties" after "required:".

With above (or even without these):

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
@ 2022-12-24 13:18     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-24 13:18 UTC (permalink / raw)
  To: Francesco Dolcini, alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, David Lin, Krzysztof Kozlowski,
	Francesco Dolcini, Emanuele Ghidoli

On 23/12/2022 18:04, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Convert nau8822 devicetree binding to dtschema.
> Change file name to match dtschema naming.
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---
>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>  2 files changed, 40 insertions(+), 16 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/nau8822.txt b/Documentation/devicetree/bindings/sound/nau8822.txt
> deleted file mode 100644
> index a471d162d4e5..000000000000
> --- a/Documentation/devicetree/bindings/sound/nau8822.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -NAU8822 audio CODEC
> -
> -This device supports I2C only.
> -
> -Required properties:
> -
> -  - compatible : "nuvoton,nau8822"
> -
> -  - reg : the I2C address of the device.
> -
> -Example:
> -
> -codec: nau8822@1a {
> -	compatible = "nuvoton,nau8822";
> -	reg = <0x1a>;
> -};
> diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> new file mode 100644
> index 000000000000..10464170a98f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.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/nuvoton,nau8822.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NAU8822 audio CODEC
> +
> +description: |
> +  24 bit stereo audio codec with speaker driver.
> +  This device supports I2C/SPI. Currently, only I2C bus is supported.

I would skip the last sentence - bindings are independent of OS, so the
sentence might be not true in different systems/versions.

> +
> +maintainers:
> +  - David Lin <CTLIN0@nuvoton.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - nuvoton,nau8822
> +
> +  reg:
> +    maxItems: 1
> +
> +additionalProperties: false

Please put "additionalProperties" after "required:".

With above (or even without these):

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof


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

* Re: [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
  2022-12-23 17:04   ` [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton, spk-btl " Francesco Dolcini
@ 2022-12-24 13:18     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-24 13:18 UTC (permalink / raw)
  To: Francesco Dolcini, alsa-devel, devicetree
  Cc: Emanuele Ghidoli, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli, David Lin, Francesco Dolcini

On 23/12/2022 18:04, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Add nuvoton,spk-btl to configure the two loudspeaker outputs
> as Bridge Tied Load
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
@ 2022-12-24 13:18     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-24 13:18 UTC (permalink / raw)
  To: Francesco Dolcini, alsa-devel, devicetree
  Cc: wtli, Takashi Iwai, kchsu0, Liam Girdwood, Rob Herring,
	Benjamin Marty, Mark Brown, David Lin, Krzysztof Kozlowski,
	Francesco Dolcini, Emanuele Ghidoli

On 23/12/2022 18:04, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Add nuvoton,spk-btl to configure the two loudspeaker outputs
> as Bridge Tied Load
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
  2022-12-23 19:26     ` Rob Herring
@ 2022-12-27 14:13       ` Francesco Dolcini
  -1 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-27 14:13 UTC (permalink / raw)
  To: Rob Herring
  Cc: devicetree, kchsu0, Mark Brown, alsa-devel, Francesco Dolcini,
	Jaroslav Kysela, Emanuele Ghidoli, Liam Girdwood, Benjamin Marty,
	wtli, Rob Herring, David Lin, Krzysztof Kozlowski, Takashi Iwai

Il 23 dicembre 2022 20:26:02 CET, Rob Herring <robh@kernel.org> ha scritto:
>
>On Fri, 23 Dec 2022 18:04:02 +0100, Francesco Dolcini wrote:
>> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
>> 
>> Convert nau8822 devicetree binding to dtschema.
>> Change file name to match dtschema naming.
>> 
>> Cc: David Lin <CTLIN0@nuvoton.com>
>> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
>> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
>> ---
>>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>>  2 files changed, 40 insertions(+), 16 deletions(-)
>>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
>> 
>
>Running 'make dtbs_check' with the schema in this patch gives the
>following warnings. Consider if they are expected or the schema is
>incorrect. These may not be new warnings.
>

Expected, those DTS files needs to be fixed, I'll have a separate patch for those.



>Note that it is not yet a requirement to have 0 warnings for dtbs_check.
>This will change in the future.
>
>Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221223170404.210603-2-francesco@dolcini.it
>
>
>audio-codec@1a: '#sound-dai-cells', 'AVDD-supply', 'CPVDD-supply', 'DBVDD-supply', 'DCVDD-supply', 'MICVDD-supply', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
>	arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dtb
>	arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dtb
>


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

* Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
@ 2022-12-27 14:13       ` Francesco Dolcini
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Dolcini @ 2022-12-27 14:13 UTC (permalink / raw)
  To: Rob Herring
  Cc: devicetree, alsa-devel, wtli, Takashi Iwai, kchsu0,
	Liam Girdwood, Rob Herring, Benjamin Marty, Mark Brown,
	David Lin, Krzysztof Kozlowski, Francesco Dolcini,
	Emanuele Ghidoli

Il 23 dicembre 2022 20:26:02 CET, Rob Herring <robh@kernel.org> ha scritto:
>
>On Fri, 23 Dec 2022 18:04:02 +0100, Francesco Dolcini wrote:
>> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
>> 
>> Convert nau8822 devicetree binding to dtschema.
>> Change file name to match dtschema naming.
>> 
>> Cc: David Lin <CTLIN0@nuvoton.com>
>> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
>> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
>> ---
>>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>>  2 files changed, 40 insertions(+), 16 deletions(-)
>>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
>> 
>
>Running 'make dtbs_check' with the schema in this patch gives the
>following warnings. Consider if they are expected or the schema is
>incorrect. These may not be new warnings.
>

Expected, those DTS files needs to be fixed, I'll have a separate patch for those.



>Note that it is not yet a requirement to have 0 warnings for dtbs_check.
>This will change in the future.
>
>Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221223170404.210603-2-francesco@dolcini.it
>
>
>audio-codec@1a: '#sound-dai-cells', 'AVDD-supply', 'CPVDD-supply', 'DBVDD-supply', 'DCVDD-supply', 'MICVDD-supply', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
>	arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dtb
>	arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dtb
>


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

* Re: [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output
  2022-12-23 17:04 ` Francesco Dolcini
@ 2023-01-09 16:49   ` Mark Brown
  -1 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-01-09 16:49 UTC (permalink / raw)
  To: alsa-devel, devicetree, Francesco Dolcini
  Cc: wtli, kchsu0, Takashi Iwai, Liam Girdwood, Benjamin Marty,
	Rob Herring, Krzysztof Kozlowski, Francesco Dolcini

On Fri, 23 Dec 2022 18:04:01 +0100, Francesco Dolcini wrote:
> Add support for BTL (Bridge Tied Load) configuration to NAU8822 audio codec,
> since this requires adding a new property to the binding convert it from
> txt to yaml first.
> 
> Emanuele Ghidoli (3):
>   ASoC: dt-bindings: nau8822: convert to the dtschema
>   ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
>   ASoC: nau8822: add speaker Bridge Tied Output configuration
> 
> [...]

Applied to

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

Thanks!

[1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
      commit: 76fa6279eff931b43482f0bef5d65cdcf325de87
[2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
      (no commit info)
[3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration
      commit: 968b42069fe5dab362b623c6b8a1565709a12f5b

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

* Re: [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output
@ 2023-01-09 16:49   ` Mark Brown
  0 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-01-09 16:49 UTC (permalink / raw)
  To: alsa-devel, devicetree, Francesco Dolcini
  Cc: Francesco Dolcini, Liam Girdwood, Rob Herring,
	Krzysztof Kozlowski, Jaroslav Kysela, Takashi Iwai,
	Benjamin Marty, kchsu0, wtli

On Fri, 23 Dec 2022 18:04:01 +0100, Francesco Dolcini wrote:
> Add support for BTL (Bridge Tied Load) configuration to NAU8822 audio codec,
> since this requires adding a new property to the binding convert it from
> txt to yaml first.
> 
> Emanuele Ghidoli (3):
>   ASoC: dt-bindings: nau8822: convert to the dtschema
>   ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
>   ASoC: nau8822: add speaker Bridge Tied Output configuration
> 
> [...]

Applied to

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

Thanks!

[1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
      commit: 76fa6279eff931b43482f0bef5d65cdcf325de87
[2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema
      (no commit info)
[3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration
      commit: 968b42069fe5dab362b623c6b8a1565709a12f5b

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

end of thread, other threads:[~2023-01-09 16:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 17:04 [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output Francesco Dolcini
2022-12-23 17:04 ` Francesco Dolcini
2022-12-23 17:04 ` [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema Francesco Dolcini
2022-12-23 17:04   ` Francesco Dolcini
2022-12-23 19:26   ` Rob Herring
2022-12-23 19:26     ` Rob Herring
2022-12-27 14:13     ` Francesco Dolcini
2022-12-27 14:13       ` Francesco Dolcini
2022-12-24 13:18   ` Krzysztof Kozlowski
2022-12-24 13:18     ` Krzysztof Kozlowski
2022-12-23 17:04 ` [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema Francesco Dolcini
2022-12-23 17:04   ` [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton, spk-btl " Francesco Dolcini
2022-12-24 13:18   ` [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl " Krzysztof Kozlowski
2022-12-24 13:18     ` Krzysztof Kozlowski
2022-12-23 17:04 ` [PATCH v1 3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration Francesco Dolcini
2022-12-23 17:04   ` Francesco Dolcini
2023-01-09 16:49 ` [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output Mark Brown
2023-01-09 16:49   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.