[PATCH 4/4] ARM: dts: imx6ul-14x14-evk: Add camera support

Shawn Guo shawnguo at kernel.org
Sun Jan 17 19:11:19 EST 2021


On Thu, Jan 07, 2021 at 08:50:44PM -0300, Fabio Estevam wrote:
> Add support for the OV5640 parallel camera module.
> 
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
>  arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 43 ++++++++++++++++++++++++-
>  1 file changed, 42 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
> index ac2ec96f54e7..ad039821a767 100644
> --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
> +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
> @@ -146,6 +146,41 @@
>  		reg = <0x1a>;
>  		wlf,shared-lrclk;
>  	};
> +
> +	camera at 3c {
> +		compatible = "ovti,ov5640";
> +		reg = <0x3c>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_camera_clock>;
> +		clocks = <&clks IMX6UL_CLK_CSI>;
> +		clock-names = "xclk";
> +		powerdown-gpios = <&gpio_spi 6 GPIO_ACTIVE_HIGH>;
> +		reset-gpios = <&gpio_spi 5 GPIO_ACTIVE_LOW>;
> +
> +		port {
> +			ov5640_to_parallel: endpoint {
> +				remote-endpoint = <&parallel_from_ov5640>;
> +				bus-width = <8>;
> +				data-shift = <2>; /* lines 9:2 are used */
> +				hsync-active = <0>;
> +				vsync-active = <0>;
> +				pclk-sample = <1>;
> +			};
> +		};
> +	};
> +};
> +
> +&csi {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_csi1>;
> +	status = "okay";
> +
> +	port {
> +		parallel_from_ov5640: endpoint {
> +			remote-endpoint = <&ov5640_to_parallel>;
> +			bus-type = <5>; /* Parallel bus */
> +		};
> +	};
>  };
>  
>  &fec1 {
> @@ -353,9 +388,15 @@
>  &iomuxc {
>  	pinctrl-names = "default";
>  
> -	pinctrl_csi1: csi1grp {
> +	pinctrl_camera_clock: cameraclockgrp {
>  		fsl,pins = <
>  			MX6UL_PAD_CSI_MCLK__CSI_MCLK		0x1b088
> +		>;
> +	};
> +
> +	pinctrl_csi1: csi1grp {
> +		fsl,pins = <
> +

Unneeded newline.

Fixed it up and applied.

Shawn

>  			MX6UL_PAD_CSI_PIXCLK__CSI_PIXCLK	0x1b088
>  			MX6UL_PAD_CSI_VSYNC__CSI_VSYNC		0x1b088
>  			MX6UL_PAD_CSI_HSYNC__CSI_HSYNC		0x1b088
> -- 
> 2.17.1
> 



More information about the linux-arm-kernel mailing list