Skip to contentSkip to conversation

Kernel 5.10 - imx-media does not create /dev/media0

DISCUSSION Patrick Boettcher 1 participant 3 messages Oct 27, 2021 – Oct 29, 2021 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi list,

(long time no see!)

I switched from a Freescale kernel 5.4 to a vanilla 5.10 on IMX6Solo board. The device is using a ADV7280 as analog-video-ADC.

I tried to apply the good options to my kernel-config, but I'm unable to get the media-controller device appear. I see

 [  757.594463] irq: type mismatch, failed to map hwirq-21 for gpio@20a8000!
 [  757.655328] adv7180 2-0021: chip found @ 0x21 (21a8000.i2c)

that the adv7280 is found and attached, as well as the ipu and it's video-devices.

 [   11.069123] videodev: Linux video capture interface: v2.00
 [   12.553347] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
 [   12.681897] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
 [   12.785205] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
 [   12.914702] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video3

I'm using the same device-tree as I used with fscl-5.4.

Before writing an even longer email pasting everything I did I'd like to know which information is actually useful to debug this?

I'm hoping there is something obvious which I missed?

I'm wondering whether I shoud v4l-subdev to be created, which I don't in dmesg.

Thanks in advance for any help,
--
Patrick.

#1 lore raw
Quoted 17 lines · On Wed, 27 Oct 2021 23:04:12 +0000 Patrick Boettcher…

Hi list,

(long time no see!)

I switched from a Freescale kernel 5.4 to a vanilla 5.10 on IMX6Solo board. The device is using a ADV7280 as analog-video-ADC.

I tried to apply the good options to my kernel-config, but I'm unable to get the media-controller device appear. I see

[  757.594463] irq: type mismatch, failed to map hwirq-21 for

gpio@20a8000! [ 757.655328] adv7180 2-0021: chip found @ 0x21 (21a8000.i2c)

that the adv7280 is found and attached, as well as the ipu and it's video-devices.

Quoted 6 lines
[   11.069123] videodev: Linux video capture interface: v2.00
[   12.553347] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[   12.681897] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as

/dev/video1 [ 12.785205] ipu1_ic_prpvf: Registered ipu1_ic_prpvf
capture as /dev/video2 [ 12.914702] ipu1_csi1: Registered ipu1_csi1
capture as /dev/video3

Here's a list of all modules which got loaded:

  adv7180                20480  0
  snd_soc_sgtl5000       28672  0
  pfuze100_regulator     28672  0
  regmap_i2c             16384  2
  imx6_media_csi         28672  2
  snd_soc_imx_sgtl5000    16384  
  fec                    53248  0
  snd_soc_fsl_asoc_card    24576 
  v4l2_fwnode            24576  1
  ptp                    28672  1
  pps_core               20480  1
  of_mdio                16384  2
  snd_soc_imx_audmux     16384  2
  fixed_phy              16384  1
  i2c_imx                20480  0
  libphy                126976  4
  imx6_media             49152  0
  video_mux              16384  0
  mux_core               16384  1
  imx_media_common       40960  2
  videobuf2_dma_contig    16384  
  v4l2_mem2mem           36864  1
  videobuf2_memops       16384  1
  videobuf2_v4l2         32768  3
  snd_soc_fsl_asrc       24576  0
  videobuf2_common       57344  5
  snd_soc_fsl_ssi        24576  0
  imx_pcm_dma            16384  1
  videodev              233472  9
  i2c_core               69632  8

Maybe it'll help to spot the problem immediately.

--
Patrick.

#2 lore raw
Quoted 4 lines · On Thu, 28 Oct 2021 06:58:47 +0000 Patrick Boettcher…

On Wed, 27 Oct 2021 23:04:12 +0000
Patrick Boettcher <[email protected]> wrote:

Maybe it'll help to spot the problem immediately.

I was missing CONFIG_MUX_MMIO. Strange that it's not activated by default.

Should it?

--
Patrick.