From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=185.56.87.4 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1793291286; b=NXAr/0DBVDFYlQ+yLg6cFWCgtygwxikh+yxPq7V3FGte5rxh/h7ShpIBNWHjgNv6WXjW 8uGDDeWnPZUa7y3/6B+0ZVD0OzNyXgJEEqU58gCwxTUkfDAacJHU1XqxZFlwXr7rxmdH9 O6LGvywp1si0bCVCmzyRra44nP4T8N6mJiJstOmK3Mzs6/AfiAEG0MQ8UZ6Yqz7S1Byce Fs47b44VIl5IL6TyMMMTT5jzpA1xpNrRM2zhxwlunqKoFh34l+xuwQbHs5XR4YQgzfq4w yDi0VNK27shGB3+5gy6otUgqrxPHle4CCfixe7hwUuQAhsh/iJ2NlSn8sesV/BRDmGw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793291286; h=DMARC-Filter:DKIM-Signature:Received:DKIM-Signature:Received:From: Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-AntiAbuse:X-AntiAbuse: X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-Source:X-Source-Args: X-Source-Dir:X-SGantispam-id:X-AntiAbuse:AntiSpam-DLS:AntiSpam-DLSP: AntiSpam-DLSRS:AntiSpam-TS:CFBL-Address:CFBL-Feedback-ID; bh=qzZZ46lO4KbnLO67zSOK1gQ54aowsw3oRwEUjqeFz+0=; b=0DxWpYsIlZaY+b3mbk4PTBg5a3ZJxovCK1S+/v17pcfTDAKkMV9IuPM4e2exegDFfbP+ h+446uhhQMRBN6yAJDmFW4JGGgvt3zCP4bDHIILXBA6Vd2O01ja7y/ThMym2upS8oVJk9 ZNmD9j7x3iZ9aiHD0DGEaREBkgu+vV+IfLW2eX+NBuSs1Nnws9xsHTtObqxeq7hkcrA+1 8oOBvUU8ZtlZNJi+9Nu1XDtdJsumGFxtCIH/IVfTgE5elkne7we3RXRD1UxNcJxY66Eld aQd3darW2J2j7dPB7bd5pDaGz7KWn9CQVIn28UxVixo3hMEpjFdXiH/bDCLV/QpxQ1g== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=valla.it; spf=pass smtp.mailfrom=valla.it; dkim=pass header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.a=rsa-sha256 header.s=default header.b=1QHMFxvc; dkim=pass header.d=valla.it header.i=@valla.it header.a=rsa-sha256 header.s=default header.b=WZgR0WO5; arc=fail smtp.remote-ip=185.56.87.4 Received: from delivery.antispam.mailspamprotection.com (delivery.antispam.mailspamprotection.com [185.56.87.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 453C0606A330; Thu, 29 Oct 2026 16:28:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 453C0606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valla.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valla.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.a=rsa-sha256 header.s=default header.b=1QHMFxvc; dkim=pass (1024-bit key, unprotected) header.d=valla.it header.i=@valla.it header.a=rsa-sha256 header.s=default header.b=WZgR0WO5 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=outgoing.instance-europe-west4-h5rs.prod.antispam.mailspamprotection.com; s=arckey; t=1793291284; b=nDX2CUi++DmFX+mgZEa/6noBdPuWdhfvcTDACijThM1D5+cRDxR3Vw//yVJw1j+qK7LLt/Eh5s XUXSPjR9Y1B7+UYzA9cd/FJ/sqePSfD8gmksz44HW4KHtxhGLnuwk5vUJJr+uaZuOMy7I+NEtL SfFyopy6a8fFrUhNPUrNWfZ4QXeigG0TaLHU4cFCQkNpBH45Lt902t/qX3lTcW4NPW1PCcm80n xox32K2jvcuAXku2cugbzAgFeEaSU4uX35C0GQZWOC+I5DIsWOFnlhLla7Lgzs0hjkBcs+iGhY N9OTwJEt+3l6Wjq//CT5kOfvmvBFFMcv6djXIRjCdeburQ==; ARC-Authentication-Results: i=1; outgoing.instance-europe-west4-h5rs.prod.antispam.mailspamprotection.com; smtp.remote-ip=35.214.173.214; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=outgoing.instance-europe-west4-h5rs.prod.antispam.mailspamprotection.com; s=arckey; t=1793291284; bh=7b/4UNnisenlSzsvuHFwODw1hJLbDH9CfkQsAIZ2bPU=; h=Cc:To:In-Reply-To:References:Message-ID:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:DKIM-Signature:DKIM-Signature; b=mTCx8G5KKw6qbJBp5t7PRxYAtF97a0lQsbmn4dzgSm6GUOUD/cipISdhgV+TACzYYto5GwI4Vn La7LBrybH+vogK4wtjnGlBJSzHQ552dcRo8KF4po/X/jVflN9h6QC6btMgpo/Cdv7gf1xDUls7 PDZcrUb8TgroEKcXvV3DvdZ2mcz5+OON2tRpTPQ00sdSYh47slZc24/6qn1CURn73JVAtuDzEO SLiN1BBVCi9GbKfT9ykVCpw7regE+yefchqzTQhNaNLEC6/bupHTukkba1KP1tR6n7pH7Y6cUh y8CT8xjrpw0Mydn6W5j4HI8uJKfCLMSCMCpyFbZjMEMztQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=antispam.mailspamprotection.com; s=default; h=CFBL-Feedback-ID:CFBL-Address :Cc:To:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject :Date:From:Reply-To:List-Unsubscribe; bh=qzZZ46lO4KbnLO67zSOK1gQ54aowsw3oRwEUjqeFz+0=; b=1QHMFxvcGDFnYkjB9TI+7E9MAr 2psfHq8x/EpvO9MzezNOzfLNO2LcLeilgDcU0ChUUXtc6cIgw1HypKhAUzuuIrj7WnHFAOp42fXfI P607HnY76/Ex7wxxLz9eyr+l6JYVyNtbGJVRp6pt6EkrPKZSEQuA0rsfvB5Svhc29BOk=; Received: from 214.173.214.35.bc.googleusercontent.com ([35.214.173.214] helo=esm19.siteground.biz) by instance-europe-west4-h5rs.prod.antispam.mailspamprotection.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xMSyr-000000092qb-20TT; Thu, 29 Oct 2026 16:27:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=valla.it; s=default; h=Cc:To:Subject:Date:From:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; bh=qzZZ46lO4KbnLO67zSOK1gQ54aowsw3oRwEUjqeFz+0=; b=WZgR0WO5GkOpt6JEDqE5J7VkIM 8yH9x2HH4c9GfuP6utiGDonzti4sk01RUOSv+p0YOcQUnKbukIKKSpZKLMREzyimyvhFyx9mA/io4 H3pul+vWnlVGN1YgKvdGatyrr2sLGGvoxY+QxJvJ/o0VhH/426M+M91cnTu801/0ssFY=; Received: from [87.16.26.129] (port=60224 helo=[192.168.178.175]) by esm19.siteground.biz with essmtpa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xMSym-00000000LSm-0Rqv; Thu, 29 Oct 2026 16:27:52 +0000 From: Francesco Valla Date: Thu, 29 Oct 2026 17:27:43 +0100 Subject: [PATCH v3 1/2] dt-bindings: spi: add spi-virtio X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261029-spi-virtio-bindings-v3-1-ef30217abefd@valla.it> References: <20261029-spi-virtio-bindings-v3-0-ef30217abefd@valla.it> In-Reply-To: <20261029-spi-virtio-bindings-v3-0-ef30217abefd@valla.it> To: "Michael S. Tsirkin" , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Haixu Cui , Jason Wang Cc: Viresh Kumar , Xuan Zhuo , =?utf-8?q?Eugenio_P=C3=A9rez?= , Mathieu Poirier , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, Francesco Valla , Krzysztof Kozlowski X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2605; i=francesco@valla.it; h=from:subject:message-id; bh=7b/4UNnisenlSzsvuHFwODw1hJLbDH9CfkQsAIZ2bPU=; b=owGbwMvMwCX2aH1OUIzHTgbG02pJDFmPS9j4AgrnsdxhU/x3WnsKT13UxK//uHx/2fCcsr2/6 Fed8hGljlIWBjEuBlkxRZaQdTfu7Zlr/i1tA+MjmDmsTCBDGLg4BWAiO7oYGe5P+i0R/4hN+3uA ZczDyTrpXbtmbFtwKED91/2Jkca17+8xMjSHnV27dsGRP1HHjzQ8fc/A0N50v3tnpY9BnvqKJKv L1dwA X-Developer-Key: i=francesco@valla.it; a=openpgp; fpr=CC70CBC9AA13257C6CCED8669601767CA07CA0EA X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - esm19.siteground.biz X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - valla.it X-Source: X-Source-Args: X-Source-Dir: X-SGantispam-id: a12818b650b4c9ed42fb73900ccb25d9 X-AntiAbuse: ID - a12818b650b4c9ed42fb73900ccb25d9 AntiSpam-DLS: false AntiSpam-DLSP: AntiSpam-DLSRS: AntiSpam-TS: 1.0 CFBL-Address: feedback@antispam.mailspamprotection.com; report=arf CFBL-Feedback-ID: 1xMSyr-000000092qb-20TT-feedback@antispam.mailspamprotection.com Authentication-Results: outgoing.instance-europe-west4-h5rs.prod.antispam.mailspamprotection.com; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none Add bindings for spi-virtio based on virtio-device, allowing proper validation of SPI controller nodes declared as children of virtio transports (e.g.: virtio-mmio). Such nodes are not used to instantiate devices, which are registered by the virtio transport, but to define their properties and establish dependencies with other nodes. The compatible follows what the virtio framework already searches for, "2d" being the hexadecimal representation of the SPI controller device ID defined by the virtio specification [1]. [1] https://docs.oasis-open.org/virtio/virtio/v1.4/virtio-v1.4.html Reviewed-by: Krzysztof Kozlowski Signed-off-by: Francesco Valla --- .../devicetree/bindings/spi/spi-virtio.yaml | 46 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 47 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-virtio.yaml b/Documentation/devicetree/bindings/spi/spi-virtio.yaml new file mode 100644 index 000000000000..5fc04a9c62cc --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-virtio.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spi-virtio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Virtio SPI controller device + +maintainers: + - Francesco Valla + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + - $ref: /schemas/virtio/virtio-device.yaml# + +properties: + compatible: + const: virtio,device2d + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + virtio@3000 { + compatible = "virtio,mmio"; + reg = <0x3000 0x100>; + interrupts = <41>; + + spi { + compatible = "virtio,device2d"; + + #address-cells = <1>; + #size-cells = <0>; + + sram@0 { + compatible = "microchip,mchp23k256"; + reg = <0>; + spi-max-frequency = <20000000>; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 03649f08c7c7..5724645bf703 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -29675,6 +29675,7 @@ VIRTIO SPI DRIVER M: Haixu Cui L: virtualization@lists.linux.dev S: Maintained +F: Documentation/devicetree/bindings/spi/spi-virtio.yaml F: drivers/spi/spi-virtio.c F: include/uapi/linux/virtio_spi.h -- 2.56.0