From patchwork Fri Jan 20 09:50: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: 644667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3BB5C25B4E for ; Fri, 20 Jan 2023 09:51:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D146A2FF2; Fri, 20 Jan 2023 10:50:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D146A2FF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1674208309; bh=d2GGOOlXjx/PLssSKhXI4mQUj7kqsbFdDCi+CikgItA=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=DgQUhNWBBHeLY32uMFqzQizhpcMVjykPVD4S36bMrzpTX35AGI4/FLHzK1N422g1f DAuCC94H+c8mnmR/fsFXelj8YWajZiiq7BB/VT/reS35caoUusO83L1Bdp+mf13/dH eDQkyYY9mrjkMRIOgL6CBy4ynvXftK77QcK0xNFU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1AD0AF80495; Fri, 20 Jan 2023 10:50:53 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9840FF80495; Fri, 20 Jan 2023 10:50:51 +0100 (CET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BE964F80246 for ; Fri, 20 Jan 2023 10:50:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BE964F80246 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=AWuEjQnC Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id C06DBFF805; Fri, 20 Jan 2023 09:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1674208247; 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: in-reply-to:in-reply-to:references:references; bh=kNP9fbFG6xPOV0N7X8iEOKK1c57drZlRTVTKz5WCF+M=; b=AWuEjQnC/04LOyJ/7fbQwtDVCb1iMmjxrV+rtemVZm57/9Qsk6gzaSfYdJ+lBgkIstWJvG Ba+Pt6IvjhzV9WZqQL6cJ/xNXhaultciRH/PxXuB4KoVGMd3/fn1Zz5Cdy4PVttiwTin3v m4g8OASbGbMphyGg8e021y7OtJvNklZFbr8NO2+5NUGzORHrQ8umLz+bvWbci9fJJed3Cl 82r24/s68YCixFtYcaI7drG8GFyVkOzJbiYi6S+phBlO+TejkUV2k8Ce+ntTou1MhSW9kA o3k9ikyfcfs7vLbyL16g22hf7Ud9bLGR69FpWKdW6wAaFQcyfAp7VtTVoNpx3w== From: Herve Codina To: Herve Codina , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Jaroslav Kysela , Takashi Iwai Subject: [PATCH v2 1/3] dt-bindings: sound: Add Renesas IDT821034 codec Date: Fri, 20 Jan 2023 10:50:34 +0100 Message-Id: <20230120095036.514639-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230120095036.514639-1-herve.codina@bootlin.com> References: <20230120095036.514639-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Christophe Leroy , linux-gpio@vger.kernel.org, Thomas Petazzoni Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The Renesas IDT821034 codec is a quad PCM codec with programmable gain. Signed-off-by: Herve Codina Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/renesas,idt821034.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/renesas,idt821034.yaml diff --git a/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml b/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml new file mode 100644 index 000000000000..10677d9d8f67 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/renesas,idt821034.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas IDT821034 codec device + +maintainers: + - Herve Codina + +description: | + The IDT821034 codec is a four channel PCM codec with onchip filters and + programmable gain setting. + + The time-slots used by the codec must be set and so, the properties + 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and + 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for + sub-nodes that involve the codec. The codec uses one 8bit time-slot per + channel. + 'dai-tdm-tdm-slot-with' must be set to 8. + + The IDT821034 codec also supports 5 gpios (SLIC signals) per channel. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: dai-common.yaml# + +properties: + compatible: + const: renesas,idt821034 + + reg: + description: + SPI device address. + maxItems: 1 + + spi-max-frequency: + maximum: 8192000 + + spi-cpha: true + + '#sound-dai-cells': + const: 0 + + '#gpio-cells': + const: 2 + + gpio-controller: true + +required: + - compatible + - reg + - spi-cpha + - '#sound-dai-cells' + - gpio-controller + - '#gpio-cells' + +unevaluatedProperties: false + +examples: + - | + spi0 { + #address-cells = <1>; + #size-cells = <0>; + audio-codec@0 { + compatible = "renesas,idt821034"; + reg = <0>; + spi-max-frequency = <8192000>; + spi-cpha; + #sound-dai-cells = <0>; + gpio-controller; + #gpio-cells = <2>; + }; + }; From patchwork Fri Jan 20 09:50:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 644666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F17DC05027 for ; Fri, 20 Jan 2023 09:52:37 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 55776300A; Fri, 20 Jan 2023 10:51:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 55776300A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1674208354; bh=u7BC24PLXH1M5k4ZAwWCW9iGDRYP84c4x5XXlldKNUk=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=upO2gK7JlFB1il4ytOzNLC1oQURFSyjynbZwKV/mClIYX2L+NylxB8hvzAx4gbHSf HolMjtMLUDi3GSVM9YG8xkd0youJ/Q6iI2yVeng7EgKYiEujaFX6KzMLtilCS2Bl5z l6bwT1H4BSAB+iWs38Ss2UjMSTvWMbyz0JgJZvZg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6907DF80542; Fri, 20 Jan 2023 10:51:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E1143F8053D; Fri, 20 Jan 2023 10:51:03 +0100 (CET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5ECBAF804FE for ; Fri, 20 Jan 2023 10:50:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5ECBAF804FE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=jZyz3rpJ Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id B06FEFF80B; Fri, 20 Jan 2023 09:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1674208252; 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: in-reply-to:in-reply-to:references:references; bh=89IPk7Ub6kTzIYPBJ6dyur64fSCxEPkfLYPQ09yEpxc=; b=jZyz3rpJZ061s7gHTXVPfF/CKxsDxshPnqHJQHrYvIeyVdlEndh1FM6iEnsfM+taTJPu4y brf0+uddDNWtdFQquLBpi3Pk/mArVEORvgBfWN+uy5WTydgloRQOXwhseTOiJwbBlAhFgA PvwseGIXYiblXHAcK0XH4sPSDlTw1mpm3Ds8ak97WSUa7ZzTvKttitsRdoF+SuBeEauydF epgTfkzB38um3FZ6uODzvUR+h2LVLPv5JZqOl608KPO23jvw02I2alESzb0l+YrGlouoVg k0kJwmzJsXXYPeD4Jo9TqmoDxKGBhX3ibUsuVPZkdjUWXTWCnK4pT6efjU5w3A== From: Herve Codina To: Herve Codina , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Jaroslav Kysela , Takashi Iwai Subject: [PATCH v2 3/3] MAINTAINERS: add the Renesas IDT821034 codec entry Date: Fri, 20 Jan 2023 10:50:36 +0100 Message-Id: <20230120095036.514639-4-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230120095036.514639-1-herve.codina@bootlin.com> References: <20230120095036.514639-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Christophe Leroy , linux-gpio@vger.kernel.org, Thomas Petazzoni Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" After contributing the driver, add myself as the maintainer for the Renesas IDT821034 codec. Signed-off-by: Herve Codina --- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9dcfadec5aa3..31115a7e01c1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17809,6 +17809,13 @@ F: Documentation/devicetree/bindings/net/renesas,*.yaml F: drivers/net/ethernet/renesas/ F: include/linux/sh_eth.h +RENESAS IDT821034 ASoC CODEC +M: Herve Codina +L: alsa-devel@alsa-project.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/sound/renesas,idt821034.yaml +F: sound/soc/codecs/idt821034.c + RENESAS R-CAR GYROADC DRIVER M: Marek Vasut L: linux-iio@vger.kernel.org