* [PATCH] ASoC: dt-bindings: an7581-afe: add support for reset and secondary IRQ conf
@ 2026-10-26 10:10 Christian Marangi
2026-10-29 9:32 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Christian Marangi @ 2026-10-26 10:10 UTC (permalink / raw)
To: Christian Marangi, Liam Girdwood, Mark Brown, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-sound, devicetree,
linux-kernel
Driver got support for configuring the secondary IRQ configuration to
support full-duplex mode (playback and capture at the same time) and also
to reset via the dedicated SoC reset line.
Add the property to support it and make update the example accordingly for
a more specific register mapping.
Also add the missing #sound-dai-cells property required for the generic
sound node structure.
Previous register node definition doesn't prevent normal execution of the
AFE driver as the additional IRQ register is placed at the end of all the
previous AFE configurations.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/sound/airoha,an7581-afe.yaml | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
index 80d9e87f1470..86d006559436 100644
--- a/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
+++ b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
@@ -14,15 +14,25 @@ properties:
const: airoha,an7581-afe
reg:
- maxItems: 1
+ items:
+ - description: base AFE register
+ - description: secondary IRQ option register
interrupts:
maxItems: 1
+ resets:
+ maxItems: 1
+
+ '#sound-dai-cells':
+ const: 0
+
required:
- compatible
- reg
- interrupts
+ - resets
+ - '#sound-dai-cells'
additionalProperties: false
@@ -30,12 +40,17 @@ examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/reset/airoha,en7581-reset.h>
afe@1fbe2200 {
compatible = "airoha,an7581-afe";
- reg = <0x1fbe2200 0x9000>;
+ reg = <0x1fbe2200 0x100>,
+ <0x1fbe2f00 0x100>;
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+ resets = <&scuclk EN7581_I2S_RST>;
+
+ #sound-dai-cells = <0>;
};
...
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: dt-bindings: an7581-afe: add support for reset and secondary IRQ conf
2026-10-26 10:10 [PATCH] ASoC: dt-bindings: an7581-afe: add support for reset and secondary IRQ conf Christian Marangi
@ 2026-10-29 9:32 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-29 9:32 UTC (permalink / raw)
To: Christian Marangi
Cc: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-sound, devicetree, linux-kernel
On Mon, Oct 26, 2026 at 11:10:24AM +0100, Christian Marangi wrote:
> Driver got support for configuring the secondary IRQ configuration to
This is confusing wording, I see no commit adding support which is
implied by "got support". "Got" meaning it never had one but at some
point it "got" it. When?
> support full-duplex mode (playback and capture at the same time) and also
> to reset via the dedicated SoC reset line.
>
> Add the property to support it and make update the example accordingly for
> a more specific register mapping.
>
> Also add the missing #sound-dai-cells property required for the generic
> sound node structure.
>
> Previous register node definition doesn't prevent normal execution of the
> AFE driver as the additional IRQ register is placed at the end of all the
> previous AFE configurations.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
> .../bindings/sound/airoha,an7581-afe.yaml | 19 +++++++++++++++++--
> 1 file changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
> index 80d9e87f1470..86d006559436 100644
> --- a/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
> +++ b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
> @@ -14,15 +14,25 @@ properties:
> const: airoha,an7581-afe
>
> reg:
> - maxItems: 1
> + items:
> + - description: base AFE register
> + - description: secondary IRQ option register
That's ABI break but maybe just original commit adding the binding was
incorrect.
>
> interrupts:
> maxItems: 1
>
> + resets:
> + maxItems: 1
> +
> + '#sound-dai-cells':
> + const: 0
> +
> required:
> - compatible
> - reg
> - interrupts
> + - resets
Another ABI break. Please explain in the commit msg what is happening.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-29 9:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 10:10 [PATCH] ASoC: dt-bindings: an7581-afe: add support for reset and secondary IRQ conf Christian Marangi
2026-10-29 9:32 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox