Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/amstaos,tsl2563.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: AMS TAOS TSL2563 ambient light sensor
0008 
0009 maintainers:
0010   - Sebastian Reichel <sre@kernel.org>
0011 
0012 description: |
0013   Ambient light sensor with an i2c interface.
0014 
0015 properties:
0016   compatible:
0017     enum:
0018       - amstaos,tsl2560
0019       - amstaos,tsl2561
0020       - amstaos,tsl2562
0021       - amstaos,tsl2563
0022 
0023   reg:
0024     maxItems: 1
0025 
0026   amstaos,cover-comp-gain:
0027     description: Multiplier for gain compensation
0028     $ref: /schemas/types.yaml#/definitions/uint32
0029     enum: [1, 16]
0030 
0031 required:
0032   - compatible
0033   - reg
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     i2c {
0040 
0041       #address-cells = <1>;
0042       #size-cells = <0>;
0043 
0044       light-sensor@29 {
0045         compatible = "amstaos,tsl2563";
0046         reg = <0x29>;
0047         amstaos,cover-comp-gain = <16>;
0048       };
0049     };
0050 ...