From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 0054F3E00B6 for ; Fri, 15 May 2026 16:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778863369; cv=none; b=hY0ncOdFiTYBeC7NNgExE89/WR4aIPl06+sDZItwQsE7vbKCxfLAIQuUBDmL+V89hxvvOIlzxz15ZB0iYM6goIvSP4FuAgi16nC62QyysJl453lxH/jv+tsbmQLyv1Higsznyfz3Z8Dmt3eKrX/2PEwxoHAEFEQN/yEEWfUOcI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778863369; c=relaxed/simple; bh=7kQvjor5v4XqPvM2zH32NLsWXJydYn+5ezoF7CWh9VY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lakUzfTaveaXOpRrJZYgx32Ft9bwWrotZoW9FVNCLFXN7phIkXF7cExSziA55eV0EiWrx9rMK+2yqOlEeFiZp5lYSVJUb1j81P1EnnsejyB10kCIcbwDKsfAURkkFIg02gZw8fUhTbc7RKAqOmaWCiT723p4ZRMTV2iM7kRbTuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VN2pHOYD; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VN2pHOYD" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-45e5f81074aso78716f8f.1 for ; Fri, 15 May 2026 09:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778863366; x=1779468166; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=G6pK3eKs2RTKJdVg/qW7uXwTeSJV4j7AU1HgoODeg7U=; b=VN2pHOYDfCiAPPsf8Q+okPr1j+uCWrA8gkmObBsSQ9AQhyfo/RhU9x22oKdjOrR70f u9+GZCiIVesatk+R3+f/GHMWXf4Q0rMtFh2zw3etLudbqYuEumPYG3Nx5SeZ/izr591X q3Y7LIsrU+lSJMcj1VqToafydjPuIovPx4ac75maqokfJelYKxrZupSbhIAu4xz2upnE t3gPbZYsfArpPCTQ1L2l1kcwQxbyw3x/Valc+er2nzAxkKuNGt+ajxqGacNko77vKO7W 9jObCM6UnPyztHDFt+H10nXwltnMOxya/WKNwDVyyLOfB10aQgaopihxP3CsriEnqV/+ SLnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778863366; x=1779468166; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G6pK3eKs2RTKJdVg/qW7uXwTeSJV4j7AU1HgoODeg7U=; b=ARIJl9j+1Zs0CsxETwqYCEGLpRss+tizjv6r8+3/KGzmNtnK2P/0lo3ZuZYBNwocS6 9EZhU2e9RL48BXW9Qt6LBfd3gZQkjmGhlyxa9p+p5m2PXgRod48AXIf4uedd6W/nrdfB YYlmV+eqd5pK9Ht3xyAPcIuz3FSvo0SQib15RrT3D+zKvh8YPfaixosv0kci3UotMV+x AR50CAn3UoGgLLUTw5/CSLmDLVL/Hyc3xhuErEnx2IhCmlIzM5ytl+//C6lttplSmltJ 098uTzOmHlykEey3ZWBwgSlvGouKeaGaHbJfSIkMzVQLcGhIAvp+wP2zjRwopGluQ56N ed/A== X-Forwarded-Encrypted: i=1; AFNElJ8r68EeziD338Y5qd/zvhN2w2ml5aMVa3MPkZgzTXFZmLRRwaJGBHmkt+MKxLyig/SOBJbk7KHBBKYgnaU=@vger.kernel.org X-Gm-Message-State: AOJu0YygVxr3FtK8THOLDu30W/LQ8hhjp5/+fkO+um6/dvYxwz8BeXWT fqVPf635eOV45eU4a5bvykqgVqqYnS5z/K1SeGiSW8YcxA/NAtG28Izh X-Gm-Gg: Acq92OFbaa6e+lHGDljFlF63+yN70T8bFyFMJo4UnKSXH43ymUGw7xeZKNvhYQ46OGd TwMuMlpms/IFUIoh9BYA2OgLg7+gJzshr6Wlbzp5MkpBvpPqqYjRPODmbMplLxj8sSv3D+yxxPO hdtVvXiltK/yRXWhkIcJm/f22A1C/rIuUlfR+sxoF1SqIoeyd93+HhE7xa6gXHj1+AJqrQoOcES zi3631OaM1HdtJ8LW5L6/im2rAxyO2jhJLDdUu704Mo9riTJnvSvsT2DzYinWzlm8qALNk/EvnN P32iWzpVcv44RhnPe4QxDUi2kG8cksQi16gAyu2iPb0167ntkxu4foGxq0jO91SCgmWI4XMll9t eE4lmBLah4EAvW407qr9U++OHixCAqAkisAJD24TKCabbKDoBrGzr9OH92R3vMd2wxuM/aHPvTG bXP2XDaYAKwgIoa0kVxTjQMtyGYYmOfpfek0KpBVxiqhVWJ/hbDHQ7dQ== X-Received: by 2002:a05:600c:c177:b0:48a:56d4:7274 with SMTP id 5b1f17b1804b1-48fe66423ecmr32080695e9.3.1778863366175; Fri, 15 May 2026 09:42:46 -0700 (PDT) Received: from JSANTO12-L01.ad.analog.com ([191.255.131.70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe57943b2sm73504275e9.8.2026.05.15.09.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 09:42:45 -0700 (PDT) Date: Fri, 15 May 2026 13:42:40 -0300 From: Jonathan Santos To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, marcelo.schmitt1@gmail.com Subject: Re: [RFC] iio: adc: support for multi-device aggregation Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: On 05/08, Andy Shevchenko wrote: > On Fri, May 08, 2026 at 10:27:54AM +0300, Andy Shevchenko wrote: > > On Thu, May 07, 2026 at 06:28:58PM -0300, Jonathan Santos wrote: > > > > > > We have a request to support multiple devices tied together in a single evaluation > > > board. The goal is to be able to read them simultaneously via the IIO framework, > > > while also controlling them individually. Currently we have two ADC devices that > > > would benefit from this, but there might be more in the future. > > > > > To summarize, the devices share SPI pins such as SCLK and MOSI, but have individual > > > chip-selects and MOSIs (we can consider individual SPI interfaces). The ideia > > > is to allow users to aggregate these devices so they can be read simultaneously > > > from the user space. > > > > This paragraph contradicts itself. The they share the bus. The bus is serial > > and can't do at all what you are describing. Try to rephrase, or forget about > > this, it's simply impossible. > > Ah, this is semi-shared bus... Interesting how the host controller looks like > for this? It's not a regular SPI. > Yes, the only pins they don't share is the SDI and CS. The main difference in the controller is the multiple SDI lanes, but that is something we support in the SPI driver. Because of this feature, the controller can read all lanes simultaneously and put them in order on the DMA buffer. > -- > With Best Regards, > Andy Shevchenko >