[PATCH 1/2] dt-bindings: spi: add bindings for spi-virtio
From: Francesco Valla
Date: Tue Sep 29 2026 - 13:02:56 EST
Add bindings for spi-virtio based on virtio-device, reflecting what
already exists for gpio-virtio and i2c-virtio. A node using the bindings
is not used to instantiate the device, which is registered by the
transport (e.g.: virtio-mmio), but to define its properties and
establish dependencies with other nodes.
Add the new bindings inside the MAINTAINERS file.
Signed-off-by: Francesco Valla <francesco@xxxxxxxx>
---
.../devicetree/bindings/spi/spi-virtio.yaml | 53 ++++++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 54 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..5b8639dd2e1f
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/spi-virtio.yaml
@@ -0,0 +1,53 @@
+# 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 <francesco@xxxxxxxx>
+
+allOf:
+ - $ref: /schemas/spi/spi-controller.yaml#
+ - $ref: /schemas/virtio/virtio-device.yaml#
+
+description:
+ Virtio SPI controller device, see /schemas/virtio/virtio-device.yaml for
+ more details.
+
+properties:
+ $nodename:
+ const: spi
+
+ 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 360977678f70..f91340fc6e7f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -29062,6 +29062,7 @@ VIRTIO SPI DRIVER
M: Haixu Cui <quic_haixcui@xxxxxxxxxxx>
L: virtualization@xxxxxxxxxxxxxxx
S: Maintained
+F: Documentation/devicetree/bindings/spi/spi-virtio.yaml
F: drivers/spi/spi-virtio.c
F: include/uapi/linux/virtio_spi.h
--
2.55.0