Questions tagged [iio]

IIO, the industrial I/O subsystem of the Linux kernel, is an interface sampling hardware and measurement control hardware abstraction layer that offers a wealth of drivers for RF, process control and other measurement devices.

8 questions
5
votes
2 answers

Change iio-sensors data via custom ACCEL_MOUNT_MATRIX

I have a tablet with builtin sensors which allow me automatic screen rotation, based on iio-sensors-proxy. However, the screen orientation is off, and I need to fix it. On it's GitHub page…
vonAlenberg
  • 153
  • 1
  • 4
2
votes
0 answers

How to name a device in the device tree?

I have used a device tree overlay file (dtbo) to add a hardware reference over the i2c-2 node to my device tree. This device is an accelerometer that implements an existing driver that can be found here:…
1
vote
0 answers

How to fix MPU9250 configuration issue in device tree?

I have set up an i2c protocol which detects the mpu9250 at address 0x68. Now I want to configure the mpu and I have updated my dts file with the following lines of code: mpu9250@68 { compatible = "invensense,mpu9250"; reg = <0x68>; …
Amod Amatya
  • 111
  • 4
1
vote
0 answers

DT bindings for ADT7516 sensor

I have a BeagleBone green and ADT7516's evaluation board connected with SDA and SCL pins. When I do i2cdetect -y -r 2, I can see the i2c address as 0x4b and I am able to probe the adt7316 driver present in IIO subsystem. adt7316 driver uses platform…
1
vote
0 answers

A/D pins always read max (1023)

I am using the Aria G25 board from Acme Systems. I have their Terra board breakout. I have also asked this question on their google groups but thought it might be a more general issue so have posted here as well. I have built the ADC into the kernel…
DeusAduro
  • 123
  • 4
0
votes
1 answer

IIO Unable to refill buffer: Connection timed out (110) error when running iio_readdev

I have made a custom Linux image with Yocto for use with CN0540 and DE10-Nano. The manufacturer of the CN0540 (Analog Devices) provides an evaluation image for the board, which works without issue, however in my custom image which is using the same…
0
votes
0 answers

How to properly read from a sensor with libiio?

I am trying to read one sample from a sensor using libiio, but for some reason I always get the same sample unless I restart the application. Here is a minimal example #include #include #include #include…
neolith
  • 213
  • 2
  • 7
0
votes
1 answer

Is there a way to expose extra settings through sysfs using the IIO framework?

The driver I'm developing has a number of settings I want the user to be able to change that don't really fit into the IIO framework. For example, using the IIO_CHAN_INFO_SAMP_FREQ enum in my read function exposes a variable in…
z470
  • 101