From patchwork Wed Mar 15 13:42:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 6686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2342538wrd; Wed, 15 Mar 2023 06:54:48 -0700 (PDT) X-Google-Smtp-Source: AK7set+S7dPh8neTMnGnUK1Dj6BEuE0bi53lxS7FmR0t7b5v/Xl2arcmDlYdvDAtTpeNQPftFYpa X-Received: by 2002:a05:6a20:9146:b0:d4:686:4aa0 with SMTP id x6-20020a056a20914600b000d406864aa0mr10847932pzc.24.1678888487796; Wed, 15 Mar 2023 06:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678888487; cv=none; d=google.com; s=arc-20160816; b=Bkmi1UYTjXnwC9cJfNAlB1+qyN321acT0v3FHX44AwIYbgXQPT0f81o8A6i1+EEjDD ud60bjWJv2X9cSLxQGUXtc2wYFwn5aeZC9knKBzKNA+ypFZev7dnxnfdv+CRczJl4Nxa cuoy0O/t/pu4mBfIMKs7ikNExiuq5SpZGSU4gatTWzaKpJT1kX1HFkrmr3rg3IufLXQT L/NTt8JBpiPeqX5yyqbiQ0AbtlbHm/Dz4tMPWOLAExERPNxb+xs2iyiP4ZbfrfqLBs+T xiU5+jWiWG2O/rPEmc5QN/MtPgYRRsG/KI1HGIq2/M7x2QB9G14nORCNp09jR3JE80t2 Fovg== 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=Lkbd/cMcUoVpR7mZNnJF/IQksNBSfHqKCVF1aGbKTv4=; b=OPUzePSjzCFTDPklNT32YSd+0dgUVOcGYzIedhC7hC+yz2ZBzVcaj9BsGVukjxjtJH sxkMxEJvEUqYeXcadeQ6TuHIGiwNUDTwVCC5DDenIF3gsP5tFxJ9OdvbqDrVXzGIGR/Z hHDOSYDQjJq/eKsH/QeyMZYfAmquVZ0Tw9NrkDuvH37k6j8d2cmg/iaMFGgAo5Gi0vKL cxp7AxmV68kibK5MMuqW4/yl1gBmNhhnvMskdO3KdqtT9OX5JXcMAMvwR+opLRbNkx2i wxuDI/q9sBzOzlNqa0x5+zjxuLLp2FD9HSANtdsR9VRvWmTJDxJVGnqYfcrbsrnvdTLU J2NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jteQ23Kp; 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 g2-20020aa78742000000b005a8ec89de5fsi5023541pfo.236.2023.03.15.06.54.28; Wed, 15 Mar 2023 06:54:47 -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=jteQ23Kp; 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 S232339AbjCONmx (ORCPT + 99 others); Wed, 15 Mar 2023 09:42:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjCONmn (ORCPT ); Wed, 15 Mar 2023 09:42:43 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A423389F1D; Wed, 15 Mar 2023 06:42:39 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 938C140012; Wed, 15 Mar 2023 13:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678887758; 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=Lkbd/cMcUoVpR7mZNnJF/IQksNBSfHqKCVF1aGbKTv4=; b=jteQ23KpMC/4DMU4NbvaKyUlORaE526KRPOUjR7RBSlDQWCR3om0eaUdrRpue01MOuBeJ0 euObGPgo9oC6NnCd+RhetWgQlX13jdgQbreYd8NxnJMGn0A4/qZyYfiOmcHpExriAB45cN XMdm4SqikxtAgCVIKxbhEcMeo/TDAPxbF5G0K01ElYRetC4ItJ1RwKNAFn50fH/im5VBow /urKE46D76M/gEUGAZ2oDKTHAffw1xyJXdqq1JsxYv6lAQxmI844rZ27rbJHKyuT0bVV4K jzOL1LtUcTb0NHfGhTX0+8WHgmu8evdWtWONr/1suDWDIuG6hVLTHVZAMzaDmg== From: Herve Codina To: Herve Codina , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Jaroslav Kysela , Takashi Iwai Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Christophe Leroy , Thomas Petazzoni Subject: [PATCH 0/7] Add the Lantiq PEF2256 audio support Date: Wed, 15 Mar 2023 14:42:24 +0100 Message-Id: <20230315134231.233193-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760442174922018535?= X-GMAIL-MSGID: =?utf-8?q?1760442174922018535?= 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. The second part (patches 5 to 7) adds the audio support using the Lantiq PEF2256 driver core. The consumer/provider relation between the codec and the driver core allows to use the PEF2256 framer for other purpose than audio support. Best regards, Herve Codina Herve Codina (7): dt-bindings: misc: Add the Lantiq PEF2466 E1/T1/J1 framer drivers: misc: Add support for the Lantiq PEF2256 framer Documentation: sysfs: Document the Lantiq PEF2256 sysfs entry MAINTAINERS: Add the Lantiq PEF2256 driver entry dt-bindings: sound: Add support for the Lantiq PEF2256 codec ASoC: codecs: Add support for the Lantiq PEF2256 codec MAINTAINERS: Add the Lantiq PEF2256 ASoC codec entry .../sysfs-bus-platform-devices-pef2256 | 10 + .../bindings/misc/lantiq,pef2256.yaml | 190 +++ .../bindings/sound/lantiq,pef2256-codec.yaml | 57 + MAINTAINERS | 15 + drivers/misc/Kconfig | 16 + drivers/misc/Makefile | 1 + drivers/misc/pef2256.c | 1441 +++++++++++++++++ include/linux/pef2256.h | 36 + sound/soc/codecs/Kconfig | 14 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/pef2256-codec.c | 395 +++++ 11 files changed, 2177 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-platform-devices-pef2256 create mode 100644 Documentation/devicetree/bindings/misc/lantiq,pef2256.yaml create mode 100644 Documentation/devicetree/bindings/sound/lantiq,pef2256-codec.yaml create mode 100644 drivers/misc/pef2256.c create mode 100644 include/linux/pef2256.h create mode 100644 sound/soc/codecs/pef2256-codec.c