Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2371672rwb; Fri, 20 Jan 2023 01:56:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqdkjG2t7p/DYeC0Tl+oRFNOYV0gjXlg3P5r6davW7XZn78SG8hshQUeSkM3MDo1a2lDe+ X-Received: by 2002:a17:906:d20f:b0:84d:4d6c:a462 with SMTP id w15-20020a170906d20f00b0084d4d6ca462mr14311686ejz.25.1674208582147; Fri, 20 Jan 2023 01:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674208582; cv=none; d=google.com; s=arc-20160816; b=i43YpD4hioBQhkVRQZDf83SPFSUHF8Eml97LRDiosUaNW1uJUG6D3zPtfLBfH8xsrW wNwLU8SWNKt4MhQIsIDPv8PZE05H3Pa7hJfwtE/bAwLeFHv9DBnwg0wK/VLw8fUAoZiM mKHkUzQ6IID5aG+CW3ZyGKO083NWPKNsgIoI2J778y1OyF12+kDhUzlDaHvpdBYbAZmk tPJYc1ZfK3IbEfvr1F74pRfxiX3Pr0X/cym5rnAfB6ZpIMkhS7PGvzg10YheOc0JhZYp 63EawZ9Hv9X9UsGeXI+x3gZOudMjYnNGCR2J3Qpo4tThgoNRYJanZjMgwMqoq+BIDH4u kTUQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kNP9fbFG6xPOV0N7X8iEOKK1c57drZlRTVTKz5WCF+M=; b=rSxnPie0+8bULVcNvBl5yA0snCLuLMB+UuuE90Hl8ScIvIwb0a70MuSFW8uO53XIx8 X9N99s+2+uucUU7jRcDM/AMwGsbo01BrQaTrCpCf+0JLjCZYYi/ofcM2mRdUH5DJqLpS v8LnmcOA7y25X6uD7M3M/Xa/0j6AV2/0x/wg/BTIIHfkDp6DTofPh9ZlK71Jdk2SC6fl gps6yXDBnIntgfg9P8xpxyQM6aBZNNo5qsnRgAdiaLOZKWBNmezvIB24ktcTx9nDWBlp cEwJQErx4+GIGvVpU/qevxaVzNI4wbIsVFsVnATsHX2SZbxw6+1gny2iS8a7HiA+BGAm 3Ndw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AWuEjQnC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a05640226c200b0049e5b31f600si7448112edd.467.2023.01.20.01.56.10; Fri, 20 Jan 2023 01:56:22 -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=AWuEjQnC; 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 S230091AbjATJux (ORCPT + 48 others); Fri, 20 Jan 2023 04:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjATJuu (ORCPT ); Fri, 20 Jan 2023 04:50:50 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B673CE39; Fri, 20 Jan 2023 01:50:49 -0800 (PST) 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 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 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 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, RCVD_IN_MSPIKE_H2,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 The Renesas IDT821034 codec is a quad PCM codec with programmable gain. Signed-off-by: Herve Codina --- .../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>; + }; + }; -- 2.39.0