Light Sensor "cm3218A3OP-AD" porting issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Light Sensor "cm3218A3OP-AD" porting issue

799 Views
wangvictor
Contributor III

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!

Labels (4)
0 Kudos
1 Reply

543 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos