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 AD75BC48BEF for ; Fri, 16 Feb 2024 19:45:50 +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-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-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ze/pDaE8UcoB0Ktqvsv2bS3z8oZZTs/stS+zxucUBzA=; b=Mjpwl2kW2JBR30Ar0HE8pHlSD6 b3orpBai5syXNrOuDZ22Rm/CdAFjsJcCo5+Ob0SifCXsJlFQXlMsrDcHCtfRKYL6bo5ASezV8Jp/D /gU/i1AQTCQyvvKRbYakOIQGv2Wi6gRczn1ohf/28QBYqxNk09F7FtmlOv8DXU+iZWIRr0JxxmKQj 4QnKDcg/d8t5MGvX/7wuCy6VjLsQB9QwyeiECIvZDEjz6qtNRRnKEBllwpKcTETJer+DzDZcXFjvl OS84U06U2/roqt3yvn9zvFmuLo18QBqWclS/nGWyuIaTAwmv83+fnqV2zNHClKKdz7FTloZUqUo97 NJDOLgmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb49O-00000003Wsr-0WF1; Fri, 16 Feb 2024 19:45:34 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb49L-00000003Wra-3Z3H for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 19:45:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E4572620AC; Fri, 16 Feb 2024 19:45:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38F73C433F1; Fri, 16 Feb 2024 19:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708112727; bh=tqwc6T+xaDrSoJ/oKHMoZkMeHNS09xS6tDHD68G0Pqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OSthxwfzP8UF7Asm4mhUGEEh6VIXs5Sbc7/xGMGiTkUWzliJRCbm40YECPFdF+1Pd 7f2dobBHAikc0GSck7Sf1t/5jshXXHzR4krknNNdbij0MF2euTb8+UU5+kJW2nYcZ3 3V7cGC6naFozTVdOWzBzH9WI0f4bp6bkrvIP5CXPrcWLUcTcFvkn/B3Tf7RM6Bfs/O pf/+QMYMG87HgPq60wb3g8JyuDa2qU0E0LOJY1yncZgxs+jQQntJQlPnQth85qiKGf Cxa3XY+zfUBSHbRmptaINGY5795Y/3bKrVznUs71qlOhPRo1ABeD0FTcLONf3Ia2oD AAUm002kTOsjw== Date: Fri, 16 Feb 2024 19:45:21 +0000 From: Conor Dooley To: Tudor Ambarus Cc: broonie@kernel.org, robh@kernel.org, andi.shyti@kernel.org, krzysztof.kozlowski@linaro.org, semen.protsenko@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, devicetree@vger.kernel.org Subject: Re: [PATCH v3 01/12] spi: dt-bindings: introduce FIFO depth properties Message-ID: <20240216-malt-alumni-4939546e1e2c@spud> References: <20240216070555.2483977-1-tudor.ambarus@linaro.org> <20240216070555.2483977-2-tudor.ambarus@linaro.org> MIME-Version: 1.0 In-Reply-To: <20240216070555.2483977-2-tudor.ambarus@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_114531_996979_F3617D51 X-CRM114-Status: GOOD ( 18.70 ) 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: multipart/mixed; boundary="===============6109833030624259504==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6109833030624259504== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UgE4bvCQW0vdLD16" Content-Disposition: inline --UgE4bvCQW0vdLD16 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 07:05:44AM +0000, Tudor Ambarus wrote: > There are SPI IPs that can be configured by the integrator with a > specific FIFO depth depending on the system's capabilities. For example, > the samsung USI SPI IP can be configured by the integrator with a TX/RX > FIFO from 8 byte to 256 bytes. >=20 > Introduce the ``fifo-depth`` property for such instances of IPs where the > same FIFO depth is used for both RX and TX. Introduce ``rx-fifo-depth`` > and ``tx-fifo-depth`` properties for cases where the RX FIFO depth is > different from the TX FIFO depth. >=20 > Make the dedicated RX/TX properties dependent on each other and mutual > exclusive with the other. >=20 > Reviewed-by: Rob Herring > Signed-off-by: Tudor Ambarus Reviewed-by: Conor Dooley Cheers, Conor. > --- > .../bindings/spi/spi-controller.yaml | 27 +++++++++++++++++++ > 1 file changed, 27 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/= Documentation/devicetree/bindings/spi/spi-controller.yaml > index 524f6fe8c27b..093150c0cb87 100644 > --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml > +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml > @@ -69,6 +69,21 @@ properties: > Should be generally avoided and be replaced by > spi-cs-high + ACTIVE_HIGH. > =20 > + fifo-depth: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Size of the RX and TX data FIFOs in bytes. > + > + rx-fifo-depth: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Size of the RX data FIFO in bytes. > + > + tx-fifo-depth: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Size of the TX data FIFO in bytes. > + > num-cs: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > @@ -116,6 +131,10 @@ patternProperties: > - compatible > - reg > =20 > +dependencies: > + rx-fifo-depth: [ tx-fifo-depth ] > + tx-fifo-depth: [ rx-fifo-depth ] > + > allOf: > - if: > not: > @@ -129,6 +148,14 @@ allOf: > properties: > "#address-cells": > const: 0 > + - not: > + required: > + - fifo-depth > + - rx-fifo-depth > + - not: > + required: > + - fifo-depth > + - tx-fifo-depth > =20 > additionalProperties: true > =20 > --=20 > 2.44.0.rc0.258.g7320e95886-goog >=20 --UgE4bvCQW0vdLD16 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZc+7UQAKCRB4tDGHoIJi 0iPGAP42/u4o62bH9auA0cpLbFQfJuRnboyt+bRlmjYajrt1AwEA9cNTkOvx7XFk wTlq8tEDLeLBdKNu/omg8lshMNWcsg8= =Adys -----END PGP SIGNATURE----- --UgE4bvCQW0vdLD16-- --===============6109833030624259504== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6109833030624259504==--