mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 10:25:20 +02:00
ARM: dts: n900: use iio driver for accelerometer
The accelerometer in the N900 is supported by the iio-framework since commit
8a7449d686
("iio: accel: add support for LIS302DL variant). This commit
switches to it and updates node properties to match the bindings of the new
compatible.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Message-Id: <20221229171348.3543327-3-absicsz@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
ecbeccdc61
commit
14a213dcb0
|
@ -769,55 +769,19 @@
|
||||||
clock-frequency = <400000>;
|
clock-frequency = <400000>;
|
||||||
|
|
||||||
accelerometer@1d {
|
accelerometer@1d {
|
||||||
compatible = "st,lis3lv02d";
|
compatible = "st,lis302dl";
|
||||||
reg = <0x1d>;
|
reg = <0x1d>;
|
||||||
|
|
||||||
Vdd-supply = <&vaux1>;
|
vdd-supply = <&vaux1>;
|
||||||
Vdd_IO-supply = <&vio>;
|
vddio-supply = <&vio>;
|
||||||
|
|
||||||
interrupt-parent = <&gpio6>;
|
interrupt-parent = <&gpio6>;
|
||||||
interrupts = <21 20>; /* 181 and 180 */
|
interrupts = <21 IRQ_TYPE_EDGE_RISING>,
|
||||||
|
<20 IRQ_TYPE_EDGE_RISING>; /* 181 and 180 */
|
||||||
|
|
||||||
/* click flags */
|
mount-matrix = "-1", "0", "0",
|
||||||
st,click-single-x;
|
"0", "1", "0",
|
||||||
st,click-single-y;
|
"0", "0", "1";
|
||||||
st,click-single-z;
|
|
||||||
|
|
||||||
/* Limits are 0.5g * value */
|
|
||||||
st,click-threshold-x = <8>;
|
|
||||||
st,click-threshold-y = <8>;
|
|
||||||
st,click-threshold-z = <10>;
|
|
||||||
|
|
||||||
/* Click must be longer than time limit */
|
|
||||||
st,click-time-limit = <9>;
|
|
||||||
|
|
||||||
/* Kind of debounce filter */
|
|
||||||
st,click-latency = <50>;
|
|
||||||
|
|
||||||
/* Interrupt line 2 for click detection */
|
|
||||||
st,irq2-click;
|
|
||||||
|
|
||||||
st,wakeup-x-hi;
|
|
||||||
st,wakeup-y-hi;
|
|
||||||
st,wakeup-threshold = <(800/18)>; /* millig-value / 18 to get HW values */
|
|
||||||
|
|
||||||
st,wakeup2-z-hi;
|
|
||||||
st,wakeup2-threshold = <(900/18)>; /* millig-value / 18 to get HW values */
|
|
||||||
|
|
||||||
st,hipass1-disable;
|
|
||||||
st,hipass2-disable;
|
|
||||||
|
|
||||||
st,axis-x = <1>; /* LIS3_DEV_X */
|
|
||||||
st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
|
|
||||||
st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
|
|
||||||
|
|
||||||
st,min-limit-x = <(-32)>;
|
|
||||||
st,min-limit-y = <3>;
|
|
||||||
st,min-limit-z = <3>;
|
|
||||||
|
|
||||||
st,max-limit-x = <(-3)>;
|
|
||||||
st,max-limit-y = <32>;
|
|
||||||
st,max-limit-z = <32>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cam1: camera@3e {
|
cam1: camera@3e {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user