Hi,
I am trying to clock my OV5640 through the MIPI_CSI0_MCLK_OUT pin. With the configuration below, there is no clock signal on this pin. Any idea why? Do I need to use a different clock source coming from the ACM module?
DT for Camera:
/* MIPI-CSI0 I2C available on MIPI Camera connector */
&i2c_mipi_csi0 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_csi0_lpi2c0>;
pinctrl-1 = <&pinctrl_csi0_lpi2c0_gpio>;
scl-gpios = <&lsio_gpio3 5 GPIO_ACTIVE_HIGH>;
sda-gpios = <&lsio_gpio3 6 GPIO_ACTIVE_HIGH>;
clock-frequency = <100000>;
status = "disabled";
/* MIPI-CSI2 camera */
ov5640_mipi: ov5640_mipi@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mipi>;
clocks = <&xtal24m>;
clock-names = "xclk";
csi_id = <0>;
reset-gpios = <&lsio_gpio3 3 GPIO_ACTIVE_LOW>;
powerdown-gpios = <&lsio_gpio3 2 GPIO_ACTIVE_HIGH>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
status = "disabled";
port {
ov5640_mipi_ep: endpoint {
remote-endpoint = <&mipi_csi0_ep>;
data-lanes = <1 2>;
clocks-lanes = <0>;
};
};
};
};
DT for the clock (from freescale/imx8qxp)
xtal24m: clock-xtal24m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
clock-output-names = "xtal_24MHz";
};
Mipi pinctrl:
pinctrl_mipi: mipi {
fsl,pins = <
IMX8QXP_CSI_RESET_LSIO_GPIO3_IO03 0xC0000041
IMX8QXP_CSI_EN_LSIO_GPIO3_IO02 0xC0000041
IMX8QXP_MIPI_CSI0_MCLK_OUT_MIPI_CSI0_ACM_MCLK_OUT 0xc0000041
>;
};
Thanks!
Solved! Go to Solution.
Hi Dfdf
one can try to change status to "okay" as in example
Best regards
igor
Hi Dfdf
one can try to change status to "okay" as in example
Best regards
igor
Hi,
That was is, now it works! So simple....
I would set the mipi and i2c status="okay" with an overlay, but for some reason it has to be done directly.
Thanks,
Dfdf