TechNexion / linux-tn-imx

i.MX Linux kernel maintained by TechNexion
Other
20 stars 26 forks source link

CSI1 not usable with imx8mp-evk-tevs.dts #11

Open laurioma opened 5 months ago

laurioma commented 5 months ago

I am geting "could not request pin 46" error when trying to use imx8mp-evk-tevs.dts from tn-imx_5.15.71_2.2.0-next branch. Also The camera plugged into CSI1 port is not detected.

[ 0.000000] Machine model: NXP i.MX8MPlus EVK board with TechNexion TEVS camera [ 2.223148] tevs 1-0048: tevs_probe() device node: tevs@48 [ 2.502157] tevs 1-0048: Version:24.1.0.2 [ 2.556683] tevs 1-0048: Product:TEVS-AR0144, HeaderVer:3, MIPI_Rate:800 [ 2.793850] tevs 1-0048: probe success [ 2.847510] imx8mp-pinctrl 30330000.pinctrl: could not request pin 46 (MX8MP_IOMUXC_SD1_STROBE) from group tevs_csi1_pwn_grp on device 30330000.pinctrl [ 2.861165] tevs 2-0048: Error applying setting, reverse things back [ 6.780364] mx8-img-md: Registered sensor subdevice: tevs 1-0048 (1) [ 6.817875] mx8-img-md: created link [tevs 1-0048] => [mxc-mipi-csi2.0]

Can it be because tevs_csi0_pwn_grp and tevs_csi1_pwn_grp both are trying to use MX8MP_IOMUXC_SD1_STROBE__GPIO2_IO11? https://github.com/TechNexion/linux-tn-imx/blob/tn-imx_5.15.71_2.2.0-next/arch/arm64/boot/dts/freescale/imx8mp-evk-tevs.dts#L18-L25

How to fix it so that I can use both cameras?

jigoku1206 commented 5 months ago

Hi @laurioma ,

For i.MX8Plus EVK board, there are many GPIOs that are shared for the CSI1 and CSI2. Hence, it is limited to connect one camera to CSI1 or CSI2. We do not suggest that you force enable two cameras on the board because it will cause more problems when you use the cameras. image

Reference Schematics: https://www.nxp.com/downloads/en/schematics/8MPLUS-BB.zip