我正在尝试将 ADV7280-M 与我们的 IMX8X 板集成,但到目前为止我们还没有成功。
我在这里粘贴设备树定义和我们在 Linux 上得到的东西。
基本上,有2个问题:
mxc-mipi-csi2.0: is_en
tity_link_setup, 未找到远程 pad!
和
mxc-mipi-csi2.0: mipi_csi2_enum_framesizes,未找到远程键盘!
不确定第二个是否是第一个的副作用。
我们有一个 CVBS 摄像头连接到 ADV7280-M 的 AIN1。
我看过其他关于 is_entity_link_setup 的帖子,但没有一个对我有帮助。任何人都可以检查我的配置并建议我应该如何在这里进行吗?
附上原理图的一部分。
&i2c1 {
/* other stuff on this bus... */
adv7280m: adv7280m@21 {
compatible = "adi,adv7280-m";
reg = <0x21>;
status = "okay";
virtual-channel;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cvbs_int>;
powerdown-gpios = <&gpioexp0 6 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpioexp0 5 GPIO_ACTIVE_LOW>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&lsio_gpio3>;
interrupt-names = "adv7280m_intrq";
port {
adv7280_ep: endpoint {
remote-endpoint = <&mipi_csi0_ep>;
};
};
};
};
&mipi_csi_0 {
status = "okay";
virtual-channel;
csi = <0>;
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&adv7280_ep>;
data-lanes = <1>;
};
};
};
img_subsys: bus@58000000 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x58000000 0x0 0x58000000 0x1000000>;
/* other stuff... */
cameradev: camera {
compatible = "fsl,mxc-md", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges;
/* other stuff... */
mipi_csi_0: csi@58227000 {
compatible = "fsl,mxc-mipi-csi2";
reg = <0x58227000 0x1000>, <0x58221000 0x1000>;
clocks = <&csi0_core_lpcg 0>, <&csi0_esc_lpcg 0>, <&csi0_pxl_lpcg 0>;
clock-names = "clk_core", "clk_esc", "clk_pxl";
assigned-clocks = <&csi0_core_lpcg 0>, <&csi0_esc_lpcg 0>;
assigned-clock-rates = <360000000>, <72000000>;
power-domains = <&pd IMX_SC_R_CSI_0>, <&pd IMX_SC_R_ISI_CH0>;
power-domain-names = "pd_csi", "pd_isi_ch0";
status = "disabled";
};
};
};
NXP i.MX Release Distro 5.15-kirkstone imx8qxp ttyLP0
root@imx8qxp-d7:~# uname -a
Linux imx8qxp 5.15.71+g9b8ac3af0403 #1 SMP PREEMPT Mon Apr 3 13:43:17 UTC 2023 aarch64 GNU/Linux
根@imx8qxp-d7:~#dmesg | grep -e adv -e csi -e isi
[1.720669] mxc-isi 58100000.isi:mxc_isi.0 注册成功
[1.733934] mxc-isi 58110000.isi:mxc_isi.1 注册成功
[1.741600] mxc-isi 58120000.isi: mxc_isi.2 注册成功
[1.749188] mxc-isi 58130000.isi:mxc_isi.3 注册成功
[2.122965] i2c 1-0021:修复循环依赖与 58227000.csi
[2.686016] adv7180 1-0021:芯片 ID 0x231 找到 @ (5a810000.i2c)
[ 2.918402] mxc-mipi-csi2 58227000.csi: 车道: 1, 名称: mxc-mipi-csi2.0
[ 3.259051] isi-m2m 58100000.isi:m2m_device: 为 ISI.0 [注册 m2m
成功7.445837] mx8-img-md:将 mxc_isi.0.capture 注册为 /dev/video3
[ 7.468924] mx8-img-md:将 mxc_isi.1.capture 注册为/dev/video4
[ 7.481234] mx8-img-md:将 mxc_isi.2.capture 注册为/dev/video5
[ 7.491578] mx8-img-md: 已注册mxc_isi.3.capture as /dev/video6
[7.502608] mx8-img-md:注册传感器子设备:adv7180 1-0021 (1)
[7.502631] mx8-img-md:创建链接[mxc_isi.0] => [mxc_isi .0.capture]
[ 7.502643] mx8-img-md: 创建链接 [mxc-mipi-csi2.0] => [mxc_isi.0] [
7.502650] mx8-img-md: 创建链接 [mxc_isi.1] => [mxc_isi.1.capture]
[ 7.502657] mx8-img-md: 创建链接 [mxc-mipi-csi2.0] => [mxc_isi.1] [
7.502665] mx8-img-md: 创建链接 [mxc_isi.2] => [mxc_isi.2.capture]
[7.502671] mx8-img-md: 创建链接 [mxc-mipi-csi2.0] => [mxc_isi.2]
[7.502679]mx8-img-md:创建链接[mxc_isi.3]=>[mxc_isi.3.capture]
[7.502686]mx8-img-md:创建链接[mxc-mipi-csi2.0]=>[mxc_isi。 3]
[8.661369] mxc-mipi-csi2.0: is_entity_link_setup, 没有找到远程 pad!
[8.672359]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
[8.679262]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
[8.741962]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
root@imx8qxp-d7:~# v4l2-ctl -d /dev/video3 --list-formats-ext
[ 228.856447] mxc-mipi-csi2.0: is_entity_link_setup, 未找到远程板!
ioctl: VIDIOC_ENUM_FMT[ 228.863708] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 没有找到远程键盘!
类型:视频捕获多平面
[0]: 'RGBP' (16-bit RGB 5-[ 228.872617] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, No remote pad found!
6-5)
[1]: 'RGB3' (24-bit RGB 8- 8-8)
[228.885291] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 没有找到远程键盘!
[2]:'BGR3'(24 位 BGR 8-8-8)
[228.895736] mxc-mipi-csi2.0:mipi_csi2_enum_framesizes,未找到远程板!
[3]: 'YUYV' (YUYV 4:2:2)
[ 228.905630] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 未找到远程键盘!
[4]: 'YUV4' (32-bit A/XYUV 8-8-8-8)
[ 228.915036] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 没有找到远程 pad!
[5]: 'NV12' (Y/CbCr 4:2:0)
[ 228.925473] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 未找到远程板!
[6]: 'NM12'
[ 228.934963] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 找不到远程键盘!
[7]: 'YM24' (Planar YUV 4:4:4 (NC))
[ 228.945041] mxc-mipi-csi2.0: mipi_csi2_enum_framesizes, 未找到远程 pad!
[8]:“XR24”(32 位 BGRX 8-8-8-8)
[228.955466] mxc-mipi-csi2.0:mipi_csi2_enum_framesizes,未找到远程板!
[9]: 'AR24'(32 位 BGRA 8-8-8-8)
root@imx8qxp-d7:~# v4l2-ctl --list-devices
[252.749448] mxc-mipi-csi2.0: is_entity_link_setup, 未找到远程板!
[252.756157]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
[252.762850]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
[252.769574]mxc-mipi-csi2.0:is_entity_link_setup,找不到远程垫!
amphion vpu 解码器(平台:amphion-vpu):
/dev/video0
/dev/video1
/dev/media0
mxc-isi-cap(平台:58100000.isi:cap_devic):
/dev/video3
mxc-isi-m2m(平台:58100000.isi:m2m_devic):
/dev/video2
mxc-isi-cap(平台:58130000.isi:cap_devic):
/dev/video6
mxc-jpeg 编解码器(平台:58400000.jpegdec):
/dev/video7
mxc-jpeg 编解码器(平台:58450000.jpegenc):
/dev/video8
mxc-isi-cap(平台:58130000.isi:cap_devic):
/dev/video6
mxc-jpeg 编解码器(平台:58400000.jpegdec):
/dev/video7
mxc-jpeg 编解码器(平台:58450000.jpegenc):
/dev/video8