Hi All:
I'm using i.MX6Q sabre SD for my cpu.
I've sound a linux driver which locate at `driver/iio/light/cm32181.c`.
I've open it in menuconfig.
This is my dtsi.
&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";cm3218A3OP: cm3218A3OP@48 {
compatible = "capella,cm32181";
reg = <0x48>;
/*interrupt-parent = <&gpx0>;
interrupts = <2 2>;*/
};/*winmate victor wang*/
};
But now when i run into probe it will show this error.
cm32181 2-0048: cm32181_probe: register init failed
The attachment is the spec of cm3218A3OP-AD light sensor.
Why it will initial failed?
Thanks in Advanced!
Hi Wang
for "probe: register init failed" error, one can check i2c signal
with oscilloscope, check device ID and try to debug it cm32181_reg_init()
in driver source cm32181.c.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------