Message ID | 20230619095623.1987742-1-ckeepax@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2891589vqr; Mon, 19 Jun 2023 03:17:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Dp/hDBVXlOkx5KHi7s88skH3aJP4x4rpwAGAY3N/SoCTSpAjfEP9M5AFcnb8rNVKeyea4 X-Received: by 2002:a17:902:6b44:b0:1b5:3500:9e22 with SMTP id g4-20020a1709026b4400b001b535009e22mr8845456plt.63.1687169848717; Mon, 19 Jun 2023 03:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169848; cv=none; d=google.com; s=arc-20160816; b=voXv8MfkXBl4cB5yGQ6LFVl+VbLlxAwGmd9rph88UcrElZRvTMGNIDguNhbHp00JBe qC1Ua0LSh52J7tzfO32dWxWefTaRp+EQSPrA+1N10+hRnhHMsDzcBtD+fhboCcVlllKH qDM/ODK70ueefwQm6QHFQQj93ELVFrriJmjyI6H1LWpIuo5h4DUWPGArCWDx7Bwcn3Pw nApD0GB8sFOoSxQpuxVmJzoyQXCynfXmTfv1G2vLoO2VmlrVrgKccBWptDgCsyFyUna2 nRBhUwUTY+mfQ5M/WvIi52tZP+Q4PNLQzygRUgdKRHBIgvJa2o5lqFz8OKC2R54n2JPl 54Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TfGrH3Uleie1Co1qiJ5GXAl8Q/ErU0G0tmVgE1EhgVI=; b=SXvahsYVVl1yBE257JqIozfHkEw47At14jIglW7kH0YMMb4Eqo13qsgqEF9CwjV9Wr yYC0F5lAF9MUu1KR2c4cpa4TZgO0VKzWhdTKv8/W7D/NqD1sgYTvSdrLgg6Oakbyp2mt qO5Pf7S3/Lzh9ZZGroDayh84cjWriyBSj/4h6rTN8EoftNhL0qGeivKgFlclIhf/ZYuC /K9bj2o+iQkR4Yz+hk0NUPeXFHpEfolfgD7AWMd0WJVp5Q70EPL2P9uJ1hHm+M63ydSk tOrSclaKWZPZoZFWVp40vSrq4/jXXe5c9AGOhF1cYKxgBRVS0TzQGVPspqFaCR/jKXg8 JODw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=fPahJfu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a170902da8f00b001aaeed1a0e3si15747231plx.487.2023.06.19.03.17.13; Mon, 19 Jun 2023 03:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=fPahJfu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231818AbjFSJ5L (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Mon, 19 Jun 2023 05:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbjFSJ4v (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 19 Jun 2023 05:56:51 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715BEE58; Mon, 19 Jun 2023 02:56:46 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35J5L9Dq009890; Mon, 19 Jun 2023 04:56:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=TfGrH3Uleie1Co1qiJ5GXAl8Q/ErU0G0tmVgE1EhgVI=; b=fPahJfu1hiHC0O+7Ef5ILbXEx81HpcTUo+uDRypi6ALV7e9sV9AcHvnndrqgZbnAva0J PD0jp0oq92RqYroI3/jc1K5oIN6Q1d8i5aP2ttrEWRoeTp3gv8p28SEC3S7GZB/gBwoA EsMasIH/Cytq1ouI8WBW0NHoaNvcJSQyZ0ItzDnHKDhOfZrS7ni7743t4P1prh/3Czfd QymCk75DkZJkMAcfcf5hO0c1580kAz5XlYniBh95ZdGoh+pEUFJJQU/2+QqsDe+/PaFt KTIPplZM/4g/sYf8fobXPAIq2yr3o05Ajhas1g88EuAVBvKQZCYE/ZfxQ9RQdjibUQas iw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3r9a809n3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jun 2023 04:56:25 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 19 Jun 2023 10:56:23 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 19 Jun 2023 10:56:23 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 386D246B; Mon, 19 Jun 2023 09:56:23 +0000 (UTC) From: Charles Keepax <ckeepax@opensource.cirrus.com> To: <broonie@kernel.org>, <lee@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <linus.walleij@linaro.org>, <vkoul@kernel.org> CC: <robh+dt@kernel.org>, <conor+dt@kernel.org>, <lgirdwood@gmail.com>, <yung-chuan.liao@linux.intel.com>, <sanyog.r.kale@intel.com>, <pierre-louis.bossart@linux.intel.com>, <alsa-devel@alsa-project.org>, <patches@opensource.cirrus.com>, <devicetree@vger.kernel.org>, <linux-gpio@vger.kernel.org>, <linux-spi@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v5 0/6] Add cs42l43 PC focused SoundWire CODEC Date: Mon, 19 Jun 2023 10:56:17 +0100 Message-ID: <20230619095623.1987742-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: TwJIzOos5_RoQCCaIygw3wlU1xV9vY00 X-Proofpoint-GUID: TwJIzOos5_RoQCCaIygw3wlU1xV9vY00 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769122821001817363?= X-GMAIL-MSGID: =?utf-8?q?1769125811017748804?= |
Series |
Add cs42l43 PC focused SoundWire CODEC
|
|
Message
Charles Keepax
June 19, 2023, 9:56 a.m. UTC
This patch chain adds support for the Cirrus Logic cs42l43 PC focused SoundWire CODEC. The chain is currently based of Lee's for-mfd-next branch. Thanks, Charles Charles Keepax (4): dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding mfd: cs42l43: Add support for cs42l43 core driver pinctrl: cs42l43: Add support for the cs42l43 ASoC: cs42l43: Add support for the cs42l43 Lucas Tanure (2): soundwire: bus: Allow SoundWire peripherals to register IRQ handlers spi: cs42l43: Add SPI controller support .../bindings/sound/cirrus,cs42l43.yaml | 313 +++ MAINTAINERS | 4 + drivers/mfd/Kconfig | 23 + drivers/mfd/Makefile | 3 + drivers/mfd/cs42l43-i2c.c | 98 + drivers/mfd/cs42l43-sdw.c | 239 ++ drivers/mfd/cs42l43.c | 1189 +++++++++ drivers/mfd/cs42l43.h | 28 + drivers/pinctrl/cirrus/Kconfig | 11 + drivers/pinctrl/cirrus/Makefile | 2 + drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 609 +++++ drivers/soundwire/bus.c | 32 + drivers/soundwire/bus_type.c | 12 + drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-cs42l43.c | 281 ++ include/linux/mfd/cs42l43-regs.h | 1184 +++++++++ include/linux/mfd/cs42l43.h | 102 + include/linux/soundwire/sdw.h | 9 + include/sound/cs42l43.h | 17 + sound/soc/codecs/Kconfig | 16 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/cs42l43-jack.c | 969 +++++++ sound/soc/codecs/cs42l43-sdw.c | 74 + sound/soc/codecs/cs42l43.c | 2278 +++++++++++++++++ sound/soc/codecs/cs42l43.h | 131 + 26 files changed, 7636 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cirrus,cs42l43.yaml create mode 100644 drivers/mfd/cs42l43-i2c.c create mode 100644 drivers/mfd/cs42l43-sdw.c create mode 100644 drivers/mfd/cs42l43.c create mode 100644 drivers/mfd/cs42l43.h create mode 100644 drivers/pinctrl/cirrus/pinctrl-cs42l43.c create mode 100644 drivers/spi/spi-cs42l43.c create mode 100644 include/linux/mfd/cs42l43-regs.h create mode 100644 include/linux/mfd/cs42l43.h create mode 100644 include/sound/cs42l43.h create mode 100644 sound/soc/codecs/cs42l43-jack.c create mode 100644 sound/soc/codecs/cs42l43-sdw.c create mode 100644 sound/soc/codecs/cs42l43.c create mode 100644 sound/soc/codecs/cs42l43.h
Comments
On Mon, 19 Jun 2023 10:56:17 +0100, Charles Keepax wrote: > This patch chain adds support for the Cirrus Logic cs42l43 PC focused > SoundWire CODEC. The chain is currently based of Lee's for-mfd-next > branch. > > Thanks, > Charles > > [...] Applied, thanks! [2/6] dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding commit: e62ba8443b11f12b45c61444249458a2f8c2f4ef [3/6] mfd: cs42l43: Add support for cs42l43 core driver commit: 843079209e1506c94fde797fc0ff914e2c9e6645 [4/6] pinctrl: cs42l43: Add support for the cs42l43 commit: 85f034dd7ff0a66aded653cc91dbc406fba7cf1a -- Lee Jones [李琼斯]
On Fri, 21 Jul 2023, Lee Jones wrote: > On Mon, 19 Jun 2023 10:56:17 +0100, Charles Keepax wrote: > > This patch chain adds support for the Cirrus Logic cs42l43 PC focused > > SoundWire CODEC. The chain is currently based of Lee's for-mfd-next > > branch. > > > > Thanks, > > Charles > > > > [...] > > Applied, thanks! > > [2/6] dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding > commit: e62ba8443b11f12b45c61444249458a2f8c2f4ef > [3/6] mfd: cs42l43: Add support for cs42l43 core driver > commit: 843079209e1506c94fde797fc0ff914e2c9e6645 > [4/6] pinctrl: cs42l43: Add support for the cs42l43 > commit: 85f034dd7ff0a66aded653cc91dbc406fba7cf1a Pull-request to follow.
On Fri, Jul 21, 2023 at 08:55:54AM +0100, Lee Jones wrote: > On Mon, 19 Jun 2023 10:56:17 +0100, Charles Keepax wrote: > > This patch chain adds support for the Cirrus Logic cs42l43 PC focused > > SoundWire CODEC. The chain is currently based of Lee's for-mfd-next > > branch. > > > > Thanks, > > Charles > > > > [...] > > Applied, thanks! > > [2/6] dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding > commit: e62ba8443b11f12b45c61444249458a2f8c2f4ef > [3/6] mfd: cs42l43: Add support for cs42l43 core driver > commit: 843079209e1506c94fde797fc0ff914e2c9e6645 > [4/6] pinctrl: cs42l43: Add support for the cs42l43 > commit: 85f034dd7ff0a66aded653cc91dbc406fba7cf1a > Only slight hiccup here is there is a build dependency between the MFD and SoundWire patch. So without the SoundWire patch the SoundWire part of the MFD won't build. Vinod, would be really good if you could have a look at the SoundWire patch would be great to get this moving, this part is seeing a fair amount of deployment at the moment so getting this into mainline would be very helpful. Thanks, Charles
On Fri, 21 Jul 2023, Lee Jones wrote: > On Fri, 21 Jul 2023, Lee Jones wrote: > > > On Mon, 19 Jun 2023 10:56:17 +0100, Charles Keepax wrote: > > > This patch chain adds support for the Cirrus Logic cs42l43 PC focused > > > SoundWire CODEC. The chain is currently based of Lee's for-mfd-next > > > branch. > > > > > > Thanks, > > > Charles > > > > > > [...] > > > > Applied, thanks! > > > > [2/6] dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding > > commit: e62ba8443b11f12b45c61444249458a2f8c2f4ef > > [3/6] mfd: cs42l43: Add support for cs42l43 core driver > > commit: 843079209e1506c94fde797fc0ff914e2c9e6645 > > [4/6] pinctrl: cs42l43: Add support for the cs42l43 > > commit: 85f034dd7ff0a66aded653cc91dbc406fba7cf1a > > Pull-request to follow. Doesn't build without the Soundwire header changes.