17 Nov, 2014

4 commits


22 Sep, 2014

1 commit


15 Sep, 2014

2 commits

  • Add support for the BMI055 gyroscope sensor. BMI055 is a package
    consisting of an acceleration sensor and a gyroscope. This patch
    adds support for the gyroscope only.

    Spec downloaded from:
    http://ae-bst.resource.bosch.com/media/products/dokumente/bmi055/BST-BMI055-DS000-06.pdf

    The BMI055 gyroscope uses the same register definition as BMG160,
    but does not specify a temp register. However, the temp register
    seems to be working in the same way as for BMG160, so this patch
    does not remove the temp channel for BMI055.

    Signed-off-by: Irina Tirdea
    Reviewed-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Irina Tirdea
     
  • When CONFIG_PM_RUNTIME is not defined and bmg160 tries to power
    off the device, bmg160_set_power_state will call pm_runtime_put_autosuspend,
    which is not implemented (wil return -ENOSYS).

    Only call bmg160_set_power_state when CONFIG_PM_RUNTIME is defined.

    Signed-off-by: Irina Tirdea
    Acked-by: Hartmut Knaack
    Signed-off-by: Jonathan Cameron

    Irina Tirdea
     

27 Aug, 2014

2 commits


26 Aug, 2014

1 commit


14 Jul, 2014

1 commit


12 Jul, 2014

1 commit

  • The I2C devices that make up the STMicroelectronics MEMS sensors
    may be sneakily enabled by cleverly giving the device node the same
    name as a string match from the platform device ID table. However
    the right method is to use the compatible string.

    On detection, the ST sensors use the ID string to probe and
    instatiate the right sensor driver, so pass the kernel-internal ID
    string in the .data field of the OF match table, and set the I2C
    client name to this name when a compatible match is used.

    This avoids having misc Linux-specific strings floating around in
    the device tree.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     

07 Jul, 2014

3 commits


05 Jul, 2014

1 commit

  • IIO_CHAN_INFO_SAMP_FREQ and IIO_CHAN_INFO_HYSTERESIS cases ignored
    the actual return values (which could be -EINVAL) and instead
    returned IIO_VAL_INT_PLUS_MICRO always. Return the actual value
    obtained from the functions. Both functions return IIO_VAL_INT_PLUS_MICRO
    upon success.

    Signed-off-by: Sachin Kamat
    Cc: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Sachin Kamat
     

05 May, 2014

3 commits


26 Apr, 2014

2 commits

  • Currently the pressure sensor has code to retrieve and enable two
    regulators for Vdd and Vdd IO, but actually these voltage inputs
    are found on all of these ST sensors, so move the regulator
    handling to the core and make sure all the ST sensors call these
    functions on probe() and remove() to enable/disable power.

    Here also mover over to obtaining the regulator from the *parent*
    device of the IIO device, as the IIO device is created on-the-fly
    in this very subsystem it very unlikely evert have any regulators
    attached to it whatsoever. It is much more likely that the parent
    is a platform device, possibly instantiated from a device tree,
    which in turn have Vdd and Vdd IO supplied assigned to it.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     
  • It is pretty helpful to know already from dmesg that a certain
    device is successfully registered, instead of having to browse
    sysfs to see if it's actually there.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     

17 Mar, 2014

1 commit


18 Feb, 2014

1 commit

  • The driver was not able to manage the sensor: during probe function
    and wai check, the driver stops and writes: "device name and WhoAmI mismatch."
    The correct value of L3GD20H wai is 0xd7 instead of 0xd4.
    Dropped support for the sensor.

    Signed-off-by: Denis Ciocca
    Cc: stable@vger.kernel.org
    Signed-off-by: Jonathan Cameron

    Denis CIOCCA
     

03 Dec, 2013

1 commit


25 Nov, 2013

2 commits


06 Nov, 2013

1 commit

  • A number of Properties that can be applied to Data Fields are per data
    field basis or for all data fields. Adding sensitivity field for all
    gyro fields, which is most commonly used in currently available
    sensor hubs.

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Srinivas Pandruvada
     

03 Nov, 2013

1 commit

  • We can't store the trigger instance created by iio_trigger_alloc, in
    trig field of iio_device structure. This needs to be stored in the
    driver private data. Othewise it can result in crash during module
    unload. Hence created a trig_ptr in the common data structure
    for each HID sensor IIO driver and storing here.

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Srinivas Pandruvada
     

17 Oct, 2013

1 commit


05 Oct, 2013

3 commits


22 Sep, 2013

3 commits


16 Sep, 2013

1 commit


14 Sep, 2013

3 commits


20 Aug, 2013

1 commit