Hi:
I transplanted the ov5640 driver on Rock and successfully generated the device node /dev/video*…
But using cheese to open the camera fails!
dmesg log:
root@linaro-alip:~# ls /dev/video* -la
crw-rw----+ 1 root video 81, 0 Feb 14 2019 /dev/video0
crw-rw----+ 1 root video 81, 1 Feb 14 2019 /dev/video1
crw-rw----+ 1 root video 81, 2 Feb 14 2019 /dev/video2
crw-rw----+ 1 root video 81, 3 Feb 14 2019 /dev/video3
crw-rw----+ 1 root video 81, 4 Feb 14 2019 /dev/video4
crw-rw----+ 1 root video 81, 5 Feb 14 2019 /dev/video5
crw-rw----+ 1 root video 81, 6 Feb 14 2019 /dev/video6
crw-rw----+ 1 root video 81, 7 Feb 14 2019 /dev/video7
crw-rw----+ 1 root video 81, 8 Feb 14 2019 /dev/video8
root@linaro-alip:~# dmesg | grep rkisp-vir0
[ 0.753990] rkisp rkisp-vir0: rkisp driver version: v01.06.01
[ 0.754138] rkisp rkisp-vir0: No memory-region-thunderboot specified
[ 0.754436] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[ 0.754480] rkisp rkisp-vir0: Entity type for entity rkisp-csi-subdev was not initialized!
[ 0.757514] rkisp-vir0: update sensor failed
[ 0.757924] rkisp-vir0: Failed to register subdev notifier(-22)
root@linaro-alip:~# cheese
(cheese:2451): dbind-WARNING **: 03:54:28.729: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
[ 2239.655004] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655126] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655156] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655194] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655226] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655256] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655284] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655317] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655348] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655381] rkisp-vir0: rkisp_enum_frameintervals Not active sensor
[ 2239.655405] rkisp-vir0:
Configure the dts of the camera as follows:
&rkisp {
status = "okay";
};
// add by fl start
&rkisp_vir0 {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp0_in: endpoint@0 {
reg = <0>;
remote-endpoint = <&csidphy_out>;
};
};
};
&csi2_dphy0 {
status = "okay";
/*
* dphy0 only used for full mode,
* full mode and split mode are mutually exclusive
*/
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_ucam0: endpoint@1 {
reg = <1>;
remote-endpoint = <&ov5640_out>;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
csidphy_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&isp0_in>;
};
};
};
};
&csi2_dphy_hw {
status = "okay";
};
&csi2_dphy1 {
status = "disabled";
};
&csi2_dphy2 {
status = "okay";
};
// end
how to fix this isp driver error??