Skip to content

Commit 6f6c18c

Browse files
nxpfrankliShawn Guo
authored andcommitted
arm64: dts: imx8mp-evk: add camera ov5640 and related nodes
Add camera ov5640 and related nodes. Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent abc8424 commit 6f6c18c

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

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

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,27 @@
8484
clock-frequency = <100000000>;
8585
};
8686

87+
reg_1v5: regulator-1v5 {
88+
compatible = "regulator-fixed";
89+
regulator-name = "1v5";
90+
regulator-min-microvolt = <1500000>;
91+
regulator-max-microvolt = <1500000>;
92+
};
93+
94+
reg_1v8: regulator-1v8 {
95+
compatible = "regulator-fixed";
96+
regulator-name = "1v8";
97+
regulator-min-microvolt = <1800000>;
98+
regulator-max-microvolt = <1800000>;
99+
};
100+
101+
reg_2v8: regulator-1v8 {
102+
compatible = "regulator-fixed";
103+
regulator-name = "2v8";
104+
regulator-min-microvolt = <2800000>;
105+
regulator-max-microvolt = <2800000>;
106+
};
107+
87108
reg_audio_3v3: regulator-audio-3v3 {
88109
compatible = "regulator-fixed";
89110
regulator-name = "audio-3v3";
@@ -548,6 +569,30 @@
548569
pinctrl-0 = <&pinctrl_i2c2>;
549570
status = "okay";
550571

572+
camera@3c {
573+
compatible = "ovti,ov5640";
574+
reg = <0x3c>;
575+
pinctrl-names = "default";
576+
pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>;
577+
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
578+
clock-names = "xclk";
579+
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
580+
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
581+
assigned-clock-rates = <24000000>;
582+
powerdown-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
583+
AVDD-supply = <&reg_2v8>;
584+
DVDD-supply = <&reg_1v5>;
585+
DOVDD-supply = <&reg_1v8>;
586+
status = "okay";
587+
588+
port {
589+
ov5640_mipi_0_ep: endpoint {
590+
remote-endpoint = <&mipi_csi0_ep>;
591+
data-lanes = <1 2>;
592+
};
593+
};
594+
};
595+
551596
hdmi@3d {
552597
compatible = "adi,adv7535";
553598
reg = <0x3d>;
@@ -652,6 +697,10 @@
652697
*/
653698
};
654699

700+
&isi_0 {
701+
status = "okay";
702+
};
703+
655704
&lcdif1 {
656705
status = "okay";
657706
};
@@ -670,6 +719,19 @@
670719
status = "okay";
671720
};
672721

722+
&mipi_csi_0 {
723+
status = "okay";
724+
725+
ports {
726+
port@0 {
727+
mipi_csi0_ep: endpoint {
728+
remote-endpoint = <&ov5640_mipi_0_ep>;
729+
data-lanes = <1 2>;
730+
};
731+
};
732+
};
733+
};
734+
673735
&mipi_dsi {
674736
samsung,esc-clock-frequency = <10000000>;
675737
status = "okay";
@@ -843,6 +905,24 @@
843905
>;
844906
};
845907

908+
pinctrl_csi_mclk: csi_mclk_grp {
909+
fsl,pins = <
910+
MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2 0x50
911+
>;
912+
};
913+
914+
pinctrl_csi0_pwn: csi0_pwn_grp {
915+
fsl,pins = <
916+
MX8MP_IOMUXC_SD1_STROBE__GPIO2_IO11 0x10
917+
>;
918+
};
919+
920+
pinctrl_csi0_rst: csi0_rst_grp {
921+
fsl,pins = <
922+
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x10
923+
>;
924+
};
925+
846926
pinctrl_eqos: eqosgrp {
847927
fsl,pins = <
848928
MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x2

0 commit comments

Comments
 (0)