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 C6962C48297 for ; Mon, 12 Feb 2024 13:41:36 +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=mlFBHMCsZuN4d+1rtn1orPQTG5/f6/E8O5bj9SC9CHo=; b=TiU2qVI6jeBsde tTHNkI4F+PiIVdEh+6FGUvL6RPTWwlegbEsZZGK4nW/a4Lzx2C35+BrFKB43oSh0uXC5lDovn85cj 2u0Uek7VGUxiH5RWQQ22QfEK9s5gqp6LO27NQl704x/Sw3pv6j0KiE28OtDw0gXLqIspeaupxS+9W oXZKv6huMCGtPQ3o5xPbjs/aNhD1DG5wNyb+d8PmuB2oxnivYRG/5ZMLkSBoP+hxMQ/z1TCV3kN3/ hNOLdvlDtScwaM7qcgG11mSII/LADVD5wdbGW61A5KqLLuqWImWTY0PagPNTnR3kX/GbeffSP1Ojf q8ZPtQJuIat+GV8jBBAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZWYn-00000005Zcv-2xPp; Mon, 12 Feb 2024 13:41:25 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZWYl-00000005Zbu-0ZIH for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2024 13:41:24 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C366460FC7; Mon, 12 Feb 2024 13:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36B8AC433F1; Mon, 12 Feb 2024 13:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707745281; bh=m8kRKJlzaxyXLxtRatEt7YpuzCQxnntT+vzxtpamjKU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nf4dyCaa/SI9jTKUbILyhiMLOsWVoFQ5PSIU0feqVN76Yz9duMVcYtC94IfOrqDhB h3Pr4VqlK4agUmnDCWZwtrEj1VHBG+jox+OQId6T8IxBz1MJ3Ka0l/ng56jPUiyvYf 0L+x/Boq6VgCJO2vwnYkMopRSoFg/7wky36sZyjkHmK1l1OW7sS+ZJA6S9ZVoCP1eq xfiiJFzfoTwOqbkDisCzKZSDQJ1Yhm7z0fCyXuPGkK9EU0N0gxlG12QmpVsCnpTNOp E3pHtyTB52KXUUz8KhSNdpX3cr6Jnk+SbTjbxD+ZmHO2uCt6/IiUUHInU8Ptv3AD+n vw2nsreLUjv1Q== Date: Mon, 12 Feb 2024 07:41:19 -0600 From: Rob Herring To: Sebastian Reichel Cc: Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , Dong Aisheng , Linus Walleij , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 03/14] dt-bindings: sound: fsl,imx-asrc: convert to YAML Message-ID: <20240212134119.GA37175-robh@kernel.org> References: <20240210012114.489102-1-sre@kernel.org> <20240210012114.489102-4-sre@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240210012114.489102-4-sre@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240212_054123_287064_D24B50F2 X-CRM114-Status: GOOD ( 22.80 ) 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, Feb 10, 2024 at 02:18:07AM +0100, Sebastian Reichel wrote: > Convert the i.MX ASRC DT binding to YAML. > > Signed-off-by: Sebastian Reichel > --- > .../devicetree/bindings/sound/fsl,asrc.txt | 80 --------- > .../bindings/sound/fsl,imx-asrc.yaml | 159 ++++++++++++++++++ > 2 files changed, 159 insertions(+), 80 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/fsl,asrc.txt > create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml > diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml > new file mode 100644 > index 000000000000..bc1607ecf345 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml > @@ -0,0 +1,159 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/fsl,imx-asrc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale Asynchronous Sample Rate Converter (ASRC) Controller > + > +description: > + The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of > + a signal associated with an input clock into a signal associated with a > + different output clock. The driver currently works as a Front End of DPCM > + with other Back Ends Audio controller such as ESAI, SSI and SAI. It has > + three pairs to support three substreams within totally 10 channels. > + > +maintainers: > + - Shawn Guo > + - Sascha Hauer > + > +properties: > + compatible: > + oneOf: > + - enum: > + - fsl,imx35-asrc > + - fsl,imx53-asrc > + - fsl,imx8qm-asrc > + - fsl,imx8qxp-asrc > + - items: > + - enum: > + - fsl,imx6sx-asrc > + - fsl,imx6ul-asrc > + - const: fsl,imx53-asrc > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + dmas: > + maxItems: 6 > + > + dma-names: > + items: > + - const: rxa > + - const: rxb > + - const: rxc > + - const: txa > + - const: txb > + - const: txc > + > + clocks: > + maxItems: 19 > + > + clock-names: > + items: > + - const: mem > + - const: ipg > + - const: asrck_0 > + - const: asrck_1 > + - const: asrck_2 > + - const: asrck_3 > + - const: asrck_4 > + - const: asrck_5 > + - const: asrck_6 > + - const: asrck_7 > + - const: asrck_8 > + - const: asrck_9 > + - const: asrck_a > + - const: asrck_b > + - const: asrck_c > + - const: asrck_d > + - const: asrck_e > + - const: asrck_f > + - const: spba > + > + fsl,asrc-rate: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: The mutual sample rate used by DPCM Back Ends > + > + fsl,asrc-width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: The mutual sample width used by DPCM Back Ends Constraints? > + > + fsl,asrc-clk-map: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Defines clock map used in driver > + <0> - select the map for asrc0 in imx8qm/imx8qxp > + <1> - select the map for asrc1 in imx8qm/imx8qxp Looks like constraints. > + > + big-endian: > + type: boolean > + description: > + If this property is absent, the little endian mode will be in use as > + default. Otherwise, the big endian mode will be in use for all the > + device registers. > + > + fsl,asrc-format: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Defines a mutual sample format used by DPCM Back Ends, which can > + replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE). Looks like constraints. > + > +required: > + - compatible > + - reg > + - interrupts > + - dmas > + - dma-names > + - clocks > + - clock-names > + - fsl,asrc-rate > + - fsl,asrc-width > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx8qm-asrc > + - fsl,imx8qxp-asrc > + then: > + required: > + - fsl,asrc-clk-map > + else: > + properties: > + fsl,asrc-clk-map: false > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + asrc: asrc@2034000 { > + compatible = "fsl,imx53-asrc"; > + reg = <0x02034000 0x4000>; > + interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&clks IMX6QDL_CLK_ASRC_IPG>, > + <&clks IMX6QDL_CLK_ASRC_MEM>, <&clks 0>, > + <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>, > + <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>, > + <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>, > + <&clks IMX6QDL_CLK_ASRC>, <&clks 0>, <&clks 0>, > + <&clks IMX6QDL_CLK_SPBA>; > + clock-names = "mem", "ipg", "asrck_0", > + "asrck_1", "asrck_2", "asrck_3", "asrck_4", > + "asrck_5", "asrck_6", "asrck_7", "asrck_8", > + "asrck_9", "asrck_a", "asrck_b", "asrck_c", > + "asrck_d", "asrck_e", "asrck_f", "spba"; > + dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>, > + <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>; > + dma-names = "rxa", "rxb", "rxc", > + "txa", "txb", "txc"; > + fsl,asrc-rate = <48000>; > + fsl,asrc-width = <16>; > + }; > -- > 2.43.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel