Message ID | 20230417171601.74656-1-herve.codina@bootlin.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 b10csp2280466vqo; Mon, 17 Apr 2023 10:17:20 -0700 (PDT) X-Google-Smtp-Source: AKy350Zz0rqPdock9SHEWvJCSzD9y8zAqXqpfOfbUhhSrJYfYDhA9sIyujS4BB7oFfDe45TQrfug X-Received: by 2002:a17:90a:e655:b0:247:1605:6e1a with SMTP id ep21-20020a17090ae65500b0024716056e1amr17787681pjb.0.1681751840273; Mon, 17 Apr 2023 10:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681751840; cv=none; d=google.com; s=arc-20160816; b=ORls0CVMEUXxSVWRsI4Wc/guPbzVD5WlaSuBJtfP2M2iP2TTuDbzLIIpErzFWJGmk3 QVYjWf24fhckTvvdimYEFoymQRvozlxpRtxLWMGrs1oLnbcDhE3Fc+0BFYN7+Zwg+Qjs 1eFY1aerUnSAeMxXmzXrAkeF0Jk+4p8MmMHAlBGno9zQdEA15OZnl66I2nihMB+JqESU 6XjyB1IVt53vRujlp+kXG+pbx85W2vIwMDTIrKbXp84L3r4UOcfEhpus0gj53pIlMbA6 e+L+WT+d2TQiiG7n4DIPH8rePfxNBFVeX+qTFV0lIy5osYrEfdgjEBQziY+PUHFX+nIk z32w== 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=DSRYetUsIC3ZsZsN/yMuI55iJENgHW3YhTcg2JkySqE=; b=sghwFxwoONlCY9XaaWSZkI5le0WpM7fIcu9NJJvagtQvMYNRjVWhO7pm+Q2fCTviZo 6Hs8jgVxD30tsvOvU9jTaPm7doOSRAcdeYgtNAApSCL8iqvTfrWhEw/G2gdLSJFHfuHe F+5FN7dfGYXACOH03YhIbTdYTs6yeAdzTAI2tj1XrBJNmoCgyRSNhhcAAflxm73w2PV6 1EqrPwPBC1ATWGA2hfuRKg83/05NgOFtrGa0zuWl7Pxsh8DpOyN8voEBhRZK7hByNLhF RETDMcmZCtWM/fOl7LC7EpDjEilOzycIT91yOsGz+CQbsESDh7DSFgdNYEVteqfy7cg9 xR0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=R0l6tW2u; 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=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a17090aea8700b0023d1bcea88bsi14594482pjz.66.2023.04.17.10.17.05; Mon, 17 Apr 2023 10:17:20 -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=@bootlin.com header.s=gm1 header.b=R0l6tW2u; 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=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbjDQRQN (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 13:16:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbjDQRQM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 13:16:12 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0F99010; Mon, 17 Apr 2023 10:16:07 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 571D9C0005; Mon, 17 Apr 2023 17:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1681751765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DSRYetUsIC3ZsZsN/yMuI55iJENgHW3YhTcg2JkySqE=; b=R0l6tW2uRGsTry7Ij4GE3fEQjRiGJI3YvGJYrwlBbUo/X8YMAxFQRMvIRK8hPqGoQo//NZ yhsonadzgs1cnJyBA7kRBpEXQx47+2E4AKZg3u0cO3GEZ7td3SBikPZpFHTvL7nA2V1k0h p5HZoVWNVDPB4ye3mFpmrAXGhsESiJ+AwezvLPNHTJ495ZJZjetRMyD8m3p9E8aEXYnBYb IekFEO+pcht1Gz69ZaRKxmhKZ7VQmo/qieU7mUwYdbjPdeix24x0PW7uX3leDXmaYAicH9 2oQr8vtNZDj+rKvJpnlJ+WbrNsfPLR6xQAaluX03zpGJoOmCCeDnB8RdOf7tFQ== From: Herve Codina <herve.codina@bootlin.com> To: Herve Codina <herve.codina@bootlin.com>, Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Christophe Leroy <christophe.leroy@csgroup.eu>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v6 0/7] Add the Lantiq PEF2256 audio support Date: Mon, 17 Apr 2023 19:15:54 +0200 Message-Id: <20230417171601.74656-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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?1763444617169160715?= X-GMAIL-MSGID: =?utf-8?q?1763444617169160715?= |
Series |
Add the Lantiq PEF2256 audio support
|
|
Message
Herve Codina
April 17, 2023, 5:15 p.m. UTC
Hi, This series adds support for audio using the Lantiq PEF2256 framer. The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. The first part of this series (patches 1 to 4) adds the Lantiq PEF2256 driver core fixing a MFD core issue at patch 2. The patch 5 adds the PEF2256 pinmux support. The patch 6 adds the audio support using the Lantiq PEF2256 driver core. The last patch adds myself as the PEF2256 maintainer. The consumer/provider relation between the codec and the driver core allows to use the PEF2256 framer for other purpose than audio support. Compared to the previous iteration https://lore.kernel.org/all/20230328092645.634375-1-herve.codina@bootlin.com/ This v6 series mainly: - Use regmap - Move the pinmux part to the pinctrl subsystem - Move register definitions to header files. - Split pef2256_setup_e1() in several parts. - Fixed issues raised by checkpatch.pl. - Removed debug prints. Best regards, Herve Codina Changes v5 -> v6 - Patch 1 Add 'Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>' - Patch 2 New patch added fixing an MFD core issue. - Patch 3 (patch 2 in v5) Remove the pinmux part. Move registers definition to a header file and rework the definition. Use a regmap for register accesses Various minor fixes (typos, comments, ...) Fixed issues raised by checkpatch.pl --strict Removed debug prints. - Patch 4 (patch 3 in v5) No changes - Patch 5 New patch adding the PEF2256 pinmux part in the pinctrl subsystem. - Patch 6 (patch 4 in v5) Fixed issues raised by checkpatch.pl --strict - Patch 7 (patch 5 in v5) Updated according to files creation and move. Changes v4 -> v5 - Patch 1 Fix 'additionalProperties' and 'unevaluatedProperties' positions Fix sub-nodes names suffixes Changes v3 -> v4 - Patch 1 Merge the codec sub-node description. Move the 'allOf' property after the 'required' property. Rework the example to be more complete. - Patches 2 and 5 Drop of_match_ptr() - Patch 2 Add 'depends on OF' as pinconf_generic_dt_node_to_map_pin() needs OF support to be compiled (error raised by the kernel test robot). - Patch 4 Remove patch (merged in patch 1) Changes v2 -> v3 - Patch 1 Remove unneeded 'allOf' and quotes. Add several 'additionalProperties: false' Fix example (node name, interrupts and reg properties) Replace the lantiq,sysclk-rate-hz property by sclkr and sclkx clocks. Define 'lantiq,frame-format' property in top level. Move to MFD - Patch 2 Fix some #define. Compact the register accessor helpers. Rework pef2256_get_version(). Merge v1.2 and v2.x GCM setup functions into one pef2256_setup_gcm(). Update comments, avoid duplicates and change some conditionals. Remove the carrier spinlock and use atomic_t. Make exported symbol consistent and use EXPORT_SYMBOL_GPL. Remove the no more needed pef2256_get_byphandle() and devm_pef2256_get_byphandle(). Replace the lantiq,sysclk-rate-hz property by sclkr and sclkx clocks. Move to MFD - Patch 4 Remove, merged with patch 7 - Patch 4 (patch 5 in v2) Update title and description. Remove incorrect SPI reference. Remove the 'lantiq,pef2256' phandle. Fix commit log - Patch 5 (patch 6 in v2) Remove devm_pef2256_get_byphandle(). Fix commit log - Patch 6 (patch 7 in v2) Merge v2 patch 4. One entry only for PEF2256 Changes v1 -> v2 - Patch 2 Remove duplicate const qualifiers. Add HAS_IOMEM as a dependency - Patch 3 Fix a "Block quote ends without a blank line; unexpected unindent" syntax issue. Herve Codina (7): dt-bindings: mfd: Add the Lantiq PEF2256 E1/T1/J1 framer mfd: core: Ensure disabled devices are skiped without aborting mfd: Add support for the Lantiq PEF2256 framer Documentation: sysfs: Document the Lantiq PEF2256 sysfs entry pinctrl: Add support for the Lantic PEF2256 pinmux ASoC: codecs: Add support for the Lantiq PEF2256 codec MAINTAINERS: Add the Lantiq PEF2256 driver entry .../sysfs-bus-platform-devices-pef2256 | 12 + .../bindings/mfd/lantiq,pef2256.yaml | 267 +++++ MAINTAINERS | 12 + drivers/mfd/Kconfig | 16 + drivers/mfd/Makefile | 1 + drivers/mfd/mfd-core.c | 18 +- drivers/mfd/pef2256-regs.h | 250 +++++ drivers/mfd/pef2256.c | 950 ++++++++++++++++++ drivers/pinctrl/Kconfig | 14 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-pef2256-regs.h | 65 ++ drivers/pinctrl/pinctrl-pef2256.c | 310 ++++++ include/linux/mfd/pef2256.h | 52 + sound/soc/codecs/Kconfig | 14 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/pef2256-codec.c | 390 +++++++ 16 files changed, 2369 insertions(+), 5 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-platform-devices-pef2256 create mode 100644 Documentation/devicetree/bindings/mfd/lantiq,pef2256.yaml create mode 100644 drivers/mfd/pef2256-regs.h create mode 100644 drivers/mfd/pef2256.c create mode 100644 drivers/pinctrl/pinctrl-pef2256-regs.h create mode 100644 drivers/pinctrl/pinctrl-pef2256.c create mode 100644 include/linux/mfd/pef2256.h create mode 100644 sound/soc/codecs/pef2256-codec.c