what are the changes i have to do in dts files for CSI2-MIPI work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what are the changes i have to do in dts files for CSI2-MIPI work

474 Views
srinivas_123
Contributor III

I am using the imx8mplus evk board. On my board, I have CSI1-MIPI and CSI2-MIPI camera interfaces .

By default, CSI1-MIPI is enabled and CSI2-MIPI is disabled in dts files . I required the CSI2-MIPI interface to work. so I enabled the below places in dts file. After enabled also still it is not working. how to approach it, am I doing the correct  or not

i2c@30a30000 {
compatible = "fsl,imx8mp-i2c\0fsl,imx21-i2c";
#address-cells = <0x01>;
#size-cells = <0x00>;
reg = <0x30a30000 0x10000>;
interrupts = <0x00 0x24 0x04>;
clocks = <0x02 0xce>;
status = "okay";
clock-frequency = <0x186a0>;
pinctrl-names = "default";
pinctrl-0 = <0x33>;
phandle = <0xf6>;
 
adv7535@3d {
compatible = "adi,adv7535";
reg = <0x3d>;
adi,addr-cec = <0x3b>;
adi,dsi-lanes = <0x04>;
status = "okay";
phandle = <0xf7>;
 
port {
 
endpoint {
remote-endpoint = <0x34>;
phandle = <0x58>;
};
};
};
i2c@30a40000 {
compatible = "fsl,imx8mp-i2c\0fsl,imx21-i2c";
#address-cells = <0x01>;
#size-cells = <0x00>;
reg = <0x30a40000 0x10000>;
interrupts = <0x00 0x25 0x04>;
clocks = <0x02 0xcf>;
status = "okay";
clock-frequency = <0x61a80>;
pinctrl-names = "default";
pinctrl-0 = <0x3f>;
phandle = <0xfc>;
 
gpio@20 {
compatible = "ti,tca6416";
reg = <0x20>;
gpio-controller;
#gpio-cells = <0x02>;
interrupt-controller;
#interrupt-cells = <0x02>;
pinctrl-names = "default";
pinctrl-0 = <0x40>;
interrupt-parent = <0x32>;
interrupts = <0x0c 0x08>;
gpio-line-names = "EXT_PWREN1\0EXT_PWREN2\0CAN1/I2C5_SEL\0PDM/CAN2_SEL\0FAN_EN\0PWR_MEAS_IO1\0PWR_MEAS_IO2\0EXP_P0_7\0EXP_P1_0\0EXP_P1_1\0EXP_P1_2\0EXP_P1_3\0EXP_P1_4\0EXP_P1_5\0EXP_P1_6\0EXP_P1_7";
phandle = <0x2f>;
};
 
wm8960@1a {
compatible = "wlf,wm8960";
reg = <0x1a>;
clocks = <0x41 0x09>;
clock-names = "mclk";
wlf,shared-lrclk;
wlf,hp-cfg = <0x03 0x02 0x03>;
wlf,gpio-cfg = <0x01 0x03>;
SPKVDD1-supply = <0x42>;
phandle = <0xaf>;
};
 
ov5640_mipi@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <0x36 0x37 0x38>;
clocks = <0x02 0xa5>;
clock-names = "xclk";
assigned-clocks = <0x02 0xa5>;
assigned-clock-parents = <0x02 0x02>;
assigned-clock-rates = <0x16e3600>;
csi_id = <0x00>;
powerdown-gpios = <0x3c 0x01 0x00>;
reset-gpios = <0x3c 0x00 0x01>;
mclk = <0x16e3600>;
mclk_source = <0x00>;
mipi_csi;
status = "disabled";    //here I changed disabled to enabled 
phandle = <0xfd>;
 
port {
 
endpoint {
remote-endpoint = <0x43>;
data-lanes = <0x01 0x02>;
clock-lanes = <0x00>;
phandle = <0x72>;
};
};
};
};

 

imx8mp-evk-root.txt ----> imx8mp-evk-root.dts file

evk.txt ------------------------>imx8mp-evk.dts file 

I want to make CSI2-MIPI has to work. How to approach.

0 Kudos
Reply
1 Reply

443 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 Kudos
Reply