From nobody Tue Feb 10 00:00:35 2026 Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) (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 EEFD71D63CE for ; Fri, 7 Feb 2025 20:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738958990; cv=none; b=Yv7QGHXIRFBHS7exQB8yY+8SHaDYWRsMm2WvKVOFn/Z6q6CvJPxuCisdBL7mmSA5L/ZPp/qdhR00ZhRSXq0VgMhbYRa7rAZlTkz4jlRG2LEFbNp9gczMiFKVkA4YGKSD4ZlOZpU3QU9BHdCuyNjMS0TtWF4eonU6x9Q0UeVNTnA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738958990; c=relaxed/simple; bh=jRlTs2hPxFTMWzXud2pwyf/gDJQZpce7x7Xes5PCDq0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=onrzUbtY3Atu+4sgWjcGPC76DnHkPF57MsSC4FiV2UHc6IHWBwcI0SExC9NVhoOC8xk6rc+C1YL1riOx+GKVDiKf2/ATmvP8qPS2/ySg+4IA9DO/2YqAZb1zqqIM3hHEauj114lbneqNCviy9lqyKzxqfeOdY0iI0sBLwVuQMb8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=c/xQHjKJ; arc=none smtp.client-ip=209.85.161.54 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 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="c/xQHjKJ" Received: by mail-oo1-f54.google.com with SMTP id 006d021491bc7-5fa28eaa52cso1381305eaf.2 for ; Fri, 07 Feb 2025 12:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1738958988; x=1739563788; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=m4qOy1E2SWXTRLQzjAjoUUpkXvVJq7HeawRi11wv1CQ=; b=c/xQHjKJuastuL7F4tSshhnKVOt8W5fYRMSzu1kwH8f1mcBTUTV+/CqgYIjyPhbEk8 iyETe7xmqVbt3gFqi+cy9posN6t4MSxXkHVAqwE2ZND+0quXlkijyz63XB4yprJdgpjs hZXD3queVLzUTqNb7KxCVLSiYlyrDtU4QylpE0GrxiUhILKU3o2LTr0z4bBzTLe7Wkd0 LN+bK9OGbDwMc559RsNj3wS6cHHzO1c5yM7kV9R5MkPkL5IWyAbwX2ky5rRuiQApnYsH 1c1mnVo3mRkuayv4+rwjhc6OczSo0GGFPG5BQqM+HkUYtIq1J9yqxRjJZr9wESEwGS01 w33Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738958988; x=1739563788; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m4qOy1E2SWXTRLQzjAjoUUpkXvVJq7HeawRi11wv1CQ=; b=aUH4KWg0Ds2ieTcH4kfmeWAUhh41TZWXVHfSqrJENOBo0TdR3uxirrarkm0YukG1SF s3aoKEBkHUGIrfr0F5xQX7qPczbkqV0hsnmSlym3daROlFBnLAmBPpUIu6mnvZwxO/Ac behn/aWn+Mg4XSX2jXj/sSIe/JMksu0EWrpTWjvYHKQ64nstLhMFWdZYOFX7AoQAtBTl BADzxrnGLcvkvK2CVXIa1K/OeQAqAr0wBbdQcLdQwvAxgnsJsZSNbPtJZ248srnHZomB atJo4c1kaOuks8ZtyS831mrIjJnrOTVmH1/+KndQGIt413YVaCysvIlmKtLEYVI8WdhG 23VA== X-Forwarded-Encrypted: i=1; AJvYcCWjHrox4Nj7Zy8mZ2AO3VRS6eN1amOH08rQfGHSIJb2NZrII37/98D3MtsFAyE4NQqehup83aI/6uPpILM=@vger.kernel.org X-Gm-Message-State: AOJu0YwD7H4d8JHxZDj/MUekPFCnyY+EfVTLuC/e+BFNVv7JAD7tPBlZ /YMpEnP1d4OX8g/+IwSnXPFxkDI6Q3EJdauiS5uj0naDf2aLzBO+dKnOf88fZ5PpSJOplwEjdVc W X-Gm-Gg: ASbGncubiU3hX9MWximxpxCLQytPH8N0bgXjj84MqUh6PQU35UFz+CLUfEdiSYv+UsJ Ld+hl670YFJrHaZMpRNoOxmdtchnT4kCuC5lzXlzYJo2xz2mgBOVkMh9Q/6dKD785udatM9lJ1m UWDp1V26DMTSpptDjo+KMiCcFuVDZYLkks1OXMKkYhsXXdQW/NQTW6/qgmiX3eAmdN0qNiU1jnG 30kHnXsLCvSoX/UUech1yE5kyyZG7RyQrQdSpcdUlnED+hOV7sTMDNUaPm6nMI8fjcx5FwUgH1r frGAx7UxKWdxd6GKLISkZpTJYyF6/K2nEPhar3QEHEHMXWI= X-Google-Smtp-Source: AGHT+IG77ZOpZoqliQs6i/d86fRFOW+Nrx505QHjkxGWQhm1CMXLj+So9sv5ltnLehIXmgyoVX5BBg== X-Received: by 2002:a4a:ee14:0:b0:5fa:8925:3d76 with SMTP id 006d021491bc7-5fc5e5c755dmr2828112eaf.1.1738958988093; Fri, 07 Feb 2025 12:09:48 -0800 (PST) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fc544b08d4sm930387eaf.2.2025.02.07.12.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 12:09:46 -0800 (PST) From: David Lechner Date: Fri, 07 Feb 2025 14:09:09 -0600 Subject: [PATCH v8 12/17] doc: iio: ad7944: describe offload support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250207-dlech-mainline-spi-engine-offload-2-v8-12-e48a489be48c@baylibre.com> References: <20250207-dlech-mainline-spi-engine-offload-2-v8-0-e48a489be48c@baylibre.com> In-Reply-To: <20250207-dlech-mainline-spi-engine-offload-2-v8-0-e48a489be48c@baylibre.com> To: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Nuno_S=C3=A1?= Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Michael Hennerich , Lars-Peter Clausen , David Jander , Martin Sperl , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Jonathan Cameron , David Lechner X-Mailer: b4 0.14.2 Add a section to the ad7944 documentation describing how to use the driver with SPI offloading. Reviewed-by: Jonathan Cameron Signed-off-by: David Lechner --- v7 changes: none v6 changes: none v5 changes: new patch in v5 --- Documentation/iio/ad7944.rst | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/iio/ad7944.rst b/Documentation/iio/ad7944.rst index 0d26e56aba8862a8d2ff541012bb4681d05c7bb5..e6dbe4d7f58cffd9f700f931ad2= 641d336526129 100644 --- a/Documentation/iio/ad7944.rst +++ b/Documentation/iio/ad7944.rst @@ -46,6 +46,8 @@ CS mode, 3-wire, without busy indicator To select this mode in the device tree, set the ``adi,spi-mode`` property = to ``"single"`` and omit the ``cnv-gpios`` property. =20 +This is the only wiring configuration supported when using `SPI offload su= pport`_. + CS mode, 4-wire, without busy indicator ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ =20 @@ -106,7 +108,6 @@ Unimplemented features ---------------------- =20 - ``BUSY`` indication -- ``TURBO`` mode =20 =20 Device attributes @@ -147,6 +148,27 @@ AD7986 is a fully-differential ADC and has the followi= ng attributes: In "chain" mode, additional chips will appear as additional voltage input channels, e.g. ``in_voltage2-voltage3_raw``. =20 +SPI offload support +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +To be able to achieve the maximum sample rate, the driver can be used with= the +`AXI SPI Engine`_ to provide SPI offload support. + +.. _AXI SPI Engine: http://analogdevicesinc.github.io/hdl/projects/pulsar_= adc/index.html + +When SPI offload is being used, some attributes will be different. + +* ``trigger`` directory is removed. +* ``in_voltage0_sampling_frequency`` attribute is added for setting the sa= mple + rate. +* ``in_voltage0_sampling_frequency_available`` attribute is added for quer= ying + the max sample rate. +* ``timestamp`` channel is removed. +* Buffer data format may be different compared to when offload is not used, + e.g. the ``in_voltage0_type`` attribute. + +If the ``turbo-gpios`` property is present in the device tree, the driver = will +turn on TURBO during buffered reads and turn it off otherwise. =20 Device buffers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 2.43.0