From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B79EFEE49A5 for ; Mon, 21 Aug 2023 17:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UW2VCNwfe8c/Hf13rEkvJ7uOI4iZW1LAIyBD9PY5a/0=; b=Uen9bGpRwGyeUf FqmvFiJvl6vQuJBZtRH5R3ngpuvcht40LnKhzMHVfVG/Fv4TNLVjJIcCuaCQO5UoBQP1GV57g5fkN UCWa3+pEWsZbenSg8f7GBwwXsVm9BT229i/W/9NaJgNyfZ0G1VkgFV4+XifKdLcxma61ZKfgt6dl4 s1aQ/mfH8ra00QcMwkgKTswjiPUTjATQD/YpHTlGkzf0O1++W8wAnAEXtrfDKHJuvVb287z1L03n/ Ca+NtYHXjZzNdjEJ680rHnjfo46ddphmivKj6H06W4qHoQfX3H44KzaiG2lrMYsRmUb7rQeN77Zkr 65JffNvn/RLTltAl6uTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qY8ng-00ES06-1j; Mon, 21 Aug 2023 17:34:48 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qY8nc-00ERyY-0l for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2023 17:34:46 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 586F6640A8; Mon, 21 Aug 2023 17:34:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52C4CC433C7; Mon, 21 Aug 2023 17:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692639282; bh=s+/xqjg7X5KwSvn6RZv3TdvG5pAi5ArV5S810IETFV8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Laiy+1+YHu2bGlgIoy0SKeyPtn4QGYk8vLhYZ+GfQ2rY33FsnvgXg1YQTnWdIocFV KJU8ED58mqu4ydAs3NFTO8vdXGadzFyuKrtZMG81xob5P1m+I9eg/7LB7mnMVtVc7H Ch5tAL9siTlSkngrNtSS2S/N3byBXSpCu3CjEW9+KN4O1eD47agyE+j5cP0rPl76tN +vCCQeIisPwrswhm/LYhaDdmFLr/xlTHjQk+x6NGktp4o1eIqPbYycIo7u4lWwKSYR CXJGnzIAIajhWjwX2dNyC4ASP68EkX/xCsNP72P1FKtWyIBnDB8fWW8omSPV/G4U68 EKHxorSbC8gRQ== Received: (nullmailer pid 2005872 invoked by uid 1000); Mon, 21 Aug 2023 17:34:40 -0000 Date: Mon, 21 Aug 2023 12:34:40 -0500 From: Rob Herring To: John Watts Cc: alsa-devel@alsa-project.org, Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jaroslav Kysela , Takashi Iwai , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 6/7] dt-bindings: sound: sun4i-i2s: Add channel-dins property Message-ID: <20230821173440.GA2002457-robh@kernel.org> References: <20230811201406.4096210-1-contact@jookia.org> <20230811201406.4096210-7-contact@jookia.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230811201406.4096210-7-contact@jookia.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230821_103444_451135_043A157C X-CRM114-Status: GOOD ( 22.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Aug 12, 2023 at 06:14:05AM +1000, John Watts wrote: > The R329 variant of the sun4i I2S controller supports multiple > data input pins (din pins) for receiving data. Each channel can have > its data input pin configured. > > Allow this to be configured using a new channel-dins property. > > Signed-off-by: John Watts > --- > .../sound/allwinner,sun4i-a10-i2s.yaml | 22 +++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml > index 739114fb6549..402549f9941c 100644 > --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml > +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml > @@ -52,6 +52,13 @@ properties: > - const: apb > - const: mod > > + channel-dins: Needs a vendor prefix. > + $ref: /schemas/types.yaml#/definitions/uint8-array > + description: > + This is a list of DIN pin numbers, each used for a receiving I2S > + channel. Pins are mapped to channels based on array index. > + Channel 0 is the first number, then channel 1, and so on. Constraints on the values? 255 is valid pin number? > + > # Even though it only applies to subschemas under the conditionals, > # not listing them here will trigger a warning because of the > # additionalsProperties set to false. > @@ -144,4 +151,19 @@ examples: > dma-names = "rx", "tx"; > }; > > + - | > + i2s0_d1: i2s@2032000 { Drop unused labels. However, I don't really think adding 1 property justifies a whole other example. > + #sound-dai-cells = <0>; > + compatible = "allwinner,sun20i-d1-i2s", > + "allwinner,sun50i-r329-i2s"; > + reg = <0x2032000 0x1000>; > + interrupts = <0 26 0>; > + clocks = <&ccu 86>, <&ccu 82>; > + clock-names = "apb", "mod"; > + resets = <&ccu 34>; > + dmas = <&dma 3>, <&dma 3>; > + dma-names = "rx", "tx"; > + channel-dins = /bits/ 8 <0 0 1 1 2 2>; > + }; > + > ... > -- > 2.41.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel