Driver dies when SPI is enabled
Hello,
I have an IMX477 connected via CSI0 to an Nvidia Jetson Nano development board together with a NeoPixel Ring driven by the NeoPixel_SPI library. I used the following commands to install the drivers:
cd ~
wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
chmod +x install_full.sh
./install_full.sh -m imx477 # For the Pi HQ camera
After rebooting, the camera seems to be detected (output of dmesg | grep -E "imx477|imx219|arducam"):
[ 0.232301] DTS File Name: /home/wong/Jetson/l4t-32.5.1/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00-imx477.dts
[ 0.444719] DTS File Name: /home/wong/Jetson/l4t-32.5.1/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00-imx477.dts
[ 4.966402] imx477 7-001a: tegracam sensor driver:imx477_v2.0.6
[ 5.268425] imx477 8-001a: tegracam sensor driver:imx477_v2.0.6
[ 5.581293] imx477 8-001a: imx477_board_setup: error during i2c read probe (-121)
[ 5.588810] imx477 8-001a: board setup failed
[ 5.593284] imx477: probe of 8-001a failed with error -121
[ 6.529325] vi 54080000.vi: subdev imx477 7-001a bound
After enabling the SPI1 interface by using sudo /opt/nvidia/jetson-io/jetson-io.py, the camera is no longer working. The following output is from dmesg | grep -E "imx477|imx219|arducam" again:
[ 5.040879] imx219 7-0010: tegracam sensor driver:imx219_v2.0.6
[ 5.076809] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[ 5.084533] imx219 7-0010: board setup failed
[ 5.089090] imx219: probe of 7-0010 failed with error -121
[ 5.101889] imx219 8-0010: tegracam sensor driver:imx219_v2.0.6
[ 5.160029] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[ 5.167595] imx219 8-0010: board setup failed
[ 5.172034] imx219: probe of 8-0010 failed with error -121
It seems to be that whenever you enable SPI1, the driver/camera dies and when you install the driver, it disables SPI1. Does anyone know if there is something I am doing wrong/forgetting?
SPI2 also is disabled when you run install_full.sh -m imx477. This makes it so that SPI is fully unusable on the Nvidia Jetson Nano board when using this driver.