HI,
I am using the ov5640 on imx93 evk. My linux is 6.1.22
My dts is as follows:
ov5640: camera@3c {
compatible = "ovti,ov5640_mipi";
reg = <0x3c>;
pinctrl-names ="default";
pinctrl-0=<&pinctrl_ov5640_gpio>;
clocks = <&clk IMX93_CLK_CCM_CKO3>;
assigned-clocks = <&clk IMX93_CLK_CCM_CKO3>;
assigned-clock-rates = <24000000>;
powerdown-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>;
clock-names = "xclk";
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
status = "okay";
port {
mipi_ep: endpoint {
remote-endpoint = <&mipi_csi_ep>;
};
};
&mipi_csi {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
mipi_csi_ep: endpoint {
remote-endpoint = <&mipi_ep>;
data-lanes = <2>;
cfg-clk-range = <28>;
hs-clk-range = <0x2b>;
bus-type = <4>;
};
};
};
But it is reported error when i compile
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts:1360.39-1366.19: ERROR (phandle_references): /soc@0/bus@42800000/camera/csi@4ae00000/port@0/endpoint: Reference to non-existent node or label "mipi_ep"
DTC arch/arm64/boot/dts/freescale/imx93-11x11-evk-mt9m114.dtb
ERROR: Input tree has errors, aborting (use -f to force output)
make[2]: *** [scripts/Makefile.lib:406: arch/arm64/boot/dts/freescale/imx93-11x11-evk-i3c.dtb] Error 2
make[2]: *** Waiting for unfinished jobs....
I using the i2c1
Can you help me
pls refer to the link as below
Solved: About settings to operate ov5640camera on i.MX93EVK - NXP Community