0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/i2c/i2c-virtio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Virtio I2C Adapter
0008
0009 maintainers:
0010 - Viresh Kumar <viresh.kumar@linaro.org>
0011
0012 allOf:
0013 - $ref: /schemas/i2c/i2c-controller.yaml#
0014 - $ref: /schemas/virtio/virtio-device.yaml#
0015
0016 description:
0017 Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.
0018
0019 properties:
0020 $nodename:
0021 const: i2c
0022
0023 compatible:
0024 const: virtio,device22
0025
0026 required:
0027 - compatible
0028
0029 unevaluatedProperties: false
0030
0031 examples:
0032 - |
0033 virtio@3000 {
0034 compatible = "virtio,mmio";
0035 reg = <0x3000 0x100>;
0036 interrupts = <41>;
0037
0038 i2c {
0039 compatible = "virtio,device22";
0040
0041 #address-cells = <1>;
0042 #size-cells = <0>;
0043
0044 light-sensor@20 {
0045 compatible = "dynaimage,al3320a";
0046 reg = <0x20>;
0047 };
0048 };
0049 };
0050
0051 ...