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/cm3605.txt

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 Capella Microsystems CM3605
    2 Ambient Light and Short Distance Proximity Sensor
    3 
    4 The CM3605 is an entirely analog part which however require quite a bit of
    5 software logic to interface a host operating system.
    6 
    7 This ALS and proximity sensor was one of the very first deployed in mobile
    8 handsets, notably it is used in the very first Nexus One Android phone from
    9 2010.
   10 
   11 Required properties:
   12 - compatible: must be: "capella,cm3605"
   13 - aset-gpios: GPIO line controlling the ASET line (drive low
   14   to activate the ALS, should be flagged GPIO_ACTIVE_LOW)
   15 - interrupts: the IRQ line (such as a GPIO) that is connected to
   16   the POUT (proximity sensor out) line. The edge detection must
   17   be set to IRQ_TYPE_EDGE_BOTH so as to detect movements toward
   18   and away from the proximity sensor.
   19 - io-channels: the ADC channel used for converting the voltage from
   20   AOUT to a digital representation.
   21 - io-channel-names: must be "aout"
   22 
   23 Optional properties:
   24 - vdd-supply: regulator supplying VDD power to the component.
   25 - capella,aset-resistance-ohms: the sensitivity calibration resistance,
   26   in Ohms. Valid values are: 50000, 100000, 300000 and 600000,
   27   as these are the resistance values that we are supplied with
   28   calibration curves for. If not supplied, 100 kOhm will be assumed
   29   but it is strongly recommended to supply this.
   30 
   31 Example:
   32 
   33 cm3605 {
   34         compatible = "capella,cm3605";
   35         vdd-supply = <&foo_reg>;
   36         aset-gpios = <&foo_gpio 1 GPIO_ACTIVE_LOW>;
   37         capella,aset-resistance-ohms = <100000>;
   38         interrupts = <1 IRQ_TYPE_EDGE_BOTH>;
   39         io-channels = <&adc 0x01>;
   40         io-channel-names = "aout";
   41 };

Cache object: dc1a54883a7243a5af94de565711ebe1


[ 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.