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