Message ID | 20221109165331.29332-1-rf@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp446974wru; Wed, 9 Nov 2022 08:56:36 -0800 (PST) X-Google-Smtp-Source: AMsMyM5lUL4YeiyLGg20mLrczaYtd3X+RuuZWk5RQOa9ElzvaLere/RLOw5P8CgJzkeguPf/Nv1V X-Received: by 2002:a17:907:2bc1:b0:7ad:d3a4:9df6 with SMTP id gv1-20020a1709072bc100b007add3a49df6mr50507351ejc.188.1668012996146; Wed, 09 Nov 2022 08:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668012996; cv=none; d=google.com; s=arc-20160816; b=V6LDw2GNA+oUaa2y72/TXK7RZy2ojLylnkgNNQi7na0V59JkJqcA4WJznJOtRhxQCS t8BVRgIkzHcZ5jFf8TkonIIvOjlRzFgAwMkts0qZYoY/JU6TyHh6vQyIaDYmdirgsgjB LPUWqpsyLG8V82zQMhtbFlq/Fzz14osqagzWRPaYEi+aB2iSEQ1F3kl+OsGiBWTTGAc/ 0MjBntWcS3grsJ3TfXQXrB3lDNH3v/DPXsVCvIWhH4Q1QRMgRvfaIBlJYq15lw7JpUfc na/TrmT8bEAaodYjmYflPE2XbQvC4SmCsyO9kMGS8HXz6bJ0L/9WA6q3mzj4cvYedVWy dttQ== 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=k8YRcTfT3aisaN5ZDbd2wMS/yi2Pyuz/u1QMiJhNTwA=; b=c9/AELByjTZUPHMmxEe+78bTlDGERjWDi2F4GCxlUMWsXmcZXTl3YP1UcbKpX58RKz tyO5XWkhkjxZQZ/oNoKl/157PA0hgALV1hMHS/UbMc5A9J/lmQTCkYm+4rn6H526Yv+a lnQKtYDXM7BARUqsC8hAn65JFHyLrmocSmjDDHtO/L1F8NZHVSrZPyNGaKODQ5dreAlJ 289Qsfsb0w9oIYhXavClvgQ6WNuMOwCjgvILjUSJoC0UQ2e0T45UrCUbianR1cTImS5X y33BdNw/H0a4pxYybrvYn4HP3hnohkzKEN2kQkxfHiSAbJAS3zod/aG06WzeZYNdUhWs Zjtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=cnm30tkJ; 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 l8-20020a056402254800b00460ce6c3a1asi17780000edb.454.2022.11.09.08.56.12; Wed, 09 Nov 2022 08:56:36 -0800 (PST) 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=cnm30tkJ; 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 S230137AbiKIQzY (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 11:55:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbiKIQzC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 11:55:02 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1758275C2; Wed, 9 Nov 2022 08:53:56 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A9EDNjP027347; Wed, 9 Nov 2022 10:53:34 -0600 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=k8YRcTfT3aisaN5ZDbd2wMS/yi2Pyuz/u1QMiJhNTwA=; b=cnm30tkJRhHdUYk9JnJo8U30jfv7PnB/Ij+Dk58cTRsrvux0IA78y8MMYKCbSb+tpjAK Qw2YsTqkw+vN4/aKHfbwnanHRVMEDi3woFvTyxkl3mBbvOfAjMK85kOM3y686SDBCD5v YhsP753gLYkMphI7cKRa1lPbd4NVz9WihstDrKZV187YJz/tANHLZZtf9smI0nZ8IOuw mpk2UenwqL/0Bi/4bKM2oOals4dbrB8JjlLJSzRZyBBhHktQsdlsvnGfzBQvPrBTF71m op7hNtnVJWoCtT1oou4i2EA/ji0Xu2Usb/6kDgHhcfN556ncGi1ax6lGg+sYGk22A5HT Qw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3knm8pde7v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Nov 2022 10:53:34 -0600 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.15; Wed, 9 Nov 2022 10:53:32 -0600 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.15 via Frontend Transport; Wed, 9 Nov 2022 10:53:32 -0600 Received: from debianA11184.ad.cirrus.com (AUSNPC0LSNW1.ad.cirrus.com [198.61.65.92]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8D91E468; Wed, 9 Nov 2022 16:53:31 +0000 (UTC) From: Richard Fitzgerald <rf@opensource.cirrus.com> To: <lee@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <linus.walleij@linaro.org>, <broonie@kernel.org>, <tglx@linutronix.de>, <maz@kernel.org> CC: <alsa-devel@alsa-project.org>, <devicetree@vger.kernel.org>, <linux-gpio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <patches@opensource.cirrus.com> Subject: [PATCH 00/12] Add support for the Cirrus Logic CS48L32 audio codecs Date: Wed, 9 Nov 2022 16:53:19 +0000 Message-ID: <20221109165331.29332-1-rf@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: 7OgRwOdDiCAARw0Ea_LvKQSL2ZxiXG9y X-Proofpoint-GUID: 7OgRwOdDiCAARw0Ea_LvKQSL2ZxiXG9y 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 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?1749038395903347363?= X-GMAIL-MSGID: =?utf-8?q?1749038395903347363?= |
Series |
Add support for the Cirrus Logic CS48L32 audio codecs
|
|
Message
Richard Fitzgerald
Nov. 9, 2022, 4:53 p.m. UTC
The CS48L32 is a high-performance low-power audio DSP for smartphones and other portable audio devices. It has various digital audio I/O, a programmable Halo Core DSP, fixed-function audio processors, configurable GPIO and microphone bias regulators. The CS48L31 and CS48L33 were derivatives of the CS48L32. Piotr Stankiewicz (2): mfd: cs48l32: Add support for CS48L31/32/33 codecs pinctrl: cirrus: Add support for CS48L31/32/33 codecs Richard Fitzgerald (9): dt-bindings: mfd: Add Cirrus Logic CS48L32 audio codec mfd: cs48l32: Add register definitions for Cirrus Logic CS48L31/32/33 dt-bindings: pinctrl: Add Cirrus Logic CS48L31/32/33 regulator: arizona-micsupp: Don't hardcode use of ARIZONA defines regulator: arizona-micsupp: Don't use a common regulator name regulator: arizona-micsupp: Support Cirrus Logic CS48L31/32/33 irqchip: cirrus: Add driver for Cirrus Logic CS48L31/32/33 codecs ASoC: wm_adsp: Allow client to hook into pre_run callback dt-bindings: sound: Add Cirrus Logic CS48L31/32/33 codecs Stuart Henderson (1): ASoC: cs48l32: Add codec driver for Cirrus Logic CS48L31/32/33 .../bindings/mfd/cirrus,cs48l32.yaml | 166 + .../bindings/pinctrl/cirrus,cs48l32.yaml | 98 + .../bindings/sound/cirrus,cs48l32.yaml | 96 + MAINTAINERS | 12 +- drivers/irqchip/Kconfig | 3 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-cirrus-cs48l32.c | 281 ++ drivers/irqchip/irq-cirrus-cs48l32.h | 74 + drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 2 + drivers/mfd/cs48l32-tables.c | 541 ++++ drivers/mfd/cs48l32.c | 434 +++ drivers/mfd/cs48l32.h | 28 + drivers/pinctrl/cirrus/Kconfig | 5 + drivers/pinctrl/cirrus/Makefile | 2 + drivers/pinctrl/cirrus/pinctrl-cs48l32.c | 932 ++++++ drivers/pinctrl/cirrus/pinctrl-cs48l32.h | 62 + drivers/regulator/Kconfig | 8 +- drivers/regulator/arizona-micsupp.c | 78 +- include/dt-bindings/sound/cs48l32.h | 25 + include/linux/irqchip/irq-cirrus-cs48l32.h | 101 + include/linux/mfd/cs48l32/core.h | 49 + include/linux/mfd/cs48l32/registers.h | 509 +++ include/sound/cs48l32.h | 89 + sound/soc/codecs/Kconfig | 9 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/cs48l32-core.c | 2782 +++++++++++++++++ sound/soc/codecs/cs48l32.c | 1211 +++++++ sound/soc/codecs/cs48l32.h | 386 +++ sound/soc/codecs/wm_adsp.c | 11 + sound/soc/codecs/wm_adsp.h | 1 + 31 files changed, 7997 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,cs48l32.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/cirrus,cs48l32.yaml create mode 100644 Documentation/devicetree/bindings/sound/cirrus,cs48l32.yaml create mode 100644 drivers/irqchip/irq-cirrus-cs48l32.c create mode 100644 drivers/irqchip/irq-cirrus-cs48l32.h create mode 100644 drivers/mfd/cs48l32-tables.c create mode 100644 drivers/mfd/cs48l32.c create mode 100644 drivers/mfd/cs48l32.h create mode 100644 drivers/pinctrl/cirrus/pinctrl-cs48l32.c create mode 100644 drivers/pinctrl/cirrus/pinctrl-cs48l32.h create mode 100644 include/dt-bindings/sound/cs48l32.h create mode 100644 include/linux/irqchip/irq-cirrus-cs48l32.h create mode 100644 include/linux/mfd/cs48l32/core.h create mode 100644 include/linux/mfd/cs48l32/registers.h create mode 100644 include/sound/cs48l32.h create mode 100644 sound/soc/codecs/cs48l32-core.c create mode 100644 sound/soc/codecs/cs48l32.c create mode 100644 sound/soc/codecs/cs48l32.h
Comments
On Wed, Nov 09, 2022 at 04:53:19PM +0000, Richard Fitzgerald wrote: > regulator: arizona-micsupp: Don't hardcode use of ARIZONA defines > regulator: arizona-micsupp: Don't use a common regulator name > ASoC: wm_adsp: Allow client to hook into pre_run callback The regulator and ASoC bits look good. It looks like this is going to need another spin for at least the DT and irqchip bits, I think it'd make sense to take the above cleanup patches for this release even if everything else misses it to cut down on future patch volume. I'll leave it for a bit and do that unless someone has concerns, it's going to be easier than applying and sending pull requests.
On 10/11/2022 20:53, Mark Brown wrote: > On Wed, Nov 09, 2022 at 04:53:19PM +0000, Richard Fitzgerald wrote: > >> regulator: arizona-micsupp: Don't hardcode use of ARIZONA defines >> regulator: arizona-micsupp: Don't use a common regulator name >> ASoC: wm_adsp: Allow client to hook into pre_run callback > > The regulator and ASoC bits look good. It looks like this is going to > need another spin for at least the DT and irqchip bits, I think it'd > make sense to take the above cleanup patches for this release even if > everything else misses it to cut down on future patch volume. I'll > leave it for a bit and do that unless someone has concerns, it's going > to be easier than applying and sending pull requests. Yes, I have tested that these 3 patches can apply and build on their own and don't break the older chips. I should have put these at the start of the chain and mentioned in the cover letter that they can be taken independently.
On Wed, 9 Nov 2022 16:53:19 +0000, Richard Fitzgerald wrote: > The CS48L32 is a high-performance low-power audio DSP for smartphones > and other portable audio devices. It has various digital audio I/O, > a programmable Halo Core DSP, fixed-function audio processors, > configurable GPIO and microphone bias regulators. > > The CS48L31 and CS48L33 were derivatives of the CS48L32. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [10/12] ASoC: wm_adsp: Allow client to hook into pre_run callback commit: fe07130870c8540bc0cddbaa8d4521ecdba6b560 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