iio drivers with mx8m

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iio drivers with mx8m

1,071 Views
remi_laisne
Contributor I

Hello,

Im trying to get st_pressure driver working with IIO driver with MX8M Variscite eval kit board using linux 4.4.78

In menuconfig i activated drivers + device tree looks like :

    lps35hw@5d{
    compatible = "st,lps35hw";
    reg = <0x5d>;
    interrupt-parent = <&gpio4>;
    interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
    };

then at boot, dmesg output  :

[    5.078608] st-press-i2c 3-005d: 3-005d supply vdd not found, using dummy regulator
[    5.078649] st-press-i2c 3-005d: 3-005d supply vddio not found, using dummy regulator
[    5.080323] st-press-i2c: probe of 3-005d failed with error -22

Also i can't find information about I2C "-22" error meaning in kernel errors code.

i2c is running fine with other devices that are not IIO.

I copied drivers from linux 5.3+ since it's not available on linux 4.4.78

What i'm missing here ?

Thank you for your help.

0 Kudos
2 Replies

915 Views
remi_laisne
Contributor I

OK, thank you Diego.

As a workaround i'm now using this /dev/input/eventx  driver :

GitHub - STMicroelectronics/STMems_Linux_Input_drivers: This repository contains Linux kernel (v3.10... 

Not as great as IIO but working well :')

0 Kudos

915 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, the pressure sensor that you are using is from ST and we do not have the support of that sensor in our BSP. I suggest you go with them for proper support about how to implement the driver in a Linux system. 

You could search on the repositories of ST and see if they already have a solution.

I apologize for the inconveniences this may give you

Best regards,

Diego.