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: =?utf-8?b?VHJldm9yIFd1ICjlkLPmlofoia8p?= X-Patchwork-Id: 12773173 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8C233C433F5 for ; Tue, 8 Mar 2022 07:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=BdXQpgyygruhyfkygs9y5rL/OCMnIONesnMsABFsT+8=; b=fdg1c99o/j/dAY bzjBfnFfW3y7lUCpNV66bPTiFlmULwt0hGwS7KXgdk4S3RebPa/WETooSN+Ej6A2wcVXzN6pEMJIo mHVb0NM+v6r/tbXhkqtjSA16ACGNq8V6fl056nNp1K73bS+rpcg9fCTOzkxfyHn2IcseD334QWRwK hQYscl13HcA/E070L8Uo08/5txG9B1llqtst0ZbyjwVvedL350AwrWiE5mdUhATtY0XyJMulB2mGn AP16984d2UkYcZCPOI170/P6zntc/QdFLh/UlRpwAENBMsk7K5FLhQ7hTDORzm6E/8Bu26bqxUR3P 4o5nnxsVoN5PJZBUGmEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRUKR-00351s-Oe; Tue, 08 Mar 2022 07:32:19 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRUKN-00350i-8N; Tue, 08 Mar 2022 07:32:16 +0000 X-UUID: cc0a3095afb34203a99cf56ca76f02e6-20220308 X-UUID: cc0a3095afb34203a99cf56ca76f02e6-20220308 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 181894854; Tue, 08 Mar 2022 00:32:11 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Mar 2022 23: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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_233215_307223_8E5A2650 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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