From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8FFDC636D3 for ; Mon, 6 Feb 2023 16:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WVC3wCD1IXc8eiL4MIq2UJJz8FzjdK6f21bqTruXHnM=; b=h3tj0ZL9bJoox3 uAsLAhHh8Kt9yZsnSr3eKTHXbbiejuZfPFBLdxCZ2al0daq+5lPvQmhdlPZ5camzOTquKsPmoBowc 7n+E9PgKlcOEvh4B3gWJI+csvZvAS8czCftWXagbrYgCN0H+b+rA9SNkrmw1Ac9wLahST/aj4Juit lv2r8WzERoKds2zs8evaJDBZ4VOfXaOSa0bTrDx6GKiZ5vZmrfcB8p+b517APBLYX0xuFeJPB5OHH XTnLf9I71rYrhEKGGInmvBO+ddVRSIXCQ1fJRCV4+LO+Ub7gzBQMptNfHZIFyhjiHwSCptXw61hLV hMrt2BBhsZA0TFl0YvGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pP47Q-009EiY-Mv; Mon, 06 Feb 2023 16:13:24 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pP3kz-0093tQ-Nm for linux-arm-kernel@lists.infradead.org; Mon, 06 Feb 2023 15:50:15 +0000 Received: from pendragon.ideasonboard.com (unknown [109.136.43.56]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0A19C4DA; Mon, 6 Feb 2023 16:50:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1675698612; bh=uhc6icxdKUm6hP7wHbn+5cn8E08s8XfuH6HcGj3S9Dw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GYni2MEwCy6qQmRw9TqPr0Q7OTe3z7MqrCZFLORxHXyyA83npDW1qguScfSnR87UB +FPyKrYQo0E+MPrJKGk6AwJoPno2BHuc9HJmu8vnLIMHma/6OtBBtHx22UvguLQCr8 CAcoF9Zw1bKbHv0cBRpf/8nrWcj6/ao/7Q2UH5Es= Date: Mon, 6 Feb 2023 17:50:10 +0200 From: Laurent Pinchart To: Frieder Schrempf Cc: linux-media , Tim Harvey , linux-arm-kernel@lists.infradead.org Subject: Re: Capture image from imx219 sensor on i.MX8MM Message-ID: References: <9aabef0e-9f48-f8bd-ab7c-e51ac2685116@kontron.de> <8965ad7f-0683-81af-2bfd-e6a0a173c95e@kontron.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8965ad7f-0683-81af-2bfd-e6a0a173c95e@kontron.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230206_075013_973790_9BA99DEE X-CRM114-Status: GOOD ( 21.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Feb 06, 2023 at 04:38:27PM +0100, Frieder Schrempf wrote: > On 06.02.23 16:31, Laurent Pinchart wrote: > > On Mon, Feb 06, 2023 at 03:24:41PM +0100, Frieder Schrempf wrote: > >> Hi, > >> > >> I'm trying to get a camera stream on our i.MX8MM board up and running > >> with Linux 6.1. I'm using the RPi v2.1 camera module (imx219) as sensor. > >> > >> I basically copied the devicetree setup from Tim's overlay at > >> arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-imx219.dts. > >> > >> With all the drivers enabled the devices (imx219, imx7-media-csi, > >> imx-mipi-csis) seem to probe just fine and I see /dev/video0 and > >> /dev/media0. > >> > >> For the v4l subdevices I would expect to see one for the sensor and one > >> for the CSI bridge. But only the latter is there (see below). > >> > >> Is this correct? Am I missing something? How can I setup/enable the > >> pipeline/stream? > > > > Your expectations are correct, but the result isn't. You should see the > > camera sensor in the media graph. Has the imx219 been probed by the > > driver ? Did probe succeed ? > > Yes, the imx219_probe() works just fine and returns with code 0. I also > see v4l2_async_register_subdev_sensor() and the underlying code being > called. > > So I really don't understand why I'm missing the sensor subdev. Any > ideas how to continue debugging? The issue seems to be with v4l2-async then. There's a debugfs file that lists the missing v4l2-async subdevs (I don't recall the path by heard), that can give useful information. Enabling the debug messages from v4l2-async.c may helpt too. -- Regards, Laurent Pinchart _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel