Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1205157rdd; Wed, 10 Jan 2024 11:53:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPycyJN8ANsP995f0UpJMKzQvUgbpiGVbXnVJ7bvV5xubvTyu95MyCPM0rQkjX2pKlDL54 X-Received: by 2002:a17:907:3f25:b0:a23:6075:52a2 with SMTP id hq37-20020a1709073f2500b00a23607552a2mr40725ejc.6.1704916421432; Wed, 10 Jan 2024 11:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704916421; cv=none; d=google.com; s=arc-20160816; b=o8VJa3144DBGIEavk2ZuVdQaUECUBjhYdCtqLR+WQDPRlkk7IxKJiUnzSErGWrbvQq Ffw5wmwV3OYoCTHTNv6BNaZzk/jmN2z/i67/1mp2hDn19jYxF4f0aqxQpQ+et7FRZD+D saae5RTNSXlZWKxG94xkkVOkpDc710338oB0SbVRh6wQNWFFfKlTSwtPWaduFjfGfmBa pGJJkDAjdGlmL1xxDPtxIywI4HXZCkhz3q4UFquHMK2QoV2uLiJEBssBNzpiB33vwnJ9 GWoB7Vk7LmMAvfOnu2lJh910RRj9LXaz3znnv0SyuSTdMwyjs4LLRu+ogEfRo9skG6Yx owZQ== 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=AA0bcNe9/eac59bnZ/IUUlYB3WuV6EB6kCsXeejEFVs=; fh=cIqT9NcZdjUqupo3CRF2zie7E78k65IMo1it3Fi0alA=; b=yITa3iqsGTn3PxvV7xz/YfFaUAyiQqrCGL5AbfrVY6eSv1wO9fsPf4uDNzZHclJ9Sz mckas6dajGQz4uI0suA+JGokOeT6ympI5NOt8G98dCuLqYYg8jo31rmN7S8q5bb+KkHl sA4PKgl5WFTbGGeo4HAR9SBtP5u8znKZ7y05A8LjWvj5owmuJBcbyZ7UP0uIi1Yqxboe LZG7QZjWqJW8QB4kqW9HwsTrZpEYcbGzyoSzt2vP0uDUK0k8A9rqog5MRgrMKYxZEa/O f4KTvSBt48bWuJgbevxwSrChV4NrxfHu8XZiQ0IApQ9EYELQDZeA4uNcnoxr8C/b+FLm icag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=02WsKl4v; spf=pass (google.com: domain of linux-kernel+bounces-22682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22682-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t7-20020a170906064700b00a2af14a5731si2002851ejb.15.2024.01.10.11.53.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 11:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=02WsKl4v; spf=pass (google.com: domain of linux-kernel+bounces-22682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22682-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3389C1F23A21 for ; Wed, 10 Jan 2024 19:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF2AC52F78; Wed, 10 Jan 2024 19:51:24 +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="02WsKl4v" Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.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 6ADD64F214 for ; Wed, 10 Jan 2024 19:51:20 +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-oo1-f47.google.com with SMTP id 006d021491bc7-598a3a5bd36so280772eaf.0 for ; Wed, 10 Jan 2024 11:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704916279; x=1705521079; 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=AA0bcNe9/eac59bnZ/IUUlYB3WuV6EB6kCsXeejEFVs=; b=02WsKl4vaIeUkHFh469ekUOkLLs5JbPq5RX9EcQS5BrIbbISSd++VW4XhrP/bHsz+0 ZHghSUVfT6+KTiNlvBk0KB3tiAosRCdJlqhtkK+IaGb7hrhkCxNYnhZHS42VHFmsza++ 093De/0cvuY4EJc6Iv528DvMX4Q9V+3U46Md5bl8KU6hHJaE3I7Q5GVadA44pZr/0ao5 XAfnkbsO2ZM+iEY+7R6mX/4V5k+AKMKs4QFtj70CDopfcm2jbN65/f8pHF8toDUPKfIX K2PvhHDI7uTufif83DZcj16VGjvLABxyjhMSBTvxwAaJwUF8FSarp8KXf/3Qpm1dfvqZ Yp0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704916279; x=1705521079; 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=AA0bcNe9/eac59bnZ/IUUlYB3WuV6EB6kCsXeejEFVs=; b=pdzQJjyiM0wCKUUiPxNVFy0QBBE4cHJWcVtrQrPhImku+7tXPCQJ6jUQDAmh/SKnnw 6i+tJajZ7CcBwvelY9AA8jEmz9nWW7C2FCjj3TRyZkMvFnN5EnxOnguXovbvRLj1MrgB KNaoOcAuedEhWd9pdFODXhxEicE6g3m+SBMFt9+NuUqhmITO7CwuvwFNcL6b5m3wfSXa mnGTjeGXuvMea4p8f1vXVlFfHj/DjDZtCgi4zbgo0QBDx/EakrZLfYRCS3jpDsZjRjOq kBgSeSsGIgkP0kuF6fHjVzjC63tLn0Z4SD45M3gMqCgGf4S5AF9/OVGvXR+mjLHwwhaR rFFA== X-Gm-Message-State: AOJu0YxWJmjHD4lnsEA/ItSf2NjVW3a5pKha/mElBelXIAL2B1lH6fuL ZNqBSmZtRLQgcEsnj5zLCTVIpwTwMM5Gdg== X-Received: by 2002:a4a:58cd:0:b0:594:cea0:eeda with SMTP id f196-20020a4a58cd000000b00594cea0eedamr108844oob.2.1704916279403; Wed, 10 Jan 2024 11:51:19 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 187-20020a4a0dc4000000b00595b35927a3sm938513oob.39.2024.01.10.11.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 11:51:19 -0800 (PST) From: David Lechner To: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Frank Rowand Cc: David Lechner , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Jonathan Corbet , linux-spi@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/13] dt-bindings: iio: offload: add binding for PWM/DMA triggered buffer Date: Wed, 10 Jan 2024 13:49:52 -0600 Message-ID: <20240109-axi-spi-engine-series-3-v1-11-e42c6a986580@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> 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" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit This adds a new binding for a PWM trigger and DMA data output connected to an SPI controller offload instance. Signed-off-by: David Lechner --- .../adi,spi-offload-pwm-trigger-dma-buffer.yaml | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/offload/adi,spi-offload-pwm-trigger-dma-buffer.yaml b/Documentation/devicetree/bindings/iio/offload/adi,spi-offload-pwm-trigger-dma-buffer.yaml new file mode 100644 index 000000000000..748cfab19eff --- /dev/null +++ b/Documentation/devicetree/bindings/iio/offload/adi,spi-offload-pwm-trigger-dma-buffer.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/offload/adi,spi-offload-pwm-trigger-dma-buffer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI Offload with PWM Trigger and DMA Buffer Data Output + +maintainers: + - Michael Hennerich + - Nuno Sá + +description: | + This binding describes the connection of a PWM device to the trigger input + and a DMA channel to the output data stream of a SPI Offload instance. + + https://wiki.analog.com/resources/fpga/peripherals/spi_engine/offload + https://wiki.analog.com/resources/fpga/peripherals/spi_engine/tutorial + +$ref: /schemas/spi/adi,axi-spi-engine.yaml#/$defs/offload + +properties: + compatible: + const: adi,spi-offload-pwm-trigger-dma-buffer + + reg: + maxItems: 1 + + pwms: + maxItems: 1 + + dmas: + maxItems: 1 + +required: + - compatible + - pwms + - dmas + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + offloads { + #address-cells = <1>; + #size-cells = <0>; + + offload@0 { + compatible = "adi,spi-offload-pwm-trigger-dma-buffer"; + reg = <0>; + pwms = <&pwm 0>; + dmas = <&dma 0>; + }; + }; + }; -- 2.43.0