0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/noa1305.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ON Semiconductor NOA1305 Ambient Light Sensor
0008
0009 maintainers:
0010 - Martyn Welch <martyn.welch@collabora.com>
0011
0012 description: |
0013 Ambient sensing with an i2c interface.
0014
0015 https://www.onsemi.com/pub/Collateral/NOA1305-D.PDF
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - onnn,noa1305
0021
0022 reg:
0023 maxItems: 1
0024
0025 vin-supply:
0026 description: Regulator that provides power to the sensor
0027
0028 required:
0029 - compatible
0030 - reg
0031
0032 additionalProperties: false
0033
0034 examples:
0035 - |
0036 i2c {
0037
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040
0041 light@39 {
0042 compatible = "onnn,noa1305";
0043 reg = <0x39>;
0044 };
0045 };
0046 ...