From patchwork Fri Dec 15 10:32:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 179164 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9174416dys; Fri, 15 Dec 2023 02:33:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCRk/IvHGiIhliqutGQMPGB16WnshUB2SsnLJpU3+OAJzaDTIuzDVxpZIVOu130VlzGWCR X-Received: by 2002:ad4:5949:0:b0:67f:43e:6307 with SMTP id eo9-20020ad45949000000b0067f043e6307mr3131836qvb.118.1702636389069; Fri, 15 Dec 2023 02:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702636389; cv=none; d=google.com; s=arc-20160816; b=Y+ryMVNDfnIci0JwKSD/Ak9d1HircrWy11QqWM03QTKwKnb+5ooE+xx/PrxLgK3nlp kpjmFoqkj9mZxTHpSIom6JrPsYgbgsCV0Ckt0MiSIXu9o5GWBfTH1K2by3cNCuUV1v2o UzIdLmvfan5+fGgY7SA+wrFa/ftImb6yAU5dH8L5Cp/142LQ7oh/sNo4cqiKQvLguZB2 ayB/mOQLzqlvO/85XuPjIJpOLLrSq+xKYE9lzUOFDSlYgT62S3crZ+ef9lDTMn0350QM +LpV3hEXFiwqTeNNg5E4PRuTbC9FDjxHS23r5thge7kUVODAa3ThDJ+66rEww3piovwf u0Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=w3bsA3Hq1tZST6LLgdgUCasdE4/LKtqWt/9/psp4mcs=; fh=Tm+8M72PaPwpMzLHjVwAxS23Yl6BOUtV29n6VJ0pvU4=; b=vqiyFOWWvDPjiEELCuqAptzMEpHymW6/R3nT8tVnfKHAGdw6yPdU4a+VFhJkz9qFtD +8wDgP9mnQ3fsh8q+/NPis/uUlHI0ADGZySJM68xfaUKeTgxbISwobeWE+mRJJ036brA nZbkUMHlWfwK4E7RKFgO3/TFhPVXHXqooHvNmNpHn0DR3p8xWY6U3Aod29YvjT2NSMi/ 0wMXIEp9gfpuKvSfr9Y3QRbv4y4pYS5iNubveh7hHzhYNpWKf/wg/GOVpNcvWDi7fqOK zp+1zSYjeIpQ2h7u9LfjBcAJBoTCu4G/kaO9h/D4EHgJaUTd2XywhMMyUiCPyl2YNAm6 Wllw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WkGmsWB6; spf=pass (google.com: domain of linux-kernel+bounces-758-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-758-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f10-20020a0cbeca000000b0067eec318cb1si7615936qvj.288.2023.12.15.02.33.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:33:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-758-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WkGmsWB6; spf=pass (google.com: domain of linux-kernel+bounces-758-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-758-ouuuleilei=gmail.com@vger.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 BD1CF1C230E5 for ; Fri, 15 Dec 2023 10:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F065C250E3; Fri, 15 Dec 2023 10:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="WkGmsWB6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 A06B720305 for ; Fri, 15 Dec 2023 10:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3364a1451c6so247129f8f.3 for ; Fri, 15 Dec 2023 02:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1702636330; x=1703241130; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w3bsA3Hq1tZST6LLgdgUCasdE4/LKtqWt/9/psp4mcs=; b=WkGmsWB6mErIuSPKRgwJk99QrrPKhdO4xeWDYJi8dCV8BSsfLGzVH0a0IIWPJuNV20 rGJ8eIZ37dboX9DG4b3t97m6+rnqUl+Ex6i9fU1AwD5rFENzDsuOlkNJimpjP0wndB8w sN0rLED3t4GM8+/h66lycMs0PHsj2AVEOBmIQYe/+wtcDtvkY0cvZ/SiT4tUGanHvCjX ZeASR51Qs4T78kqVuPMODnrVGABn0OqnoTkAi4JuTj0DbtGhgfAcOseTDA4UikT6Klnb 5Agp4w7Y1BBw9vD9dPDVqWVRrAutmpSwXA10I37AHw38A5wgFKY7mU1Xj6gnhFN7K5uH kAHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702636330; x=1703241130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w3bsA3Hq1tZST6LLgdgUCasdE4/LKtqWt/9/psp4mcs=; b=h0nPiUB73+SNirmcL5/zfcB3tkaVaIBSWgbfPMXhzR2uDG+XYtTsmHcFlvpgHhvJmo zl00tDrB+9wdWoO7Jk4Bq0qc9IxGpORrBnwAHZR7ov1slDq5/tAyGWdrNm4oDnQqGkvT TGV7dcOm1gYpizHjeq1H3n3z3KkpJllDX36e6+7rCLjY2OAD5VcOsIUlbrwpS+Nw4Ngd VVibeOZuQJEMeN5mui6cllQANdaGD+695Oy4DvXXZgVfEaYzvkhXsynrPlsarA4BTqNX zAYyWFfeJ2n+rWMeOfc6jxceuzLkmTCDrSUiqATmyrheMKrADHIytVJqmMDuO/+0TPzX 3FqQ== X-Gm-Message-State: AOJu0YwuqX42+ujbArl+VlO3oVRFaWfwCiImQ8GBu5C9hsci/TcWnulA SPr8K2Sg8K333CfIb9z6ZYgIiWLKbl3xTyoeUbn2Yg== X-Received: by 2002:adf:ebc4:0:b0:333:2fd2:8146 with SMTP id v4-20020adfebc4000000b003332fd28146mr7175355wrn.99.1702636330773; Fri, 15 Dec 2023 02:32:10 -0800 (PST) Received: from localhost.localdomain (abordeaux-655-1-152-60.w90-5.abo.wanadoo.fr. [90.5.9.60]) by smtp.gmail.com with ESMTPSA id q11-20020adffecb000000b003332db7d91dsm18421015wrs.39.2023.12.15.02.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:32:10 -0800 (PST) From: David Lechner To: linux-iio@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: spi: add spi-rx-bus-channels peripheral property Date: Fri, 15 Dec 2023 04:32:02 -0600 Message-Id: <20231215-ad7380-mainline-v3-1-7a11ebf642b9@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231215-ad7380-mainline-v3-0-7a11ebf642b9@baylibre.com> References: <20231215-ad7380-mainline-v3-0-7a11ebf642b9@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785343654236330677 X-GMAIL-MSGID: 1785343654236330677 This adds a new spi-rx-bus-channels property to the generic spi peripheral property bindings. This property is used to describe devices that have parallel data output channels. This property is different from spi-rx-bus-width in that the latter means that we are reading multiple bits of a single word at one time while the former means that we are reading single bits of multiple words at the same time. Signed-off-by: David Lechner Reviewed-by: Rob Herring --- The rest of this series is ready to merge, so just looking for an ack from Mark on this one. .../devicetree/bindings/spi/spi-peripheral-props.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 15938f81fdce..1c8e71c18234 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -67,6 +67,18 @@ properties: enum: [0, 1, 2, 4, 8] default: 1 + spi-rx-bus-channels: + description: + The number of parallel channels for read transfers. The difference between + this and spi-rx-bus-width is that a value N for spi-rx-bus-channels means + the SPI bus is receiving one bit each of N different words at the same + time whereas a value M for spi-rx-bus-width means that the bus is + receiving M bits of a single word at the same time. It is also possible to + use both properties at the same time, meaning the bus is receiving M bits + of N different words at the same time. + $ref: /schemas/types.yaml#/definitions/uint32 + default: 1 + spi-rx-delay-us: description: Delay, in microseconds, after a read transfer.