Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1068909lqp; Thu, 23 May 2024 08:09:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUgfc6L0CKdGeQ2FkjSwCoKd6EHZPit+d9N4E3CrNXjUiyta7vBP7bTzR2xv/as7kzE9fnwLV7uIrAToErR+e31BKGdtZVUXiXhO6brQ== X-Google-Smtp-Source: AGHT+IG1+658tkTi747cPHEDVLfU2Pg0cheFhtr8NA8s1Dc9VByLoHOPX90D0HniaCDNRfYXpIt5 X-Received: by 2002:a05:6a21:2709:b0:1af:f38e:85b with SMTP id adf61e73a8af0-1b205c8ad49mr3351259637.10.1716476962404; Thu, 23 May 2024 08:09:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716476962; cv=pass; d=google.com; s=arc-20160816; b=YhgY+PHglTYpzUcBpq1+7Ljz+SUqUgTt4eSC25qu5J76NeNTGmr81XPNepUT/nEsGn nziIp/9q9TTcODiXc9GanOmO403jAF+3V0RibrF40JoMbKQ0UYowRzj9FJNxlgW7IbHJ XrZBKj3z5j7HJN0fDyLtBNvs7DUVVvm9Yh/vINhJMwUA/OGkIKULILRQ+tEI7g4/dq4Z umJv9rOYr5VnVJtxKEmWx/1Nst2mANVuOUznDuzmVE+7p3/L121LvBEvMPH8FYVPzU6i wE1ZQzoH8twFMS633zHCV+w3Fs299w/Q02seBn5FQxHjdhDSpQ5ryQzMX/NlZtoZLr5d OvOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BhVj6FCoDzPR+MbDpoxutT96uTiXlHhWUxlVPMCsRV0=; fh=DTpKw2fIRRzwChR8Bvyp3GyyuX/NCANdqBXhGwl7IcU=; b=GxzIeVZs5f0tm/8tZFK5nG3YjhRrO8pD9qhMoPcjtlXNjJhABSasJPfMUbgz9dAZg2 fgt8Zvds7IqYLUHEvT8qV9Zs1UHFx9c9YCRiJkXPTY11yILxyBcDInK5ekraWcnjd+Eb tS166L9diXmAzyYqZdBLTmrw8yrUt6vc7keTtdV1fBwMG/vI5Ehnp5ghQs3jwGd+/y5V Cy/v6qxKQOi/nbDKGsxojij/kI4p1ppUT++s+8qj+oXAYzHvWyzJB2/uHhrmzHzi85Qn E/u2sU1ofmRpS7xUzYxAFeD7cvwH4EUz6yO317VHwaN/MxgpHvVRQ2zvLwBdgl6mPAOv 8SNA==; 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=eFOjcelj; 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-187694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187694-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b1e712si1347414b3a.277.2024.05.23.08.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 08:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=eFOjcelj; 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-187694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187694-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CAA862829BC for ; Thu, 23 May 2024 15:09:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41811DDC0; Thu, 23 May 2024 15:09:10 +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="eFOjcelj" 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 C0486171C2 for ; Thu, 23 May 2024 15:09:07 +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=1716476949; cv=none; b=b9+44p2NljbnFWeD3C7QBfDIdYdhHa0NIfB2GB55UzaTyQEQY/2waFnO1UYsvpKTEepl82kKj+IOiR9SsTmbu2beY25EUXxXnPXFOi5Dko1Nw+QENaUTe8jqH7cmgkBDLrj4J80PgITwqIm//1fhWqEzx1vEhKZ7px6eIAr1ufs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716476949; c=relaxed/simple; bh=Pl1mOlxsgsZjv5GC6ZJOtnNAWIIh4LnpWp+JPZyPZT0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MQz11+WyL7cINa4REuXZKouCNh4NvVlA6RqFQ2dyWuugBHgrvAsCFhjAkFCKyrxwJc4xI+Q3pmJEWxEqjD7eGtXrkS3/9pyUXXCTGXZJ/8t+OlCNPn3+QRiG0AyfEJahqZ+ldRq0vUiAPbyvRhmUyE34nvfGKY3xMglCe+lbrU8= 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=eFOjcelj; 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-6f12d22331fso976345a34.1 for ; Thu, 23 May 2024 08:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716476947; x=1717081747; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BhVj6FCoDzPR+MbDpoxutT96uTiXlHhWUxlVPMCsRV0=; b=eFOjceljwceEv0kmvBOdTx/R57f2r4iBS/DwhCAR01X+PhwNv3JLh+QlZZBIy4NDy1 B4xgCjHQD/hLuZIzgRBDmSif5UBnA1T0m6XfC4slKzKG04tG4jY8XN/7Pn955nEhDsM7 R1S1ICYKJdYJ0AGCje+kdMcqUKnt9zkuSi82wLpHzBBneHS4sqDTBo1/wP3bj/Jchnth wrY3vYy7zDRv/sKHzLQii57U7wIaZdlEKMK36RgzoiwuAGJMDL/Hh7sUEaNQ+eAY/bZZ Jnsp1+Ij0GotdNz0KRGAW7ZRECWoR40HDOmSJexUQiiFpqJllYuxuAu/wUb+unIj16fZ fe0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716476947; x=1717081747; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BhVj6FCoDzPR+MbDpoxutT96uTiXlHhWUxlVPMCsRV0=; b=KQt1hMNSAqmWfJ0JKA8IyMn+iLK4oHNSSk2/nLMxa3i/cuJ2GvckF1yYa7wsDbr7n5 l2ynq0sXKrG7p1Ufg6JakIxSwHrX1kWyQay+YJcUqN8KTe3vE2d0YbDTAxKnglsdy5mC VwpHhu0QsexzgyDwyvoPKu8g78gm4ZjF02CMJ8VlkjvrV1ifMZiPFDCJW1iqOxucuagO b4kcxO0xoYw4S/xxdsyhLKIEF58rVfe1C3Zyn5uOS48f0y8WKjsuow8p11BmDMXHpDmw EtQazXb/caT31YhX59JxonOIU60TBi7nE+oAmsUekisfyCwb2BHPRcHcARvyqjb2t8Lk eZ8g== X-Forwarded-Encrypted: i=1; AJvYcCW47U8IRWGbRmpJTdjVv7yCPc7vSSI6dev7xFndxp2tWA6EazQkVqy1ZjDApSziOJuvt3Yr8WiTwpYRKXk+228DcxSGEDYh5sXWGPZ/ X-Gm-Message-State: AOJu0Yy2+jhuWilNeLgg2yj7Clli+N+mIohqSzEbR7ubOv76T1hEcxDc CXWFJ5bU2jy1tTfxJl3eAbbFLf0BlQKat8beAJLRlxGMPhgSbRUGPAhW7CFf5qY= X-Received: by 2002:a05:6830:2b10:b0:6f0:3d07:ef7e with SMTP id 46e09a7af769-6f7d4e11f56mr1417237a34.8.1716476946841; Thu, 23 May 2024 08:09:06 -0700 (PDT) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-6f0e7efd0c6sm5203398a34.1.2024.05.23.08.09.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 May 2024 08:09:06 -0700 (PDT) Message-ID: <3fad2e61-c3e4-4bb1-bbea-101d5d0f91ee@baylibre.com> Date: Thu, 23 May 2024 10:09:05 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v2 1/8] spi: dt-bindings: spi-peripheral-props: add spi-offloads property To: =?UTF-8?Q?Nuno_S=C3=A1?= , Conor Dooley Cc: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Nuno_S=C3=A1?= , 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 References: <20240510-dlech-mainline-spi-engine-offload-2-v2-0-8707a870c435@baylibre.com> <20240510-dlech-mainline-spi-engine-offload-2-v2-1-8707a870c435@baylibre.com> <20240513-headsman-hacking-d51fcc811695@spud> <20240514-aspire-ascension-449556da3615@spud> <20240516-rudder-reburial-dcf300504c0a@spud> <20240519-abreast-haziness-096a57ef57d3@spud> <20240522-gullible-ibuprofen-cf9111c25f6f@spud> <59df2cc3-5a62-45be-a0aa-5bbff13c2ae4@baylibre.com> <35de37c08331a8384aa9ebde3a9be5fec6fc418e.camel@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <35de37c08331a8384aa9ebde3a9be5fec6fc418e.camel@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/23/24 9:57 AM, Nuno Sá wrote: > On Thu, 2024-05-23 at 09:28 -0500, David Lechner wrote: >> On 5/22/24 1:24 PM, Conor Dooley wrote: >>> On Tue, May 21, 2024 at 09:54:39AM -0500, David Lechner wrote: >>>> On Sun, May 19, 2024 at 7:53 AM Conor Dooley wrote: >>>>> >>>>> On Fri, May 17, 2024 at 11:51:58AM -0500, David Lechner wrote: >>>>>> On Thu, May 16, 2024 at 4:32 PM Conor Dooley wrote: >>>>>>> On Tue, May 14, 2024 at 05:56:47PM -0500, David Lechner wrote: >>>>> >> > > ... > >> >> controller: >> #spi-offload-cells = <2>: /* 1st cell = offload instance >>                            * 2nd cell = trigger provider */ >> > > What about things like DMA? I'm mentioning it a lot because it's way more complex > having it on the controller (from a SW perspective). But from an HW point of view, > it's always very similar (if not the same) as your case A. > If we had a setup where there was more than one place that, e.g. the RX stream from the offload could be piped, then I would add a 3rd cell to describe that. If the hardware is fixed and the RX stream always goes to a specific DMA channel, then it doesn't seem like we need to describe that in the SPI controller node because the hardware is fixed.