Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp837482lqo; Fri, 10 May 2024 17:51:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7uSNRi1ndTOfYpdJ3Uvf66aCGMhElj61LiiB3/zXyuuJZ8yF6tX0cYNx3IeLSHAHa97gMquLuc99o5pP9g29T6Cb5MSEIUiajPQP2bg== X-Google-Smtp-Source: AGHT+IE04rGtNI+xXNkbKyifCFPg5XXDDelBfxaBk5HuZi5aHMzQ+5nYnsgAl2xBjotszXgHdBI1 X-Received: by 2002:a17:906:eb02:b0:a59:9b52:cfc5 with SMTP id a640c23a62f3a-a5a2d5cb3cemr233055766b.37.1715388687774; Fri, 10 May 2024 17:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715388687; cv=pass; d=google.com; s=arc-20160816; b=oE/YFAGZ6ZEfQ708aDAKAOqBgODCCUFBJC7Zh7wdwJCjy/9dU9IEt6hM9HR1lbx6As 0mXCVpP7R2g/txeTO9BG04LHV+uh/gXyzWy9Q0x5YP+nLTRvB1xRRtHze+cnuYL7fZY8 mdk3tNG3uC63x/3fh7EtcEzz7c2Q7qb9wZAlL/ciUZFcJX8Xhznstei+ZgJzVl7upCTw CKcKDUGh08gfIAPoOsBQt3Ff0P9wb2qNd7fkdLFWw2INXPUMmoPQINfrnxIZbTO5b9SZ kPHYitjObpLGL2YoDp0V1clM8MCIMYME2Ifp05cQXK0zlI/KtTZGvEIQI4St+tiUME4K O/YQ== ARC-Message-Signature: i=2; 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=S0IqckUIZjVVxXVOxgac6w2cx3AmMbKz+eZNoT7XiC4=; fh=tpCTzLByPnLe0kYoTBt6pRjTfFwqdYT7YP78oypbs34=; b=IYJjf5cCJsXK8Ro1M4+suvbICx8G30wZgJPCS1V/VE9qkcN6sFDvmixG8zyBftllXa ODdZ5Ulmqf3895q7LAdOCIrobycwX2p8KWG5+Tucchtnj752bv84MJzXqsCSBSc2oHvm d3QryMaAClts6WmdPrZ5UZlQOtxDLod5zp45RRd2FmU6kkGdn6GM9WI6ymvkIXfAm+ug HSA9WuXcpledNkRqPxeOikgEyj1CP/em332nFepF9qcPG6GOxtI8Rauq83wCCNlXinf8 kkHJy+dhu8yIVkK8dUgU3PZPpUnviZduiOUCot9wKqfue+psZ9j3uMjyVTaIsQ5ji43N fBWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=bNd6Zxbz; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-176328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176328-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a179466ddsi260599166b.77.2024.05.10.17.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 17:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=bNd6Zxbz; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-176328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176328-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 82D781F22F69 for ; Sat, 11 May 2024 00:51:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94D591CAB7; Sat, 11 May 2024 00:50:06 +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="bNd6Zxbz" Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (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 1921B14A8E for ; Sat, 11 May 2024 00:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715388605; cv=none; b=ErqschwigEpqI60llgY8JqlNUQp6rWvEUTylkuFUi6+IwNWkCRpKqkhvlS2jDeXRqQWP6bD9DeOTbPCQUMfiMeU55k4q050eYy+OBpP0PzwH8i/L6m3cfpi+illcXfSjnAI3/xZ5TzXIb5+B2+q2RWFE6m5T5YrguHSwSlUw/Cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715388605; c=relaxed/simple; bh=7uQzDb4mHzMFAAji6LQjuiHftGdIMfQwB9bGqhKl+nI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KfhfWu/vEmQodKrscWH7v3wLVTI/gQ9ed6UvcmCaP9NEarsFFAYINPi3Pl0OYh6/X9NjHwrjrxEhPJkj+IZ3d94NrWoZHa/5Ph6KVo/BDKERz+7Bwb5GeYcXHaotP7FqBZHs7f3DDcb4C+9P8D8yTPtAZ0IeKpDMkZcpTnDp2fc= 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=bNd6Zxbz; arc=none smtp.client-ip=209.85.210.48 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-ot1-f48.google.com with SMTP id 46e09a7af769-6f0f07746a4so595310a34.2 for ; Fri, 10 May 2024 17:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715388601; x=1715993401; 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=S0IqckUIZjVVxXVOxgac6w2cx3AmMbKz+eZNoT7XiC4=; b=bNd6ZxbzPbrbmMb4qJJayI2a4grnnbOaKAH2gCGjL1pXoNQBwuoAavz9txl4fEj7SI ZPlGrry1vS1sZgPdOYOU42F9Yzg5axlUcgFxpSojzHnM2z2EDEMWev2scImSJT5C5fWn Mz6XoupaAQFkxZBUl7pHqoctVwCdUip23ui5WXkv1BYNFS2gqa99pvqIKCoEBqIfyI8e n915D+W51EGCSZ7n/9dR/Rh/b8WNa+JCRheQcJN62yRwLO77IyxBOxYJ0bKcwVXazKfI 6J6FxQLvdWpvqKWO3wyiwUT7O+iYpY3GchxLgPCzEXLS7bWKa7LM9s/WzxqthKLf9C+j mJog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715388601; x=1715993401; 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=S0IqckUIZjVVxXVOxgac6w2cx3AmMbKz+eZNoT7XiC4=; b=TBAbxy5/Itwl+0MBEubigjAHwArqiaZlIrnCBeMdiWNXcaj7nsNHbC2tWZD1vdo6iN Hq/WASV4mjVg+KNvqmsJyiGT0XnpDHsL0Jsx6AdJTH68gLTLgfdDlIx4qTrrZtkC88Pe ULtAdHXZdo4/Dd3Abp2D1m4EWJOMXxmuE//EF20C0wjlQZGgKumaggGD8acZneSA6lBj gqlplHL6AbImA1ReOKiKsCgjG0IljYAADiYgRZNI6SYdun28ysfcr42gqhthrYrWhzJH zMfTupqmOUrZ5HVzRgic9EsMvziAjFysHO2JiHFuiiP9fpGoxxkQuUbZ4AObDiWVL/fA YduQ== X-Forwarded-Encrypted: i=1; AJvYcCVLphON3CLR9mQYE5UlViXVYPYp3McwvXQCRYguNSraNX/hzJomr26oaYZOGlACenB3Ih9b1co9KvvbUATRgpJw9q7pytjEnK3sZPfZ X-Gm-Message-State: AOJu0YyTqH1Alea50NLba0wx0F9jlRKvRSjCQ8OXKu9ft3AFNAuXN8UF QXNsaKCmFzGAmNr6XZY6zqCeMvBWVGhwQSNX9EDTqOMQ+dKA1/V2lYy8XRLi9ws= X-Received: by 2002:a05:6830:205a:b0:6f0:6da5:34f9 with SMTP id 46e09a7af769-6f0e92c8b92mr4444723a34.23.1715388601088; Fri, 10 May 2024 17:50:01 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5b29015a3dbsm321132eaf.46.2024.05.10.17.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 17:50:00 -0700 (PDT) From: David Lechner To: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Nuno_S=C3=A1?= Cc: David Lechner , 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 Subject: [PATCH RFC v2 5/8] spi: dt-bindings: axi-spi-engine: document spi-offloads Date: Fri, 10 May 2024 19:44:28 -0500 Message-ID: <20240510-dlech-mainline-spi-engine-offload-2-v2-5-8707a870c435@baylibre.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240510-dlech-mainline-spi-engine-offload-2-v2-0-8707a870c435@baylibre.com> References: <20240510-dlech-mainline-spi-engine-offload-2-v2-0-8707a870c435@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 The AXI SPI Engine has support for hardware offloading capabilities. There can be up to 32 offload instances per SPI controller, so the bindings limit the value accordingly. Signed-off-by: David Lechner --- v2 changes: This is basically a new patch. It partially replaces "dt-bindings: iio: offload: add binding for PWM/DMA triggered buffer". The controller no longer has an offloads object node and the spi-offloads property is now a standard SPI peripheral property. --- .../devicetree/bindings/spi/adi,axi-spi-engine.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml b/Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml index d48faa42d025..c0668aab8b2a 100644 --- a/Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml +++ b/Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml @@ -41,6 +41,20 @@ properties: - const: s_axi_aclk - const: spi_clk +patternProperties: + "^.*@[0-9a-f]+$": + type: object + $ref: spi-peripheral-props.yaml + additionalProperties: true + properties: + spi-offloads: + description: + An array of 1 or more offload instance numbers assigned to this + peripheral. + items: + minimum: 0 + maximum: 31 + required: - compatible - reg -- 2.43.2