From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 24CAE3ACA64 for ; Fri, 7 Aug 2026 20:09:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786133387; cv=none; b=Ek1GMT6V0TjzE24RVuaHgZW6YBBpjda0c7QGDLNwL3m5PL2EUde22EU6licGzTJUxxvGHNXEffbZLNzitUwZsgQQA7ChdsXUbmq8Z4dBju/lWef9ASO0O1YsJmk3UWJS7xxveFDlQIW3YkL6RW9hwtxu7kyu592IEyT9SkNtla0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786133387; c=relaxed/simple; bh=9dIk58uS5ckvPTahHh2YJlbcL1xicsLTV4wPLHzPmIc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=oGAiVLiR1Xe1HjEembsStILnKQEeUdtNGZbVx5zVT2SvNVUSTr7UKaoKhOlApMkVXmgDkO1K4K67oY1YvlupClrO7B4tOHc0a6ZR3W4MgMnjoqkVGFCfodd/BtAZc1lYz98YjdT3PR7yaM1m4w6k1I8ZktIFjbgR58KOxM2ro+c= 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=ITC59Cjy; arc=none smtp.client-ip=209.85.128.51 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="ITC59Cjy" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-49954b88fffso21200705e9.0 for ; Fri, 07 Aug 2026 13:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786133384; x=1786738184; 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=UwiprwcAyxMLPiS+Zlnnnd/A5JsVvfq/t6i9xPF3mio=; b=ITC59Cjy8CfWaXooqMT+vNon313N3WzJqMvYoVAhOBk/18jbs70SS6wrmsBCELe+YL O/gwy8rXx4TK9ilyFAsU/PabWOKDjl+eR/+b4Hirj9snAVA1uU1nBYpFbUyxUl6fUMMg CLd4k5F/ur4CT4P15SGHq22Rx74BLZwxOBJ98pfD3pfSVMp4HhiPC/88eXL4vRynE+ZA zkDupS+DRwZLEzf+yYNNqATDpyLrg8uEMjYbZnC/uKzfl9hBqAiNVflyIBwWXDn2Khb+ 67qmqcxv3zNatUm5murq2H+v2gjF3AwHjoo8JsJbIcG7bf8H8R63XMVvvrJyOqzkMQjF YU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786133384; x=1786738184; 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=UwiprwcAyxMLPiS+Zlnnnd/A5JsVvfq/t6i9xPF3mio=; b=s9biGIGDmTFNyr1Y8i3tzMmcNnuyAhloSHy53QYqzxL1AZDqGCr7E1Dbrlsey0GLz9 YzyZc/N2HkOq9OeECPgDxk1w+uDV7IjLwZexnx+XoTQgTT1ehhsy3UEBnRC3kK8mfsO+ HXQzPCcmcAzp7pA8kUXkPo/ECGszOU2luVF92MzYIlYZdwP+5IpRPjGrQrRODHCKR6WW GhHycw0wWw0RpBV1HkUDkg196CFIQx/ApOtYoFSF8ID61b1QQvJCa4i7q7Bn03avu1HO KRedkTcCbCggSjLdpag6PerHEwAqQY06snTr6nXaAaXzEj4DAcRveRj2b2wPwkvEQcsY IcIQ== X-Forwarded-Encrypted: i=1; AHgh+Rqivs3xB9Eo2DRG5yO+a1S5PTNIBbU0N1TGlN9vkrI4w8V5JIoUHnBulh+6dlxkxbQrIvOTe2Fzl5fb@vger.kernel.org X-Gm-Message-State: AOJu0YxACw4ne2gfKI8OX8Y0iQa5WmrNy5cT2I5IGRlivBbYHAuJ4WPv OI+yp6GGfgzGAcNDl25ongKh57OZ3+N3t21PXPRQU3DbDVfAtbUDhm2T X-Gm-Gg: AR+sD10ZSAMNFqE8/y/q2DQK/b/tLJc3kKorI7BV4mmQyc7yNkJlYfteZfxSL4WZs5F cV9kK9bh2mePdB8zXi7K2dnRCvLzj+GangxdYsGU8qQWBgelqdCJV9L0QyY+E4h+4QIttBG7fFa wG2m1Fm3UhBQWGuAyRrNmfRpY4EUJmSNrQMoZ01qiEFvCWR+4c92wfNjSVqVxLXPcZIcvH6Yto5 ZUDl9Ea6kZ/bHFiGqpPfZi0Tsx1+MuO5IC0BJY5B5AxXXCHslOg7eyNsSMUI3CwvDCcMk4t1Rrb L3bQYyEMq8uuuMeIIEsrYAOVY5E62/Gw/vP6RJQwrx8N59kaZ24PQR+ZO8gKMS2+3NN5fdvJKGD pUnq2g6zcvSjUmu90MGXkmXgxvUj/vhlvx4EvYIgMhgju0ftzkoDSvO7c/VXWxv9URjfCp+TPdD AmbhlfehoSV3V/B37o/WFkNhVsn6pi4qnRrlXBYGfIg4+WJSLaZt1lia12ENrmtRhNYEJ+WnapY c/TjCkwgTZI9+0PBl6GINEmLvRSAda2esnVckcQ+8gnTHRPGewnzw== X-Received: by 2002:a05:600c:b95:b0:495:5858:8101 with SMTP id 5b1f17b1804b1-4996199186fmr27697705e9.15.1786133384176; Fri, 07 Aug 2026 13:09:44 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-19-255-168.retail.telecomitalia.it. [87.19.255.168]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4995919df87sm124815635e9.6.2026.08.07.13.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2026 13:09:43 -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 v5 0/4] ASoC: Add support for Airoha AN7581 Date: Fri, 7 Aug 2026 22:09:30 +0200 Message-ID: <20260807200936.201827-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 v5: - Address comments from bot - Better handle concurrent irq status bit - Protect enable etdm - Add Review tag for documentation patch - Address formal comments from Cezary 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 | 49 ++ sound/soc/mediatek/an7581/an7581-afe-pcm.c | 517 ++++++++++++++++++ sound/soc/mediatek/an7581/an7581-dai-etdm.c | 433 +++++++++++++++ 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, 1441 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