AnsweredAssumed Answered

Light Sensor "cm3218A3OP-AD" porting issue

Question asked by victor Wang on Oct 16, 2017
Latest reply on Oct 16, 2017 by igorpadykov

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!