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/iio/light/d 4 $id: http://devicetree.org/schemas/iio/light/dynaimage,al3320a.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Dyna-Image AL3320A sensor 7 title: Dyna-Image AL3320A sensor 8 8 9 maintainers: 9 maintainers: 10 - David Heidelberg <david@ixit.cz> 10 - David Heidelberg <david@ixit.cz> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 const: dynaimage,al3320a 14 const: dynaimage,al3320a 15 15 16 reg: 16 reg: 17 maxItems: 1 17 maxItems: 1 18 18 19 interrupts: 19 interrupts: 20 maxItems: 1 20 maxItems: 1 21 21 22 vdd-supply: 22 vdd-supply: 23 description: Regulator that provides power 23 description: Regulator that provides power to the sensor 24 24 25 required: 25 required: 26 - compatible 26 - compatible 27 - reg 27 - reg 28 28 29 additionalProperties: false 29 additionalProperties: false 30 30 31 examples: 31 examples: 32 - | 32 - | 33 #include <dt-bindings/interrupt-controller 33 #include <dt-bindings/interrupt-controller/irq.h> 34 34 35 i2c { 35 i2c { 36 #address-cells = <1>; 36 #address-cells = <1>; 37 #size-cells = <0>; 37 #size-cells = <0>; 38 38 39 light-sensor@1c { 39 light-sensor@1c { 40 compatible = "dynaimage,al3320a"; 40 compatible = "dynaimage,al3320a"; 41 reg = <0x1c>; 41 reg = <0x1c>; 42 vdd-supply = <&vdd_reg>; 42 vdd-supply = <&vdd_reg>; 43 interrupts = <0 99 4>; 43 interrupts = <0 99 4>; 44 }; 44 }; 45 }; 45 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.