Skip to content

Commit 1ac4e6f

Browse files
sregregkh
authored andcommitted
DTS: ARM: OMAP3-N900: Add lis3lv02d support
This adds support for the N900's accelerometer to the Nokia N900 DTS file. Signed-off-by: Sebastian Reichel <sre@kernel.org> Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 21e8681 commit 1ac4e6f

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

‎arch/arm/boot/dts/omap3-n900.dts‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,58 @@
609609
pinctrl-0 = <&i2c3_pins>;
610610

611611
clock-frequency = <400000>;
612+
613+
lis302dl: lis3lv02d@1d {
614+
compatible = "st,lis3lv02d";
615+
reg = <0x1d>;
616+
617+
Vdd-supply = <&vaux1>;
618+
Vdd_IO-supply = <&vio>;
619+
620+
interrupt-parent = <&gpio6>;
621+
interrupts = <21 20>; /* 181 and 180 */
622+
623+
/* click flags */
624+
st,click-single-x;
625+
st,click-single-y;
626+
st,click-single-z;
627+
628+
/* Limits are 0.5g * value */
629+
st,click-threshold-x = <8>;
630+
st,click-threshold-y = <8>;
631+
st,click-threshold-z = <10>;
632+
633+
/* Click must be longer than time limit */
634+
st,click-time-limit = <9>;
635+
636+
/* Kind of debounce filter */
637+
st,click-latency = <50>;
638+
639+
/* Interrupt line 2 for click detection */
640+
st,irq2-click;
641+
642+
st,wakeup-x-hi;
643+
st,wakeup-y-hi;
644+
st,wakeup-threshold = <(800/18)>; /* millig-value / 18 to get HW values */
645+
646+
st,wakeup2-z-hi;
647+
st,wakeup2-threshold = <(900/18)>; /* millig-value / 18 to get HW values */
648+
649+
st,hipass1-disable;
650+
st,hipass2-disable;
651+
652+
st,axis-x = <1>; /* LIS3_DEV_X */
653+
st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
654+
st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
655+
656+
st,min-limit-x = <(-32)>;
657+
st,min-limit-y = <3>;
658+
st,min-limit-z = <3>;
659+
660+
st,max-limit-x = <(-3)>;
661+
st,max-limit-y = <32>;
662+
st,max-limit-z = <32>;
663+
};
612664
};
613665

614666
&mmc1 {

0 commit comments

Comments
 (0)