cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
383 Views
Registered: ‎02-05-2008

platform data

Hi,

I am trying to interface with mt9m001 camera. The i2c dts is as shown below

&i2c1 {
clock-frequency = <400000>;
status = "okay";
camera-sensor@5d {
compatible = "mt9m001";
reg = <0x5d>;
reset-gpios = <&gpio0 0 0>;
standby-gpios = <&gpio0 1 1>;
/*clocks = <&camera_clk>;*/
port {
mt9m001_out: endpoint {
remote-endpoint = <&vcap_demosaic_in>;
};
};

};
};

I get the this kernel messsage

mt9m001 1-005d: MT9M001 driver needs platform data

 

how do I pass platform data

JOTHI

0 Kudos
4 Replies
Highlighted
Moderator
Moderator
354 Views
Registered: ‎09-12-2007

Is this sensor at the address 0x5d as specified in your DT?

Can you share the vcap_demosaic_in node? is this correct?

0 Kudos
Highlighted
Explorer
Explorer
350 Views
Registered: ‎02-05-2008

the i2c sensor address is correct.

root@zynq:~# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- 5d -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

2. Can you share the vcap_demosaic_in node? is this correct?

I am not sure about this.

The camera is connected like this Camera->VideoIn2AxisStream->demosaic->frmbuf->ddr.

 

 

 
 
 
 
 
 
 
 
0 Kudos
Highlighted
Moderator
Moderator
348 Views
Registered: ‎09-12-2007

Does this node exist?

vcap_demosaic_in

0 Kudos
Highlighted
Explorer
Explorer
332 Views
Registered: ‎02-05-2008

Yes. It exists. 

can you point to me similar device tree pipeline?

0 Kudos