]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: dts: ux500: configure the accelerometers open drain
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 5 Feb 2016 13:00:00 +0000 (14:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 May 2016 07:33:25 +0000 (09:33 +0200)
commit7ba5dd530072d383f713a0fe1e4ffcdc5523ae37
tree8f9e8b37466ffda3c9aef0d4b718c3690966f6f7
parent0bfe5167b2d897a27b8a561d9b8b09026d8b16bd
ARM: dts: ux500: configure the accelerometers open drain

Configure the two accelerometers sharing GPIO line 82 as:

- Open drain so that they can share the same interrupt line.

Configure the corresponding interrupt pin:

- Trigger on the falling edge since open drain implies that we
  do not actively drive the line high, but we will actively drive
  it low to generate interrupts and then it moves from high to low
  i.e. a falling edge.

- Pulled up so the line will be biased to high unless an IRQ
  is active on any device on the line, and thus it goes high
  again after the interrupt is deasserted.

Cc: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-href-tvk1281618.dtsi