1. 29 1月, 2017 3 次提交
    • F
      iio: adc: stm32: Enable use of stm32 timer triggers · f24a33b3
      Fabrice Gasnier 提交于
      STM32 ADC has external timer trigger sources. Use stm32 timer triggers
      API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to
      validate a trigger can be used.
      This also provides correct trigger selection value (e.g. extsel).
      Signed-off-by: NFabrice Gasnier <fabrice.gasnier@st.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      f24a33b3
    • F
      iio: adc: stm32: add support for triggered buffer mode · da9b9485
      Fabrice Gasnier 提交于
      STM32 ADC conversions can be launched using hardware triggers.
      It can be used to start conversion sequences (group of channels).
      Selected channels are select via sequence registers.
      Trigger source is selected via 'extsel' (external trigger mux).
      Trigger polarity is set to rising edge by default.
      Signed-off-by: NFabrice Gasnier <fabrice.gasnier@st.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      da9b9485
    • A
      iio: distance: srf08: add IIO driver for us ranger · 78f83902
      Andreas Klinger 提交于
      This is the IIO driver for devantech srf08 ultrasonic ranger which can be
      used to measure the distances to an object.
      
      The sensor supports I2C with some registers.
      
      Supported Features include:
       - read the distance in ranging mode in centimeters
       - output of the driver is directly the read value
       - together with the scale the driver delivers the distance in meters
       - only the first echo of the nearest object is delivered
       - set sensitivity as analog value in the range of 0-31  means setting
         gain register on device
       - set range registers; userspace enters max. range in millimeters in
         43 mm steps
      
      Features not supported by this driver:
       - ranging mode in inches or in microseconds
       - ANN mode
       - change I2C address through this driver
       - light sensor
      
      The driver was added in the directory "proximity" of the iio subsystem and
      the menu in den config is now called "Proximity and distance sensors"
      Signed-off-by: NAndreas Klinger <ak@it-klinger.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      78f83902
  2. 28 1月, 2017 13 次提交
  3. 27 1月, 2017 13 次提交
  4. 26 1月, 2017 2 次提交
    • B
      iio: Add STM32 timer trigger driver · 93fbe91b
      Benjamin Gaignard 提交于
      Timers IPs can be used to generate triggers for other IPs like
      DAC or ADC.
      Each trigger may result of timer internals signals like counter enable,
      reset or edge, this configuration could be done through "master_mode"
      device attribute.
      
      Since triggers could be used by DAC or ADC their names are defined
      in include/ nux/iio/timer/stm32-timer-trigger.h and is_stm32_iio_timer_trigger
      function could be used to check if the trigger is valid or not.
      
      "trgo" trigger have a "sampling_frequency" attribute which allow to configure
      timer sampling frequency.
      
      version 8:
      - change kernel version from 4.10 to 4.11 in ABI documentation
      
      version 7:
      - remove all iio_device related code
      - move driver into trigger directory
      
      version 5:
      - simplify tables of triggers
      - only create an IIO device when needed
      
      version 4:
      - get triggers configuration from "reg" in DT
      - add tables of triggers
      - sampling frequency is enable/disable when writing in trigger
        sampling_frequency attribute
      - no more use of interruptions
      
      version 3:
      - change compatible to "st,stm32-timer-trigger"
      - fix attributes access right
      - use string instead of int for master_mode and slave_mode
      - document device attributes in sysfs-bus-iio-timer-stm32
      
      version 2:
      - keep only one compatible
      - use st,input-triggers-names and st,output-triggers-names
        to know which triggers are accepted and/or create by the device
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      93fbe91b
    • B
      pwm: Add driver for STM32 plaftorm · 7edf7369
      Benjamin Gaignard 提交于
      This driver adds support for PWM driver on STM32 platform.
      The SoC have multiple instances of the hardware IP and each
      of them could have small differences: number of channels,
      complementary output, auto reload register size...
      
      version 9:
      - fix commit message header
      - remove one space MODULE_ALIAS
      
      version 8:
      - fix comments done by Thierry on version 7
      
      version 6:
      - change st,breakinput parameter to make it usuable for stm32f7 too.
      
      version 4:
      - detect at probe time hardware capabilities
      - fix comments done on v2 and v3
      - use PWM atomic ops
      
      version 2:
      - only keep one comptatible
      - use DT parameters to discover hardware block configuration
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      7edf7369
  5. 25 1月, 2017 3 次提交
  6. 23 1月, 2017 6 次提交