1. 13 Feb, 2017 30 commits
  2. 08 Feb, 2017 2 commits
  3. 25 Jan, 2017 3 commits
    • Benjamin Gaignard's avatar
      iio: Add STM32 timer trigger driver · 93fbe91b
      Benjamin Gaignard authored
      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: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      93fbe91b
    • Benjamin Gaignard's avatar
      iio: Add bindings for STM32 timer trigger driver · bf2d8581
      Benjamin Gaignard authored
      Define bindings for STM32 timer trigger
      
      version 8:
      - reword "reg" parameter description
      
      version 4:
      - remove triggers enumeration from DT
      - add reg parameter
      
      version 3:
      - change file name
      - add cross reference with mfd bindings
      
      version 2:
      - only keep one compatible
      - add DT parameters to set lists of the triggers:
        one list describe the triggers created by the device
        another one give the triggers accepted by the device
      Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      bf2d8581
    • Benjamin Gaignard's avatar
      pwm: Add driver for STM32 plaftorm · 7edf7369
      Benjamin Gaignard authored
      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: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      7edf7369
  4. 23 Jan, 2017 3 commits
  5. 04 Jan, 2017 2 commits
    • Hans de Goede's avatar
      power: supply: axp288_fuel_gauge: Drop platform_data dependency · 888f9743
      Hans de Goede authored
      When the axp288_faul_gauge driver was originally merged, it was
      merged with a dependency on some other driver providing platform
      data for it.
      
      However the battery-data-framework which should provide that data
      never got merged, resulting in x86 tablets / laptops with an axp288
      having no working battery monitor, as before this commit the driver
      would simply return -ENODEV if there is no platform data.
      
      This commit removes the dependency on the platform_data instead
      checking that the firmware has initialized the fuel-gauge and
      reading the info back from the pmic.
      
      What is missing from the read-back info is the table to map raw adc
      values to temperature, so this commit drops the temperature and
      temperature limits properties. The min voltage, charge design and
      model name info is also missing. Note that none of these are really
      important for userspace to have.
      
      All other functionality is preserved and actually made available
      by this commit.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=88471Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      888f9743
    • Hans de Goede's avatar
      power: supply: axp288_charger: Drop platform_data dependency · eac53b36
      Hans de Goede authored
      When the axp288_charger driver was originally merged, it was merged with
      a dependency on some other driver providing platform data for it.
      
      However the battery-data-framework which should provide that data never
      got merged, so the axp288_charger as merged upstream has never worked,
      its probe method simply always returns -ENODEV.
      
      This commit removes the dependency on the platform_data instead reading
      back the charging current and charging voltage that the firmware has set
      and using those values as the maximum values the user may set.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      eac53b36