Path: blob/master/Documentation/devicetree/bindings/iio/accel/lis302.txt
26309 views
LIS302 accelerometer devicetree bindings12This device is matched via its bus drivers, and has a number of properties3that apply in on the generic device (independent from the bus).456Required properties for the SPI bindings:7- compatible: should be set to "st,lis3lv02d-spi"8- reg: the chipselect index9- spi-max-frequency: maximal bus speed, should be set to 1000000 unless10constrained by external circuitry11- interrupts: the interrupt generated by the device1213Required properties for the I2C bindings:14- compatible: should be set to "st,lis3lv02d"15- reg: i2c slave address16- Vdd-supply: The input supply for Vdd17- Vdd_IO-supply: The input supply for Vdd_IO181920Optional properties for all bus drivers:2122- st,click-single-{x,y,z}: if present, tells the device to issue an23interrupt on single click events on the24x/y/z axis.25- st,click-double-{x,y,z}: if present, tells the device to issue an26interrupt on double click events on the27x/y/z axis.28- st,click-thresh-{x,y,z}: set the x/y/z axis threshold29- st,click-click-time-limit: click time limit, from 0 to 127.5msec30with step of 0.5 msec31- st,click-latency: click latency, from 0 to 255 msec with32step of 1 msec.33- st,click-window: click window, from 0 to 255 msec with34step of 1 msec.35- st,irq{1,2}-disable: disable IRQ 1/236- st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition37- st,irq{1,2}-ff-wu-2: raise IRQ 1/2 on FF_WU_2 condition38- st,irq{1,2}-data-ready: raise IRQ 1/2 on data ready condition39- st,irq{1,2}-click: raise IRQ 1/2 on click condition40- st,irq-open-drain: consider IRQ lines open-drain41- st,irq-active-low: make IRQ lines active low42- st,wu-duration-1: duration register for Free-Fall/Wake-Up43interrupt 144- st,wu-duration-2: duration register for Free-Fall/Wake-Up45interrupt 246- st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for47upper/lower limit48- st,wakeup-threshold: set wakeup threshold49- st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for50upper/lower limit for second wakeup51engine.52- st,wakeup2-threshold: set wakeup threshold for second wakeup53engine.54- st,highpass-cutoff-hz=: 1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of55highpass cut-off frequency56- st,hipass{1,2}-disable: disable highpass 1/2.57- st,default-rate=: set the default rate58- st,axis-{x,y,z}=: set the axis to map to the three coordinates.59Negative values can be used for inverted axis.60- st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis61(used by self-test)626364Example for a SPI device node:6566accelerometer@0 {67compatible = "st,lis302dl-spi";68reg = <0>;69spi-max-frequency = <1000000>;70interrupt-parent = <&gpio>;71interrupts = <104 0>;7273st,click-single-x;74st,click-single-y;75st,click-single-z;76st,click-thresh-x = <10>;77st,click-thresh-y = <10>;78st,click-thresh-z = <10>;79st,irq1-click;80st,irq2-click;81st,wakeup-x-lo;82st,wakeup-x-hi;83st,wakeup-y-lo;84st,wakeup-y-hi;85st,wakeup-z-lo;86st,wakeup-z-hi;87};8889Example for a I2C device node:9091lis331dlh: accelerometer@18 {92compatible = "st,lis331dlh", "st,lis3lv02d";93reg = <0x18>;94Vdd-supply = <&lis3_reg>;95Vdd_IO-supply = <&lis3_reg>;9697st,click-single-x;98st,click-single-y;99st,click-single-z;100st,click-thresh-x = <10>;101st,click-thresh-y = <10>;102st,click-thresh-z = <10>;103st,irq1-click;104st,irq2-click;105st,wakeup-x-lo;106st,wakeup-x-hi;107st,wakeup-y-lo;108st,wakeup-y-hi;109st,wakeup-z-lo;110st,wakeup-z-hi;111st,min-limit-x = <120>;112st,min-limit-y = <120>;113st,min-limit-z = <140>;114st,max-limit-x = <550>;115st,max-limit-y = <550>;116st,max-limit-z = <750>;117};118119120121