From patchwork Thu Dec 21 03:32:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 13501016 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADF5DAD21; Thu, 21 Dec 2023 03:32:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id A003F24E285; Thu, 21 Dec 2023 11:32:24 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 21 Dec 2023 11:32:24 +0800 Received: from localhost.localdomain (113.72.145.47) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 21 Dec 2023 11:32:23 +0800 From: Xingyu Wu To: Liam Girdwood , Mark Brown , Claudiu Beznea , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Walker Chen , Xingyu Wu , , , , Subject: [PATCH v1 0/2] Add Cadence I2S controller driver for the Date: Thu, 21 Dec 2023 11:32:21 +0800 Message-ID: <20231221033223.73201-1-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag The Cadence I2S Controller implements a function of the multi-channel (up to 8-channel) bus. Each stereo channel combines functions of a transmitter and a receiver, and can switch freely between them. Each channel has independent gating, clock and interruption control. It also support some of these channels are used as playback and others can also be used as record in the same time. Four I2S controllers are used on the StarFive JH8100 SoC. Two of the I2S controllers use two stereo channels, one of them use four channels, and one use eight. It had tested on the fpga with WM8960. Xingyu Wu (2): dt-bindings: ASoC: Add Cadence I2S controller for StarFive JH8100 SoC ASoC: starfive: Add drivers of Cadence Multi-Channel I2S Controller .../bindings/sound/cdns,jh8100-i2s.yaml | 100 +++ MAINTAINERS | 7 + sound/soc/starfive/Kconfig | 18 + sound/soc/starfive/Makefile | 4 + sound/soc/starfive/cdns-jh8100-i2s-pcm.c | 262 +++++++ sound/soc/starfive/cdns-jh8100-i2s.c | 727 ++++++++++++++++++ sound/soc/starfive/cdns-jh8100-i2s.h | 171 ++++ 7 files changed, 1289 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml create mode 100644 sound/soc/starfive/cdns-jh8100-i2s-pcm.c create mode 100644 sound/soc/starfive/cdns-jh8100-i2s.c create mode 100644 sound/soc/starfive/cdns-jh8100-i2s.h