[PATCH v2 1/3] ASoC: dt-bindings: Add Airoha AN7581 with WM8960 YAML

Christian Marangi posted 3 patches 1 week, 3 days ago
[PATCH v2 1/3] ASoC: dt-bindings: Add Airoha AN7581 with WM8960 YAML
Posted by Christian Marangi 1 week, 3 days ago
Add documentation for Airoha AN7581 with WM8960 i2c codec YAML schema.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 .../bindings/sound/airoha,an7581-afe.yaml     | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml

diff --git a/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
new file mode 100644
index 000000000000..80d9e87f1470
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/airoha,an7581-afe.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha AFE PCM controller for AN7581
+
+maintainers:
+  - Christian Marangi <ansuelsmth@gmail.com>
+
+properties:
+  compatible:
+    const: airoha,an7581-afe
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    afe@1fbe2200 {
+        compatible = "airoha,an7581-afe";
+        reg = <0x1fbe2200 0x9000>;
+
+        interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+    };
+
+...
-- 
2.51.0
Re: [PATCH v2 1/3] ASoC: dt-bindings: Add Airoha AN7581 with WM8960 YAML
Posted by Krzysztof Kozlowski 1 week, 3 days ago
On Fri, Nov 21, 2025 at 06:44:59AM +0100, Christian Marangi wrote:
> Add documentation for Airoha AN7581 with WM8960 i2c codec YAML schema.

I don't see WM8690 nowhere in the binding, so that's a bit confusing. It
feels like you mention here entire sound card description but binding is
for specific component (AFE).

Well, anyway, probably not worth to resend, so:

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof
Re: [PATCH v2 1/3] ASoC: dt-bindings: Add Airoha AN7581 with WM8960 YAML
Posted by Christian Marangi 1 week, 3 days ago
On Fri, Nov 21, 2025 at 09:33:45AM +0100, Krzysztof Kozlowski wrote:
> On Fri, Nov 21, 2025 at 06:44:59AM +0100, Christian Marangi wrote:
> > Add documentation for Airoha AN7581 with WM8960 i2c codec YAML schema.
> 
> I don't see WM8690 nowhere in the binding, so that's a bit confusing. It
> feels like you mention here entire sound card description but binding is
> for specific component (AFE).
>
> Well, anyway, probably not worth to resend, so:
> 
> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
> 

Maybe I have to send a new revision for the machine driver so I have to
resent anyway.

I took mt7986 schema as reference and the i2c codec card wasn't defined
in the example.

-- 
	Ansuel