1. 25 Jul, 2020 2 commits
  2. 23 Jul, 2020 9 commits
  3. 22 Jul, 2020 7 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.9b' of... · 6c1649f5
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.9b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of new device support, cleanups etc for IIO/Counters in the 5.9 cycle
      
      There are two merge commits in here of immutable branches that may
      also be picked up through other trees (clocksource and input)
      
      I've put a few late breaking fixes in here that aren't worth rushing
      in before the  merge window.  One major fix for an issue introduced
      in the last set that can result in devices not having their parent set.
      
      This set is dominated by W=1 cleanups from Lee Jones. I won't list them
      all separately.  They are mostly:
      * Kernel doc fixes
      * Unused variable removal.
      * Suppression of unused stuff that is static in headers.
      
      Counters subsystem
      * atmel-tcb
        - New counter driver after various cleanups of existing tcb code and bindings.
      
      Device support
      * stk311
        - Trivial addition of ID for STK311-X variant.
      
      yaml conversions
      * kionix,kxsd9
      * ti,ads8688
      
      Features
      * jz47xx
        - Add support for touch screen channels. In this particular case the
          boards in question actually wire a joystick to them so we want them
          as simple voltage channels. The joystick driver will probably go
          via the input tree.
      
      Cleanups + fixes
      * core
        - A rebase issue in recent major refactoring dropped the assignment of
          of the device parent in the core. Put it back.
      * ad5592r
        - Fix unbalanced mutex unlocks in *_read_raw()
      * ad7124
        - Move chip ID and name to the chip_info table plus add a read of the
          revision register to check the device is working during probe.
      * ad7192
        - Ridy up ordering to put the match table near the end fo the file where it
          is used.
      * lsm6dsx
        - Reset the hardware timestamp after a resume to avoid an issue with
          missaligned timestamps after suspend.
      * jz47xx
        - Error checks on clk_enable() calls.
        - xlate callaback to find channel index.
        - Use separate chan_spec arrays for different variants rather than
          parts of a single list.  Simplifies code.
      
      * tag 'iio-for-5.9b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (69 commits)
        iio: imu: st_lsm6dsx: reset hw ts after resume
        iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()
        iio: core: fix/re-introduce back parent assignment
        iio: adc: ad7124: move chip ID & name on the chip_info table
        counter: Add microchip TCB capture counter
        dt-bindings: counter: microchip-tcb-capture counter
        dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible
        dt-bindings: atmel-tcb: convert bindings to json-schema
        ARM: at91: add atmel tcb capabilities
        IIO: Ingenic JZ47xx: Add touchscreen mode.
        dt-bindings: iio/adc: Add touchscreen idx for JZ47xx SoC ADC
        iio/adc: ingenic: Retrieve channels list from soc data struct
        IIO: Ingenic JZ47xx: Add xlate cb to retrieve correct channel idx
        IIO: Ingenic JZ47xx: Error check clk_enable calls.
        dt-bindings: iio: ti,ads8688 yaml conversion
        iio: light: stk3310: add chip id for STK3311-X variant
        dt-bindings: iio: accel: kionix,kxsd9 yaml conversion.
        iio: adc: ad7192: move ad7192_of_match table closer to the end of the file
        iio: adc: rockchip_saradc: Demote seemingly unintentional kerneldoc header
        iio: imu: st_lsm6dsx: st_lsm6dsx: Mark 'st_lsm6dsx_accel_ext_info' as __maybe_unused
        ...
      6c1649f5
    • Lorenzo Bianconi's avatar
      iio: imu: st_lsm6dsx: reset hw ts after resume · a1bab939
      Lorenzo Bianconi authored
      Reset hw time samples generator after system resume in order to avoid
      disalignment between system and device time reference since FIFO
      batching and time samples generator are disabled during suspend.
      
      Fixes: 21345107 ("iio: imu: st_lsm6dsx: add hw timestamp support")
      Tested-by: default avatarSean Nyekjaer <sean@geanix.com>
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      a1bab939
    • Alexandru Ardelean's avatar
      iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw() · 65afb093
      Alexandru Ardelean authored
      There are 2 exit paths where the lock isn't held, but try to unlock the
      mutex when exiting. In these places we should just return from the
      function.
      
      A neater approach would be to cleanup the ad5592r_read_raw(), but that
      would make this patch more difficult to backport to stable versions.
      
      Fixes 56ca9db8: ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
      Reported-by: default avatarCharles Stanhope <charles.stanhope@gmail.com>
      Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      65afb093
    • Jonathan Cameron's avatar
      Merge branch 'ib-5.8-tcb' into HEAD · 1c2f21be
      Jonathan Cameron authored
      Series needed as base for a clocksource tree hence immutable branch
      1c2f21be
    • Jonathan Cameron's avatar
      Merge branch 'ib-5.8-jz47xx-ts' into HEAD · d0d7c584
      Jonathan Cameron authored
      Immutable branch may be needed in input for a joystick set that is
      dependent on it.
      d0d7c584
    • Alexandru Ardelean's avatar
      iio: core: fix/re-introduce back parent assignment · 8525df47
      Alexandru Ardelean authored
      This was introduced initially via commit 78289b4a ("iio: core: pass
      parent device as parameter during allocation"), but was accidentally
      removed via commit 6d4ebd56 ("iio: core: wrap IIO device into an
      iio_dev_opaque object").
      
      This looks like a rebase gone wrong, and ends up breaking devicetree
      bindings of IIO clients.
      
      This change adds back the parent assignment.
      
      Fixes 6d4ebd56: ("iio: core: wrap IIO device into an iio_dev_opaque object")
      Reported-by: default avatarDmitry Baryshkov <dbaryshkov@gmail.com>
      Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
      Tested-by: default avatarDmitry Baryshkov <dbaryshkov@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      8525df47
    • Alexandru Ardelean's avatar
      iio: adc: ad7124: move chip ID & name on the chip_info table · 951ad470
      Alexandru Ardelean authored
      This change does the following:
      * removes the SPI device table in favor of the OF device table
      * adds 'name' && 'chip_id' fields to chip_info
      * implements chip ID & silicon revision checking; the device ID for
        AD7124-4 is 0x0, so just checking that value can be useless;
        but at least the silicon revision isn't 0, so a non-zero value can be
        used to check that "a" device is on the SPI bus; it's probably the best
        way to narrow it down to one of the 2 AD7124 chip IDs
      Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      951ad470
  4. 21 Jul, 2020 11 commits
  5. 20 Jul, 2020 11 commits