From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 E696430EF7D for ; Fri, 7 Nov 2025 20:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762548826; cv=none; b=HD96/faKGqXma0KMCylm98Njry271wwgU45ZMLJTSs2AysSnEzoA+9VaSZ7f1AtLzvz+0Q5a5XQ6DIcuziu0zupaGrbdPLQN17rAul05tRfJtji5FkUhvwQyGwJ2lCOM7OdAJCMusBEPDvRSZRWEcmz6BP5CoOqYG8uMSxF0OqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762548826; c=relaxed/simple; bh=GzDNbyMI4KydFDgGfy/VeBjUSngx+JmJMBw+foU/HUU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c7JisD52a0GQs/8mQdmwbt5nWAV3gD9VsPC5uHvG9YjyiW3i0Hvqi/cwIpDC9EbZ7vj+LGu39bV8Iv2rzjF+Csk4xtfMiiB0dh8hiQhzb0O8cGjF3wTl+o9HlqGwSoO1Wh5r79Odg+WaFYQbADWYhBOnBD2JkDyrsl0XIJUx3Og= 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=s15Wom5E; arc=none smtp.client-ip=209.85.210.43 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 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="s15Wom5E" Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-7c681a8aecdso653181a34.1 for ; Fri, 07 Nov 2025 12:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1762548824; x=1763153624; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Bw4pFNPg7WOI6b81QBAhCby/sZRUjd7BzHL1pO1Aj/k=; b=s15Wom5Ept/5mOhvrjk2e5yVNHW6l6OyjjxkPzgfUuv5UrG3VpUnsC3QmnNyJSH24T SWr03VLihNvPnQ7vCmV74yBzNzLgXhYGDUOwkfKIRAyRKrhnXoBz16kmkDKSHsnFiiXA +eOjOixb1LYMRbpjxZwRl1hXDOs1RzZhVH9niTAKOp0DbcyBmgjXTw1TF6rOFtxLqGvw spbbFe9ZtN4vsuZkzJddMijKQKuHTwT5UtkzN2p6Z3jhCECsNvb0GaaGpQ4vxtO2aWNs iRIEv0PfFrVRTwxrHDaSVbA7y48S7P61iAei8w+1LxroPAImRKoC8vI6qJR/sILgSnBL O5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762548824; x=1763153624; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Bw4pFNPg7WOI6b81QBAhCby/sZRUjd7BzHL1pO1Aj/k=; b=CtOeZbQGXw8jhFflbml6XmdrYYg8rzJYN1Bl0xczeE8+15vwrCtHX0ur04daHccNox Mzhk4DB2qWhekwMClypfvswpwAFRLSuX7jkDKITa/nTDma+aSzkUHU+TBJZxH32nArEa T0yGq2kGd/tfHD0glgi9SlFP3YE9z6m8tt1eJarY4RugeJ7MiZGCGlMZibTBiBMy3Dum 2aF/7vkj9zusc1gZ2l2OaPdTCPH1ZbIl3Bj9yHOGEnv7YJKCc/jCnPRZRHtYcawi1j7T EIGP0iypXZkGm60VwcQPI+cz8diR+R3NyRpva+ZZlJ9A11NvTKAddts+4IwdekDLj6UX vWEA== X-Forwarded-Encrypted: i=1; AJvYcCUTj087uT5VCK4/DmjtkGyT+Xk4i35SaK4/je8BxXQtZhS6MmhEnJhvBUksXCxX7I0czRaZAYD6MWk=@vger.kernel.org X-Gm-Message-State: AOJu0YxDqH+8rAB9gyBIPCRCqetzqggdOTAqwmHPpyLm7+JSbRMyxPce vQLIaPkk9FVySnuFcZgMsZyLHeCjL72YQ1fxqPf0pbXWC0ltXw3bw8imFoR38AXFt/c= X-Gm-Gg: ASbGncvUWyWq69vNooaI/OVWf6yd+CrADGwLty9km9HGnLsiW7tnGRfyVxd2hSJrgJd 0/Iluxj5XcCBocl3BPFtwpSxneIJXCYqDDIPCZ/1yTgWj8bfA2XrrhDu6Y3+IlWDp2U5INAqXcP 2y35UJuxvPEWNK3/1eAoCfeJ9OenDnxQcjJ7+PzCklO++aUT+mJqe+h87e6Xw8VGd6yD+5Wfrs5 uTCNaH4b9VNVZ4w1voilzCuMEg0sVUFkog6Egc3oByTSwbjmMbtd8SWnFFazKUuPiEtLC96ZO3z oq+gNbVtag/TcFE8IZZsXCVJi2Kaz9Gww++rR8j3ShtMw2ApGUZHdFaSk67AEzSIbaZo6s7zoeL V3GoQ3YbPbSQr4coEu0dmhrHFFyIM2IfRGDUqM8fJ6iX4YL8c+Hn0Nu+rKWYLnN03iwxsW1is+3 4q79dV X-Google-Smtp-Source: AGHT+IGfK4c9b4dcviAlGkTvokFM18b/RZpHMLFU9OtYfQL7gB4N46H+oF0gdluiqTzWFb9WGu4bYw== X-Received: by 2002:a05:6808:bcc:b0:44d:aa6b:a578 with SMTP id 5614622812f47-4502a40c801mr380282b6e.66.1762548823806; Fri, 07 Nov 2025 12:53:43 -0800 (PST) Received: from [127.0.1.1] ([2600:8803:e7e4:500:7bb8:950b:327d:4ba4]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-656c57eae5esm2915601eaf.16.2025.11.07.12.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Nov 2025 12:53:43 -0800 (PST) From: David Lechner Date: Fri, 07 Nov 2025 14:52:47 -0600 Subject: [PATCH v2 1/6] spi: dt-bindings: Add spi-data-buses property Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251107-spi-add-multi-bus-support-v2-1-8a92693314d9@baylibre.com> References: <20251107-spi-add-multi-bus-support-v2-0-8a92693314d9@baylibre.com> In-Reply-To: <20251107-spi-add-multi-bus-support-v2-0-8a92693314d9@baylibre.com> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marcelo Schmitt , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Cameron , Andy Shevchenko Cc: Sean Anderson , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2076; i=dlechner@baylibre.com; h=from:subject:message-id; bh=GzDNbyMI4KydFDgGfy/VeBjUSngx+JmJMBw+foU/HUU=; b=owEBbQGS/pANAwAKAcLMIAH/AY/AAcsmYgBpDlwtAwtlV0VQGNVIxEBaAxjKPBXvLbMxZAb/W qByJpooBjKJATMEAAEKAB0WIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCaQ5cLQAKCRDCzCAB/wGP wJTrB/9LuHD+FF8YuGEQ8ift3smVYnehTtkxIxJlPmGPlglTjsW/tP2kiiJ0j6dET2OY+l9YVMg xtWPfOKrH6DXK72pckNTdt7YIp5y/+1UuiTrZ5yiPeyC4jkov6+jzNeZToP8AevMq5pnxLEid6U 7juw0TfIaw3Htg4FSkal4pt8/DhjkbLSJv4dPxyBFLym1R5Tjoki6xPx/oiFbWEgThNhlTUIOHK cPBHEFumqpqrHrnz7H7gjaT3tVc/YYOVfH6CaKXgIFYUH/cLnvt7f/J6ngV+tGl8myJhEeb4mUV AkpNNAqavMCLXweLYq+dGaXsyTPFXR6jmPK8BKYurywRRS6/ X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Add a spi-data-buses property to the spi-peripheral-props binding to allow specifying the SPI data bus or buses that a peripheral is connected to in cases where the SPI controller has more than one physical SPI data bus. Signed-off-by: David Lechner --- v2 changes: * Renamed property from spi-buses to spi-data-buses to make it clear that we are only talking about the SDI/SDO lines and not the entire SPI bus (SCK, CS, etc). * Fixed prefix order in subject. This patch has been seen before in a different series from Sean [1]. [1]: https://lore.kernel.org/linux-spi/20250616220054.3968946-2-sean.anderson@linux.dev/ Changes: * Added maxItems. (8 is the most I've seen so far on an ADC) * Tweaked the description a bit. --- .../devicetree/bindings/spi/spi-peripheral-props.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 8b6e8fc009dbdc80978f3afef84ddc688ade4348..6fe739eaf09876b9c5d8902f792ca02181d7266f 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -89,6 +89,18 @@ properties: description: Delay, in microseconds, after a write transfer. + spi-data-buses: + description: + Array of data bus numbers that describes which SPI data buses of the + controller are connected to the peripheral. This only applies to + peripherals connected to specialized SPI controllers that have multiple + SPI data buses (a set of independent SDI/SDO lines each with its own + serializer) on a single controller. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 + default: [0] + stacked-memories: description: Several SPI memories can be wired in stacked mode. This basically means that either a device features several chip -- 2.43.0