summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/ste-nomadik-nhk15.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-09-02 22:30:51 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-04-14 21:47:05 +0200
commite249fc7d9b1cfa046bc448b27c3fde5619442a7a (patch)
tree5ef737e6e001ecab54d44a028d73555ff111ab14 /arch/arm/boot/dts/ste-nomadik-nhk15.dts
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
downloadlwn-e249fc7d9b1cfa046bc448b27c3fde5619442a7a.tar.gz
lwn-e249fc7d9b1cfa046bc448b27c3fde5619442a7a.zip
ARM: dts: nomadik: add accelerometer IRQ and pin setting
The LIS3LV02DL accelerometer on the Nomadik NHK15 can generate IRQs by the DRDY line. Map this in the DTS file and set up the pin as input to the SoC. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-nomadik-nhk15.dts')
-rw-r--r--arch/arm/boot/dts/ste-nomadik-nhk15.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/ste-nomadik-nhk15.dts b/arch/arm/boot/dts/ste-nomadik-nhk15.dts
index 4a21c6492dbb..d35aa88791ad 100644
--- a/arch/arm/boot/dts/ste-nomadik-nhk15.dts
+++ b/arch/arm/boot/dts/ste-nomadik-nhk15.dts
@@ -57,8 +57,15 @@
};
};
};
+ lis3lv02dl {
+ lis3lv02dl_nhk_mode: lis3lv02dl_nhk {
+ nhk_cfg1 {
+ pins = "GPIO82_C10"; // IRQ line
+ ste,input = <0>;
+ };
+ };
+ };
};
-
src@101e0000 {
/* These chrystal outputs are not used on this board */
disable-sxtalo;
@@ -86,6 +93,10 @@
lis3lv02dl@1d {
/* Accelerometer */
compatible = "st,lis3lv02dl-accel";
+ interrupt-parent = <&gpio2>;
+ interrupts = <18 IRQ_TYPE_EDGE_RISING>; // GPIO 82
+ pinctrl-0 = <&lis3lv02dl_nhk_mode>;
+ pinctrl-names = "default";
reg = <0x1d>;
};
stmpe0: stmpe2401@43 {