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