Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2287437rdb; Sun, 11 Feb 2024 22:17:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZhrbuXt24XGx5BF46YNbZrFmu+btC0ybsaCdvmRN/Ngtjn0gVm/0QD/69rJ4NxwIHNq31BfAyZppucL9P7iR71Ez1EDqW17k7pezgcA== X-Google-Smtp-Source: AGHT+IFvMruLaVFks+zdqukg6Hn0R5LuaODcpjqw9sApIcOg9VDXhzYDFTyiK/rq/8MAGM2i/xdQ X-Received: by 2002:a05:6214:1c05:b0:68c:74a7:9e21 with SMTP id u5-20020a0562141c0500b0068c74a79e21mr10999126qvc.3.1707718652546; Sun, 11 Feb 2024 22:17:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707718652; cv=pass; d=google.com; s=arc-20160816; b=d+2rzs5feLNoV+MZro1WHwH5i4zAUEGN1ALBQyWpeRsVDI4y3A75dmrE3Ul/k3XN1N sf4ie5op2a51QGT8x+fjMyhmAz49ZP4OY1QQu6CxSQr/S5PbP8Gmh5vP1HChqwlGV2Y0 3OMOV0+hV+dSqYJwq6qCJDoEc4SAq5Z4tsuZ69LUL7SJuzJ3/QueR5Fxej8pK4nc0ru5 wzLiWOXfzGU39Oy6QuoX022Kdqt9Wf6+uaXcWDP41ZHmMKC9sT/pi36DNA+bcUUx340z jRxuk5rEF4Io3a4xNLm8kh+V1SpAm2G6JLwK6O4U7v3wq1ZJiG0nDvOJ3DxYz2owL56O UaiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=b+WNd/f9UKS2JvJprk002/RUuWpEUM6bLJ0kQf3agDo=; fh=1rLKxzwRujog0Au/xDUzR8OJxzIIVi51d4o5EB7jvdU=; b=JekwCH/iqhIW3j+ICfRiFHpjCie7LAPRhqdnizrBWLGqHkcZ+glKI0QSGkao3hBLMM MqJ4x9JqLmMODHBdc4N6pqBbuyCigy/zXNyLI8UY4X9I3PrevpR+5TJfBP93UWorm9P3 Vd3XsLwTLbgZAWSDVxJPC+rAOn03U3ba6M0ywZkbSgLZkPHA+XfBtyWOJ9I4BjjxobOk RV+NnGKpK0yIobiZaks9aBvUEbzEuoyDx4zcYk6ehAHaa84VNO2u1+uvQ2sShn8IpfOV lY0WcB6ghLaG8eWoDOnThb9GLtkt+qB6PbKMIiVKPNnou07OCcqR3b91l0mMrNK4aoFP YGxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O2CKwP9p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-61116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXRWtIQIMyO2cWwYIov7qw84OZOETPaN77gDSQPjX4QCfaK0D5eINAEZxzscNbMiZ3zlQTSVDQEHBteCo+cXwOlCIttUGWtHfJiS/uvTg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q8-20020ad45ca8000000b0068cb4c6ecdbsi7811043qvh.317.2024.02.11.22.17.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 22:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61116-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=@linaro.org header.s=google header.b=O2CKwP9p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-61116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 1C3A51C21E3E for ; Mon, 12 Feb 2024 06:17:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B87457483; Mon, 12 Feb 2024 06:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="O2CKwP9p" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB4686FC9 for ; Mon, 12 Feb 2024 06:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707718643; cv=none; b=eG7q79vNvxS0aWIcY6BEP2V2tanzWLciyFYC6ZXjqaTrQFqRc0kXSfv/9hcxJNVca4lG8eyblbGI4xR/ikJLZAZLYLevrjtZsWpGAfIleBXNsSFPOe/3q7wJNZ9h/WwCb7GwgTmJ890Br0uipWAoR6/B3uCsxO370kdHZZPeX20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707718643; c=relaxed/simple; bh=wC4Rk/S2bZqAswL5Eum62/awDJqfLo6FVUpkq2UC/Fk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HEtZAWGcm/rcnIplTHEpc2PB/UoNNbCmo9zTbZbK05y46uQn4bU2b0iaJT21EUCwv6Gfm1eFWuyQvIT8YjheMjNgVMJGO0yYkOknfkIlpXGK2Rcqn4D+8/im29Shvfc19hpgQhCodgjZKeGZ6gCxysXrtEym6x7raM8RXIjRRj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=O2CKwP9p; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-410d57a533dso3639535e9.0 for ; Sun, 11 Feb 2024 22:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707718639; x=1708323439; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=b+WNd/f9UKS2JvJprk002/RUuWpEUM6bLJ0kQf3agDo=; b=O2CKwP9pRrYeyjeIlG3uGQrQqmNUaKhMJtePHr/jX2qaOSNJFlnhvC1Pf+HkURNBxB Q/14nVF2Wk6T3mXx/PwUNfLwaXD1MwvdUXrNNwszaT606GzWRjn/V4yByHB+lI9mPdFn dMHNtraDGYqVeRx1/E/rI1+XUB0syRIJxOHd6JnhvjRGgrajUzB4UiukUKouFS7QPy8O GfgaYdqUhvQ7yCFfEAoE3UW2v8bPdSduDxxjn0/l2H4ds/WpjqODaXL/uaBl0Npejhkw cR7g8aB4CLKTipnuEHrkV6lx1kluXcoUL0QA2DJcSwMEq/jVmUHK4gyEOmrLZxLJsKWL grLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707718639; x=1708323439; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b+WNd/f9UKS2JvJprk002/RUuWpEUM6bLJ0kQf3agDo=; b=dC4jcMEMQkAlN8A0FVQjCSN/NLZ6JTYhv0pWxKTHZn0+IXUAcv3C8X4+nJwSooBi0W NvYhpCDuo1JcHjm1RDVwT3GcffCAFOfMF6KLXZgcNaQvuPXtKJ3Vn4HHF5ChE2puX/5t VkfZcSix1uzq2V+4uUyXObOxZyFTrFPWaRXwyn586c75StxO0b67LNxYhGaSlKz2s5x6 J1QsR/1xk6uUjnSA7fiQzsxfoR4gjUpckWkZg7dOtARj0W/ksp7ShvE4/YA8l/hN8b2g g85HvvdRlc2u6wcdWpPwSBc1FQkNZUqL6XQEJngYoQFtahEhMB8vbEN2R79hXBE04fk6 xc5Q== X-Forwarded-Encrypted: i=1; AJvYcCVRl8voLz8TBouANLrd167wofWSSLTJwyPPe5tYrOeEEJFZMX2x5hFpSDk3On6KMGWNvKKb02kso9OnKa/+fjkD9BLu4ZuiZFghUTRD X-Gm-Message-State: AOJu0YzgpzFRv2RUVVO9AMuAB74IZh5sFZKTQkFl1vxCyfCgIpptGzsr RlBoPLzEG1b8yFvVZdbaijtABO4iQXR5h10uP2kpBQBlAF8Pq4ywjax6/GsJ7HM= X-Received: by 2002:a05:600c:3150:b0:410:e95c:9490 with SMTP id h16-20020a05600c315000b00410e95c9490mr411370wmo.0.1707718638843; Sun, 11 Feb 2024 22:17:18 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVRD2NhVgORBiVkh5cz8qgqWl0sLqW/Lw2609YICdpQgMjYF3eEnbQZ2lsvH57C6ODcuBuozJhSd23gGxcFkHxDT7Gb8GlptwjteD9BJx/xtjYhERaLGJp9MIqS6PK9G+KcTBihhEc1DJeMsNPzjazS6rVn4VWC7zKcY3FYZ4knrHFbzMFjjfSRg9WDkX4lh7fEOEgVNpeW8fORd9eighunRiWFp+VGs+IZLIr97cmN6fiG0fFBtGkIAk8ZNyAMsdAmT0vTfbRikgISDCLneRLtB2uBCf0zdSihZSEeyqdFHE6LvpAPgiTCUxTTQAGijxa0cmRH+aNTl9AlkAWJ7ZHGRHdVj0evj9MkiVrFBeYgFKOTQ2FepEjnOn1bVZiw1CwGtwRrsPbAxe8WrNLbjiy73SnJjNg2+q1pmbKUO/8W2wwhb5b0pq8rQ9nqSMEpluQiMYw7x88cndzD4mZ4d3fbkvZLB175MM1eKgZ5Yi07d84f8BZHBGyZE7D7iJacwuKcetj3JH7e+dxlAUvGe3rc123ofOArNkUpmb5Z7RkqNGVjqz9Gq5zWXzMo9QHMjV7jS0z3nBuTJR6L0xN4xZPud1hwIjTDSDpq+rsRo+D27+NsthLX6OGI/lDF4gRzDq179lOcfA1FBlyA3mkfiWguou+HpmifkUKH2SEcee62TgDniL81DvY8eAZlboki Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id x16-20020a05600c2a5000b0040fe0bb761dsm7515815wme.16.2024.02.11.22.17.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Feb 2024 22:17:17 -0800 (PST) Message-ID: <828d9947-ee96-4c2f-b856-0fac3640c863@linaro.org> Date: Mon, 12 Feb 2024 06:17:14 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/12] spi: dt-bindings: introduce the ``fifo-depth`` property Content-Language: en-US To: Krzysztof Kozlowski , Geert Uytterhoeven Cc: broonie@kernel.org, robh@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.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, conor+dt@kernel.org, devicetree@vger.kernel.org, arnd@arndb.de, Linux-Renesas , Wolfram Sang References: <20240208135045.3728927-1-tudor.ambarus@linaro.org> <20240208135045.3728927-2-tudor.ambarus@linaro.org> From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Geert, Krzysztof, On 2/11/24 13:49, Krzysztof Kozlowski wrote:> On 09/02/2024 18:13, Geert Uytterhoeven wrote: >> Hi Tudor, >> >> On Thu, Feb 8, 2024 at 2:51 PM Tudor Ambarus wrote: >>> There are instances of the same IP that are configured by the integrator >>> with different FIFO depths. Introduce the fifo-depth property to allow >>> such nodes to specify their FIFO depth. >>> >>> We haven't seen SPI IPs with different FIFO depths for RX and TX, thus >>> introduce a single property. >> >> Ha... >> >> Current documentation for the Clock-Synchronized Serial Interface with >> FIFO (MSIOF) on e.g. R-Car Gen2 and later states: >> >> FIFO capacity: 32 bits × 64 stages for transmission and 32 bits × >> 256 stages for reception >> >> Initially (many years ago), there was some doubt about the validity >> of these values (older variants on SH supported 64/64), hence >> drivers/spi/spi-sh-msiof.c still has >> >> .tx_fifo_size = 64, >> .rx_fifo_size = 64, >> >> Probably we should test and revisit this... >> >>> --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml >>> +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml >>> @@ -69,6 +69,11 @@ properties: >>> Should be generally avoided and be replaced by >>> spi-cs-high + ACTIVE_HIGH. >>> >>> + fifo-depth: >>> + $ref: /schemas/types.yaml#/definitions/uint32 >>> + description: >>> + Size of the data FIFO in bytes. >> >> I think it is prudent to consider the asymmetric case, too. >> Whether that should be just two properties ("rx-fifo-depth" and >> "tx-fifo-depth"), or also a third "fifo-depth", I defer to the DT >> maintainers... Thanks, Geert for the insight! > > Since most of the cases FIFO depth tx=rx, we could go with three > properties and: > > allOf: > - not: > required: > - fifo-depth > - tx-fifo-depth > - not: > required: > - fifo-depth > - rx-fifo-depth > > and probably dependencies between rx and tx (see example-schema). > Great. Thanks, Krzysztof! I'll give it a try. Cheers, ta