mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hyunuk Son <hyunuk.son@irondevice.com>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: Kiseok Jo <kiseok.jo@irondevice.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Hyunuk Son <hyunuk.son@irondevice.com>
Subject: [PATCH v2 1/2] ASoC: dt-bindings: Add Iron Device MA5311
Date: Tue, 27 Oct 2026 18:32:31 +0900	[thread overview]
Message-ID: <20261027093232.859755-2-hyunuk.son@irondevice.com> (raw)
In-Reply-To: <20261027093232.859755-1-hyunuk.son@irondevice.com>

The Iron Device MA5311 is an audio codec integrating digital speaker
amplification, analog-to-digital conversion, and audio DSP functionality.

The device uses two I2C slave addresses for separate control and ADC
register banks. It also provides an active-low reset input and an
interrupt output for fault and thermal warning notification.

Add the Device Tree binding to describe these hardware interfaces.

Signed-off-by: Hyunuk Son <hyunuk.son@irondevice.com>
---
 .../bindings/sound/irondevice,ma5311.yaml     | 83 +++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/irondevice,ma5311.yaml

diff --git a/Documentation/devicetree/bindings/sound/irondevice,ma5311.yaml b/Documentation/devicetree/bindings/sound/irondevice,ma5311.yaml
new file mode 100644
index 000000000000..db5f800ebbc3
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/irondevice,ma5311.yaml
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/irondevice,ma5311.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Iron Device MA5311 Audio Codec
+
+maintainers:
+  - Hyunuk Son <hyunuk.son@irondevice.com>
+
+description:
+  The Iron Device MA5311 integrates digital speaker amplification,
+  analog-to-digital conversion, and audio DSP functionality.
+
+  The device uses two I2C slave addresses. The first address
+  provides access to the control register bank, while the second
+  provides access to the ADC register bank.
+
+  The device provides an active-low reset input and an active-low
+  interrupt output for fault and thermal warning notification.
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - irondevice,ma5311
+
+  reg:
+    items:
+      - description: I2C address for control registers
+      - description: I2C address for ADC registers
+
+  reg-names:
+    items:
+      - const: control
+      - const: adc
+
+  reset-gpios:
+    maxItems: 1
+    description:
+      GPIO connected to the active-low RSTN pin.
+
+  interrupts:
+    maxItems: 1
+    description:
+      Interrupt from the active-low INTN fault and thermal warning output.
+
+  '#sound-dai-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - '#sound-dai-cells'
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        audio-codec@3e {
+            compatible = "irondevice,ma5311";
+
+            reg = <0x3e>, <0x3f>;
+            reg-names = "control", "adc";
+
+            reset-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+            interrupt-parent = <&gpio>;
+            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
+
+            #sound-dai-cells = <1>;
+        };
+    };
-- 
2.43.0


  reply	other threads:[~2026-10-27  9:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27  9:32 [PATCH v2 0/2] ASoC: Add Iron Device MA5311 support Hyunuk Son
2026-10-27  9:32 ` Hyunuk Son [this message]
2026-10-27  9:32 ` [PATCH v2 2/2] ASoC: codecs: Add driver for Iron Device MA5311 Hyunuk Son

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261027093232.859755-2-hyunuk.son@irondevice.com \
    --to=hyunuk.son@irondevice.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kiseok.jo@irondevice.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®