projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2913a6
)
ARM: dts: omap4-droid4: Add accelerometer
author
Sebastian Reichel
<sre@kernel.org>
Mon, 6 Mar 2017 04:11:57 +0000
(20:11 -0800)
committer
Tony Lindgren
<tony@atomide.com>
Mon, 6 Mar 2017 16:04:30 +0000
(08:04 -0800)
Add accelerometer.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-droid4-xt894.dts
patch
|
blob
|
history
diff --git
a/arch/arm/boot/dts/omap4-droid4-xt894.dts
b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 31638598331ac262e1c9cab9ad9fac6bf7df9150..9070f4b64b0870c1987ff8b461791efb2c4351e1 100644
(file)
--- a/
arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/
arch/arm/boot/dts/omap4-droid4-xt894.dts
@@
-280,4
+280,18
@@
"0", "0", "-1";
};
+
+ lis3dh: accelerometer@18 {
+ compatible = "st,lis3dh-accel";
+ reg = <0x18>;
+
+ vdd-supply = <&vhvio>;
+
+ interrupt-parent = <&gpio2>;
+ interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
+
+ rotation-matrix = "0", "-1", "0",
+ "1", "0", "0",
+ "0", "0", "1";
+ };
};