From patchwork Thu Jan 26 08:51:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 4553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp170694wrn; Thu, 26 Jan 2023 00:53:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXvLlpF2BTynzltZkEzFHKvt/Slts3LS1ccnh/FByj3vAGYGBcc9IPym/WNTR8A2Axhk1g4y X-Received: by 2002:a05:6402:f20:b0:499:b672:ee3a with SMTP id i32-20020a0564020f2000b00499b672ee3amr43914601eda.12.1674723206228; Thu, 26 Jan 2023 00:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674723206; cv=none; d=google.com; s=arc-20160816; b=lRLvRWujHMoFdqGn35ukWK1b5PYlzT8McVGA3nbuyVhuEjAHeNUf2hJitXrFFFuCtQ eEHPnSS0vBwrw6Cez41+8kS2SzeptrgVLm7nkraX4LyIGa0Nx+jqjZM2nGwBLr0QkVuO Il4Wkf4hvnP1WmW7snauV+WFa1LoNS4Uoy4RmdaRRmGuguO0dnitxXiOBpONI0yewr8V iIKF7vzTsT0hekMu7G7+GC3cC6lJik+s+1ec02pIaAIocIgkHidvd2McpW+32VHMydp3 eR3b7xR6rK8eFZBslQGtmdG1XDkhzZCmzSFko4B3jvg9diiUWXkVNf+Hhk8S62kLz7wz sI6w== 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=Fb4xrMYpWKXqyARukWe11gMYfz6J7B9pExDFH2CdKBE=; b=W90IrM0kqwpMbXk9KCDEkdnJuCLxFqDYF5bQCfcHbowPATwtiNn3aKtKd21qcMaQte 6GWxddSXy46I+9bfP7Kugg8i8rmjlwKaZpKx5Kdd16UjaFpKgAPUFlnrzG8GeBW8AknS g2cGPIvSLNLcq9E6KMOIEUOsU6Yqgcxtvox0TxaMpIM/KzfGQilMncFp8L9svAD71paK +HPZcKenTzu8rl3JS87QGP9DBYM8AD+ZmrHAFRm0LpvOYfU3IHTzXbt8s6hbi1oMk3sM rKpBLZBZSy7DhxVjP0VsT++0GicfY6x0FqwA+hriSxB8hJAjpXuGm7YjVN4I+7zit5ji AOnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=milrD4gE; 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 b2-20020aa7d482000000b0049db071cacasi1219882edr.349.2023.01.26.00.53.01; Thu, 26 Jan 2023 00:53:26 -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=@bootlin.com header.s=gm1 header.b=milrD4gE; 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 S236407AbjAZIwD (ORCPT + 99 others); Thu, 26 Jan 2023 03:52:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235298AbjAZIwC (ORCPT ); Thu, 26 Jan 2023 03:52:02 -0500 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7C1442D3; Thu, 26 Jan 2023 00:51:57 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id CC2ED40023; Thu, 26 Jan 2023 08:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1674723115; 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=Fb4xrMYpWKXqyARukWe11gMYfz6J7B9pExDFH2CdKBE=; b=milrD4gEphaJ7kPdpchUKyFVd1T6kzhe2LKCbkaMDTiOqBwF/BigSNxn2+7t/ZZx+X2Tjj Bonod7PAvsY9udm2OugALZtPl/8lHKhr4LPjTa/+Zwk5IIWZFKsC3+SykNBKKKg+I//Mp3 q3w7MYdAQL3bp9nw0GwqEiYveKp7DCOf6CRVhP9YRH+kMqXu2XLU6CMbcq+Y8imrqfl7E6 SkIiejKBnHayvFcChzX8xREMlITHail0j6KPfC00tzfVmzPxaIbv23wEWFs/56Q4IZPraL 19CgAJL+PC+xWetseYwIxetJw+KmDBcaRggZXvpaFqztHcHwZ/euj1KFA7miRw== From: Herve Codina To: Herve Codina , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: [PATCH v3 0/3] Add the Renesas IDT821034 codec support Date: Thu, 26 Jan 2023 09:51:34 +0100 Message-Id: <20230126085137.375814-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.0 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,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756074561052257017?= X-GMAIL-MSGID: =?utf-8?q?1756074561052257017?= Hi, The Renesas IDT821034 codec is four channel PCM codec with on-chip filters and programmable gain setting. It also provides SLIC (Subscriber Line Interface Circuit) signals as GPIOs. Based on previous iteration, https://lore.kernel.org/linux-kernel/20230120095036.514639-1-herve.codina@bootlin.com/ this v3 series mainly: - Fixes _put() methods - Introduces and uses idt821034_2x8bit_write() - Removes the '#if IS_ENABLED(CONFIG_GPIOLIB)' conditional Best regards, Herve Codina Changes v2 -> v3: - Patch 1 Fix the example node name. Add 'Reviewed-by: Krzysztof Kozlowski ' - Patch 2 Fix _put() methods return code. Remove 'select REGMAP_SPI' from Kconfig Introduce and use idt821034_2x8bit_write() Remove the '#if IS_ENABLED(CONFIG_GPIOLIB)' conditional Fix comments and other minor code simplifications Changes v1 -> v2: - All patches Reformat commit log - Patch 1 Remove '$ref: /schemas/gpio/gpio.yaml#' Use 'unevaluatedProperties: false' Update the node name and remove the sound node in the example - Patch 2 Change the file header comment format Rework in order to remove the regmap virtual registers Herve Codina (3): dt-bindings: sound: Add Renesas IDT821034 codec ASoC: codecs: Add support for the Renesas IDT821034 codec MAINTAINERS: add the Renesas IDT821034 codec entry .../bindings/sound/renesas,idt821034.yaml | 75 ++ MAINTAINERS | 7 + sound/soc/codecs/Kconfig | 11 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/idt821034.c | 1180 +++++++++++++++++ 5 files changed, 1275 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/renesas,idt821034.yaml create mode 100644 sound/soc/codecs/idt821034.c