]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mp-evk: add camera ov5640 and related nodes
authorFrank Li <Frank.Li@nxp.com>
Mon, 29 Dec 2025 16:31:01 +0000 (11:31 -0500)
committerShawn Guo <shawnguo@kernel.org>
Wed, 31 Dec 2025 02:17:55 +0000 (10:17 +0800)
Add camera ov5640 and related nodes.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-evk.dts

index 7ededc1a06179808070f1f82172d313c8d043de8..b256be710ea1281465f5cecc7a3b979f2c068e43 100644 (file)
                clock-frequency = <100000000>;
        };
 
+       reg_1v5: regulator-1v5 {
+               compatible = "regulator-fixed";
+               regulator-name = "1v5";
+               regulator-min-microvolt = <1500000>;
+               regulator-max-microvolt = <1500000>;
+       };
+
+       reg_1v8: regulator-1v8 {
+               compatible = "regulator-fixed";
+               regulator-name = "1v8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+       };
+
+       reg_2v8: regulator-1v8 {
+               compatible = "regulator-fixed";
+               regulator-name = "2v8";
+               regulator-min-microvolt = <2800000>;
+               regulator-max-microvolt = <2800000>;
+       };
+
        reg_audio_3v3: regulator-audio-3v3 {
                compatible = "regulator-fixed";
                regulator-name = "audio-3v3";
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
+       camera@3c {
+              compatible = "ovti,ov5640";
+              reg = <0x3c>;
+              pinctrl-names = "default";
+              pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>;
+              clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
+              clock-names = "xclk";
+              assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
+              assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
+              assigned-clock-rates = <24000000>;
+              powerdown-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
+              AVDD-supply = <&reg_2v8>;
+              DVDD-supply = <&reg_1v5>;
+              DOVDD-supply = <&reg_1v8>;
+              status = "okay";
+
+              port {
+                      ov5640_mipi_0_ep: endpoint {
+                              remote-endpoint = <&mipi_csi0_ep>;
+                              data-lanes = <1 2>;
+                      };
+              };
+       };
+
        hdmi@3d {
                compatible = "adi,adv7535";
                reg = <0x3d>;
         */
 };
 
+&isi_0 {
+       status = "okay";
+};
+
 &lcdif1 {
        status = "okay";
 };
        status = "okay";
 };
 
+&mipi_csi_0 {
+       status = "okay";
+
+       ports {
+              port@0 {
+                      mipi_csi0_ep: endpoint {
+                               remote-endpoint = <&ov5640_mipi_0_ep>;
+                               data-lanes = <1 2>;
+                      };
+              };
+       };
+};
+
 &mipi_dsi {
        samsung,esc-clock-frequency = <10000000>;
        status = "okay";
                >;
        };
 
+       pinctrl_csi_mclk: csi_mclk_grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2      0x50
+               >;
+       };
+
+       pinctrl_csi0_pwn: csi0_pwn_grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_SD1_STROBE__GPIO2_IO11     0x10
+               >;
+       };
+
+       pinctrl_csi0_rst: csi0_rst_grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06     0x10
+               >;
+       };
+
        pinctrl_eqos: eqosgrp {
                fsl,pins = <
                        MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC                             0x2