From nobody Tue Feb 10 01:59:34 2026 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (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 4309B2EF65C for ; Fri, 23 Jan 2026 20:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769200735; cv=none; b=XSpXAwdRsxVwDTYr+tMA51gyCKbK4yzAx4VAfGyMfoVymasEVdfzwFyZJzDFhQOfcDl0FeHhJu/x2dHrGRNNGYE1q7Rc0XFa/4CeZQxY74PybN3TAXEMJXxUWzq7gsg077kh07aoUimeX+L3O08umHFZv+lQ4He+kDu97M2JVHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769200735; c=relaxed/simple; bh=0SRGld8wg9ob4xVn5NpAO3HJVSu6bKkd/d9jBcJCtAo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WIkzTH3gLVaKxK439OfKETJnEGae5/h0WCDA+cNWBBwBhDBT079aPwd6KqkzPhCS3Sq9x8BGVq+H6qDXdjGdgzk/FnCOe1houHQLAxQXjfdWpo90fthh4SGvrSIUachR2jesbdcK0maFYfkDTXNJ76ckfjbeT9ynkFRRsA+UzUU= 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=xzIrvnF7; arc=none smtp.client-ip=209.85.167.171 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="xzIrvnF7" Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-45c962424daso806182b6e.2 for ; Fri, 23 Jan 2026 12:38:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1769200730; x=1769805530; 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=lRCMa7QMJdZhKtVQUIWaGLlL9RgCPrH55zdDP01EigE=; b=xzIrvnF762GBAObHQ2rZhb5ZgMhMMLbsTSmgBZ4rSwfyBl5qKiAKcKIZAwG3rWLADE aX6QmrcJbAC139Wv6WmpPdtF2rbEJiocvy8xeWgcCVeaTRsRxfgTN9/0MwCKcH4cgkeT clco2n4E1skD+wzXHLf5PhUw4KPuNZKHZRT4ZHSm1DUSzB9exHmHtzEIC9JAjG0OiXWR 76cTVFvFPM87wjRNamza3lW8VMzK938801OiCgoLjv97HNHiCUH7gNpNJ+NsJBhE+5Yr uMLseAFYb+gI9UqZv6OIaTRL41HXlrX0rZ4Co78nl7I0FpHqxpRw5jSv3WUrcSaTohcZ 9Y8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769200730; x=1769805530; 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=lRCMa7QMJdZhKtVQUIWaGLlL9RgCPrH55zdDP01EigE=; b=d4w9HqCPKLP+oy45kEbC/tCWlKqDYuI9d6LXlTzPyDyoG0bzBRy8nlatBw8KyIWBmK OkgSr9Mg5WLTg+o57Dn52hHTjUr3vwv86QOganDUwTBKLmbb0nECtjC6pA7YRCAQU/Kb hRaO3aK9TwD0l26MleBBAlQIden7Ow7ZwGQ9cxwwc7X+ZubYtyyfAdCH2HX/5W/bCY/F gwzQJuxyzFUc/UDT9H9TVfAjiokGiqRipbC7KpbG20a4Ga7AgylEgc81UEaFQccj8X9Y 3Q2mNPXo7SA5YEfZEmBXoMm7Qk9EShC776lAB1l0HRGJMcDKCu0c3hUE397szPw5A6/E aj8g== X-Forwarded-Encrypted: i=1; AJvYcCV0A1Ko5AyhTBzFrXPts3pDOP1KsMvYuTHk7llNceo2xx9BY23sGwwmZUQZh3Je/FWpocm6atE6Ponen5M=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2/lhpGtoJLBhPhKPQYB8B/qtSa01yM+MlkYTfmE08J1g1d0DQ y4ApxoMKL9l3ZJY1kRoV/M3Pod4dzp4QZ03jJyNBcLlWJcP0VWIyo90cTrivwb2gU/E= X-Gm-Gg: AZuq6aKmDpxXPUBuVQT9S/mnSVPvnYKdnlzjL3bCMHAAn2RjT9uGiC6GPIrxEA1Wyws itN2Ib0gn+v1ayOxyC28pzRPRG1peaISLurjmMoMMMUKdPajcUSpMH765AerLeKNsEVtersDU4k 1hc1dun5Ul5F8BKveThi1dDUZj4m3ZeTPqwbwQyUw4I8vh8RjZ2/PEi9lEIaKMWR9JTlotCep2b SbEHtAfpJ3bZWmqjZn0jUpryoF96DGw+Mt9C5Ep266S8fSaecYW5N8akEk/9bIBc6g/D9ud7ns0 1fU709WJZEckmYKXh5soT7+UDQlqBxYcfUNLh7Fcybi/5caWzsTQTdY4DpBakcbVWY7pXC8s93L DIaH5eRdB4iU8JUh+seUJ3MCYcM/K4iWBwgjPZ634TOCnoxQFhJ7hW01/Fp0uAjwmdWTqu579e3 bvNAhtLiWSt6+EolBQ+kOjLg6P X-Received: by 2002:a05:6808:1306:b0:44d:baaa:c537 with SMTP id 5614622812f47-45eb1ac4ff3mr2135834b6e.11.1769200730536; Fri, 23 Jan 2026 12:38:50 -0800 (PST) Received: from [127.0.1.1] ([2600:8803:e7e4:500:198f:2b50:c48:1875]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-408af888da1sm2167805fac.6.2026.01.23.12.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 12:38:50 -0800 (PST) From: David Lechner Date: Fri, 23 Jan 2026 14:37:31 -0600 Subject: [PATCH v6 8/9] dt-bindings: iio: adc: adi,ad7380: add spi-rx-bus-width property 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" Content-Transfer-Encoding: quoted-printable Message-Id: <20260123-spi-add-multi-bus-support-v6-8-12af183c06eb@baylibre.com> References: <20260123-spi-add-multi-bus-support-v6-0-12af183c06eb@baylibre.com> In-Reply-To: <20260123-spi-add-multi-bus-support-v6-0-12af183c06eb@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.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2086; i=dlechner@baylibre.com; h=from:subject:message-id; bh=0SRGld8wg9ob4xVn5NpAO3HJVSu6bKkd/d9jBcJCtAo=; b=owEBbQGS/pANAwAKAcLMIAH/AY/AAcsmYgBpc9w9z/Zrr1ZFq1ZeucdXrgMdnDu88JnIRiD1n rYl/9vfUCSJATMEAAEKAB0WIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCaXPcPQAKCRDCzCAB/wGP wACVB/94YY1h4opJbziyMfR8A33W8WxV7v7l0Isb56J4ij4epEbYwIO45nuXIaUJfWqyNxDJY9y YFnG5YsmtuiBrrxaW/U4JTM5bKHF76nbLCESS+L3A+6HaWJiJynP5CzbZn/D48gS4Lz09gsznd7 PcHIHkdgAVKrj/9MaZAXFFZhs90hnhrZMHMB0xXb6yQpeQEgmwbV6Hg8g/PD2nBfRmXqSsC96cm HvzVhg5OmCJ9rPlpSJhk4g8a2PL8LdRtuPkYHxsu6Jm8DCyGqqf5rfTnmcjph5FnsCxjyHlnFLd w4MZPIGgU3ayqA6cd2zc9vFDKhWmDeSLKa5IRhDyQ//Wq33K X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Add spi-rx-bus-width property to describe how many SDO lines are wired up on the ADC. These chips are simultaneous sampling ADCs and have one SDO line per channel, either 2 or 4 total depending on the part number. Reviewed-by: Rob Herring (Arm) Signed-off-by: David Lechner --- v6 changes: none v5 changes: none v4 changes: * Change to use spi-rx-bus-width property instead of spi-lanes. v3 changes: * Renamed "buses" to "lanes" to reflect devicetree property name change. --- .../devicetree/bindings/iio/adc/adi,ad7380.yaml | 23 ++++++++++++++++++= ++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad7380.yaml index b91bfb16ed6b..396e1a1aa805 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml @@ -62,6 +62,11 @@ properties: spi-cpol: true spi-cpha: true =20 + spi-rx-bus-width: + maxItems: 4 + items: + maximum: 1 + vcc-supply: description: A 3V to 3.6V supply that powers the chip. =20 @@ -160,6 +165,23 @@ patternProperties: unevaluatedProperties: false =20 allOf: + # 2-channel chips only have two SDO lines + - if: + properties: + compatible: + enum: + - adi,ad7380 + - adi,ad7381 + - adi,ad7383 + - adi,ad7384 + - adi,ad7386 + - adi,ad7387 + - adi,ad7388 + then: + properties: + spi-rx-bus-width: + maxItems: 2 + # pseudo-differential chips require common mode voltage supplies, # true differential chips don't use them - if: @@ -284,6 +306,7 @@ examples: spi-cpol; spi-cpha; spi-max-frequency =3D <80000000>; + spi-rx-bus-width =3D <1>, <1>, <1>, <1>; =20 interrupts =3D <27 IRQ_TYPE_EDGE_FALLING>; interrupt-parent =3D <&gpio0>; --=20 2.43.0