Go to file
Brian Masney 9e4701eaef staging: iio: tsl2x7x: correct interrupt handler trigger
tsl2x7x_event_handler() was not called as expected when the device was
asserting a hardware interrupt. This patch changes the interrupt line
trigger from rising to falling.

The driver was tested on a TSL2772 hooked up to a Raspberry Pi 2. The
interrupt pin also had a 10K pull-up resistor per the requirements from
the datasheet. The relevant device tree binding:

&i2c1 {
	tsl2772@39 {
		compatible = "amstaos,tsl2772";
		reg = <0x39>;
		interrupt-parent = <&gpio>;
		interrupts = <22 0x2>;
	};
};

With this patch, iio_event_monitor now shows the events when the
channels are outside the defined interrupt thresholds.

$ sudo ./iio_event_monitor tsl2772
Found IIO device with name tsl2772 with device number 0
Event: time: 1478193460053760446, type: proximity, channel: 0, evtype:
thresh, direction: either
...
Event: time: 1478193463020270185, type: illuminance, channel: 0, evtype:
thresh, direction: either
...

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-03-24 13:32:40 +00:00
arch ARM: dts: bcm2835: Add VCHIQ node to the Raspberry Pi boards. (v3) 2018-03-14 13:05:19 +01:00
block
certs
crypto
Documentation staging: irda: remove the irda network stack and drivers 2018-03-14 13:12:26 +01:00
drivers staging: iio: tsl2x7x: correct interrupt handler trigger 2018-03-24 13:32:40 +00:00
firmware
fs NFS client bugfixes for Linux 4.16 2018-02-25 13:43:18 -08:00
include iio: adc: ad7780: remove IIO_CHAN_INFO_SAMP_FREQ support 2018-03-17 20:50:26 +00:00
init
ipc
kernel Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-02-25 16:58:55 -08:00
lib Merge 4.16-rc3 into staging-next 2018-02-26 15:32:00 +01:00
LICENSES
mm
net net_sched: gen_estimator: fix broken estimators based on percpu stats 2018-02-23 12:35:46 -05:00
samples
scripts
security integrity/security: fix digsig.c build error with header file 2018-02-22 20:09:08 -08:00
sound
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-02-23 15:14:17 -08:00
usr
virt
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS staging: fsl-dpaa2/ethsw: Add maintainer for Ethernet Switch driver 2018-03-14 17:36:09 +01:00
Makefile Linux 4.16-rc3 2018-02-25 18:50:41 -08:00
README

Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.