Skip to main content
Visitor II
February 9, 2024
Solved

LIS2MDL magnetometer

  • February 9, 2024
  • 1 reply
  • 2212 views

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?

    This topic has been closed for replies.
    Best answer by Federica Bossi

    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.

    1 reply

    Technical Moderator
    February 9, 2024

    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.

    Visitor II
    February 9, 2024

    Hi Federica,
    I will try now and update you