1ad93f7b3SViresh Kumar# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2ad93f7b3SViresh Kumar%YAML 1.2 3ad93f7b3SViresh Kumar--- 4ad93f7b3SViresh Kumar$id: http://devicetree.org/schemas/virtio/virtio-device.yaml# 5ad93f7b3SViresh Kumar$schema: http://devicetree.org/meta-schemas/core.yaml# 6ad93f7b3SViresh Kumar 7*84e85359SKrzysztof Kozlowskititle: Virtio device 8ad93f7b3SViresh Kumar 9ad93f7b3SViresh Kumarmaintainers: 10ad93f7b3SViresh Kumar - Viresh Kumar <viresh.kumar@linaro.org> 11ad93f7b3SViresh Kumar 12ad93f7b3SViresh Kumardescription: 13ad93f7b3SViresh Kumar These bindings are applicable to virtio devices irrespective of the bus they 14ad93f7b3SViresh Kumar are bound to, like mmio or pci. 15ad93f7b3SViresh Kumar 16ad93f7b3SViresh Kumar# We need a select here so we don't match all nodes with 'virtio,mmio' 17ad93f7b3SViresh Kumarproperties: 18ad93f7b3SViresh Kumar compatible: 19ad93f7b3SViresh Kumar pattern: "^virtio,device[0-9a-f]{1,8}$" 20ad93f7b3SViresh Kumar description: Virtio device nodes. 21ad93f7b3SViresh Kumar "virtio,deviceID", where ID is the virtio device id. The textual 22ad93f7b3SViresh Kumar representation of ID shall be in lower case hexadecimal with leading 23ad93f7b3SViresh Kumar zeroes suppressed. 24ad93f7b3SViresh Kumar 25ad93f7b3SViresh Kumarrequired: 26ad93f7b3SViresh Kumar - compatible 27ad93f7b3SViresh Kumar 28ad93f7b3SViresh KumaradditionalProperties: true 29ad93f7b3SViresh Kumar 30ad93f7b3SViresh Kumarexamples: 31ad93f7b3SViresh Kumar - | 32ad93f7b3SViresh Kumar virtio@3000 { 33ad93f7b3SViresh Kumar compatible = "virtio,mmio"; 34ad93f7b3SViresh Kumar reg = <0x3000 0x100>; 35ad93f7b3SViresh Kumar interrupts = <43>; 36ad93f7b3SViresh Kumar 37ad93f7b3SViresh Kumar i2c { 38ad93f7b3SViresh Kumar compatible = "virtio,device22"; 39ad93f7b3SViresh Kumar }; 40ad93f7b3SViresh Kumar }; 41ad93f7b3SViresh Kumar... 42