Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1062112pxb; Wed, 27 Oct 2021 18:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySFedJDWK7W+POEO0BwP6UuFP+OTtnb6/Xkc8wSKrmuicoDR4IqOZ/KmyDHdoXR/+xgvdr X-Received: by 2002:a17:902:e88a:b0:13e:ed55:296f with SMTP id w10-20020a170902e88a00b0013eed55296fmr1007799plg.11.1635384780912; Wed, 27 Oct 2021 18:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635384780; cv=none; d=google.com; s=arc-20160816; b=RRVob+bVEo+xFO5oM43jRdKP2KZQyUZKXpTuY54w0rDFtjaS1dB3bZYmFD2+9fn/sV vrsKzQN8O/4pZ+BJMCBWNADvXK6A4y2SfLalAf9YKX0T781g439T0/CnqKJ2FJR+sSUK eYRTQKSWOzX94JniQYG2+Hnz3pJ6mTAnTIS7p03W2rIiQYfgfGvHyQWckDpeNSYK9xLK 4SeOUxPnTBeN17iUEaFumM6ksXH/Eei5OFEnW3PSP0Cq9X21+Y8bldUzBtMncXFoo+Jm 8fzLfytikPKrUtXUJMOWacjJyQ51vQuXmdRU5dkvlid1gcHIlZsMTBAKjKsCxK4dPSXN 5MgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gndP3qpiucufRaDPM83i0w8zvBNf4kbI2NoI93gZpW8=; b=mWiaHqpqAXRUadSGDeG5Yk9OlsliQ7l7RFSxQWZK5Tj1zz1aNqeow9gRB2QjmJvKAj Lhzbo/BJBMnYx2EmZEPVG1TLvAj1/Mx80dKbF9tiv0BclGAvbJM0PExjkj76Ill3rM0w JrWy+b2Eb6XHhPSlVMkM5sG2arrWIWvsT8ZFEqomx7vWTglnlhIA0vARgbAKK/tK/Ruh AjvGZJaeIBmxwL25lGCXy+iKnQaWVwLQ7voq2hhMNI2dDPXpFTvqZZbMxdUvvvdEDXPB bDE/u9YPTdUhyJ43NtJHbnrX+gLATWXiWPSi3uhjwZyirzoR9u1dw4mohZpLtJSfVzjN Zt+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="MML/9Vdl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si2337919plh.326.2021.10.27.18.32.48; Wed, 27 Oct 2021 18:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="MML/9Vdl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbhJ1BeO (ORCPT + 99 others); Wed, 27 Oct 2021 21:34:14 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:38332 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhJ1BeN (ORCPT ); Wed, 27 Oct 2021 21:34:13 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E10A6276; Thu, 28 Oct 2021 03:31:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1635384706; bh=W61TWmkoyqLkITOU7v3m79iwZxMeYw/EwHh8vkM1pK4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MML/9VdlSyvMjHErZJA9uwpyDCjvYZTj4cepHPFtEMOQT2fg5M4MREwyh80hIDK18 l1M8v41i3Dg/tVAHEbzAq9faANOPMhpz0kvhUWpJYqbsaSbcssE7/JrRJvtCEWzVaU yBa88W/xVvINuFD3/7tdXLodnaCDDgHMVCKxkbVM= Date: Thu, 28 Oct 2021 04:31:22 +0300 From: Laurent Pinchart To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, cstevens@beaconembedded.com, aford@beaconembedded.com, Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC V2 5/5] arm64: dts: imx8mm-evk: Enable OV5640 Camera Message-ID: References: <20211023203457.1217821-1-aford173@gmail.com> <20211023203457.1217821-6-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211023203457.1217821-6-aford173@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, Thank you for the patch. On Sat, Oct 23, 2021 at 03:34:56PM -0500, Adam Ford wrote: > The schematic shows support for a camera interface, and the NXP > kernel shows it is an OV5640. The camera is an external module though. Should this be a DT overlay ? > Signed-off-by: Adam Ford > --- > arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 44 +++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > index e033d0257b5a..27217d30b8d8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > @@ -239,6 +239,10 @@ ldo6_reg: LDO6 { > }; > }; > > +&csi { > + status = "okay"; > +}; > + > &i2c2 { > clock-frequency = <400000>; > pinctrl-names = "default"; > @@ -287,6 +291,38 @@ pca6416: gpio@20 { > gpio-controller; > #gpio-cells = <2>; > }; > + > + camera@3c { > + compatible = "ovti,ov5640"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ov5640>; > + reg = <0x3c>; > + clocks = <&clk IMX8MM_CLK_CLKO1>; > + clock-names = "xclk"; > + assigned-clocks = <&clk IMX8MM_CLK_CLKO1>; > + assigned-clock-parents = <&clk IMX8MM_CLK_24M>; > + assigned-clock-rates = <24000000>; > + powerdown-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; > + > + port { > + /* MIPI CSI-2 bus endpoint */ > + ov5640_to_mipi_csi2: endpoint { > + remote-endpoint = <&imx8mm_mipi_csi_in>; > + clock-lanes = <0>; > + data-lanes = <1 2>; > + }; > + }; > + }; > +}; > + > +&imx8mm_mipi_csi_in { > + remote-endpoint = <&ov5640_to_mipi_csi2>; > + data-lanes = <1 2>; > +}; > + > +&mipi_csi2 { > + status = "okay"; > }; > > &sai3 { > @@ -406,6 +442,14 @@ MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3 > >; > }; > > + pinctrl_ov5640: ov5640grp { > + fsl,pins = < > + MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19 > + MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 > + MX8MM_IOMUXC_GPIO1_IO14_CCMSRCGPCMIX_CLKO1 0x59 > + >; > + }; > + > pinctrl_pmic: pmicirqgrp { > fsl,pins = < > MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 -- Regards, Laurent Pinchart