From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0B3232ED55 for ; Fri, 31 Jul 2026 06:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785480223; cv=none; b=EtxHhMeMjEUKXhGf4fGud+ui/H3XQkVdVZCjqIjbwMSn1tMgPKCCxv7/X2eJY0oOUqxmSjabhTzmXERK9FbTphSrTHUoToGseeFoe25bmGLGVvTlmGKxToLDPlKYD2RoheBPEO9SJv8qs2vmxVeZwP03zKiu2DHtEeuNXVGxg10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785480223; c=relaxed/simple; bh=wZOA0IgwJWHpsMo28k9D0svhMc/Vu63KzPVgQDVllOc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=lJNRhIlSj2VjzHvz80vJuEQfGY2uy1/ss7wPcZq15sUbqqwhsG4Lpv3UOVGPfSnUIjfNfINo8TSG2SPupSxzgxkGpygiKpc/G4GhJ1ato+E9PhOt0IdURY0judV1HB6+6ent0gkStH1WxfolyL6a8z+r6LJ/Cb7p+xnE/KUC6ZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IJG5VbIP; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IJG5VbIP" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-47f703a9e5dso283970f8f.0 for ; Thu, 30 Jul 2026 23:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785480220; x=1786085020; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Q+Ji5J8LTGbxypsqRCu69yH+HVZ9BprDmcay4dgGIBI=; b=IJG5VbIPCCkZHbmMYQTQzO4EHU8pzps9jXr5aX3FcOIiYI0DaX7Fr/Fb/fmk98tuMY P0B5YeonNficNZZmqf3LMEgKPTBWbaBlm8hSWxqYbukXynHW7S7cN4fUrrfMadjihOWc zJlWg6Aa79DfG2VB1yxLeYf0L5ftnLiFlJmulrvdCN2alYQIH0IcRv3kGYcKuu4twhj3 thKjBQryqc4beRFIrSG8cRCto/kxKYi3gAwKzd5IwHSeb++2qheFxJP++bj9STh46s1e N6h7Ne6zGehrJYusDaC/XvOwvJ0FGadlutek1R5ZciLAZX7r1c+aZZ5nmnYVznZ+LXTk pE3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785480220; x=1786085020; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Q+Ji5J8LTGbxypsqRCu69yH+HVZ9BprDmcay4dgGIBI=; b=oZY9csSeurmS2QlQf3XF3E0KcEoglUDm+G+zGvug9+92rv9IHkhLLJs7c4uBI9yBUK rjyWm9kHG1UmHDyuqB9GHgAPObr7i96KPcATc1Xf0yqrSO3lsSMM2pgxEK1sMq8eqzAz mCLLOOMUjIwK/pCYPxiPdrqD8aWuPEBueinbxqMDUKllUVVMZhOU3fub16zHMpkIScKd 1214Ll66cDTJQE3+xk/j1QHgMhBgHfHwaoKiD+AXiqzXY/oKS3eTPItVRCrbU2h4y4rw ukzEKxbP0zBbkEon+r4ebjMFfdNb62Rwe0scItDTHEy47tHQY8HhX2/4rUVkTeh4PoqJ L1hg== X-Forwarded-Encrypted: i=1; AHgh+Ro/hogE1rqsypsvRTTzIH1Sqv2BBbn9jfyLWBD8j4aBHmH8O6JxA+1cQykhBzo2fjsGzU4O9cDor8FI@vger.kernel.org X-Gm-Message-State: AOJu0YxVwVtzEitnANPGzG1QLM6L60ZscL3wWSi5iTo01mV3GdOg0tTD u6oX053RdQ4t4BnIeQRgzl7lvKAYR7+58aLTiOG11N/uTH1hvGHVJBrm X-Gm-Gg: AR+sD11QfZvMWdWni22CrfPZcEfxVmTl8B1rf5Z9cfrMo6WOPAmmGHWXbTs8OoL0jUV O3/sReMQN9Q+S67o5Y5UD+mtdPpJ3YzzD/ExEHyIj9/ABwc1UBkM6scM1cuYFHLo2xdp8ASzbpX CMD0rkZZV87YZhdY4dsz63/K+mqaAtVf23eMdasuIR0NGF8baS4s1kQMiuuqNyn3N0wVNvBEu8b pvJ5VplbaPX0017ncjTVHL5r+FfFefRoHd0uFbyg9lvWXyDa1ewNHAULPlpuG5KMEP5VGsfkuy7 jkTYi/YNMCYv2knBHaqvdcEiFTL4CBJrvhUfX+mdgpT4C4Fz8lwoLhXt09bt//m7w2t/F5bt4Gg 213boRD1FIqemEtzbjBefh62HKUyR58ylfr68XnKBSdgBZC2CtLgfPPsF8S/nyZRlC02876v+XW C+0bbPGZK+mtMjnlFJraWpVt0J9/69bS0rqtOkuI3DyEfqqX2Z/tQUu/pgicN9H9EY2mMTyKOWu 8SYE2VsPTJkinqenVY7XnYNbDCy13SMCtj8oIG7T6IilMKUf6J8Dw== X-Received: by 2002:a05:6000:2309:b0:47f:9404:5185 with SMTP id ffacd0b85a97d-47fd2ac976cmr2008837f8f.24.1785480219703; Thu, 30 Jul 2026 23:43:39 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-11-254-126.retail.telecomitalia.it. [87.11.254.126]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47fd41cfdc6sm1372488f8f.8.2026.07.30.23.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2026 23:43:38 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Cyril Chao , Darren Ye , Daniel Golle , Rosen Penev , bui duc phuc , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 0/4] ASoC: Add support for Airoha AN7581 Date: Fri, 31 Jul 2026 08:43:20 +0200 Message-ID: <20260731064326.2284228-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add all the patch and documentation to support Airoha AN7581 sound driver. The card follows similar implementation with Mediatek with the codec present on i2c but with a simplified implementation register wise and additional frequency supported. Changes v4: - Improve Documentation YAML - Move IRQ regmap to mtk_base_afe_irq - Use mutex for user tracking in ETDM - Register IRQ after memif allocation - Address suggestion from bot Changes v3: - Major fix to the ETDM code - Add duplex support - Improve Kconfig setup - Rework and improve YAML schema Changes v2: - Fix wrong edit in MAINTAINERS file Christian Marangi (4): ASoC: dt-bindings: Add Airoha AN7581 AFE Sound card ASoC: dt-bindings: Add Airoha AN7581 AFE with WM8960 Codec schema ASoC: mediatek: common: permit to provide dedicated regmap for irq ASoC: airoha: Add AFE and machine driver for Airoha AN7581 .../bindings/sound/airoha,an7581-afe.yaml | 41 ++ .../bindings/sound/airoha,an7581-wm8960.yaml | 71 +++ MAINTAINERS | 8 + sound/soc/mediatek/Kconfig | 27 +- sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/an7581/Makefile | 9 + sound/soc/mediatek/an7581/an7581-afe-common.h | 50 ++ sound/soc/mediatek/an7581/an7581-afe-pcm.c | 529 ++++++++++++++++++ sound/soc/mediatek/an7581/an7581-dai-etdm.c | 458 +++++++++++++++ sound/soc/mediatek/an7581/an7581-reg.h | 114 ++++ sound/soc/mediatek/an7581/an7581-wm8960.c | 161 ++++++ sound/soc/mediatek/common/mtk-afe-fe-dai.c | 14 +- sound/soc/mediatek/common/mtk-base-afe.h | 2 + 13 files changed, 1479 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml create mode 100644 sound/soc/mediatek/an7581/Makefile create mode 100644 sound/soc/mediatek/an7581/an7581-afe-common.h create mode 100644 sound/soc/mediatek/an7581/an7581-afe-pcm.c create mode 100644 sound/soc/mediatek/an7581/an7581-dai-etdm.c create mode 100644 sound/soc/mediatek/an7581/an7581-reg.h create mode 100644 sound/soc/mediatek/an7581/an7581-wm8960.c -- 2.53.0