Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp530480iob; Wed, 18 May 2022 07:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTA9dITB91w66zt9CIRARcyxzcs3VSBP83VOo0SRDnu+wEcUZ8WTqdUqlB1SXfhff/BPdF X-Received: by 2002:a17:90b:1d83:b0:1dc:4362:61bd with SMTP id pf3-20020a17090b1d8300b001dc436261bdmr280535pjb.126.1652884044482; Wed, 18 May 2022 07:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652884044; cv=none; d=google.com; s=arc-20160816; b=plK7zAfjL8HPlmGjTeq7OZHTseuc8p3zvXWx5KonmSonCndAUoQZIF0+XxPB+3METs rpMfY8am5irMxorDkYMykYheliNJckbzzt2D+8UR72b6ZuXwrIkoFWPwdrG4CmpXY9ib UCBNUcN+lCvYCB0RPrPSAtcryGyyzVi6PP4ww8JibgVYWgxxLzk7jqozCVzNYBGrK0Ju 0nuhdzTnRXLjkns5rCFYqAlCOctLfbgMKpxnNkkP/AwyVoY4L7kOAES2Ej4UY/2hwueq iKr8/hlYMhKqCdUTD2yqf4syLMMnYrxoex4TcvGrlEuXDwirOdUxubbCSApY4IBrJwzN rI4A== 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=OgF7hB842Xb1tcpu/exVm00l5yNp9b+2bCf12T/zGxc=; b=phYsQRDw8BkUy7TTB65HBgzyJUAHqBi9cPKeY4pD8CsaLJBVlSQ7rdPEy7y5pBPcz7 u/Xq8d1lNPb9YCy4pfquFK1VcM2CpMtxvl7Q/x10hEYl0oMOpUIM8zP7wO4mz9XJkQRf 6fDgiGCmmGC9H7ws3JEyCuviGARnVbUGinoFC9e5mKJUzhPeIoF1JWPtIRaILegPPv8p xawM3wViLM3Gu0nVah2Ppq2c3ScRbcQIzHA+saKeYG981qeb8Yy6sCr2X0L38sO5WIAF Tq/e9TY9a4OVJdpIo1nVC+mf/8sTGSvRqAOXJ8Pk0Csgn/vt2+j7lpcSn/q39v/PhZbs ucLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e7RUpvLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s12-20020a17090302cc00b00161ba2ffeb8si2762151plk.557.2022.05.18.07.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e7RUpvLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA9BA42EC0; Wed, 18 May 2022 07:21:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238559AbiEROVU (ORCPT + 99 others); Wed, 18 May 2022 10:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238551AbiEROVS (ORCPT ); Wed, 18 May 2022 10:21:18 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686CC1C103; Wed, 18 May 2022 07:21:16 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id bq30so3941235lfb.3; Wed, 18 May 2022 07:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OgF7hB842Xb1tcpu/exVm00l5yNp9b+2bCf12T/zGxc=; b=e7RUpvLPw1/sKoLVxVoOxzKi3xQRj3PpyVvr333lxyBp/yvOTfwmgKKAHFDm9CshR4 NvheW1Z+C/naejxdGvSKLOi7EaEmLYVb2fq254kes7ntQmFcbqCtIH7qgqj0uBlSjewP y3nmYCWY/Wo+7Dyt53yvbAI8H+jCSAP4XJ3P9S/ukSPyKuJY5V2guFPrT2FPhT+LnyX7 WmVSTfkIGQgIo6m+LzUYb6iGOdDEWE6hyXuTeyFNzIl1y0R/Tw+BXAbPiVjjc6NEcHA9 v0l0cm1kMLgAuH/fG6sa1VdNDaE/61nnECZLz+KEkuIIK2tJpo86oiYElEkpUKfImlF3 sLyA== 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=OgF7hB842Xb1tcpu/exVm00l5yNp9b+2bCf12T/zGxc=; b=VQiaBrrk+NcVIYdFLa68mOTJuAGuULjH2pPhsFC1MMVJ/gAvtrgeIr9FwdcqUj/ZJg xtfuwqAYfPb3Avxfa3A4triB3CFfOpcKZxSYDYeFrgLDKYBHamTXLaj4pWGEDtdcSGfs fFZY2oyVVsAh6ab+hp0c7hHea5Rgp1gl983faAq1+GuHHsh5Hm8BYDS+rL3aWw7whOeF qA8iAIekakIEWfzEZzvqJDD50vVy3X3QdASvFI7U5+XCZwBcByqXRjnyEX10D05Ad3Lw tAoKKFuprUokM1g/+D1OK0wUZXE/3gQH68vwNZ62zBsrW2Baoc9ll8eOdcgTsbxSTzsv WPQQ== X-Gm-Message-State: AOAM532+iv+YwxbOzbyZR8IorFeF4/ou2wiOUIj9d3DWvlKKAiD1xa5s 1hwp0ApHMklMogukx0Sh0rDhM3suLATia+VINUo= X-Received: by 2002:ac2:550f:0:b0:477:bc6e:9bcc with SMTP id j15-20020ac2550f000000b00477bc6e9bccmr1697600lfk.279.1652883674662; Wed, 18 May 2022 07:21:14 -0700 (PDT) MIME-Version: 1.0 References: <20220516115846.58328-1-max.oss.09@gmail.com> <20220516115846.58328-12-max.oss.09@gmail.com> In-Reply-To: From: Max Krummenacher Date: Wed, 18 May 2022 16:21:03 +0200 Message-ID: Subject: Re: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera To: Fabio Estevam Cc: Max Krummenacher , Oleksandr Suvorov , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio On Mon, May 16, 2022 at 2:08 PM Fabio Estevam wrote: > > Hi Max, > > On Mon, May 16, 2022 at 8:59 AM Max Krummenacher wrote: > > > > From: Oleksandr Suvorov > > > > The Apalis iMX6 modules allow connecting a mipi-csi video input. > > Add support for our OV5640 camera module but have it disabled. > > This allows to enable it in an overlay per the current system > > configuration. > > > > Signed-off-by: Oleksandr Suvorov > > Signed-off-by: Max Krummenacher > > --- > > > > arch/arm/boot/dts/imx6qdl-apalis.dtsi | 67 ++++++++++++++++++++++++++- > > 1 file changed, 66 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi > > index 506d040ea37a..0d1004eede62 100644 > > --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi > > +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi > > @@ -29,6 +29,12 @@ > > status = "disabled"; > > }; > > > > + clk_ov5640_osc: clk_ov5640_osc_int { > > Node names should have "-", not "_" Ups, missed that one. Will fix it in V2. Thanks. > > clk_ov5640_osc: clk-ov5640-osc > > Also, no need for the _int suffix. > > Just curious: is ov5640 mipi support functional? > > I recalled that I had issues in getting Gstreamer pipeline to capture > from the ov5640 mipi. > > There were some errors related to LP-11 during the start of the capture. In my (limited) testing I saw no issues that the camera would not come up. It takes 2 to 3 seconds until the pipeline is running but I noted no hickups. I did this with setting the resolution to 640x480 and 1920x1080 which probably would not relate to the LP-11 issue you mention. I.e. I set up the v4l2 pipeline and start capture to the screen as follows: ``` media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]" media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]" media-ctl -l "'ipu1_csi1':2 -> 'ipu1_csi1 capture':0[1]" media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY2X8/640x480 field:none]" media-ctl -V "'imx6-mipi-csi2':2 [fmt:UYVY2X8/640x480 field:none]" media-ctl -V "'ipu1_csi1':2 [fmt:AYUV32/640x480 field:none]" gst-launch-1.0 v4l2src device='/dev/video0' ! videoconvert ! waylandsink ``` Max