linux/Documentation/devicetree/bindings/misc/lis302.txt
<<
>>
Prefs
   1LIS302 accelerometer devicetree bindings
   2
   3This device is matched via its bus drivers, and has a number of properties
   4that apply in on the generic device (independent from the bus).
   5
   6
   7Required properties for the SPI bindings:
   8 - compatible:          should be set to "st,lis3lv02d_spi"
   9 - reg:                 the chipselect index
  10 - spi-max-frequency:   maximal bus speed, should be set to 1000000 unless
  11                        constrained by external circuitry
  12 - interrupts:          the interrupt generated by the device
  13
  14Required properties for the I2C bindings:
  15 - compatible:          should be set to "st,lis3lv02d"
  16 - reg:                 i2c slave address
  17 - Vdd-supply:          The input supply for Vdd
  18 - Vdd_IO-supply:       The input supply for Vdd_IO
  19
  20
  21Optional properties for all bus drivers:
  22
  23 - st,click-single-{x,y,z}:     if present, tells the device to issue an
  24                                interrupt on single click events on the
  25                                x/y/z axis.
  26 - st,click-double-{x,y,z}:     if present, tells the device to issue an
  27                                interrupt on double click events on the
  28                                x/y/z axis.
  29 - st,click-thresh-{x,y,z}:     set the x/y/z axis threshold
  30 - st,click-click-time-limit:   click time limit, from 0 to 127.5msec
  31                                with step of 0.5 msec
  32 - st,click-latency:            click latency, from 0 to 255 msec with
  33                                step of 1 msec.
  34 - st,click-window:             click window, from 0 to 255 msec with
  35                                step of 1 msec.
  36 - st,irq{1,2}-disable:         disable IRQ 1/2
  37 - st,irq{1,2}-ff-wu-1:         raise IRQ 1/2 on FF_WU_1 condition
  38 - st,irq{1,2}-ff-wu-2:         raise IRQ 1/2 on FF_WU_2 condition
  39 - st,irq{1,2}-data-ready:      raise IRQ 1/2 on data ready contition
  40 - st,irq{1,2}-click:           raise IRQ 1/2 on click condition
  41 - st,irq-open-drain:           consider IRQ lines open-drain
  42 - st,irq-active-low:           make IRQ lines active low
  43 - st,wu-duration-1:            duration register for Free-Fall/Wake-Up
  44                                interrupt 1
  45 - st,wu-duration-2:            duration register for Free-Fall/Wake-Up
  46                                interrupt 2
  47 - st,wakeup-{x,y,z}-{lo,hi}:   set wakeup condition on x/y/z axis for
  48                                upper/lower limit
  49 - st,highpass-cutoff-hz=:      1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of
  50                                highpass cut-off frequency
  51 - st,hipass{1,2}-disable:      disable highpass 1/2.
  52 - st,default-rate=:            set the default rate
  53 - st,axis-{x,y,z}=:            set the axis to map to the three coordinates
  54 - st,{min,max}-limit-{x,y,z}   set the min/max limits for x/y/z axis
  55                                (used by self-test)
  56
  57
  58Example for a SPI device node:
  59
  60        lis302@0 {
  61                compatible = "st,lis302dl-spi";
  62                reg = <0>;
  63                spi-max-frequency = <1000000>;
  64                interrupt-parent = <&gpio>;
  65                interrupts = <104 0>;
  66
  67                st,click-single-x;
  68                st,click-single-y;
  69                st,click-single-z;
  70                st,click-thresh-x = <10>;
  71                st,click-thresh-y = <10>;
  72                st,click-thresh-z = <10>;
  73                st,irq1-click;
  74                st,irq2-click;
  75                st,wakeup-x-lo;
  76                st,wakeup-x-hi;
  77                st,wakeup-y-lo;
  78                st,wakeup-y-hi;
  79                st,wakeup-z-lo;
  80                st,wakeup-z-hi;
  81        };
  82
  83Example for a I2C device node:
  84
  85        lis331dlh: lis331dlh@18 {
  86                compatible = "st,lis331dlh", "st,lis3lv02d";
  87                reg = <0x18>;
  88                Vdd-supply = <&lis3_reg>;
  89                Vdd_IO-supply = <&lis3_reg>;
  90
  91                st,click-single-x;
  92                st,click-single-y;
  93                st,click-single-z;
  94                st,click-thresh-x = <10>;
  95                st,click-thresh-y = <10>;
  96                st,click-thresh-z = <10>;
  97                st,irq1-click;
  98                st,irq2-click;
  99                st,wakeup-x-lo;
 100                st,wakeup-x-hi;
 101                st,wakeup-y-lo;
 102                st,wakeup-y-hi;
 103                st,wakeup-z-lo;
 104                st,wakeup-z-hi;
 105                st,min-limit-x = <120>;
 106                st,min-limit-y = <120>;
 107                st,min-limit-z = <140>;
 108                st,max-limit-x = <550>;
 109                st,max-limit-y = <550>;
 110                st,max-limit-z = <750>;
 111        };
 112
 113