From patchwork Wed Dec 13 11:21:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 177896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp7701204dys; Wed, 13 Dec 2023 03:21:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWwGocQz+3orwELUYr8Unj3WXb37VvK6k65aA1aoQ0vElgvaFwfVGHW0Gratu1bMGVFzgM X-Received: by 2002:a05:6e02:1b85:b0:35d:68a3:a659 with SMTP id h5-20020a056e021b8500b0035d68a3a659mr8747952ili.16.1702466497723; Wed, 13 Dec 2023 03:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702466497; cv=none; d=google.com; s=arc-20160816; b=XT59RTyw2bNkUz40K1stckdHm/SWcYmZyoIr1Jag2MWKyKyFh7m9t5bZmKbYEkf6HF 4vGY826C6tvX6J80Ejnaw0J/+qS/HMdSiwidQPLVtq1HpEF1S3amL1mHRn+0r2hqciWG 4LDSrQ6kAhrhzu+TnnUnRwlxC5J1bzAA4Vwppt2wD8XXAHNZyLVUX8gVbaXAX3rjfnAV e8EwPhVDDCfd1yfhap0wUuC8TrIxJdJie4DsPcYNMqKmlpmwqv9MQT7qBlCijuH/0mwK 1sM6Q7cZws97EBueD1oxB3KyQ2j18QDii0IaMnRc2SDZPDkYtbxvD4GEBftm37QmJ1Hv ZfXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ev6Cfv6nDG3qQtZztAusOez9MHzFknUz32Jp+6osCws=; fh=PzUYntJUzztNSyF9vKmQYzPjTFtJfGfoquScFSUOxzM=; b=GU4Pl7t43XsRFSTX7BK25m3fSdG4zPxbRW/LI74UfCqwDIDmDF7mobmuq+b2gUI1/2 7mUFHM2ghL2LGdAS22o1PCHYwUOCtKEFBJiXO9pGHt1XeAeZ8NqsolavH0NZwfn6jRfS pmmElCRJYiTV62Ii8Qx/rO2MMhN2EYOKX65g8uTiWyiiVuTJiFo9eJu/zr6LHdbm5607 /hnfvBQmgCI+GPcLF5jrJN0cdnUap4emsXWkxsqt4QYO+MFWamvautLaNSSNp0gCtwUi 0aNDUw1JE6vJvlTFbtic9pIWZ36hb7gHkB0V4EkANw1A9zIxB9h/n2BJ4dC3hYlbXZYU XQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=pRfBouSm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z20-20020a656654000000b005b8f446408bsi9205054pgv.422.2023.12.13.03.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:21:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=pRfBouSm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 693EF8045C5C; Wed, 13 Dec 2023 03:21:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377256AbjLMLVX (ORCPT + 99 others); Wed, 13 Dec 2023 06:21:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233270AbjLMLVW (ORCPT ); Wed, 13 Dec 2023 06:21:22 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95F47D0 for ; Wed, 13 Dec 2023 03:21:27 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c0fc1cf3dso69646425e9.0 for ; Wed, 13 Dec 2023 03:21:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1702466486; x=1703071286; 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=ev6Cfv6nDG3qQtZztAusOez9MHzFknUz32Jp+6osCws=; b=pRfBouSmfIk7+UkwhgR6609sL0nJpVqW53h8QK576q/yEA96HUnIwioeKgyH0wVWOo C46X4jqbdAgx75E3WHQknWSFL+qX43jnM8x7fp9Ufvg+fTlN0c3YICO/LbePONGc6bjx vnhG28i8msV7nixLZAq+1N0UUT7r+Tu70gvF+va9yol/ld93W7NfQTxHzHT0xdDILB8d twryLQxoIs8n9sJg9XOpm290IcycOYkctr+/gWJRRlZKKuzg3phz6A7pMic9D61AK5B/ SBh8olhH2Gqh02XMFuz+jkHr/yD2lYJPGtkNNaddltnHd3VL5w9/ENzPcFJxTLXKzkVr OjFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702466486; x=1703071286; 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=ev6Cfv6nDG3qQtZztAusOez9MHzFknUz32Jp+6osCws=; b=xLCuLgnslFI/EpoBAjSGcwMYOIL/SldMXiVgh0X+rfae3q+Mv6HBhtFvz2mkbvNaeF eAJib6sr+6xhJmi66Ljh8iY1R6dFn7gxLsXT04ntA5YwVDsgrO8KH8VC6Ak0oJj6J27/ GaR8S7C/nAw0/Ir44pcWbhjizQ1LNX9tPa/Z1piYqnG+H8QD0XhCsV92orKXLMYQzZ/7 xMg/OB1VqXXYOfgZVe3CxE8/bfw/cJYDUuofMdogrO2m4Ke4HTrDaIYRhNyJM22Iip7e HgBUzkfPDd6vKwoVoTzXZUkhC0qT2m2UVZ3clnv4DyZ/kH4ycVSBZnVgwdJ4bn5nnoBm xogQ== X-Gm-Message-State: AOJu0Yzzngyrc03dN1SDZUWNUPcAu0qrL3XdvqJBMfDD8tEXXYaAJVKo Yp/1XnoUqnRuFkdDeOiAg/526A== X-Received: by 2002:a05:600c:21c7:b0:40b:5e59:c56d with SMTP id x7-20020a05600c21c700b0040b5e59c56dmr3727083wmj.151.1702466486079; Wed, 13 Dec 2023 03:21:26 -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 m29-20020a05600c3b1d00b0040b3515cdf8sm20097617wms.7.2023.12.13.03.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:21:25 -0800 (PST) From: David Lechner To: linux-iio@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 v2 1/3] dt-bindings: spi: add spi-rx-bus-channels peripheral property Date: Wed, 13 Dec 2023 05:21:18 -0600 Message-Id: <20231213-ad7380-mainline-v2-1-cd32150d84a3@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231213-ad7380-mainline-v2-0-cd32150d84a3@baylibre.com> References: <20231213-ad7380-mainline-v2-0-cd32150d84a3@baylibre.com> MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:21:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785165510605226635 X-GMAIL-MSGID: 1785165510605226635 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 --- v2 changes: new patch in v2 .../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.