LIS2MDL Magnetometer Probe failed and Vdd power supply not found, dummy regulator issue
Hi,
I have successfully connected the LIS2MDL magnetometer to my reference board via I2C, and it is detected. However, after enabling the necessary kernel configurations and device tree, it indicates that the VDD supply is not found, and it resorts to using a dummy regulator supply. Additionally, there is a probing issue. I have provided the enabled configurations, device tree, and logs below.
kernel configuration
CONFIG_IIO_ST_SENSORS_I2C=y
CONFIG_IIO_ST_SENSORS_SPI=y
CONFIG_IIO_ST_SENSORS_CORE=y
CONFIG_IIO_ST_MAGN_3AXIS=y
CONFIG_IIO_ST_MAGN_I2C_3AXIS=y
CONFIG_IIO_ST_MAGN_SPI_3AXIS=y
device tree
&i2c0 {
status = "okay";
lis2mdl: lis2mdl@1e {
compatible = "st,lis2mdl";
reg = <0x1e>;
vdd-supply = <®_3v3>;
vddio-supply = <®_3v3>;
};
regulators {
reg_3v3: regulator-3v3 {
compatible = "regulator-fixed";
regulator-name = "3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
};
};
boot log
[ 3.681279] st-magn-i2c 0-001e: supply vdd not found, using dummy regulator
[ 3.693564] st-magn-i2c 0-001e: supply vddio not found, using dummy regulator
[ 3.728755] st-magn-i2c: probe of 0-001e failed with error -22
Can I make any changes to the device tree or kernel configuration? Could someone kindly assist me in resolving this issue?
