I connected an FXOS8700CQR1 chip to the I2C bus of IMX8MP, but there was an error when the kernel loaded the driver。
The error message is as follows:
[ 2.326218] fxos8700 3-001e: read chip ID 0x1 is not equal to 0xc7 or 0xc4
[ 2.333122] fxos8700: probe of 3-001e failed with error -22
My devicetree setup like this:
&i2c4{
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c4>;
status = "okay";
fxos8700@1e {
compatible = "fsl,fxos8700";
reg = <0x1e>;
interrupt-open-drain;
};
};
I have configured the driver in the kernel:
Device Drivers --->
Misc devices --->
<*> Freescale FXOS8700 M+G combo sensor
The driver located at: kernel/drivers/misc/fxos8700.c
My kernel version is:5.4.70_2.3.0