The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/iio/light/upisemi,us5182.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/iio/light/upisemi,us5182.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: UPISEMI us5182d I2C ALS and Proximity sensor
    8 
    9 maintainers:
   10   - Jonathan Cameron <jic23@kernel.org>
   11 
   12 properties:
   13   compatible:
   14     const: upisemi,usd5182
   15 
   16   reg:
   17     maxItems: 1
   18 
   19   upisemi,glass-coef:
   20     $ref: /schemas/types.yaml#/definitions/uint32
   21     description: |
   22       glass attenuation factor - compensation factor of resolution 1000
   23       for material transmittance.
   24     default: 1000
   25 
   26   upisemi,dark-ths:
   27     $ref: /schemas/types.yaml#/definitions/uint16-array
   28     minItems: 8
   29     maxItems: 8
   30     description:
   31       16-bit thresholds (adc counts) corresponding to every scale.
   32 
   33   upisemi,upper-dark-gain:
   34     $ref: /schemas/types.yaml#/definitions/uint8
   35     description: |
   36       8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4)
   37       applied when light > threshold.
   38     default: 0
   39 
   40   upisemi,lower-dark-gain:
   41     $ref: /schemas/types.yaml#/definitions/uint8
   42     description: |
   43       8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4)
   44       applied when light < threshold.
   45     default: 0x16
   46 
   47   upisemi,continuous:
   48     $ref: /schemas/types.yaml#/definitions/flag
   49     description: |
   50       This chip has two power modes: one-shot (chip takes one measurement and
   51       then shuts itself down) and continuous (chip takes continuous
   52       measurements). The one-shot mode is more power-friendly but the
   53       continuous mode may be more reliable. If this property is specified
   54       the continuous mode will be used instead of the default one-shot one for
   55       raw reads.
   56 
   57 additionalProperties: false
   58 
   59 required:
   60   - compatible
   61   - reg
   62 
   63 examples:
   64   - |
   65     i2c {
   66         #address-cells = <1>;
   67         #size-cells = <0>;
   68 
   69         light-sensor@39 {
   70             compatible = "upisemi,usd5182";
   71             reg = <0x39>;
   72             upisemi,glass-coef = < 1000 >;
   73             upisemi,dark-ths = /bits/ 16 <170 200 512 512 800 2000 4000 8000>;
   74             upisemi,upper-dark-gain = /bits/ 8 <0x00>;
   75             upisemi,lower-dark-gain = /bits/ 8 <0x16>;
   76         };
   77     };
   78 ...

Cache object: 28916c151bce23f1899688676fe37117


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.