Hello,
I am currently working on integrating the IMX219 camera sensor with the Verdin i.MX8MP board. I have added the required device tree configuration as shown below.
DTS Configurations:
&i2c3 {
status = "okay";
imx219: imx219@10 {
compatible = "sony,imx219";
reg = <0x10>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_hog3>;
clock-names = "xclk";
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
assigned-clock-rates = <24000000>;
mclk = <24000000>;
mclk_source = <0>;
csi_id = <1>;
mipi-csi;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
imx219_to_mipi_csi2: endpoint {
remote-endpoint = <&mipi_csi_1_in>;
bus-type = <4>;
clock-lanes = <0>;
data-lanes = <1 2>;
link-frequencies = /bits/ 64 <456000000>;
status = "okay";
};
};
};
};
&cameradev {
status = "okay";
};
&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi_1_in: endpoint {
remote-endpoint = <&imx219_to_mipi_csi2>;
data-lanes = <1 2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
};
&isp_1 {
status = "okay";
};
&dewarp {
status = "okay";
};
Issue: Although the camera sensor sub-device and MIPI-CSI node are created, the media link is not established. Below are the relevant kernel logs:
[ 9.306696] mxc-md 32c00000.bus:camera: deferring csi device registration
[ 9.365638] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 9.457142] mxc-mipi-csi2-sam 32e50000.csi: lanes: 1, hs_settle: 0, clk_settle: 0, wclk: 0, freq: 266000000
[ 9.458979] mx8-img-md: Registered sensor subdevice: imx219 2-0010 (1)
[ 9.458995] mxc-md 32c00000.bus:camera: mxc_md_create_links
[ 9.524001] mxc-mipi-csi2.1: mipi_csis_imx8mp_phy_reset, No remote pad found!
media-ctl -p output:
Media device information
------------------------
driver mxc-md
model FSL Capture Media Device
serial
bus info platform:32c00000.bus:camera
hw revision 0x0
driver version 6.6.74
Device topology
- entity 1: mxc-mipi-csi2.1 (8 pads, 0 link)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev0
pad0: Sink
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Source
pad5: Source
pad6: Source
pad7: Source
- entity 10: imx219 2-0010 (1 pad, 0 link, 0 routes)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[stream:0 fmt:SRGGB10_1X10/3280x2464 field:none colorspace:raw xfer:none quantization:full-range
crop.bounds:(8,8)/3280x2464
crop:(8,8)/3280x2464]
It appears the media links between the IMX219 sensor and MIPI CSI interface are not being established. Could you please help me identify what might be missing or incorrectly configured?
Best Regards,
Hardik