Hi,
I am using the custom hardware and i am facing a problem when the processor is booting it tries to check for the camera data but the camera bridge ic configuration happens after the board has booted up, since I am using a custom camera i want to remount the ov5640 driver. can someone help me on this on how to unmount and remount the driver
(Log is attached)
root@imx8mmevk:~# dmesg | grep ov5640 [ 2.255680] ov5640_mipi 2-003c: No sensor reset pin available [ 2.261455] ov5640_mipi 2-003c: clock-frequency missing or invalid
Regards
Santhosh Kumar S
You can build the driver as a module. Then you can use insmod or rmmod to load the driver again.
Hi Santhosh Kumar,
From the logs, It looks like you have probably missed defining the clock for sensor node in dts. You can refer to the dts setting for the ov5640 sensor from kernel documentation.
ov5640_mipi.txt\i2c\media\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel
Refer below :
ov5640_mipi: ov5640_mipi@3c {
compatible = "ovti,ov5640_mipi";
reg = <0x3c>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi_pwn>, <&pinctrl_csi_rst>;
clocks = <&clk IMX8MM_CLK_CLKO1_DIV>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MM_CLK_CLKO1_SRC>,
<&clk IMX8MM_CLK_CLKO1_DIV>;
assigned-clock-parents = <&clk IMX8MM_CLK_24M>;
assigned-clock-rates = <0>, <24000000>;
csi_id = <0>;
pwn-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
mclk = <24000000>;
mclk_source = <0>;
port {
ov5640_mipi1_ep: endpoint {
remote-endpoint = <&mipi1_sensor_ep>;
};
};
};
Please change the dts setting accordingly and let us know if you still face any issue to load the driver. If this is the case, then please provide your dts setting for ov5640 sensor, mipi-csi and csi-bridge.
Regards,
Radhika Somaiya