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/avago,apds9300.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Avago APDS9300 ambient light sensor
0008 
0009 maintainers:
0010   - Jonathan Cameron <jic23@kernel.org>
0011 
0012 description: |
0013   Datasheet at https://www.avagotech.com/docs/AV02-1077EN
0014 
0015 properties:
0016   compatible:
0017     const: avago,apds9300
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025 additionalProperties: false
0026 
0027 required:
0028   - compatible
0029   - reg
0030 
0031 examples:
0032   - |
0033     i2c {
0034         #address-cells = <1>;
0035         #size-cells = <0>;
0036 
0037         light-sensor@39 {
0038             compatible = "avago,apds9300";
0039             reg = <0x39>;
0040             interrupt-parent = <&gpio2>;
0041             interrupts = <29 8>;
0042         };
0043     };
0044 ...