iio

freescale imx6 with mpu9250

烂漫一生 提交于 2020-01-04 07:52:12
问题 I am trying to interface freescale imx6 SoC with mpu92/65 sensor device. I have taken mpu92/65 device driver from android (https://github.com/NoelMacwan/Kernel-10.4.1.B.0.101/tree/master/drivers/staging/iio/imu ) and have done necessary modifications to the driver and device tree. Device tree modifications: &i2c3{ ... extaccelerometer: mpu9250@68{ compatible = "mpu9250"; reg = <0x68>; interrupt-parent = <&gpio2>; interrupts = <9>; int_config = /bits/ 8 <0x00>; level_shifter = /bits/ 8 <0>;

No output from IIO (character) device output - IIO buffer

谁都会走 提交于 2019-12-12 09:10:01
问题 I'm working on Linux driver for ADC ADS1243 and use IIO framework. I want to add feature to read and store data from ADC to IIO buffer. I added iio_triggered_buffer_setup() to probe function of driver. ret = iio_triggered_buffer_setup(indio_dev, NULL, &ads1243_trigger_handler, NULL); I'm using sysfs trigger and ads1243_trigger_handler is succesfully called. static irqreturn_t ads1243_trigger_handler(int irq, void *p) { struct iio_poll_func *pf = p; struct iio_dev *indio_dev = pf->indio_dev;