<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/iio/adc, branch linux-4.3.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.3.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2015-10-03T09:27:18+00:00</updated>
<entry>
<title>iio: adc: twl4030: Fix ADC[3:6] readings</title>
<updated>2015-10-03T09:27:18+00:00</updated>
<author>
<name>Adam YH Lee</name>
<email>adam.yh.lee@gmail.com</email>
</author>
<published>2015-08-04T18:15:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7cc97d77ee8a90a6389b96a62472cddc02475ffc'/>
<id>urn:sha1:7cc97d77ee8a90a6389b96a62472cddc02475ffc</id>
<content type='text'>
MADC[3:6] reads incorrect values without these two following changes:

- enable the 3v1 bias regulator for ADC[3:6]
- configure ADC[3:6] lines as input, not as USB

Signed-off-by: Adam YH Lee &lt;adam.yh.lee@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'iio-for-4.3b-2' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next</title>
<updated>2015-08-12T19:43:41+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2015-08-12T19:43:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1c46ae0af6df0bbde66c5e868563be57f18a27b4'/>
<id>urn:sha1:1c46ae0af6df0bbde66c5e868563be57f18a27b4</id>
<content type='text'>
Jonathan writes:

Second set of new device support, features and cleanup for the 4.3 cycle.
Take 2 also includes a fix set that was too late for the 4.2 cycle.

As we had a lot of tools and docs work in this set, I have broken those
out into their own categories in this description.

Fixes from the pull request '4th set of IIO fixes for the 4.2 cycle'.
* Poll functions for both event chardev and the buffer one were returning
  negative error codes (via a positive value).
* A recent change to lsiio adding some error handling that was wrong and
  stopped the tool working.
* bmg160 was missing some dependencies in Kconfig
* berlin2-adc had a misshandled register (wrote a value rather than a bitmap)

New device support
* TI opt3001 light sensor
* TXC PA12 ALS and proximity sensor.
* mcp3301 ADC support (in mcp320x driver)
* ST lsm303agr accelerometer and magnetometer drivers (plus some st-sensors
  common support to allow different WHOAMI register addresses, devices with
  fixed scale and allow interrupt equiped magnetometers).
* ADIS16305, ADIS16367, ADIS16445IMUs (in the adis16400 driver)
* ADIS16266 gyro (in the adis16260 driver)
* ADIS16137 gyro (in the adis16136 driver)

New functionality
* mmc35240 DT bindings.
* Inverse unit conversion macros to aid handing of values written to sysfs
  attributes.

Core cleanup
* Forward declaration of struct iio_trigger to avoid a compile warning.

Driver cleanup / fixes
* mxs-lradc
  - Clarify which parts are supported.
  - Fix spelling erorrs.
  - Missing/extra includes
  - reorder includes
  - add datasheet name listings for all usable channels (to allow them
    to be bound by name from consumer drivers)
* acpi-als - add some function prefixes as per general iio style.
* bmc150_magn - replace a magic value with the existing define.
* vf610 - determine possible sample frequencies taking into account the
  electrical characteristics (defining a minimum sample time)
* dht11
  - whitespace
  - additional docs
  - avoid mulitple assignments in one line
  - Use the new funciton ktime_get_resolution_ns to cleanup a nasty trick
    previously used for timing.
* Fix all drivers that consider 0 a valid IRQ for historical reasons.
* Export I2C module alias info where previously missing (to allow autoprobing)
* Export OF module alias info where previously missing.
* mmc35240 - switch some variables into arrays to improve readability.
* mlx90614 - define some magic numbers for readability.
* bmc150_magn
  - expand area locked by a mutex to cover all the use of the
    data-&gt;buffer.
  - use descriptive naming for a mask instead of a magic value.
* berin2-adc
  - pass up an error code rather that a generic error
  - constify the iio_chan_spec
  - some other little tidy ups.
* stk8312
  - fix a dependency on triggered buffers in kconfig
  - add a check for invalid attribute values
  - improve error handling by returning error codes where possible and
    return immediately where relevant
  - rework macro defs to use GENMASK etc
  - change some variable types to reduce unnecessary casting
  - clean up code style
  - drop a local buffer copy for bulk reads and use the one in data-&gt;buffer
     instead.
* adis16400 - the adis16448 gyroscope scale was wrong.
* adis16480 - some more wrong scales for various parts.
* adis16300 - has an undocumented product id and serial number registers so
  use them.
* iio_simple_dummy - fix some wrong code indentation.
* bmc150-accel - use the chip ID to detect the chip present rather than
  verifying the expected part was there.  This was in response to a wrong
  ACPI entry on the WinBook TW100.
* mma8452
  - fix _get_hp_filter_index
  - drop a double include
  - pass up an error code rather than rewriting it
  - range check input values to attribute writes
  - register defs tidy up using GENMASK and reordering them to be easier to
    follow.
  - various coding style cleanups
  - put the Kconfig entry in the write place (alphabetically).

Tools related
* Tools cleanup - drop an explicity NULL comparison, some unnecessary braces,
  use the ARRAY_SIZE macro, send error messages to stderr instead of dropping
  them in the middle of normal output.
* Fix tools to allow that scale and offset attributes are optional.
* More tools fixes including allowing true 32bit data (previously an overflow
  prevented more than 31bits)
* Drop a stray header guard that ended up in a c file.
* Make calc_digits static as it isn't exported or in the header.
* Set ci_array pointer to NULL after free as a protection against non safe
  usage of the tools core code.  Also convert a double pointer to a single
  one as the extra level of indirection was unnecessary.

Docs
* DocBook introduction by Daniel Baluta.  Glad we are beginning to
  draw together some more introductory docs to suplement the various
  tools / examples.
* Drop bytes_per_datum sysfs attribute docs as it no longer exists.
* A whole load of missing / fixing of kernel-doc for the core of IIO.
* Document the trigger name sysfs attribute in the ABI docs.
* Minor typos in the ABI docs related to power down modes.
</content>
</entry>
<entry>
<title>iio:adc:berlin2-adc: Fix register definition</title>
<updated>2015-08-12T18:24:08+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-07-27T22:38:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=57cb06762d5e587d58005b17b0fa99bd1e391c29'/>
<id>urn:sha1:57cb06762d5e587d58005b17b0fa99bd1e391c29</id>
<content type='text'>
Active channel number is stored in BERLIN2_SM_CTRL as value, instead of a
bit map.
The masks for channel interrupts and data ready are a 16 bits wide bit
map each, instead of just 4 bits.

Also correct the data mask for the temperature sensor, which was
Reported-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Acked-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:adc:berlin2-adc: use channel-array size directly</title>
<updated>2015-08-02T18:08:45+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-07-27T22:39:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=546384c968383b512ba50f77c76ae7bdfa321f31'/>
<id>urn:sha1:546384c968383b512ba50f77c76ae7bdfa321f31</id>
<content type='text'>
Drop the otherwise unused definition of the channel-array size and use it
directly in _probe - makes it a bit more obvious.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Acked-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:adc:berlin2-adc: use short operator format</title>
<updated>2015-08-02T18:08:13+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-07-27T22:39:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=609e9d88f277bfe83392595745cc3976d42125b2'/>
<id>urn:sha1:609e9d88f277bfe83392595745cc3976d42125b2</id>
<content type='text'>
Use augmented assignment to subtract the offset for negative temperature
values.
Specify the amount of private data to be allocated through
devm_iio_device_alloc() with sizeof(*priv), as it is shorter and common
practice in IIO.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Acked-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:adc:berlin2-adc: constify iio_chan_spec</title>
<updated>2015-08-02T18:07:50+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-07-27T22:39:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=688febbd168c52ab54ad29c210aceecb72386398'/>
<id>urn:sha1:688febbd168c52ab54ad29c210aceecb72386398</id>
<content type='text'>
Mark berlin2_adc_channels array as constant.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Acked-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:adc:berlin2-adc: pass up real error code</title>
<updated>2015-08-02T18:05:51+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-07-27T22:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=19d566420b8c5a26d4f9666ef665e088173d3df3'/>
<id>urn:sha1:19d566420b8c5a26d4f9666ef665e088173d3df3</id>
<content type='text'>
Pass up the real error code returned by platform_get_irq_byname().

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Acked-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge 4.2-rc4 into staging-next</title>
<updated>2015-07-27T18:10:05+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2015-07-27T18:10:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6e64e22449023dc89dfb92c6f19d4c5b03f46889'/>
<id>urn:sha1:6e64e22449023dc89dfb92c6f19d4c5b03f46889</id>
<content type='text'>
We want the iio and other fixes in this branch as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge 4.2-rc3 into staging-next</title>
<updated>2015-07-20T20:21:28+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2015-07-20T20:21:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ed15e8880fc3d8d52bc02a02521054bfcb26264a'/>
<id>urn:sha1:ed15e8880fc3d8d52bc02a02521054bfcb26264a</id>
<content type='text'>
We need the staging fixes in here as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>iio: adc: vf610: Determine sampling frequencies by using minimum sample time</title>
<updated>2015-07-20T17:41:16+00:00</updated>
<author>
<name>Sanchayan Maity</name>
<email>maitysanchayan@gmail.com</email>
</author>
<published>2015-07-14T13:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5e9972cd6f1a69ee8a8ee8664d3e4c4ea59c0901'/>
<id>urn:sha1:5e9972cd6f1a69ee8a8ee8664d3e4c4ea59c0901</id>
<content type='text'>
The driver currently does not take into account the minimum sample time
as per the Figure 6-8 Chapter 9.1.1 12-bit ADC electrical characteristics.
We set a static amount of cycles instead of considering the sample time
as a given value, which depends on hardware characteristics.

Determine sampling frequencies by first reading the device tree property
node and then calculating the required Long Sample Time Adder (LSTAdder)
value, based on the ADC clock frequency and sample time value obtained
from the device tree. This LSTAdder value is then used for calculating
the sampling frequencies possible.

In case the sample time property is not specified through the device
tree, a safe default value of 1000ns is assumed.

Signed-off-by: Sanchayan Maity &lt;maitysanchayan@gmail.com&gt;
Acked-by: Stefan Agner &lt;stefan@agner.ch&gt;
Acked-by: Fugang Duan &lt;B38611@freescale.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
