How can I remove the imx290 driver probe

Hi experts

We don’t use the tegra camera module. But we find the imx290 probe info in kernel bootup logs like below:

Nov  1 14:34:07 gelx-desktop kernel: [    1.948164] i2c-mux-gpio cam_i2cmux: 2 port mux on 3180000.i2c adapter
Nov  1 14:34:07 gelx-desktop kernel: [    1.948861] imx219 9-0010: tegracam sensor driver:imx219_v2.0.6
Nov  1 14:34:07 gelx-desktop kernel: [    1.972412] tegra-i2c 3180000.i2c: no acknowledge from address 0x10
Nov  1 14:34:07 gelx-desktop kernel: [    1.972498] imx219 9-0010: imx219_board_setup: error during i2c read probe (-121)
Nov  1 14:34:07 gelx-desktop kernel: [    1.972804] imx219 9-0010: board setup failed
Nov  1 14:34:07 gelx-desktop kernel: [    1.972977] imx219: probe of 9-0010 failed with error -121
Nov  1 14:34:07 gelx-desktop kernel: [    1.973520] imx219 10-0010: tegracam sensor driver:imx219_v2.0.6
Nov  1 14:34:07 gelx-desktop kernel: [    1.996776] tegra-i2c 3180000.i2c: no acknowledge from address 0x10
Nov  1 14:34:07 gelx-desktop kernel: [    1.996826] imx219 10-0010: imx219_board_setup: error during i2c read probe (-121)
Nov  1 14:34:07 gelx-desktop kernel: [    1.997136] imx219 10-0010: board setup failed
Nov  1 14:34:07 gelx-desktop kernel: [    1.997317] imx219: probe of 10-0010 failed with error -121

I try to remove the camera node in dts file which decompile from the tegra194-p3668-all-p3509-0000.dtb.
I add the “status = “disabled”;” in drivernode like below:

	tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		num_csi_lanes = <0x4>;
		max_lane_speed = <0x16e360>;
		min_bits_per_pixel = <0xa>;
		vi_peak_byte_per_pixel = <0x2>;
		vi_bw_margin_pct = <0x19>;
		max_pixel_rate = <0x3a980>;
		isp_peak_byte_per_pixel = <0x5>;
		isp_bw_margin_pct = <0x19>;
		linux,phandle = <0x17e>;
		phandle = <0x17e>;

		modules {

			module0 {
				badge = "jakku_front_RBP194";
				position = "front";
				orientation = [31 00];
				linux,phandle = <0x17f>;
				phandle = <0x17f>;

				drivernode0 {
					status = "disabled";
					pcl_id = "v4l2_sensor";
					devname = "imx219 9-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_imx219_a@10";
					linux,phandle = <0x180>;
					phandle = <0x180>;
				};

				drivernode1 {
					status = "disabled";
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
					linux,phandle = <0x181>;
					phandle = <0x181>;
				};
			};

			module1 {
				badge = "jakku_rear_RBP194";
				position = "rear";
				orientation = [31 00];
				linux,phandle = <0x182>;
				phandle = <0x182>;

				drivernode0 {
					status = "disabled";
					pcl_id = "v4l2_sensor";
					devname = "imx219 10-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_imx219_c@10";
					linux,phandle = <0x183>;
					phandle = <0x183>;
				};

				drivernode1 {
					status = "disabled";
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
					linux,phandle = <0x184>;
					phandle = <0x184>;
				};
			};
		};
	};

And then recompile to DTB file and flash to xavier board, but it probe the imx219 9-0010 and imx219 9-0010.

How to modify the node to disable the tegra camera module or disable the imx219 node?

hello Ricardo_2007,

the binary file, tegra194-p3668-all-p3509-0000.dtb is used by Xavier NX.
may I double confirm the platform you’re using?

I’m sorry, I forgot to change the device classification. I’m using xavier nx.

hello Ricardo_2007,

is it possible to revise this from kernel sources?
you may modify below to remove imx219 and also imx477 from device tree sources.
$public_sources/kerenl_src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi

if you would like to decompile/compile DTB for quick testing, please removing those modules nodes within tegra-camera-platform{}.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.