| 
     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 
    7 title: Virtio I2C Adapter
    8 
    9 maintainers:
   10   - Viresh Kumar <viresh.kumar@linaro.org>
   11 
   12 allOf:
   13   - $ref: /schemas/i2c/i2c-controller.yaml#
   14   - $ref: /schemas/virtio/virtio-device.yaml#
   15 
   16 description:
   17   Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.
   18 
   19 properties:
   20   $nodename:
   21     const: i2c
   22 
   23   compatible:
   24     const: virtio,device22
   25 
   26 required:
   27   - compatible
   28 
   29 unevaluatedProperties: false
   30 
   31 examples:
   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 ...
Cache object: 7fd5957c3b4441a065a60c7d837f045a 
 
 |