Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp165246rdb; Thu, 21 Dec 2023 06:02:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ1VPyBko00xbD3zh9q8vUzhR8uI7qFVIxGps/9GaLuWXw6ARhuY0WhJ6NJhDZwUbqr8fh X-Received: by 2002:a05:620a:167c:b0:77f:3c2b:366a with SMTP id d28-20020a05620a167c00b0077f3c2b366amr24284254qko.140.1703167341730; Thu, 21 Dec 2023 06:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703167341; cv=none; d=google.com; s=arc-20160816; b=H6RPRtLRBloNzT78Ix67934NOi14qt6ilIFJV6os1pIqnDbHhypkfZUZdSx4XA39xd lXCKQAkVFhn/eT5/NpAaJRqq04wBDcxaSvHmu64RWDACURn7roLc5h2GOa8EITWT0ybV M1dUDoWBnRj+kS8USGPq0aF+caWu8nGj8eJsrrHtZMHWjGP8X9xziYWY0imoKRTyscZl IEjJKxmLH6DMNcsULeUPwxiNf7qtC+6PoRS1oyXxHQqbLee8KJbrJtM4sN3B1yWGW808 9dTB+esN+b0F7wI+suvjXgQitNJldqOEYGodl9S4XLBWifPJEDJ/vj3nv+2ow4VBAqSg +l+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4uTG+0qG9WU6ZB7CvuOS88Z9/l30lV0E65mDQMt8fXI=; fh=EhS3OtmZajjG1ymStjgcInFMg6q5qEQ2eZbbHYaOo54=; b=kn+jf+GUk2cWQI5JgD143SNbwgH6+hRlMPMtF0IM9sqTFwghrdmsnVqs5cqE7enfu9 Iw475JePnqeZkA0mMnFNbCxctQb6cjE6QxOq/8Cu1kTjByZVsoboOciyhjhggSZyTv67 B6bGCTEvwWx98VFZ82fE8bfPPkFoCML3BkvmOFQenOWRrw02oibWfg6Je1RTWajXvim6 2AU+V9xqd9aqwaRZue7eG1DyVvnzLCmZwu/XBkj79vwWJRwS7yP+eGHEnAo8JRxzmg+1 oSHhzmF830ePVIMjs0rRVVkpxqboG2Ucj59bHAUixKQ3tGkrPLoLP5jV0eLAsAkTaEcY vUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=On2uCpC+; spf=pass (google.com: domain of linux-kernel+bounces-8536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c13-20020a67e90d000000b0046665181cb3si249725vso.731.2023.12.21.06.02.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 06:02:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=On2uCpC+; spf=pass (google.com: domain of linux-kernel+bounces-8536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F0D91C25E6E for ; Thu, 21 Dec 2023 14:02:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7830376DD4; Thu, 21 Dec 2023 13:53:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="On2uCpC+" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A251E745D4; Thu, 21 Dec 2023 13:53:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D0DFC433C7; Thu, 21 Dec 2023 13:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703166785; bh=pPMVyevmpbWPJgmQU7BRAWm3WCy0zRv/2Uz1rFGHuiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=On2uCpC+rib2wTj1bZI3ww/V0sidzj/s0K5wmmMPAAnNCLNx6htQnrayG+HX++JYh o0+9/Vp7DUrOpd8I3RgEAIsJF92NvYeGozwQXThXZ/jBdFaU3atiXCcclMRGHD1wWL cJU8hhLWaEDD6DtFgV58bF5rdRyBReRuaQhJhTcTUer2JKDO7VGP/gIwZzavH0+I9v VzuLybXJXvZYNUUEuHB756R0pCbSQZcBIRCB2PyvNoUGXxU8vTvDge3M7x9E0wsNKJ nLDs0p49gueULOZ85BE5XoR1gih9DdZ75LEvGe83j6tk3n+nQgOzORpyhNjWLnsIiI wHBXi0wF2wSHg== Date: Thu, 21 Dec 2023 13:53:00 +0000 From: Conor Dooley To: Xingyu Wu Cc: Liam Girdwood , Mark Brown , Claudiu Beznea , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Walker Chen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: Re: [PATCH v1 1/2] dt-bindings: ASoC: Add Cadence I2S controller for StarFive JH8100 SoC Message-ID: <20231221-saddlebag-tricolor-d02a17d66795@spud> References: <20231221033223.73201-1-xingyu.wu@starfivetech.com> <20231221033223.73201-2-xingyu.wu@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KOGwlaDIWVEFGDEl" Content-Disposition: inline In-Reply-To: <20231221033223.73201-2-xingyu.wu@starfivetech.com> --KOGwlaDIWVEFGDEl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Xingyu, Mark, On Thu, Dec 21, 2023 at 11:32:22AM +0800, Xingyu Wu wrote: > Add bindings for the Multi-Channel I2S controller of Cadence > on the StarFive JH8100 SoC. >=20 > Signed-off-by: Xingyu Wu > --- > .../bindings/sound/cdns,jh8100-i2s.yaml | 100 ++++++++++++++++++ > 1 file changed, 100 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/cdns,jh8100-i= 2s.yaml >=20 > diff --git a/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml= b/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml > new file mode 100644 > index 000000000000..5d95d9ab3e45 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml > @@ -0,0 +1,100 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/cdns,jh8100-i2s.yaml# Filename matching the compatible please. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cadence multi-channel I2S controller for StarFive JH8100 SoC > + > +description: | You only need the | if there is formatting to preserve. > + The Cadence I2S Controller implements a function of the multi-channel > + (up to 8-channel) bus. It combines functions of a transmitter and a re= ceiver. > + It is used in the StarFive JH8100 SoC. > + > +maintainers: > + - Xingyu Wu > + - Walker Chen > + > +properties: > + compatible: > + const: starfive,jh8100-i2s > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: | > + The interrupt line number for the I2S controller. Add this > + parameter if the I2S controller that you are using does not > + support DMA. You've got one i2s controller here, you should know if it supports DMA or not. > + maxItems: 1 > + > + clocks: > + items: > + - description: Bit clock > + - description: Main ICG clock > + - description: Inner master clock > + > + clock-names: > + items: > + - const: bclk > + - const: icg > + - const: mclk_inner > + > + resets: > + maxItems: 1 > + > + dmas: > + items: > + - description: TX DMA Channel > + - description: RX DMA Channel > + minItems: 1 > + > + dma-names: > + items: > + - const: tx > + - const: rx > + minItems: 1 > + > + cdns,i2s-max-channels: > + description: | > + Number of I2S max stereo channels supported by the hardware. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 1 > + maximum: 8 Mark, is there no common property for this kind of thing? That said, there's one device here so the number is known at present. Another note, this property is not required, so it should have a default. It's kinda hard to know with this binding - it is touted as being for a particular Cadence IP, and some aspects are pretty generic, but at the same time there's only one device here so it's hard to tell what is variable between implementations and what is not. Are there no other implementations of this controller? Unless it is brand new, I find that hard to believe. Cheers, Conor. > + > + "#sound-dai-cells": > + const: 0 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - resets > + > +oneOf: > + - required: > + - dmas > + - dma-names > + - required: > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2s@122b0000 { > + compatible =3D "starfive,jh8100-i2s"; > + reg =3D <0x122b0000 0x1000>; > + clocks =3D <&syscrg_ne 133>, > + <&syscrg_ne 170>, > + <&syscrg 50>; > + clock-names =3D "bclk", "icg", > + "mclk_inner"; > + resets =3D <&syscrg_ne 43>; > + dmas =3D <&dma 7>, <&dma 6>; > + dma-names =3D "tx", "rx"; > + cdns,i2s-max-channels =3D <2>; > + #sound-dai-cells =3D <0>; > + }; > --=20 > 2.25.1 >=20 >=20 --KOGwlaDIWVEFGDEl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZYRDPAAKCRB4tDGHoIJi 0s94AP9geB4PYcZr4+jWv+afH31tjZK9Ipg74/OInCTDenjFWgD+Lkrt4YCJ5jzp 6mcV3fL0qrb+B7BF6qed1c7Naq7xzQs= =gqs+ -----END PGP SIGNATURE----- --KOGwlaDIWVEFGDEl--