xref: /linux/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/i2c-virtio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Virtio I2C Adapter
8
9maintainers:
10  - Viresh Kumar <viresh.kumar@linaro.org>
11
12allOf:
13  - $ref: /schemas/i2c/i2c-controller.yaml#
14  - $ref: /schemas/virtio/virtio-device.yaml#
15
16description:
17  Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.
18
19properties:
20  $nodename:
21    const: i2c
22
23  compatible:
24    const: virtio,device22
25
26required:
27  - compatible
28
29unevaluatedProperties: false
30
31examples:
32  - |
33    virtio@3000 {
34        compatible = "virtio,mmio";
35        reg = <0x3000 0x100>;
36        interrupts = <41>;
37
38        i2c {
39            compatible = "virtio,device22";
40
41            #address-cells = <1>;
42            #size-cells = <0>;
43
44            light-sensor@20 {
45                compatible = "dynaimage,al3320a";
46                reg = <0x20>;
47            };
48        };
49    };
50
51...
52