Message ID | 20230512122838.243002-1-ckeepax@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5071313vqo; Fri, 12 May 2023 05:42:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iwtzitzAmYZs9mwejVab5muPyM/WeeGeJP97pK+8XI79khh1RNN5IVZ0PLskjT8xql2yR X-Received: by 2002:a05:6a20:442a:b0:ff:68f1:679 with SMTP id ce42-20020a056a20442a00b000ff68f10679mr29842227pzb.52.1683895346657; Fri, 12 May 2023 05:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683895346; cv=none; d=google.com; s=arc-20160816; b=CcRr++HUvdv0Gpf5CwIoH6J7qfLBs9mDL0MvO0B69JZ8gj5c9nwsrZ/8X+zyYkQpLV /GU+iNonVAwOL6jn/v1IpSEapDhxCea8BjzlZmec90jrGMgHUPuU9wd3nz0RZUztx087 S3VlTioFU/f27qW9sJm9NNBHadZ0s4XdtuT6WcsE/wmgCeTkvQe3VHYBg4zkb78rBFR2 PLGSrapAMnDMwrvTO3IuZ9oAbIWn2e6yD49nSP+FKvoJsAV+kBjkYXevOtOYaidR6yVC 4lQuAx5oZMjuNA3jzwXJcfrEdppMyI3I93YHLmhsIf1XsoN8QntJ+VL1lHtfh7Hjh4E5 OF0A== 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=hhGbqr5I8d1WarBJ8Z9M0P99KfkmGBTeVHbqv5amikE=; b=lroEFPnVqlAOoHbqe1iVoiWElUOowZRA/CLDjhKq0gsqOw1lVDqYw4sijOlGlk/S8g ay4N7tqkjlFrQQ3bSM6EbvQKo89WK4yD2RvJY3CC0ZkkMBaGxQIotpxW1EqQ7czhGblp SxE+vqIyGmusoe8gPaR6khAsLjcF/1KfkJHVk3PsTsYsyQNvsI+PT41ic82zCu8Ilk+H 53ao1+YZ6O7P2CQBKEa7NOofzD7l2OG5/6cfsyfJgeBsPQ1YuCC/rkR8SRBfZ5ZnGNRo KCas9aXevFUaJGRLAsTPxdVuU/Xb+2MEYw/N7j34bmX2R3Hvx11A4+bQPB9EWGxjP9l4 8ysw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Ap4aiG0a; 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 t15-20020a63780f000000b00524da606617si9202164pgc.233.2023.05.12.05.42.13; Fri, 12 May 2023 05:42:26 -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=Ap4aiG0a; 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 S240970AbjELMaJ (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Fri, 12 May 2023 08:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240855AbjELM3x (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 12 May 2023 08:29:53 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F247423A; Fri, 12 May 2023 05:29:18 -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 34CCOUoo001858; Fri, 12 May 2023 07:28:40 -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=hhGbqr5I8d1WarBJ8Z9M0P99KfkmGBTeVHbqv5amikE=; b=Ap4aiG0ah8RcwsjPABIbFRIg+kASR6fLmS8xzdDwefldHDuurFAMk4B5MfWBens19A7F XqsvNcGVbfOhOxcWYXKecIBFrSAgJO74wrYn38mIIYAqkA+X+UMxc03E8T/lEUpD8yhz HVs7zEEjJChOknZT4gTqALpDXKTALyzYgJpOoIrcvncv/aHU0brRHDfxiy+qK4D6xEtN /8J3fSPbHlZJTfGzFpEaAlAmujCaALpN9h42TVooNfelT5aaGs1vYsptfCKgDbU3KUrc TBhEdHiK2ZUazkqXvaa+9uON8sgTPRKUvfF8YuVAvSywjrOI919HQNSjPYsYwbkiTgeQ xQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3qf7nb5dqx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 May 2023 07:28:40 -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; Fri, 12 May 2023 07:28:38 -0500 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; Fri, 12 May 2023 07:28:38 -0500 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 24FD345; Fri, 12 May 2023 12:28:38 +0000 (UTC) From: Charles Keepax <ckeepax@opensource.cirrus.com> To: <broonie@kernel.org>, <lee@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <tglx@linutronix.de>, <maz@kernel.org>, <linus.walleij@linaro.org>, <vkoul@kernel.org> CC: <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 00/10] Add cs42l43 PC focused SoundWire CODEC Date: Fri, 12 May 2023 13:28:28 +0100 Message-ID: <20230512122838.243002-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: 8-OvAxXkBH6wUG2stbtfU7YbBv3HFIV3 X-Proofpoint-GUID: 8-OvAxXkBH6wUG2stbtfU7YbBv3HFIV3 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,URIBL_BLOCKED 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?1765692246830547461?= X-GMAIL-MSGID: =?utf-8?q?1765692246830547461?= |
Series |
Add cs42l43 PC focused SoundWire CODEC
|
|
Message
Charles Keepax
May 12, 2023, 12:28 p.m. UTC
This patch chain adds support for the Cirrus Logic cs42l43 PC focused SoundWire CODEC. Some supporting work is included in the chain, including adding an ASoC control notification helper function and adding support for IRQs generated by the in-band SoundWire alert mechanism. The chain is currently based of v6.4-rc1 because I am not 100% sure which tree we want to send everything through. The CODEC support has a build dependency on both the SoundWire change and the ASoC soc-component change. Thanks, Charles Charles Keepax (8): ASoC: soc-component: Add notify control helper function ASoC: ak4118: Update to use new component control notify helper ASoC: wm_adsp: Update to use new component control notify helepr dt-bindings: mfd: cirrus,cs42l43: Add initial DT binding mfd: cs42l43: Add support for cs42l43 core driver irqchip/cs42l43: Add support for the cs42l43 IRQs 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/mfd/cirrus,cs42l43.yaml | 212 ++ MAINTAINERS | 7 + drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-cs42l43.c | 170 ++ drivers/mfd/Kconfig | 23 + drivers/mfd/Makefile | 3 + drivers/mfd/cs42l43-i2c.c | 86 + drivers/mfd/cs42l43-sdw.c | 210 ++ drivers/mfd/cs42l43.c | 1044 ++++++++ drivers/mfd/cs42l43.h | 23 + drivers/pinctrl/cirrus/Kconfig | 11 + drivers/pinctrl/cirrus/Makefile | 2 + drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 614 +++++ drivers/soundwire/bus.c | 31 + drivers/soundwire/bus_type.c | 12 + drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-cs42l43.c | 287 +++ include/linux/irqchip/cs42l43.h | 61 + include/linux/mfd/cs42l43-regs.h | 1172 +++++++++ include/linux/mfd/cs42l43.h | 50 + include/linux/soundwire/sdw.h | 9 + include/sound/cs42l43.h | 84 + include/sound/soc-component.h | 4 + sound/soc/codecs/Kconfig | 16 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/ak4118.c | 11 +- sound/soc/codecs/cs42l43-jack.c | 946 +++++++ sound/soc/codecs/cs42l43-sdw.c | 75 + sound/soc/codecs/cs42l43.c | 2270 +++++++++++++++++ sound/soc/codecs/cs42l43.h | 117 + sound/soc/codecs/wm_adsp.c | 20 +- sound/soc/soc-component.c | 22 + 34 files changed, 7586 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,cs42l43.yaml create mode 100644 drivers/irqchip/irq-cs42l43.c 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/irqchip/cs42l43.h 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 Fri, 12 May 2023 13:28:28 +0100, Charles Keepax wrote: > This patch chain adds support for the Cirrus Logic cs42l43 PC focused > SoundWire CODEC. Some supporting work is included in the chain, > including adding an ASoC control notification helper function and > adding support for IRQs generated by the in-band SoundWire alert > mechanism. > > The chain is currently based of v6.4-rc1 because I am not 100% sure > which tree we want to send everything through. The CODEC support > has a build dependency on both the SoundWire change and the ASoC > soc-component change. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [02/10] ASoC: soc-component: Add notify control helper function commit: ace9ed54bd874f2c63723b13b1747f6463e2587e [03/10] ASoC: ak4118: Update to use new component control notify helper commit: 476d942e50d4f22d8621a18612dd6cfbf0a5d1d9 [04/10] ASoC: wm_adsp: Update to use new component control notify helepr commit: 95d06196c83c9dc1b6fd6cda07a1bac54ca2d568 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark