From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:33991 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751424AbdIOW0q (ORCPT ); Fri, 15 Sep 2017 18:26:46 -0400 Received: by mail-pg0-f65.google.com with SMTP id v82so1963067pgb.1 for ; Fri, 15 Sep 2017 15:26:45 -0700 (PDT) Subject: Re: IMX6 ADV7180 no /dev/media To: Tim Harvey , linux-media , Philipp Zabel Cc: Stephan Bauroth References: From: Steve Longerbeam Message-ID: <67ab090e-955d-9399-e182-cca049a66f1a@gmail.com> Date: Fri, 15 Sep 2017 15:26:43 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-media-owner@vger.kernel.org List-ID: Hi Tim, On 09/15/2017 02:26 PM, Tim Harvey wrote: > Greetings, > > I'm testing Linux master built with imx_v6_v7_defconfig on a GW51xx > which has an ADV7180 analog video decoder and am not seeing the imx6 > /dev/media node get created: > > [    0.000000] OF: fdt: Machine model: Gateworks Ventana i.MX6 > Dual/Quad GW51XX > ... > [    6.089039] imx-media: Registered subdev ipu1_vdic > [    6.094505] imx-media: Registered subdev ipu2_vdic > [    6.099851] imx-media: Registered subdev ipu1_ic_prp > [    6.105074] imx-media: Registered subdev ipu1_ic_prpenc > [    6.111346] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as > /dev/video0 > [    6.119007] imx-media: Registered subdev ipu1_ic_prpvf > [    6.124733] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as > /dev/video1 > [    6.131867] imx-media: Registered subdev ipu2_ic_prp > [    6.137125] imx-media: Registered subdev ipu2_ic_prpenc > [    6.142921] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as > /dev/video2 > [    6.150226] imx-media: Registered subdev ipu2_ic_prpvf > [    6.155934] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as > /dev/video3 > [    6.164011] imx-media: Registered subdev ipu1_csi0 > [    6.169768] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video4 > [    6.176281] imx-media: Registered subdev ipu1_csi1 > [    6.181681] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video5 > [    6.188189] imx-media: Registered subdev ipu2_csi0 > [    6.193680] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video6 > [    6.200108] imx-media: Registered subdev ipu2_csi1 > [    6.205577] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video7 > ... > [   96.981117] adv7180 2-0020: chip found @ 0x20 (21a8000.i2c) > [   97.019674] imx-media: Registered subdev adv7180 2-0020 > [   97.019712] imx-media capture-subsystem: Entity type for entity > adv7180 2-0020 was not initialized! > > I suspect the failure of the adv7180 is causing the issue. Steve > mentioned some time ago that this was an error that needed to be fixed > upstream but I'm not clear if that is still the case. > That does need fixing but is not the cause. > I haven't looked at IMX media drivers since they were accepted to > mainline a few months back. Perhaps I'm simply forgetting to enable > something in the kernel that imx_v6_v7_defconfig doesn't turn on? Yes, it looks like you are missing the video-mux. Enable CONFIG_VIDEO_MUX and CONFIG_MUX_MMIO. Steve