From patchwork Tue Mar 8 07:24:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Wu X-Patchwork-Id: 549464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E49A0C433F5 for ; Tue, 8 Mar 2022 07:24:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344564AbiCHHZs (ORCPT ); Tue, 8 Mar 2022 02:25:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbiCHHZr (ORCPT ); Tue, 8 Mar 2022 02:25:47 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0123DA40; Mon, 7 Mar 2022 23:24:46 -0800 (PST) X-UUID: 8e0b449563f9494f8ff25ddbc85a45fb-20220308 X-UUID: 8e0b449563f9494f8ff25ddbc85a45fb-20220308 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 121888610; Tue, 08 Mar 2022 15:24:41 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Tue, 8 Mar 2022 15:24:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 8 Mar 2022 15:24:39 +0800 From: Trevor Wu To: , , , CC: , , , , , , , Subject: [PATCH 0/5] ASoC: mediatek: Add support for MT8195 sound card with max98390 and rt5682 Date: Tue, 8 Mar 2022 15:24:30 +0800 Message-ID: <20220308072435.22460-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series of patches adds support for mt8195 board with mt6359, max98390 and rt5682. Reset controller is included because mt8195 etdm is used to play sound via max98390 before kernel boot. In addition, the common part of machine driver is extracted for simplification. Patches are based on broonie tree "for-next" branch. Trevor Wu (5): ASoC: mediatek: mt8195: add reset controller dt-bindings: mediatek: mt8195: add reset property ASoC: mediatek: mt8195: common code for mt8195 machine driver ASoC: mediatek: mt8195: add machine driver with mt6359, max98390 and rt5682 dt-bindings: mediatek: mt8195: add mt8195-mt6359-max98390-rt5682 document .../bindings/sound/mt8195-afe-pcm.yaml | 10 + .../sound/mt8195-mt6359-max98390-rt5682.yaml | 61 + sound/soc/mediatek/Kconfig | 16 + sound/soc/mediatek/mt8195/Makefile | 17 +- sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 16 + .../mediatek/mt8195/mt8195-mt6359-common.c | 398 +++++++ .../mediatek/mt8195/mt8195-mt6359-common.h | 30 + .../mt8195/mt8195-mt6359-max98390-rt5682.c | 1058 +++++++++++++++++ .../mt8195/mt8195-mt6359-rt1011-rt5682.c | 406 +------ .../mt8195/mt8195-mt6359-rt1019-rt5682.c | 409 +------ 10 files changed, 1618 insertions(+), 803 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/mt8195-mt6359-max98390-rt5682.yaml create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-common.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-common.h create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-max98390-rt5682.c