1. 17 5月, 2017 1 次提交
    • S
      iio: hid-sensor-hub: Implement batch mode · 138bc796
      Srinivas Pandruvada 提交于
      HID sensor hubs using Integrated Senor Hub (ISH) has added capability to
      support batch mode. This allows host processor to go to sleep for extended
      duration, while the sensor hub is storing samples in its internal buffers.
      
      'Commit f4f4673b ("iio: add support for hardware fifo")' implements
      feature in IIO core to implement such feature. This feature is used in
      bmc150-accel-core.c to implement batch mode. This implementation allows
      software device buffer watermark to be used as a hint to adjust hardware
      FIFO.
      
      But HID sensor hubs don't allow to change internal buffer size of FIFOs.
      Instead an additional usage id to set "maximum report latency" is defined.
      This allows host to go to sleep upto this latency period without getting
      any report. Since there is no ABI to set this latency, a new attribute
      "hwfifo_timeout" is added so that user mode can specify a latency.
      
      This change checks presence of usage id to get/set maximum report latency
      and if present, it will expose hwfifo_timeout.
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      138bc796
  2. 05 3月, 2017 1 次提交
  3. 11 2月, 2017 2 次提交
  4. 14 1月, 2017 1 次提交
  5. 05 1月, 2017 1 次提交
  6. 31 12月, 2016 1 次提交
  7. 02 10月, 2016 1 次提交
  8. 01 7月, 2016 1 次提交
  9. 30 5月, 2016 1 次提交
  10. 24 4月, 2016 2 次提交
    • G
      iio:imu:mpu6050: enhance mounting matrix support · eb379846
      Gregor Boirie 提交于
      Add a new rotation matrix sysfs attribute compliant with IIO core
      mounting matrix API.
      Matrix is retrieved from "in_anglvel_mount_matrix" and
      "in_accel_mount_matrix" sysfs attributes. It is declared into mpu6050 DTS
      entry as a "mount-matrix" property.
      
      Old interface is kept for backward userspace compatibility and may be
      retrieved from legacy platform_data mechanism only.
      Signed-off-by: NGregor Boirie <gregor.boirie@parrot.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      eb379846
    • G
      iio:core: mounting matrix support · dfc57732
      Gregor Boirie 提交于
      Expose a rotation matrix to indicate userspace the chip placement with
      respect to the overall hardware system. This is needed to adjust
      coordinates sampled from a sensor chip when its position deviates from the
      main hardware system.
      
      Final coordinates computation is delegated to userspace since:
      * computation may involve floating point arithmetics ;
      * it allows an application to combine adjustments with arbitrary
        transformations.
      
      This 3 dimentional space rotation matrix is expressed as 3x3 array of
      strings to support floating point numbers. It may be retrieved from a
      "[<dir>_][<type>_]mount_matrix" sysfs attribute file. It is declared into a
      device / driver specific DTS property or platform data.
      Signed-off-by: NGregor Boirie <gregor.boirie@parrot.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      dfc57732
  11. 03 4月, 2016 2 次提交
  12. 20 3月, 2016 1 次提交
  13. 09 2月, 2016 1 次提交
  14. 31 1月, 2016 1 次提交
  15. 04 1月, 2016 1 次提交
  16. 11 10月, 2015 1 次提交
  17. 01 10月, 2015 1 次提交
  18. 24 9月, 2015 3 次提交
  19. 09 8月, 2015 1 次提交
  20. 19 7月, 2015 2 次提交
  21. 14 6月, 2015 2 次提交
  22. 23 5月, 2015 1 次提交
  23. 17 5月, 2015 1 次提交
  24. 11 5月, 2015 1 次提交
  25. 09 4月, 2015 1 次提交
  26. 31 3月, 2015 1 次提交
  27. 29 3月, 2015 3 次提交
    • M
      Documentation/ABI:iio:fix typo · 5798cd23
      Martin Kepplinger 提交于
      Signed-off-by: NMartin Kepplinger <martink@posteo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      5798cd23
    • O
      iio: add support for hardware fifo · f4f4673b
      Octavian Purdila 提交于
      Some devices have hardware buffers that can store a number of samples
      for later consumption. Hardware usually provides interrupts to notify
      the processor when the FIFO is full or when it has reached a certain
      watermark level. This helps with reducing the number of interrupts to
      the host processor and thus it helps decreasing the power consumption.
      
      This patch enables usage of hardware FIFOs for IIO devices in
      conjunction with software device buffers. When the hardware FIFO is
      enabled the samples are stored in the hardware FIFO. The samples are
      later flushed to the device software buffer when the number of entries
      in the hardware FIFO reaches the hardware watermark or when a flush
      operation is triggered by the user when doing a non-blocking read
      on an empty software device buffer.
      
      In order to implement hardware FIFO support the device drivers must
      implement the following new operations: setting and getting the
      hardware FIFO watermark level, flushing the hardware FIFO to the
      software device buffer. The device must also expose information about
      the hardware FIFO such it's minimum and maximum watermark and if
      necessary a list of supported watermark values. Finally, the device
      driver must activate the hardware FIFO when the device buffer is
      enabled, if the current device settings allows it.
      
      The software device buffer watermark is passed by the IIO core to the
      device driver as a hint for the hardware FIFO watermark. The device
      driver can adjust this value to allow for hardware limitations (such
      as capping it to the maximum hardware watermark or adjust it to a
      value that is supported by the hardware). It can also disable the
      hardware watermark (and implicitly the hardware FIFO) it this value is
      below the minimum hardware watermark.
      
      Since a driver may support hardware FIFO only when not in triggered
      buffer mode (due to different semantics of hardware FIFO sampling and
      triggered sampling) this patch changes the IIO core code to allow
      falling back to non-triggered buffered mode if no trigger is enabled.
      Signed-off-by: NOctavian Purdila <octavian.purdila@intel.com>
      Reviewed-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      f4f4673b
    • J
      iio: add watermark logic to iio read and poll · 37d34556
      Josselin Costanzi 提交于
      Currently the IIO buffer blocking read only wait until at least one
      data element is available.
      This patch makes the reader sleep until enough data is collected before
      returning to userspace. This should limit the read() calls count when
      trying to get data in batches.
      
      Co-author: Yannick Bedhomme <yannick.bedhomme@mobile-devices.fr>
      Signed-off-by: NJosselin Costanzi <josselin.costanzi@mobile-devices.fr>
      [rebased and remove buffer timeout]
      Signed-off-by: NOctavian Purdila <octavian.purdila@intel.com>
      Reviewed-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      37d34556
  28. 28 3月, 2015 2 次提交
  29. 15 3月, 2015 2 次提交