* Re: [PATCH 1/7] ASoC: dt-bindings: nau8810: Add MCLK clock
[not found] <sashiko-outbox-247808@kernel.org>
@ 2026-12-03 16:25 ` Mehmet Fide
0 siblings, 0 replies; 2+ messages in thread
From: Mehmet Fide @ 2026-12-03 16:25 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, David Lin, Lars-Peter Clausen, Nuno Sá,
Peter Rosin, Martin Povišer, linux-sound, devicetree,
patches, asahi, linux-kernel, mehmet.fide
> Should compatible and reg come before #sound-dai-cells in this example
> node?
Yes, v2 lists compatible and reg first.
Mehmet
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 0/7] ASoC: nau8810: add MCLK support
@ 2026-12-03 12:47 Mehmet Fide
2026-12-03 12:47 ` [PATCH 1/7] ASoC: dt-bindings: nau8810: Add MCLK clock Mehmet Fide
0 siblings, 1 reply; 2+ messages in thread
From: Mehmet Fide @ 2026-12-03 12:47 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, David Lin, Lars-Peter Clausen, Nuno Sá,
Peter Rosin, Martin Povišer, linux-sound, devicetree,
patches, asahi, linux-kernel, mehmet.fide
From: Mehmet Fide <mehmet.fide@screeningeagle.com>
The NAU8810 needs an internal master clock of 256 * fs, which the driver
can only divide from MCLK. With 25 MHz from the AM62 AUDIO_EXT_REFCLK1,
48 kHz and 44.1 kHz both play at 48.8 kHz.
This series lets the driver take MCLK and make the system clock with
its PLL, along the lines of the nau8822 changes, with two differences.
PLL_EN stays with the PLL supply widget, so the problem fixed for
nau8822 by commit 390cdd61a947 ("ASoC: nau8822: reprogram PLL after it
has been disabled") cannot occur. And the PLL is not switched off while
it is programmed, as in commit aeca8a329502 ("ASoC: nau8822: Add
operation for internal PLL off and on"): the NAU8810 datasheet does not
ask for it.
Tested on a Verdin AM62 with simple-audio-card and mclk-fs = <256>, on
6.12.120 with the series backported, also with lockdep: playback from
8 to 48 kHz and capture at 8, 44.1 and 48 kHz run within 0.2 % of the
rate, and a board without mclk-fs keeps the old behaviour.
Mehmet Fide (7):
ASoC: dt-bindings: nau8810: Add MCLK clock
ASoC: nau8810: move nau8810_set_sysclk()
ASoC: nau8810: set NAU8810_REFIMP_80K only once
ASoC: nau8810: Lower debug print priority
ASoC: nau8810: Do not configure the PLL if freq_out is zero
ASoC: nau8810: Don't reconfigure PLL to the same values
ASoC: nau8810: add MCLK support
.../bindings/sound/nuvoton,nau8810.yaml | 51 +++++++++++
.../bindings/sound/trivial-codec.yaml | 3 -
sound/soc/codecs/nau8810.c | 87 +++++++++++++++----
sound/soc/codecs/nau8810.h | 3 +
4 files changed, 126 insertions(+), 18 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8810.yaml
base-commit: b5b604242c1cc418d202d29d73fe8ec2db833a03
--
2.56.0
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH 1/7] ASoC: dt-bindings: nau8810: Add MCLK clock
2026-12-03 12:47 [PATCH 0/7] ASoC: nau8810: add MCLK support Mehmet Fide
@ 2026-12-03 12:47 ` Mehmet Fide
0 siblings, 0 replies; 2+ messages in thread
From: Mehmet Fide @ 2026-12-03 12:47 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, David Lin, Lars-Peter Clausen, Nuno Sá,
Peter Rosin, Martin Povišer, linux-sound, devicetree,
patches, asahi, linux-kernel, mehmet.fide
From: Mehmet Fide <mehmet.fide@screeningeagle.com>
Add the master clock input. trivial-codec.yaml has no clocks, so move
the nau8810, nau8812 and nau8814 compatibles into a schema of their own.
Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
---
.../bindings/sound/nuvoton,nau8810.yaml | 51 +++++++++++++++++++
.../bindings/sound/trivial-codec.yaml | 3 --
2 files changed, 51 insertions(+), 3 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8810.yaml
diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8810.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8810.yaml
new file mode 100644
index 000000000000..285dc08ab289
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8810.yaml
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/nuvoton,nau8810.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NAU8810/NAU8812/NAU8814 audio CODEC
+
+maintainers:
+ - David Lin <CTLIN0@nuvoton.com>
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ enum:
+ - nuvoton,nau8810
+ - nuvoton,nau8812
+ - nuvoton,nau8814
+
+ reg:
+ maxItems: 1
+
+ '#sound-dai-cells':
+ const: 0
+
+ clocks:
+ maxItems: 1
+
+ clock-names:
+ const: mclk
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ codec@1a {
+ #sound-dai-cells = <0>;
+ compatible = "nuvoton,nau8810";
+ reg = <0x1a>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/sound/trivial-codec.yaml b/Documentation/devicetree/bindings/sound/trivial-codec.yaml
index 9a35dfb17349..9fd2802bf391 100644
--- a/Documentation/devicetree/bindings/sound/trivial-codec.yaml
+++ b/Documentation/devicetree/bindings/sound/trivial-codec.yaml
@@ -27,9 +27,6 @@ properties:
- dlg,da9055-codec
# Nuvoton Technology Corporation NAU85L40 Audio CODEC
- nuvoton,nau8540
- - nuvoton,nau8810
- - nuvoton,nau8812
- - nuvoton,nau8814
# NXP TFA9879 class-D audio amplifier
- nxp,tfa9879
- nxp,uda1342
--
2.56.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-03 16:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <sashiko-outbox-247808@kernel.org>
2026-12-03 16:25 ` [PATCH 1/7] ASoC: dt-bindings: nau8810: Add MCLK clock Mehmet Fide
2026-12-03 12:47 [PATCH 0/7] ASoC: nau8810: add MCLK support Mehmet Fide
2026-12-03 12:47 ` [PATCH 1/7] ASoC: dt-bindings: nau8810: Add MCLK clock Mehmet Fide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®