1*df36de13SAntoniu Miclaus /* SPDX-License-Identifier: GPL-2.0+ */ 2*df36de13SAntoniu Miclaus /* 3*df36de13SAntoniu Miclaus * ADXL380 3-Axis Digital Accelerometer 4*df36de13SAntoniu Miclaus * 5*df36de13SAntoniu Miclaus * Copyright 2024 Analog Devices Inc. 6*df36de13SAntoniu Miclaus */ 7*df36de13SAntoniu Miclaus 8*df36de13SAntoniu Miclaus #ifndef _ADXL380_H_ 9*df36de13SAntoniu Miclaus #define _ADXL380_H_ 10*df36de13SAntoniu Miclaus 11*df36de13SAntoniu Miclaus struct adxl380_chip_info { 12*df36de13SAntoniu Miclaus const char *name; 13*df36de13SAntoniu Miclaus const int scale_tbl[3][2]; 14*df36de13SAntoniu Miclaus const int samp_freq_tbl[3]; 15*df36de13SAntoniu Miclaus const int temp_offset; 16*df36de13SAntoniu Miclaus const u16 chip_id; 17*df36de13SAntoniu Miclaus }; 18*df36de13SAntoniu Miclaus 19*df36de13SAntoniu Miclaus extern const struct adxl380_chip_info adxl380_chip_info; 20*df36de13SAntoniu Miclaus extern const struct adxl380_chip_info adxl382_chip_info; 21*df36de13SAntoniu Miclaus 22*df36de13SAntoniu Miclaus int adxl380_probe(struct device *dev, struct regmap *regmap, 23*df36de13SAntoniu Miclaus const struct adxl380_chip_info *chip_info); 24*df36de13SAntoniu Miclaus bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg); 25*df36de13SAntoniu Miclaus 26*df36de13SAntoniu Miclaus #endif /* _ADXL380_H_ */ 27