Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54a6c78

Browse files
Guoniu.zhouDong Aisheng
authored andcommitted
LF-1909-2: arm64: dts: imx8mp-evk: enable ov5640 for iMX8MP platfrom
Add ov5640 device node and enable isi, csi for iMX8MP platfrom Signed-off-by: Guoniu.zhou <[email protected]> Reviewed-by: Robby.Cai <[email protected]>
1 parent dc9e841 commit 54a6c78

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed

arch/arm64/boot/dts/freescale/imx8mp-evk.dts

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,33 @@
353353
};
354354
};
355355
};
356+
357+
ov5640_0: ov5640_mipi@3c {
358+
compatible = "ovti,ov5640";
359+
reg = <0x3c>;
360+
pinctrl-names = "default";
361+
pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>;
362+
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
363+
clock-names = "xclk";
364+
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
365+
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
366+
assigned-clock-rates = <24000000>;
367+
csi_id = <0>;
368+
powerdown-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
369+
reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
370+
mclk = <24000000>;
371+
mclk_source = <0>;
372+
mipi_csi;
373+
status = "okay";
374+
375+
port {
376+
ov5640_mipi_0_ep: endpoint {
377+
remote-endpoint = <&mipi_csi0_ep>;
378+
data-lanes = <1 2>;
379+
clock-lanes = <0>;
380+
};
381+
};
382+
};
356383
};
357384

358385
&i2c3 {
@@ -378,6 +405,33 @@
378405
wlf,gpio-cfg = <1 3>;
379406
SPKVDD1-supply = <&reg_audio_pwr>;
380407
};
408+
409+
ov5640_1: ov5640_mipi@3c {
410+
compatible = "ovti,ov5640";
411+
reg = <0x3c>;
412+
pinctrl-names = "default";
413+
pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>;
414+
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
415+
clock-names = "xclk";
416+
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
417+
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
418+
assigned-clock-rates = <24000000>;
419+
csi_id = <0>;
420+
powerdown-gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
421+
reset-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
422+
mclk = <24000000>;
423+
mclk_source = <0>;
424+
mipi_csi;
425+
status = "disabled";
426+
427+
port {
428+
ov5640_mipi_1_ep: endpoint {
429+
remote-endpoint = <&mipi_csi1_ep>;
430+
data-lanes = <1 2>;
431+
clock-lanes = <0>;
432+
};
433+
};
434+
};
381435
};
382436

383437
&irqsteer_hdmi {
@@ -808,6 +862,19 @@
808862
MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0x166
809863
>;
810864
};
865+
866+
pinctrl_csi0_pwn: csi0_pwn_grp {
867+
fsl,pins = <
868+
MX8MP_IOMUXC_SD1_STROBE__GPIO2_IO11 0x19
869+
>;
870+
};
871+
872+
pinctrl_csi0_rst: csi0_rst_grp {
873+
fsl,pins = <
874+
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x19
875+
MX8MP_IOMUXC_GPIO1_IO15__CCMSRCGPCMIX_CLKO2 0x59
876+
>;
877+
};
811878
};
812879

813880
&vpu_g1 {
@@ -821,3 +888,57 @@
821888
&vpu_vc8000e {
822889
status = "okay";
823890
};
891+
892+
&mipi_csi_0 {
893+
#address-cells = <1>;
894+
#size-cells = <0>;
895+
status = "okay";
896+
897+
port@0 {
898+
reg = <0>;
899+
mipi_csi0_ep: endpoint {
900+
remote-endpoint = <&ov5640_mipi_0_ep>;
901+
data-lanes = <2>;
902+
csis-hs-settle = <13>;
903+
csis-clk-settle = <2>;
904+
csis-wclk;
905+
};
906+
};
907+
};
908+
909+
&mipi_csi_1 {
910+
#address-cells = <1>;
911+
#size-cells = <0>;
912+
status = "disabled";
913+
914+
port@1 {
915+
reg = <1>;
916+
mipi_csi1_ep: endpoint {
917+
remote-endpoint = <&ov5640_mipi_1_ep>;
918+
data-lanes = <2>;
919+
csis-hs-settle = <13>;
920+
csis-clk-settle = <2>;
921+
csis-wclk;
922+
};
923+
};
924+
};
925+
926+
&cameradev {
927+
status = "okay";
928+
};
929+
930+
&isi_0 {
931+
status = "okay";
932+
933+
cap_device {
934+
status = "okay";
935+
};
936+
};
937+
938+
&isi_1 {
939+
status = "disabled";
940+
941+
cap_device {
942+
status = "okay";
943+
};
944+
};

0 commit comments

Comments
 (0)