2024-02-08 09:38 PM
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
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?
Solved! Go to Solution.
2024-02-09 05:47 AM
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.
2024-02-09 05:47 AM
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.
2024-02-09 05:50 AM
Hi Federica,
I will try now and update you
2024-02-11 10:50 PM
Hi Federica Bossi,
It worked thanks for the reply.