cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2MDL magnetometer

Ranjithkumar
Associate II

Hi Team,

We are using the LIS2MDL magnetometer sensor in the I2C connection on the xilinx zcu106 evaluation board, which we are connecting to i2c0.
We are using the default Linux driver for lis2mdl.

https://github.com/Xilinx/linux-xlnx/tree/xlnx_rebase_v5.10/drivers/iio/magnetometer

From the ZCU106 user guide, J160 pin,
https://www.mouser.com/datasheet/2/903/ug1244-zcu106-eval-bd-1596082.pdf

Ranjithkumar_0-1707455603356.png

Ranjithkumar_1-1707455971604.png

Kernel configuration,
config IIO_ST_MAGN_3AXIS
config IIO_ST_MAGN_I2C_3AXIS
Device tree,
magnetometer: lis2mdl@1e {
compatible = "st,lis2mdl";
reg = <0x1e>;
};

I am facing an probe error,

[ 4.624377] st-magn-i2c 0-001e: supply vdd not found, using dummy regulator
[ 4.631410] st-magn-i2c 0-001e: supply vddio not found, using dummy regulator
[ 4.638715] iio iio:device3: DRDY on pdata not valid.
[ 4.643880] st-magn-i2c: probe of 0-001e failed with error -22
[ 4.649725] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 38

Could anyone please help on this?

1 ACCEPTED SOLUTION

Accepted Solutions
Federica Bossi
ST Employee

Hi @Ranjithkumar ,

Welcome to ST Community!

Please, try to use the St official drivers on Github so that we can support you in case of issues.

Let me know if in this way you solve.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Federica Bossi
ST Employee

Hi @Ranjithkumar ,

Welcome to ST Community!

Please, try to use the St official drivers on Github so that we can support you in case of issues.

Let me know if in this way you solve.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Federica,
I will try now and update you

Hi Federica Bossi,

It worked thanks for the reply.