Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp331577pxb; Wed, 18 Aug 2021 03:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykvoVdeu95ALEONYZnPsfhYV2OXXVCiGrFGuVvy2dlWjBneE4Vlc9ewByfVdnVZ19la3yc X-Received: by 2002:a92:7f03:: with SMTP id a3mr5760197ild.254.1629282805415; Wed, 18 Aug 2021 03:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629282805; cv=none; d=google.com; s=arc-20160816; b=K2OOIzJd/iKKB8aCZdT8BLEAiaV0mAQ10yPHO4H/FEVzFHXfrI/U8f5ov0vZCNXl8I 5RBarwjM2rBfTNcMKgSXgxdtHPK9rB5CpR3Ocf2wa2dzkVFfJMSU0s4fa0PjEVIxv7cE YSbcA/Dn7qf96LZhiQ1QX3IgrN59r33kuDZQ69WkoFIIvztms0nKFnu49V/2lAoiyYqR qDvpGrt83I0iP/6wb1DRRIoZcfHAyZiLc0ML9OR78kCa8so4cGZcEfn0PDJzYutMX/Wn L8fSe6x0z9CeJCWLANhaN+HpnMPpuIaFB3BkdVWlryGTbTvzpi/kY+PSAFOQoJc7M2qC nZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=6/CWA2+RS6/sJ4pvRhjAGznOtRL1yLIW+BiRyceY88I=; b=TuYPugKNjiw201akypmFjyDynAViLuyvAUhrV52+MTpjFfrDJ0A8Z1lR2vg9m5JfD0 Ii590QCVViIcAmwWP5eh0FhVBBE69XhY7oNwMH+Z6kEkBZHn6bgYu9cKlluUY3C/M0C9 xbcZL/u4pKWfoIpsRQoCnGTs1Xcsc7t7slOVQOHpjhaGR4sufsENA+uM8ELxja/tmtV9 lFsJ9KuAFZFZt9FfrDZHbUirfW3fIxt6KHhX/cJreGDdALucHmNQXUO38rKBNjwigljM iZdV+11mP54A6W+mUmF8mXnX/DhwvVCn9o46z2ivjFI4uU8RKdMrEWkntw+lh0qJQh7G jYvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si5926525jat.62.2021.08.18.03.33.13; Wed, 18 Aug 2021 03:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233782AbhHRKc5 (ORCPT + 99 others); Wed, 18 Aug 2021 06:32:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49474 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230424AbhHRKc4 (ORCPT ); Wed, 18 Aug 2021 06:32:56 -0400 X-UUID: d6b23e4ec1794ed392210f166d0c1cb4-20210818 X-UUID: d6b23e4ec1794ed392210f166d0c1cb4-20210818 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1659944535; Wed, 18 Aug 2021 18:32:20 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Aug 2021 18:32:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 18 Aug 2021 18:32:19 +0800 From: Trevor Wu To: , , , , CC: , , , , , , , , , , Subject: [PATCH v4 00/11] ASoC: mediatek: Add support for MT8195 SoC Date: Wed, 18 Aug 2021 18:32:04 +0800 Message-ID: <20210818103215.9186-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches adds support for Mediatek AFE of MT8195 SoC. Patches are based on broonie tree "for-next" branch. Changes since v3: - fixed warnings found by kernel test robot - removed unused critical section - corrected the lock protected sections on etdm driver - added DPTX and HDMITX audio support Changes since v2: - added audio clock gate control - added 'mediatek' prefix to private dts properties - added consumed clocks to dt-bindins and adopted suggestions from Rob - refined clock usage and remove unused clock and control code - fixed typos Changes since v1: - fixed some problems related to dt-bindings - added some missing properties to dt-bindings - added depency declaration on dt-bindings - fixed some warnings found by kernel test robot Trevor Wu (11): ASoC: mediatek: mt8195: update mediatek common driver ASoC: mediatek: mt8195: support audsys clock control ASoC: mediatek: mt8195: support etdm in platform driver ASoC: mediatek: mt8195: support adda in platform driver ASoC: mediatek: mt8195: support pcm in platform driver ASoC: mediatek: mt8195: add platform driver dt-bindings: mediatek: mt8195: add audio afe document ASoC: mediatek: mt8195: add machine driver with mt6359, rt1019 and rt5682 ASoC: mediatek: mt8195: add DPTX audio support ASoC: mediatek: mt8195: add HDMITX audio support dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1019-rt5682 document .../bindings/sound/mt8195-afe-pcm.yaml | 184 + .../sound/mt8195-mt6359-rt1019-rt5682.yaml | 47 + sound/soc/mediatek/Kconfig | 24 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/common/mtk-afe-fe-dai.c | 22 +- sound/soc/mediatek/common/mtk-base-afe.h | 10 +- sound/soc/mediatek/mt8195/Makefile | 15 + sound/soc/mediatek/mt8195/mt8195-afe-clk.c | 441 +++ sound/soc/mediatek/mt8195/mt8195-afe-clk.h | 109 + sound/soc/mediatek/mt8195/mt8195-afe-common.h | 158 + sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 3281 +++++++++++++++++ sound/soc/mediatek/mt8195/mt8195-audsys-clk.c | 214 ++ sound/soc/mediatek/mt8195/mt8195-audsys-clk.h | 15 + .../soc/mediatek/mt8195/mt8195-audsys-clkid.h | 93 + sound/soc/mediatek/mt8195/mt8195-dai-adda.c | 830 +++++ sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 2639 +++++++++++++ sound/soc/mediatek/mt8195/mt8195-dai-pcm.c | 389 ++ .../mt8195/mt8195-mt6359-rt1019-rt5682.c | 1093 ++++++ sound/soc/mediatek/mt8195/mt8195-reg.h | 2796 ++++++++++++++ 19 files changed, 12356 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml create mode 100644 Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml create mode 100644 sound/soc/mediatek/mt8195/Makefile create mode 100644 sound/soc/mediatek/mt8195/mt8195-afe-clk.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-afe-clk.h create mode 100644 sound/soc/mediatek/mt8195/mt8195-afe-common.h create mode 100644 sound/soc/mediatek/mt8195/mt8195-afe-pcm.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-audsys-clk.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-audsys-clk.h create mode 100644 sound/soc/mediatek/mt8195/mt8195-audsys-clkid.h create mode 100644 sound/soc/mediatek/mt8195/mt8195-dai-adda.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-dai-etdm.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-dai-pcm.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c create mode 100644 sound/soc/mediatek/mt8195/mt8195-reg.h -- 2.18.0