1. 13 2月, 2017 8 次提交
  2. 08 2月, 2017 1 次提交
  3. 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
  4. 23 1月, 2017 1 次提交
    • B
      mfd: Add STM32 Timers driver · d0f949e2
      Benjamin Gaignard 提交于
      This hardware block could at used at same time for PWM generation
      and IIO timers.
      PWM and IIO timer configuration are mixed in the same registers
      so we need a multi fonction driver to be able to share those registers.
      
      version 7:
      - rebase on v4.10-rc2
      
      version 6:
      - rename files to stm32-timers
      - rename functions to stm32_timers_xxx
      
      version 5:
      - fix Lee comments about detect function
      - add missing dependency on REGMAP_MMIO
      
      version 4:
      - add a function to detect Auto Reload Register (ARR) size
      - rename the structure shared with other drivers
      
      version 2:
      - rename driver "stm32-gptimer" to be align with SoC documentation
      - only keep one compatible
      - use of_platform_populate() instead of devm_mfd_add_devices()
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      d0f949e2
  5. 05 1月, 2017 3 次提交
  6. 04 1月, 2017 3 次提交
  7. 26 12月, 2016 3 次提交
    • L
      avoid spurious "may be used uninitialized" warning · d33d5a6c
      Linus Torvalds 提交于
      The timer type simplifications caused a new gcc warning:
      
        drivers/base/power/domain.c: In function ‘genpd_runtime_suspend’:
        drivers/base/power/domain.c:562:14: warning: ‘time_start’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start));
      
      despite the actual use of "time_start" not having changed in any way.
      It appears that simply changing the type of ktime_t from a union to a
      plain scalar type made gcc check the use.
      
      The variable wasn't actually used uninitialized, but gcc apparently
      failed to notice that the conditional around the use was exactly the
      same as the conditional around the initialization of that variable.
      
      Add an unnecessary initialization just to shut up the compiler.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d33d5a6c
    • T
      ktime: Cleanup ktime_set() usage · 8b0e1953
      Thomas Gleixner 提交于
      ktime_set(S,N) was required for the timespec storage type and is still
      useful for situations where a Seconds and Nanoseconds part of a time value
      needs to be converted. For anything where the Seconds argument is 0, this
      is pointless and can be replaced with a simple assignment.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      8b0e1953
    • T
      ktime: Get rid of the union · 2456e855
      Thomas Gleixner 提交于
      ktime is a union because the initial implementation stored the time in
      scalar nanoseconds on 64 bit machine and in a endianess optimized timespec
      variant for 32bit machines. The Y2038 cleanup removed the timespec variant
      and switched everything to scalar nanoseconds. The union remained, but
      become completely pointless.
      
      Get rid of the union and just keep ktime_t as simple typedef of type s64.
      
      The conversion was done with coccinelle and some manual mopping up.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      2456e855
  8. 25 12月, 2016 11 次提交
  9. 24 12月, 2016 8 次提交