/linux/drivers/misc/lis3lv02d/ |
H A D | lis3lv02d.h | 3 * lis3lv02d.h - ST LIS3LV02DL accelerometer driver 24 #include <linux/lis3lv02d.h> 88 WAI_12B = 0x3A, /* 12 bits: LIS3LV02D[LQ]... */ 94 LIS3LV02D, enumerator 260 struct lis3lv02d { struct 263 int (*init) (struct lis3lv02d *lis3); argument 264 int (*write) (struct lis3lv02d *lis3, int reg, u8 val); argument 265 int (*read) (struct lis3lv02d *lis3, int reg, u8 *ret); argument 266 int (*blkread) (struct lis3lv02d *lis3, int reg, int len, u8 *ret); argument 267 int (*reg_ctrl) (struct lis3lv02d *lis3, bool state); argument [all …]
|
H A D | lis3lv02d_i2c.c | 5 * Implements I2C interface for lis3lv02d (STMicroelectronics) accelerometer. 24 #include "lis3lv02d.h" 31 static int lis3_reg_ctrl(struct lis3lv02d *lis3, bool state) in lis3_reg_ctrl() 46 static inline s32 lis3_i2c_write(struct lis3lv02d *lis3, int reg, u8 value) in lis3_i2c_write() 52 static inline s32 lis3_i2c_read(struct lis3lv02d *lis3, int reg, u8 *v) in lis3_i2c_read() 59 static inline s32 lis3_i2c_blockread(struct lis3lv02d *lis3, int reg, int len, in lis3_i2c_blockread() 67 static int lis3_i2c_init(struct lis3lv02d *lis3) in lis3_i2c_init() 97 { .compatible = "st,lis3lv02d" }, 182 struct lis3lv02d *lis3 = i2c_get_clientdata(client); in lis3lv02d_i2c_remove() 199 struct lis3lv02d *lis3 = i2c_get_clientdata(client); in lis3lv02d_i2c_suspend() [all …]
|
H A D | lis3lv02d.c | 3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver 30 #include "lis3lv02d.h" 32 #define DRIVER_NAME "lis3lv02d" 61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG 85 struct lis3lv02d lis3_dev = { 116 static s16 lis3lv02d_read_8(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_8() 125 static s16 lis3lv02d_read_12(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_12() 136 static s16 lis331dlh_read_data(struct lis3lv02d *lis3, int reg) in lis331dlh_read_data() 172 static void lis3lv02d_get_xyz(struct lis3lv02d *lis3, int *x, int *y, int *z) in lis3lv02d_get_xyz() 211 static int lis3lv02d_get_odr_index(struct lis3lv02d *lis3) in lis3lv02d_get_odr_index() [all …]
|
H A D | lis3lv02d_spi.c | 3 * lis3lv02d_spi - SPI glue layer for lis3lv02d 20 #include "lis3lv02d.h" 25 static int lis3_spi_read(struct lis3lv02d *lis3, int reg, u8 *v) in lis3_spi_read() 36 static int lis3_spi_write(struct lis3lv02d *lis3, int reg, u8 val) in lis3_spi_write() 43 static int lis3_spi_init(struct lis3lv02d *lis3) in lis3_spi_init() 101 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis302dl_spi_remove() 112 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis3lv02d_spi_suspend() 123 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis3lv02d_spi_resume() 148 MODULE_DESCRIPTION("lis3lv02d SPI glue layer");
|
H A D | Kconfig | 3 # STMicroelectonics LIS3LV02D and similar accelerometers 13 /sys/devices/platform/lis3lv02d. 19 will be called lis3lv02d and a specific module for the SPI transport 29 /sys/devices/platform/lis3lv02d. 35 will be called lis3lv02d and a specific module for the I2C transport
|
H A D | Makefile | 3 # STMicroelectonics LIS3LV02D and similar accelerometers 6 obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o
|
/linux/Documentation/misc-devices/ |
H A D | lis3lv02d.rst | 2 Kernel driver lis3lv02d 25 /sys/devices/platform/lis3lv02d. Reported values are scaled 28 Sysfs attributes under /sys/devices/platform/lis3lv02d/: 88 /sys/devices/platform/lis3lv02d/position in these four cases.
|
H A D | index.rst | 22 lis3lv02d
|
/linux/Documentation/devicetree/bindings/iio/accel/ |
H A D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 15 - compatible: should be set to "st,lis3lv02d" 93 compatible = "st,lis331dlh", "st,lis3lv02d";
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-gta04a3.dts | 16 compatible = "st,lis331dlh", "st,lis3lv02d";
|
H A D | omap3-overo-common-peripherals.dtsi | 55 compatible = "st,lis33de", "st,lis3lv02d";
|
H A D | omap3-n950-n9.dtsi | 281 compatible = "st,lis3lv02d";
|
H A D | am335x-pepper.dts | 78 compatible = "st,lis3lv02d";
|
H A D | am335x-evmsk.dts | 465 compatible = "st,lis331dlh", "st,lis3lv02d";
|
H A D | am335x-evm.dts | 426 compatible = "st,lis331dlh", "st,lis3lv02d";
|
/linux/drivers/iio/accel/ |
H A D | st_accel_i2c.c | 22 .compatible = "st,lis3lv02d",
|
/linux/Documentation/devicetree/bindings/iio/ |
H A D | st,st-sensors.yaml | 94 - st,lis3lv02d
|
/linux/arch/sh/boards/mach-ecovec24/ |
H A D | setup.c | 542 I2C_BOARD_INFO("lis3lv02d", 0x1c),
|
/linux/ |
H A D | MAINTAINERS | 13412 LIS3LV02D ACCELEROMETER DRIVER 13415 F: Documentation/misc-devices/lis3lv02d.rst 13416 F: drivers/misc/lis3lv02d/
|