From nobody Thu Dec 18 11:49:18 2025 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 039B21D5150 for ; Mon, 13 Jan 2025 21:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736802070; cv=none; b=JDxZ6+5Qs3dvZKj7VXZzy37QLAxPoej5JN+/1i9YmIjYihtjBDTsGpQaVN742kEfMkKXRuGDAc757QJCVUvXH6g38sX4ler8eSZ9CbwfoOGOTe1+NCIV+rhmDvp2M3+vrVELTrFknM89SfKO9ouGltwMa92ICpotq+Be9MTgK0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736802070; c=relaxed/simple; bh=jRlTs2hPxFTMWzXud2pwyf/gDJQZpce7x7Xes5PCDq0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qGKUT5DPx1zDAmZYVojbb3h29EgFQRS654fzOenEDiqJjkFFNypUPbGQQ6Bo3Y0BzxhuPTqi4PJozPPv/RlwaoWpnObGMk8rM+WQwAtTJpasCK3NvB0siKbzkFFini8EpoiZP2HlQlTd4LeWpZd5R4a8goWsAcJh+3OBw69I3eE= 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=FTab2Gif; arc=none smtp.client-ip=209.85.210.50 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="FTab2Gif" Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-71e565708beso2559598a34.1 for ; Mon, 13 Jan 2025 13:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1736802067; x=1737406867; 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=FTab2GifrSjdz1W7bjvBYjUilGHiDoz4r6Q9cZxQUjZT6/S4jKM/5e64KBeK6s6BiR JGeJ2PmIrk/0HUD3u6T5LKtUvO5/uuSCWJwHmP9gIzfNN/oum6nl+C1wf2mVnS+JdP3s T9esDyBsdsPFpYjWYkW4W9NrubDlJbbyKHOgxhF8sLo7bu4IN/tgVl/jh+Ns0XE+VlAC R6uw0cWjFPvco6Q0TJPA8UX97BVESQ9tU3lRqyO7C92sEP7uuIv7H231xIbO9jXwKjT5 1NH994K0aig/V0rXPYPTPJMgGTnUCbpsLUVAfBokesH7Vhf6yb8jd2tj2xZTw4H0rbU5 IzZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736802067; x=1737406867; 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=eeo1v7czs/fjjZm7uYDSAPx3lVPhtdU8ikRmv7zEOslPl4/wFhY+2eKmHFaKdtSfBp KYq29NgbTIdlk/e9fS/fM+qjOBBI2gKJQfAlddieVdUS/t2sTdrvwit4F2x5SdbBwj7n hFn6N56MX8qr2ro6jys/LvWxdvjeysVJkLIlz9QCJ9QCOScSPz/kQIytoeqwKS6g29rI W+3R3lQtRDMru1NQUo3k0AXaWxPw4ZNBNyuKShVKfpj1KUkbuZsCTj63BAXz0knH5wXk NMMfN4XE9LH3YD8hiXZ6Kc9+ZRT9dhk5raLnQExeql84kAsomFJi9EFB/fz1r+K1XwN+ WP0A== X-Forwarded-Encrypted: i=1; AJvYcCWnrcxzSotMbTSGih4wRmFfoiQS9Rr0fy6nvBhL8AzkAW6Pbep067wcxTkOAWW/NxBQJt8c+mQ37MYQl3k=@vger.kernel.org X-Gm-Message-State: AOJu0YyEolCyAOb3RMTt3ztlWaUZ6utiUcsDHstkRfYoOu+jZio2EN2J C3crdz+uXw9/XConK001RPSx9rxzXO9hMSqqXEIfsjDnmI5DnTi3SvMxYxhlF3s= X-Gm-Gg: ASbGncvHArC5urB/ez24f4BwuMweH3PKJFmIN6HLlCf3WLhUbzafq/aRxpHg0AaaaY7 Mwdu83kqLwXYbGsBxcABUKOTIGN1CzrAJIKFq86xJoTWkrS+MkqRqmq9C8YH0CxSW/wf6z7UUeF 1OPpNUpiuNUR/LXyOzMdRgiIGbE7XToGJGgxd8n+eRL0sZWY8j+NoApz3N374ZYQ/pdTqbq1b+X gzdvdR+15uYUxPq7gjM/Kesfm3WiR29PAlt0ACc67b1ycY+44eDnpxAzuO/csl4dIOLRvTATFq0 nxPSbUnXJzn5 X-Google-Smtp-Source: AGHT+IEhD0Vp5JdEuew98KxE05jR40/4fw1aRh9ZIYPvM+djmKr8mac14kyQAxtYZsi3oBGb27A3Bw== X-Received: by 2002:a05:6830:3495:b0:71d:5236:9295 with SMTP id 46e09a7af769-721e2eff802mr13309103a34.24.1736802066783; Mon, 13 Jan 2025 13:01:06 -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 46e09a7af769-7231855effasm3927744a34.33.2025.01.13.13.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 13:01:06 -0800 (PST) From: David Lechner Date: Mon, 13 Jan 2025 15:00:17 -0600 Subject: [PATCH v7 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: <20250113-dlech-mainline-spi-engine-offload-2-v7-12-e0860c81caae@baylibre.com> References: <20250113-dlech-mainline-spi-engine-offload-2-v7-0-e0860c81caae@baylibre.com> In-Reply-To: <20250113-dlech-mainline-spi-engine-offload-2-v7-0-e0860c81caae@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, linux-pwm@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