Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp329922lqb; Tue, 4 Jun 2024 12:41:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfsBEyMIbEVz18Xi6SAo9aQIXJomqlD9cZvFfHU6n5A73EbVu46Ky9D2uzUoLOVV/dFz24vmYSzuecdYOUOTbW4MnhEHmpqwItEJTh2g== X-Google-Smtp-Source: AGHT+IHyhfDSAfntxVYC+dDLSa7RtowNFartILF9IAyTJpUkJJU75Rmu2I9GgBrCQdBVccGUqHm5 X-Received: by 2002:a17:90a:8981:b0:2c0:21d1:1e0a with SMTP id 98e67ed59e1d1-2c27db09f09mr466866a91.11.1717530078227; Tue, 04 Jun 2024 12:41:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717530078; cv=pass; d=google.com; s=arc-20160816; b=LAiS/8HJyTVX/8EzDhqwbzFLP67xrpy06SPBkX/CzpNu1p7tm38VTPpSPaiKzAOiI6 wL1a4uMxq3ARkwW/J+VnYae7SfjMhVv/EIEedKN6ngrBe8aDpK0ykjNNGBdrMc3fjRGB PVRz1Y0g9k5wRZaDfA0tLURU+qoGvCEo3hVHheicIVWyyCba/NqgCscHgdWMvvCJ836n YdQgT2pzuuaanawSOVqomdpS49h5/vRG4Z+6DsbD6E65Mc1GD47T3gSYgrJObgS0LoIw 4wIusBZp7EulrUnHLK1iYA0inV3jKamsSgnGpgWdEILCdGw3YrmufHbzzFJSjWzm9GvP Bkyw== 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=o8gskDRDbtXP6DbwUmFPk9QCXBH4Q1DxOfYZZF3juho=; fh=GIYB28tfjqov4ejTzKddSgqyA1N8CvU6iIv8//NCiKs=; b=YdoDhoMvKW7Q+gz5T3gP6fKD+0qGUcBFTqZMf2yjqTXX7Rdc9nVF7M9LwnCgdcQ4hh 5UKzslJQeLF56U4heVS4VhToeAVyaozcVMtQwhvDrD95NOiKXOCP5vPUPS5h0yywuMr3 8Cj18wCf7q8ovrRNB+AQislO67iGI1g0Y3zpTmJ6gVCpRzGcWb8FVzkLLHHKmQwCeiAP TkTxPnJ6SFQeHhAlCFE+4r6gbY9dt0T9463gsqh/AVZxI6ExsrItHwxT/QI0IW2x5cli /Y1v/rCF35P2YZkuamHgwgNomePYpMSz72EPjL1G0b1dt4cTE+wmB5rAPaT6ABeOzrjD 7QNg==; 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=E6U7aZLj; 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-201299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201299-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c27e2a06si9056665a91.80.2024.06.04.12.41.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=E6U7aZLj; 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-201299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201299-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 75595B235FA for ; Tue, 4 Jun 2024 19:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF40C14B094; Tue, 4 Jun 2024 19:39:23 +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="E6U7aZLj" 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 2495514B07E for ; Tue, 4 Jun 2024 19:39:20 +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=1717529962; cv=none; b=sqGMXe8vqZQdlP35uZjNS2POuU6DE+4kiknjA+TCBUbbs9KAvFbczEVCYcN4snCxnJp3kYfMRuEolttZLHMDepfm1VWFK2TO/e1NMjZNxshtZmOt6IdB8CpZgTECY5CUYEBPQdKiFzxNoCJyomAX8WMSz2nM3IMqnBxLMk3gAqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529962; c=relaxed/simple; bh=I8Na0X1lr4Anj/n0WwNbTpdssCH6TSBbBWFAR7jHJaY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rxr8I3nVxgVRtxOQEeHrPwgy6Sf/uTAgSMYqjrRtr9/XgKKrUBunIhiyBWxjY1Sihwe4sugfb1tVsIlMcjz+wPTxLrD5uxFNjV1le+724EvLCZhehSTvieOKSn2CnB2sAxqR607FiaqB6aPYGlxmXqWySEB0nR14uSsULeq0eRc= 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=E6U7aZLj; 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 Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6f943a34a83so88643a34.0 for ; Tue, 04 Jun 2024 12:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717529960; x=1718134760; 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=o8gskDRDbtXP6DbwUmFPk9QCXBH4Q1DxOfYZZF3juho=; b=E6U7aZLjEB1cb5AwDYzuty37NO5Xg4XtHiQVf6wqkhx6je/8VxR+bMdfQIFtZhf9O1 3sjLHZ9dzjnB0EfNynLyHnjwBWkaWUH5gVALq+xpUcZO8e2ZGwGjCwRwBfLMeBlyP2F1 FgziUgJyPmo7h1qBFPfuUkGS2Q+MbLbnwxkeNhFEDvUs2uSAVF8BpLAUPldYrJI2UNmd p5pzsMiu/n7C/oR6NEE0+/4jlBSydEH7FTHhpZNFNvLl64RobRrBc1voRyaGlvQ4UHGy HkxeMnVJv2PUS7jKS+4Tw7QOXLw577JeiLPgFDx70hm1zgsKUxDJexpw1NbQZyUjpdEb LizQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717529960; x=1718134760; 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=o8gskDRDbtXP6DbwUmFPk9QCXBH4Q1DxOfYZZF3juho=; b=PhDvdLSAtH9f+SgDCACAvo+0AEquct2c+253ePALY+QXlxnygq/YD0ufMa/EDtEpzh kg2szCk+QK7VyGJbAvaE4wfSOEsWSH+D8qF4dAQ1ZO10AbK2rg3yfk4DETJ5Pdbnwl6R Zz6Ow0BIeUB6+9bEV2/zDNEeVmH8M/fwzgXsu2MaEp+W4ZTYiGnU6bRlZDvZTkpT96yZ iAVLcAOKP36GE4uI+HcMzjgt/PXrrCbl/HQxnQ3iNDa/OE1nDxaXU6cNhcdRILEmx3Ld GEBGUY3o/oHkRpH6JEBi299XFURwdpbc4CpnXEc8JJPJbRQNGssQaZ/IZ+8ufqH4q1gT njsA== X-Forwarded-Encrypted: i=1; AJvYcCX+z1CDNBfVzRsQm/aubmZJJaPyfqPCy5R0lITRGbPb5umwrkZL1DOeTMiCjg8RMcmugfAC2xREoWptYBpYdGGvnG7QV7yHfj9z4DxD X-Gm-Message-State: AOJu0YxcDfDr9PA9fgDUnt9GdDM7vjo1tZcWTbz3rFPMrBR5x5Sk/Dg2 js+r+9H6FwZYfaKqnS4Vm+26uMaNQfMQL0hC16non/DtdElwND5BjuX8ys5k+1A= X-Received: by 2002:a9d:6d0c:0:b0:6f0:e870:e3e8 with SMTP id 46e09a7af769-6f943486643mr519655a34.21.1717529960085; Tue, 04 Jun 2024 12:39:20 -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-6f910539e69sm2092702a34.28.2024.06.04.12.39.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 12:39:19 -0700 (PDT) Message-ID: <97246fdc-bb33-45bc-a24a-c2595920421f@baylibre.com> Date: Tue, 4 Jun 2024 14:39:18 -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: Conor Dooley Cc: =?UTF-8?Q?Nuno_S=C3=A1?= , 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: <20240516-rudder-reburial-dcf300504c0a@spud> <20240519-abreast-haziness-096a57ef57d3@spud> <20240522-gullible-ibuprofen-cf9111c25f6f@spud> <5ad0b5782434eaf4cf565cffb0e4c14b7414ae38.camel@gmail.com> <20240526-peculiar-panama-badda4f02336@spud> <10991373cb9603803df63d8236c475807f6dde68.camel@gmail.com> <6db8ba66-841b-4425-9dd4-9d6e7b0463bf@baylibre.com> <20240604-oink-recognize-682c553a18e5@spud> Content-Language: en-US From: David Lechner In-Reply-To: <20240604-oink-recognize-682c553a18e5@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/4/24 2:33 PM, Conor Dooley wrote: > On Thu, May 30, 2024 at 02:24:17PM -0500, David Lechner wrote: >> On 5/29/24 3:07 AM, Nuno Sá wrote: >>> On Sun, 2024-05-26 at 18:35 +0100, Conor Dooley wrote: >> >> >>>> It might be easy to do it this way right now, but be problematic for a >>>> future device or if someone wants to chuck away the ADI provided RTL and >>>> do their own thing for this device. Really it just makes me wonder if >>>> what's needed to describe more complex data pipelines uses an of_graph, >>>> just like how video pipelines are handled, rather than the implementation >>>> of io-backends that don't really seem to model the flow of data. >>>> >>> >>> Yeah, backends is more for devices/soft-cores that extend the functionality of the >>> device they are connected too. Like having DACs/ADCs hdl cores for connecting to high >>> speed controllers. Note that in some cases they also manipulate or even create data >>> but since they fit in IIO, having things like the DMA property in the hdl binding was >>> fairly straight. >>> >>> Maybe having an offload dedicated API (through spi) to get/share a DMA handle would >>> be acceptable. Then we could add support to "import" it in the IIO core. Then it >>> would be up to the controller to accept or not to share the handle (in some cases the >>> controller could really want to have the control of the DMA transfers). >> >> I could see this working for some SPI controllers, but for the AXI SPI Engine >> + DMA currently, the DMA has a fixed word size, so can't be used as a generic >> DMA with arbitrary SPI xfers. For example, if the HDL is compiled with a 32-bit >> word size, then even if we are reading 16-bit sample data, the DMA is going to >> put it in a 32-bit slot. So one could argue that this is still doing some data >> manipulation similar to the CRC checker example. >> >>> >>> Not familiar enough with of_graph so can't argue about it but likely is something >>> worth looking at. >> >> I did try implementing something using graph bindings when I first started >> working on this, but it didn't seem to really give us any extra useful >> information. It was just describing connections (endpoints) that I thought >> we could just implicitly assume. After this discussion though, maybe worth >> a second look. I'll have to think about it more. > > Could you elaborate on why you think you can assume the connections? What > happens when you have multiple stages of data processing and/or multiple > ADCs in your system? As I've previously said, I work on FPGA stuff, and > everyone here seems to fawn over having in > their data pipelines. I can't imagine it being any different for ADC data, > and an io-backend property that doesn't describe how the data flows is > gonna become lacklustre I think. I was more ignorant back then. :-) That is is why I said "thought" instead of "think". I am more enlightened now.