IMX8QXP mipi-csi

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8QXP mipi-csi

470件の閲覧回数
qaq
Contributor I

hello

I use Linux  5.10.72,and yocto hardknott

When I loaded ov8865.ko imx8-media-dev.ko, generating a /dev/media0 device node instead of /dev/video*, I wasn't sure if it would work on 5.10.

root@imx8qxpc0mek:~# v4l2-ctl --list-devices
mxc-jpeg decoder (platform:58400000.jpegdec):
/dev/video0

mxc-jpeg decoder (platform:58450000.jpegenc):
/dev/video1

FSL Capture Media Device (platform:mxc-md):
/dev/media0

 

I use gst-launch-1.0 v4l2src device=/dev/media0! The autovideosink test prompted an error.

 

root@imx8qxpc0mek:~# gst-launch-1.0 v4l2src device=/dev/media0 ! autovideosink
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Error getting capabilities for device '/dev/media0': It isn't a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
../git/sys/v4l2/v4l2_calls.c(91): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Inappropriate ioctl for device
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.

LOG

root@imx8qxpc0mek:~# insmod imx8-media-dev.ko
[ 750.857712] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 750.934246] mx8-img-md: Registered sensor subdevice: ov8865 17-0036 (1)
[ 751.024418] mx8-img-md: created link [ov8865 17-0036] => [mxc-mipi-csi2.0]
[ 751.031342] mxc-md bus@58000000:camera: mxc_md_create_links

 

DTS

...
 
&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
virtual-channel;
status = "okay";

port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov8865_out_mipi_csi0>;
data-lanes = <1 2 3 4>;
};
};
};
...
&i2c_mipi_csi0 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c_mipi_csi0>;
clock-frequency = <100000>;
status = "okay";

ov8865: camera@36 {
compatible = "ovti,ov8865";
reg = <0x36>;

pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mipi_csi0>;

clocks = <&pi0_misc_lpcg 0>;
assigned-clocks = <&pi0_misc_lpcg 0>;
assigned-clock-rates = <24000000>;
clock-frequency = <24000000>;

avdd-supply = <&reg_ov8865_avdd>;
dovdd-supply = <&reg_ov8865_dovdd>;
dvdd-supply = <&reg_ov8865_dvdd>;

powerdown-gpios = <&lsio_gpio3 8 GPIO_ACTIVE_LOW>;
reset-gpios = <&lsio_gpio3 7 GPIO_ACTIVE_LOW>;

port {
ov8865_out_mipi_csi0: endpoint {
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <360000000>;

remote-endpoint = <&mipi_csi0_ep>;
};
};
};
};

 

Can you please indicate if I have a mistake where I am doing it, or if there is a relevant manual in version 5.10, please refer to the following?

0 件の賞賛
返信
0 返答(返信)