1. 14 1月, 2017 2 次提交
  2. 11 1月, 2017 16 次提交
  3. 05 1月, 2017 2 次提交
  4. 31 12月, 2016 6 次提交
    • M
    • P
    • M
      iio: dac: ad5593r: Add ACPI support · 2cc5b0df
      Michael Hennerich 提交于
      This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
      designed around the unified device property API.
      Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      2cc5b0df
    • M
      iio: dac: ad5592r: Add ACPI support · b0570bce
      Michael Hennerich 提交于
      This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
      designed around the unified device property API.
      Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      b0570bce
    • L
      iio: light: add driver for Capella CM3605 · 8afa505c
      Linus Walleij 提交于
      This adds a driver for the Capella Microsystems CM3605 Ambient
      Light Sensor and proximity sensor. This is a pretty simple entirely
      analog device that is interfaced with the target system using
      the POUT (proximity out) and AOUT (ambient light out) signals.
      
      The POUT signal is a simple high/low signal that indicates whether
      an object is in proximity, most typically used to detect a face
      in front of a mobile device. The signal requires that an infrared
      LED is mounted next to the device, making IR light reflect off
      the object in proximity and triggering the POUT signal. We grab
      a GPIO pin to handle the POUT signal as an interrupt line and
      register this as an event channel for the sensor.
      
      Since the proximity sensor requires an IR LED, we add a LED trigger
      named "cm3605" so that the infrared LED can just associate with
      this trigger to be sure it is always on when the proximity sensor
      needs it.
      
      The AOUT is an analog voltage between 0 and 1550 mV that indicate
      the LUX value in the ambient light: this is orthogonal to the
      proximity sensor functionality. Since this analog voltage needs
      to be converted into a digital value, the driver grabs an IIO
      channel named "aout" associated with the device.
      
      This patch created a combined ALS and proximity sensor driver.
      The former supports raw reads of the LUX value and the latter
      will generate proximity events.
      
      To integrate this properly with Linux we also add a supply
      regulator for the VDD pin (driving both functions) and add device
      tree bindings to define the RSET resistor that in turn configures
      the luminosity range of the ALS sensor.
      
      Since the sensor needs to be on more or less constantly, we
      restrict the power management to system suspend/resume: we
      disable the IR LED and disable the regulator for VDD on suspend
      and take them back up on resume.
      
      Tests:
      cd /sys/bus/iio/devices/iio:device1
      cat in_illuminance_raw
      304
      (hold hand over sensor)
      cat in_illuminance_raw
      17
      iio_event_monitor cm3605
      Found IIO device with name cm3605 with device number 1
      (hold hand over sensor)
      Event: time: 2444842301447, type: proximity, channel: 0,
        evtype: thresh, direction: falling
      (remove hand over sensor)
      Event: time: 2445583440706, type: proximity, channel: 0,
        evtype: thresh, direction: rising
      
      Cc: Capella Microsystems <capellamicro@gmail.com>
      Cc: Kevin Tsai <ktsai@capellamicro.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      8afa505c
    • K
      iio: light: hid-sensor-als: Add duplicate IIO_LIGHT channel · 578f8d77
      Kweh, Hock Leong 提交于
      There is one light sensor type defined in the sensor hub specification,
      which has one Illuminance field. It doesn't distinguish between ambient
      light sensor or color sensor. Currently it is presented as IIO_INTENSITY
      channel. There are some user spaces specifically looking for IIO_LIGHT
      channel.
      To satisfy such user spaces this change also add a duplicate IIO_LIGHT
      channel. The units of measurement of Illuminance field is Lux, so it is
      still compatible to IIO ABI.
      Signed-off-by: NKweh, Hock Leong <hock.leong.kweh@intel.com>
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      578f8d77
  5. 30 12月, 2016 4 次提交
  6. 11 12月, 2016 2 次提交
  7. 04 12月, 2016 1 次提交
  8. 03 12月, 2016 7 次提交