/
st_ism303dac.txt
37 lines (28 loc) · 1.16 KB
/
st_ism303dac.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
* ism303dac driver for accel MEMS sensors
Required properties for all bus drivers:
- compatible: must be one of:
"st,ism303dac_accel"
Required properties for the i2c bindings:
- reg: i2c slave address
Required properties for the spi bindings:
- reg: the chipselect index
- spi-max-frequency: maximal bus speed, should be set to 1000000 unless
constrained by external circuitry
Optional properties for the spi bindings:
- spi-3wire: use sensor spi interface with 3 wires.
Optional properties for all bus drivers:
- st,drdy-int-pin: the pin on the package that will be used to signal
"data ready" (valid values: 1 or 2, default: 1).
- interrupts: interrupt mapping for IRQ. It should be configured with
flags IRQ_TYPE_LEVEL_HIGH.
Refer to interrupt-controller/interrupts.txt for generic
interrupt client node bindings.
Example for an spi device node:
ism303dac-accel@0 {
compatible = "st,ism303dac_accel";
reg = <0x0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
st,drdy-int-pin = <1>;
};