Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4511336pxb; Tue, 2 Nov 2021 10:53:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYK4RIjozCsmBDJAb3sMTw+GZbt29dxolHpuiFEg7xPRMMIHwMTPbi0fLLomDX3XxmrpWt X-Received: by 2002:a05:6402:12c9:: with SMTP id k9mr36536640edx.364.1635875628410; Tue, 02 Nov 2021 10:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635875628; cv=none; d=google.com; s=arc-20160816; b=Tei6fsfmmZMnyD6MfUC1XFHPk3YJ+hoe9u0c4FQ5ABDp8DJy/YJe5aQ5D2JAaCXKZn fBD0xOu4nNPFUvYHhQQ5gye+4Gaefp/ueOFgOizsm8sKEkLfG2rPVKLYPO8XHS3thc17 g9Db2KOiAgeAcnDtz7WLLs3Cvj1aFz7yABNyYwr25jIPaGv9CRsjt4CxXZZdZ5sjgmgk 79jTpUSUq7+VWlR8yZ2cBG/ie9pN2rdmW1G97ZH+vOlvo8VElPDCaJuUWWy7VXR6I+Dz vBBfXvDhLmtuqLPzSY+WFBJtjlD9VswpsgI48Nez+YPAqcwlF0QJKp7tvoxnnD1r6qf7 TWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=h2XMYdRoHkcbxUtG08wNlFVioW7CYEfulfjd5ISyyWQ=; b=B6SPwdNDuHVXenDEpRa2VjW/j0AfpN+YS3AU/AK9nlEHKImDCFvEkb4Oc864ZhxA4Q PCbYwxNAYo/UV2Y4gTFBGoyioCXXD30QpVwhcKY/JzmE9p2u4a8zP7gIOPwNFHvs+9Y0 SOx9PiooKmrmdfxWhPE6vHt7qwG7OSP5EVvP1fngkZcAoM2ciPNIofI1dzXnpF3C5WbM cJEeUeOnflzUCVpn4N5SH0wA9xisiGfl5G1OMmQA3PcShYiCr+iWDv38wgpO/scfBQOj forpfwaXlKX3TQcjlzE7hOGCGqxLVJr6NWPgHIxH6M9Z3ksHCy59Gy4GlclZjFXIdxUz +ejg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=cxLSS3VC; 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 q18si12827726ejf.639.2021.11.02.10.53.24; Tue, 02 Nov 2021 10:53:48 -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 header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=cxLSS3VC; 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 S234282AbhKBRv7 (ORCPT + 99 others); Tue, 2 Nov 2021 13:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231506AbhKBRv6 (ORCPT ); Tue, 2 Nov 2021 13:51:58 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8626C061714 for ; Tue, 2 Nov 2021 10:49:23 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id r28so140989pga.0 for ; Tue, 02 Nov 2021 10:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h2XMYdRoHkcbxUtG08wNlFVioW7CYEfulfjd5ISyyWQ=; b=cxLSS3VCTbis2Ob2NSBVE9NYblYr1jQPquNDa9CA1YUB29D0JPyWCwurlXrZMGtkYC Pnpi28bPCr7Zr6lHbPsfzveQKotrsKHnFs2jyhKFQCL6sAZhiAGmhOvU34wzy5TOrzIR WWJN2WWSXh+W9krYN1G4TA9SKm6FGF9FaqIcC8yuEyK32UbCSGLiNR7YwjwSeZ6/hARL WCbaelkUDowbBZ2lZ9iziaLZZDXVz4TBftzg1V1mlkcWvJu5UIAbitHXFUbpM818SdMh hyd2qwEgDZSI/KsDcAJfYx8B3BEE8VjAKklg4CM/NAhust7exfa5TXbSm/+xT2lu9+Zx Q7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h2XMYdRoHkcbxUtG08wNlFVioW7CYEfulfjd5ISyyWQ=; b=cuDWDAgPg+oqbZQ9xuAQCe9nSYqn5BXfMU+WFBS1ce4DJecJsTmB6TskJn48TCZX4u aEO9oAWie8vu8m7ttaQKDV4rQxoWgN69cjUCzd5sEIPVAesk8NFuIjlc1FJPJ7XYTU5K xuLOHmeIJNmY2BaQps6CrB3Hfsfjer+tzaD3ZBUC4vsM2bvadahh/5iNELV+Hq+KS8g/ d12e/VjApjKa/1W+r53At41U69Z3Q0uygb7oYrbqzHmQanewWg1K6pHxDYO6C7EzM/kL OFzwoGqyjv29yrZ1sAvwyhCi8ycZ+4beqS9iYgepYiAd1lP/cO/J+uq4aLGYKJtgYjny fzLw== X-Gm-Message-State: AOAM530Dv4HetTRwJKlfmVx+41OK1Sy5LjuCccXoz0xwPd8Ndv1uKXvB CLLZRWldJab0cloQyfeNPAoN05AhXX0qX9I2R6Vk1w== X-Received: by 2002:aa7:8149:0:b0:44c:916c:1fdb with SMTP id d9-20020aa78149000000b0044c916c1fdbmr38932748pfn.34.1635875363341; Tue, 02 Nov 2021 10:49:23 -0700 (PDT) MIME-Version: 1.0 References: <20211023203457.1217821-1-aford173@gmail.com> <20211023203457.1217821-6-aford173@gmail.com> In-Reply-To: <20211023203457.1217821-6-aford173@gmail.com> From: Tim Harvey Date: Tue, 2 Nov 2021 10:49:12 -0700 Message-ID: Subject: Re: [RFC V2 5/5] arm64: dts: imx8mm-evk: Enable OV5640 Camera To: Adam Ford Cc: Linux ARM Mailing List , linux-media , Laurent Pinchart , cstevens@beaconembedded.com, Adam Ford-BE , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , Device Tree Mailing List , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 23, 2021 at 1:39 PM Adam Ford wrote: > > The schematic shows support for a camera interface, and the NXP > kernel shows it is an OV5640. > > 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>; > + }; > + }; > + }; Adam, On the imx8mm-evk the ov5640 is on i2c3 Tim