|
在4.4内核下,按照开发板提供的3.14内核的dts编写2659相关参数,启动后发现摄像头没有识别
使用dmesg查看,有如下信息
root@am437x-evm:~# dmesg | grep 2659
[ 7.308916] ov2659 0-0030: link-frequencies property not found or too many
[ 7.308923] ov2659 0-0030: platform data not specified
[ 7.308944] ov2659: probe of 0-0030 failed with error -22
[ 7.309106] ov2659 1-0030: link-frequencies property not found or too many
[ 7.309110] ov2659 1-0030: platform data not specified
[ 7.309121] ov2659: probe of 1-0030 failed with error -22
[ 16.265923] usbcore: registered new interface driver usbhid
root@am437x-evm:~#
查看TI SDK 4.4内核的dts文件,发现和3.14的有区别
TI SDK
ov2659@30 {
compatible = "ovti,ov2659";
reg = <0x30>;
clocks = <&audio_mstrclk>;
clock-names = "xvclk";
port {
ov2659_0: endpoint {
remote-endpoint = <&vpfe1_ep>;
link-frequencies = /bits/ 64 <70000000>;
};
};
};
&vpfe1 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&vpfe1_pins_default>;
pinctrl-1 = <&vpfe1_pins_sleep>;
port {
vpfe1_ep: endpoint {
remote-endpoint = <&ov2659_0>;
ti,am437x-vpfe-interface = <0>;
bus-width = <8>;
hsync-active = <0>;
vsync-active = <0>;
};
};
};
创龙3.14 内核
ov2659@30 {
compatible = "ti,ov2659";
reg = <0x30>;
port {
ov2659_0: endpoint {
remote-endpoint = <&vpfe1_ep>;
mclk-frequency = <24000000>;
};
};
};
&vpfe1 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&vpfe1_pins_default>;
pinctrl-1 = <&vpfe1_pins_sleep>;
/* Camera port */
port {
vpfe1_ep: endpoint {
remote-endpoint = <&ov2659_0>;
if_type = <2>;
bus_width = <8>;
hdpol = <0>;
vdpol = <0>;
};
};
};
请问在4.4内核下如何修改
|
|