Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/ams,as73211.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: AMS AS73211 JENCOLOR(R) Digital XYZ Sensor
0008 
0009 maintainers:
0010   - Christian Eggers <ceggers@arri.de>
0011 
0012 description: |
0013   XYZ True Color Sensor with I2C Interface
0014   https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - ams,as73211
0020 
0021   reg:
0022     description:
0023       I2C address of the device (0x74...0x77).
0024     maxItems: 1
0025 
0026   interrupts:
0027     description:
0028       Interrupt specifier for the READY interrupt generated by the device.
0029     maxItems: 1
0030 
0031 required:
0032   - compatible
0033   - reg
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/interrupt-controller/irq.h>
0040 
0041     i2c {
0042         #address-cells = <1>;
0043         #size-cells = <0>;
0044 
0045         as73211@74 {
0046             compatible = "ams,as73211";
0047             reg = <0x74>;
0048             pinctrl-names = "default";
0049             pinctrl-0 = <&pinctrl_color_sensor>;
0050             interrupt-parent = <&gpio2>;
0051             interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */
0052         };
0053     };
0054 ...