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