Manual focus driver

Hi authors.

I have a question for focuser driver.

module: Jetson orin nano 8GB (P3767-0005)
carrier board : Jetson orin nano dev kit(P3768-0000)
Camera: raspberry pi cam V3
Jetson Linux:R35.4.1

I am trying to write a manual “dw9817” focus driver based on nv_lc898212.c focus driver.
And no error occurred compiled my dw9817.c driver.
After I modified my Device Tree setting dw9817 as a i2c device. (as shown below)

~~
port@0 {
	reg = <0>;
	rbpcv3_imx708_out0: endpoint {
		port-index = <0>;
		bus-width = <2>;
		remote-endpoint = <&rbpcv3_imx708_csi_in0>;
	};
};
};
};

imx708_lens0: lens_imx708_a@0c {
compatible = "dongwoon,dw9817vcm";
reg = <0x0c>;

min_focus_distance = "0.0";		
hyper_focal = "0.0";
focal_length = "3.04";
f_number = "2.0";
aperture = "0.0";
};

~~

modules {
			cam0_module0:module0 {
				badge = "jakku_front_RBPCV3";
				position = "front";
				orientation = "1";
				cam0_module0_drivernode0:drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx708 9-001a";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv3_imx708_a@1a";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					devname = "dw9817vcm 9-001c";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/lens_imx708_a@0c/";
				};
~~

But I added 2 new ioctl (V4L2_CID_FOCUS_ABSOLUTE, TEGRA_CAMERA_CID_FOCUS_SYNC_EXTERNAL), those didn’t reflect V4l2 controler. (Insmod dw9817 driver is success.)

What do you think could be the reason for this?

Sorry to tell Jetson current don’t support FOCUS.

Thanks

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