Post Go back to editing

ADV7282A-M No Reported Formats

Category: Software
Product Number: ADV7282A
Software Version: Yocto Hardknorr 5.4.127

Hi,

I'm trying to use an ADV7282A-M composite to Mipi-CSI convertor with an iMX8MMini module from Variscite.

I am using Yocto Linux Hardknott, v5.4.127 and the adv7180 drive in linux-imx/drivers/media/i2c/adv7180.c which lists the 7282-m as a compatible device.

The processor communicates with the chip correctly over i2c and the driver loads succesfully:

root@imx8mm-var-dart:~# dmesg | grep adv
[    1.427336] adv7180 3-0020: chip found @ 0x20 (30a50000.i2c)
[    1.508467] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 3-0020

root@imx8mm-var-dart:~# dmesg | grep mipi_csi
[    0.956485] mxc_mipi-csi 32e30000.mipi_csi: 32e30000.mipi_csi supply mipi-phy not found, using dummy regulator
[    0.966686] mxc_mipi-csi 32e30000.mipi_csi: mipi csi v4l2 device registered
[    0.979354] mxc_mipi-csi 32e30000.mipi_csi: lanes: 1, hs_settle: 13, clk_settle: 2, wclk: 0, freq: 333000000
[    1.508467] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 3-0020

Video 0 is shown OK

root@imx8mm-var-dart:~# v4l2-ctl --list-devices

i.MX6S_CSI (platform:32e20000.csi1_bridge):
        /dev/video0

However, no supported formats are shown:

root@imx8mm-var-dart:~# v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture
        

If I run a test captue, the pipeline fails with an internal data stream read error - I'm guessing because format seelction fails:

gst-launch fails with stream error presumably because of missing formats
root@imx8mm-var-dart:~# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! autovideosink sync=false
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000224500
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Total showed frames (0), playing for (0:00:00.000634500), fps (0.000).
Freeing pipeline ...

When running the above, I see I2C traffic and brief activity on the MIP-CSI clock and data (a couple of pulses).

I am not particularly familiar with v4l2 and how formats are requested and in order to narrow down where the problem lies, I have some key questions:

  1. What would cause no formats to be reported?
  2. When are the available formats requested? 
  3. Should the ADV7282A-M report formats irrespective of whether a camera is connected? I have tested with a known good composite camera on Ain1

Any other suggestions for debugging would be appreciated. I have looked at many other posts and it seems that it can be tricky to get these two parts to work together but in cases that people have been succesful, I seem to have the system configured in a similar manner.

Relevant device tree snippet shown below:

&i2c4 {
	clock-frequency = <100000>;
	pinctrl-names = "default", "gpio";
	pinctrl-0 = <&pinctrl_i2c4>;
	pinctrl-1 = <&pinctrl_i2c4_gpio>;
	scl-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
	sda-gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>;
	status = "okay";

	adv7282: adv7282@20 {
		compatible = "adi,adv728-m";
		reg = <0x20>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_adv7282>;

		clocks = <&clk IMX8MM_CLK_CLKO1>;
		clock-names = "csi_mclk";

		csi_id = <0>;
		cvbs = <1>;
		powerdown-gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
		reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
		interrupt-parent = <&gpio3>;
		interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
		mclk = <24000000>;
		mclk_source = <0>;

		mipi_camera = <1>;
		ipu_id = <0>;
		status = "okay";

		port {
			adv7282_m_mipi1_ep: endpoint {
				remote-endpoint = <&mipi1_sensor_ep>;
			};
		};
	};
};

&mipi_csi_1 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	ipu_id = <0>;
	csi_id = <0>;

	port {
		mipi1_sensor_ep: endpoint@1 {
			remote-endpoint = <&adv7282_m_mipi1_ep>;
			clock-lanes = <0>;
			data-lanes = <1>;
			csis-hs-settle = <13>;
			csis-clk-settle = <2>;
			// csis-wclk;
		};

		csi1_mipi_ep: endpoint@2 {
			remote-endpoint = <&csi1_ep>;
		};
	};

	v4l2_out {
		compatible = "fsl,mxc_v4l2_output";
	status = "okay";
	};

	v4l2cap_1 {
		compatible = "fsl,imxq-v4l2-capture";
		ipu_id = <0>;
		csi_id = <0>;
		mclk_source = <0>;
		mipi_camera = <1>;
		status = "okay";
	};

};

&csi1_bridge {
	fsl,mipi-mode;
	status = "okay";

	port {
		csi1_ep: endpoint {
			remote-endpoint = <&csi1_mipi_ep>;
		};
	};
};

  • Hi,

    What you need is to configure the media-ctl pipeline. Here is one example for I.MX8MP but you have to adapt it for your I.MX8MMini.

    Also you can try to enable extra debug messages for debugging the media pipe:

    echo -n 'file v4l2-fwnode.c +p' > /sys/kernel/debug/dynamic_debug/control
    echo -n 'file v4l2-subdev.c +p' > /sys/kernel/debug/dynamic_debug/control
    echo -n 'file v4l2-mc.c +p' > /sys/kernel/debug/dynamic_debug/control
    echo -n 'file mc-device.c +p' > /sys/kernel/debug/dynamic_debug/control
    echo -n 'file mc-entity.c +p' > /sys/kernel/debug/dynamic_debug/control

    But take care, in order to enable dynamic debugging from userspace you have to enable DYNAMIC_DEBUG in kernel config.

  • Hi,

    I don't get /dev/media0 so can't use media-ctl. Why would media0 not be created?

    I have added debug statements at the top of each function in the ADV7180.c driver. We can see the following funtions are called:

    [ 1.459787] adv7180 3-0020: chip found @ 0x20 (30a50000.i2c)
    [ 1.465496] adv7180 3-0020: 7180 init controls
    [ 1.469964] adv7180 3-0020: 7180 s ctrl
    [ 1.474409] adv7180 3-0020: init device
    [ 1.478341] adv7180 3-0020: 7180 set power pin
    [ 1.493171] adv7180 3-0020: 7180 set reset pin
    [ 1.519751] adv7180 3-0020: 7180 init
    [ 1.526160] adv7180 3-0020: 7180 program std
    [ 1.530439] adv7180 3-0020: 7180_set_video_standard
    [ 1.535323] adv7180 3-0020: 7180 set standard
    [ 1.541053] adv7180 3-0020: 7180 set field mode
    [ 1.558480] adv7180 3-0020: 7182 select input
    [ 1.562932] adv7180 3-0020: CD5X : Set INPUT to A1 differential
    [ 1.602010] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 3-0020
    [ 1.610034] adv7180 3-0020: ADV7282-M Chip Probe Complete
    [ 5.758777] adv7180 3-0020: 7180 s power
    [ 5.773736] adv7180 3-0020: 7180 set power
    [ 5.823632] adv7180 3-0020: 7180 irq
    [ 5.830559] adv7180 3-0020: 7180 s power
    [ 5.870007] adv7180 3-0020: 7180 set power
    [ 44.417784] adv7180 3-0020: 7180 s power
    [ 44.417792] adv7180 3-0020: 7180 set power
    [ 44.419817] adv7180 3-0020: 7180 enum mbus
    [ 44.419862] adv7180 3-0020: 7180 s power
    [ 44.419865] adv7180 3-0020: 7180 set power
    [ 50.712755] adv7180 3-0020: 7180 s power
    [ 50.712764] adv7180 3-0020: 7180 set power
    [ 50.714002] adv7180 3-0020: 7180 s power
    [ 50.714005] adv7180 3-0020: 7180 set power

    Any v4l-ctl commands bring the unit out of low power mode and then put it back in low power mode with no other function calls taking place. This does not seem correct to me. (See t=44 and t=50)

    Any further ideas? My next step will be to build with a later yocto release (Mickledore) to see if any different. Unfortunately, I've run out of space on my buld PC so waiting for a new hard drive before I can do that.

    Thanks,

    Jon

  • Can you please enable the dynamic debug messages I told you in the previous message? After that check dmesg.

  • Sorry for the delay. I've updated to yocto Mickeldore as that had an updated version of the adv7180 driver though it hasn't made much difference.

    I've rebuilt with dynamic_debug enabled and added the files as requested though it doesn't look like they are generating any messages. I think the problem is occurring earlier. Please see attached dmesg.

    Note the last two lines were generated with a call to v4l2-ctl --list-formats-ext

    Thanks,

    Jon

    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.36-imx8mm+g8798c14d8b93 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40.0.20230620) #1 SMP PREEMPT Thu Sep 12 13:46:12 UTC 2024
    [    0.000000] Machine model: Variscite DART-MX8M-MINI on DT8MCustomBoard 2.x and above
    [    0.000000] efi: UEFI not found.
    [    0.000000] NUMA: No NUMA configuration found
    [    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
    [    0.000000] NUMA: NODE_DATA [mem 0xbfbba700-0xbfbbcfff]
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000040000000-0x00000000bfffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
    [    0.000000] cma: Reserved 32 MiB at 0x00000000bba00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 20 pages/cpu s44712 r8192 d29016 u81920
    [    0.000000] pcpu-alloc: s44712 r8192 d29016 u81920 alloc=20*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: kernel page table isolation forced ON by KASLR
    [    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Fallback order for Node 0: 0 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
    [    0.000000] Policy zone: DMA
    [    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p1 rootwait rw cma_name=linux,cma
    [    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
    [    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
    [    0.000000] Memory: 1989680K/2097152K available (19584K kernel code, 2056K rwdata, 7444K rodata, 4160K init, 667K bss, 74704K reserved, 32768K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] 	Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 128 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
    [    0.000000] ITS: No ITS available, not enabling LPIs
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
    [    0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
    [    0.000409] Console: colour dummy device 80x25
    [    0.000476] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
    [    0.000486] pid_max: default: 32768 minimum: 301
    [    0.000543] LSM: Security Framework initializing
    [    0.000630] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.000641] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.002020] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.002031] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.002098] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.002252] rcu: Hierarchical SRCU implementation.
    [    0.002255] rcu: 	Max phase no-delay instances is 1000.
    [    0.004058] EFI services will not be available.
    [    0.004349] smp: Bringing up secondary CPUs ...
    [    0.004800] Detected VIPT I-cache on CPU1
    [    0.004887] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
    [    0.004928] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.005417] Detected VIPT I-cache on CPU2
    [    0.005480] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
    [    0.005504] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.005943] Detected VIPT I-cache on CPU3
    [    0.006008] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
    [    0.006030] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.006084] smp: Brought up 1 node, 4 CPUs
    [    0.006090] SMP: Total of 4 processors activated.
    [    0.006095] CPU features: detected: 32-bit EL0 Support
    [    0.006097] CPU features: detected: 32-bit EL1 Support
    [    0.006101] CPU features: detected: CRC32 instructions
    [    0.006159] CPU: All CPU(s) started at EL2
    [    0.006178] alternatives: applying system-wide alternatives
    [    0.007874] devtmpfs: initialized
    [    0.015041] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.015065] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.016201] pinctrl core: initialized pinctrl subsystem
    [    0.018216] DMI not present or invalid.
    [    0.018803] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.019873] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [    0.020143] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.020308] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.020367] audit: initializing netlink subsys (disabled)
    [    0.020498] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
    [    0.020999] thermal_sys: Registered thermal governor 'step_wise'
    [    0.021003] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.021036] cpuidle: using governor menu
    [    0.021248] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.021333] ASID allocator initialised with 32768 entries
    [    0.022174] Serial: AMBA PL011 UART driver
    [    0.022237] imx mu driver is registered.
    [    0.022258] imx rpmsg driver is registered.
    [    0.031146] imx8mm-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
    [    0.039472] platform 32e00000.lcdif: Fixed dependency cycle(s) with /soc@0/bus@32c00000/mipi_dsi@32e10000
    [    0.039749] platform 32e10000.mipi_dsi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a20000/sn65dsi84@2c
    [    0.039992] platform 32e20000.csi1_bridge: Fixed dependency cycle(s) with /soc@0/bus@32c00000/mipi_csi@32e30000
    [    0.040327] platform 32e30000.mipi_csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a50000/adv7282@20
    [    0.043477] platform panel-lvds: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a20000/sn65dsi84@2c
    [    0.045083] KASLR enabled
    [    0.063661] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.063671] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.063676] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.063679] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.063684] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.063689] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.063693] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.063698] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.065459] ACPI: Interpreter disabled.
    [    0.066282] iommu: Default domain type: Translated 
    [    0.066288] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.066559] SCSI subsystem initialized
    [    0.066667] libata version 3.00 loaded.
    [    0.066881] usbcore: registered new interface driver usbfs
    [    0.066913] usbcore: registered new interface driver hub
    [    0.066942] usbcore: registered new device driver usb
    [    0.067904] mc: Linux media interface: v0.10
    [    0.067935] videodev: Linux video capture interface: v2.00
    [    0.067992] pps_core: LinuxPPS API ver. 1 registered
    [    0.067995] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.068007] PTP clock support registered
    [    0.068132] EDAC MC: Ver: 3.0.0
    [    0.069106] FPGA manager framework
    [    0.069174] Advanced Linux Sound Architecture Driver Initialized.
    [    0.069713] Bluetooth: Core ver 2.22
    [    0.069738] NET: Registered PF_BLUETOOTH protocol family
    [    0.069741] Bluetooth: HCI device and connection manager initialized
    [    0.069748] Bluetooth: HCI socket layer initialized
    [    0.069754] Bluetooth: L2CAP socket layer initialized
    [    0.069764] Bluetooth: SCO socket layer initialized
    [    0.070025] vgaarb: loaded
    [    0.070504] clocksource: Switched to clocksource arch_sys_counter
    [    0.070687] VFS: Disk quotas dquot_6.6.0
    [    0.070720] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.070897] pnp: PnP ACPI: disabled
    [    0.077651] NET: Registered PF_INET protocol family
    [    0.077812] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.079434] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
    [    0.079491] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.079505] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.079616] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
    [    0.080075] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.080176] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.080222] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.080383] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.080754] RPC: Registered named UNIX socket transport module.
    [    0.080759] RPC: Registered udp transport module.
    [    0.080761] RPC: Registered tcp transport module.
    [    0.080764] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.080773] PCI: CLS 0 bytes, default 64
    [    0.081465] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.082222] kvm [1]: IPA Size Limit: 40 bits
    [    0.083971] kvm [1]: GICv3: no GICV resource entry
    [    0.083976] kvm [1]: disabling GICv2 emulation
    [    0.083988] kvm [1]: GIC system register CPU interface enabled
    [    0.084080] kvm [1]: vgic interrupt IRQ9
    [    0.084164] kvm [1]: Hyp mode initialized successfully
    [    0.085300] Initialise system trusted keyrings
    [    0.085481] workingset: timestamp_bits=42 max_order=19 bucket_order=0
    [    0.091971] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.092521] NFS: Registering the id_resolver key type
    [    0.092561] Key type id_resolver registered
    [    0.092564] Key type id_legacy registered
    [    0.092629] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.092634] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.092652] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
    [    0.092997] 9p: Installing v9fs 9p2000 file system support
    [    0.128984] Key type asymmetric registered
    [    0.128989] Asymmetric key parser 'x509' registered
    [    0.129032] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.129156] io scheduler mq-deadline registered
    [    0.129161] io scheduler kyber registered
    [    0.134792] pwm-backlight backlight: supply power not found, using dummy regulator
    [    0.135416] EINJ: ACPI disabled.
    [    0.143955] mxs-dma 33000000.dma-controller: initialized
    [    0.148956] SoC: i.MX8MM revision 1.0
    [    0.151263] Bus freq driver module loaded
    [    0.156579] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.158887] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 16, base_baud = 1500000) is a IMX
    [    1.260872] printk: console [ttymxc0] enabled
    [    1.265878] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 17, base_baud = 1500000) is a IMX
    [    1.275177] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 18, base_baud = 1500000) is a IMX
    [    1.284541] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 19, base_baud = 5000000) is a IMX
    [    1.293443] serial serial0: tty port ttymxc3 registered
    [    1.308417] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    1.317296] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    1.324321] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    1.336006] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    1.344281] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    1.358403] loop: module loaded
    [    1.362873] of_reserved_mem_lookup() returned NULL
    [    1.367774] megasas: 07.719.03.00-rc1
    [    1.378064] tun: Universal TUN/TAP device driver, 1.6
    [    1.383981] thunder_xcv, ver 1.0
    [    1.387271] thunder_bgx, ver 1.0
    [    1.390540] nicpf, ver 1.0
    [    1.395191] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
    [    1.402428] hns3: Copyright (c) 2017 Huawei Corporation.
    [    1.407799] hclge is initializing
    [    1.411139] e1000: Intel(R) PRO/1000 Network Driver
    [    1.416022] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    1.421808] e1000e: Intel(R) PRO/1000 Network Driver
    [    1.426778] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    1.432740] igb: Intel(R) Gigabit Ethernet Network Driver
    [    1.438146] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    1.443760] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    1.450033] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    1.456126] sky2: driver version 1.30
    [    1.460329] usbcore: registered new interface driver r8152
    [    1.466093] VFIO - User Level meta-driver version: 0.3
    [    1.473946] usbcore: registered new interface driver uas
    [    1.479319] usbcore: registered new interface driver usb-storage
    [    1.485400] usbcore: registered new interface driver usbserial_generic
    [    1.491955] usbserial: USB Serial support registered for generic
    [    1.497996] usbcore: registered new interface driver ftdi_sio
    [    1.503768] usbserial: USB Serial support registered for FTDI USB Serial Device
    [    1.511114] usbcore: registered new interface driver usb_serial_simple
    [    1.517661] usbserial: USB Serial support registered for carelink
    [    1.523774] usbserial: USB Serial support registered for zio
    [    1.529456] usbserial: USB Serial support registered for funsoft
    [    1.535484] usbserial: USB Serial support registered for flashloader
    [    1.541855] usbserial: USB Serial support registered for google
    [    1.547793] usbserial: USB Serial support registered for libtransistor
    [    1.554342] usbserial: USB Serial support registered for vivopay
    [    1.560371] usbserial: USB Serial support registered for moto_modem
    [    1.566661] usbserial: USB Serial support registered for motorola_tetra
    [    1.573296] usbserial: USB Serial support registered for nokia
    [    1.579149] usbserial: USB Serial support registered for novatel_gps
    [    1.585524] usbserial: USB Serial support registered for hp4x
    [    1.591291] usbserial: USB Serial support registered for suunto
    [    1.597231] usbserial: USB Serial support registered for siemens_mpi
    [    1.603619] usbcore: registered new interface driver usb_ehset_test
    [    1.611407] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/30000000.bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
    [    1.625459] i2c_dev: i2c /dev entries driver
    [    1.631046] mx6s-csi 32e20000.csi1_bridge: initialising
    [    1.637187] mxc_mipi-csi 32e30000.mipi_csi: supply mipi-phy not found, using dummy regulator
    [    1.645969] mxc_mipi-csi 32e30000.mipi_csi: mipi csi v4l2 device registered
    [    1.652947] CSI: Registered sensor subdevice: mxc_mipi-csi.0
    [    1.658642] mxc_mipi-csi 32e30000.mipi_csi: lanes: 1, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 333000000
    [    1.671805] Bluetooth: HCI UART driver ver 2.3
    [    1.676285] Bluetooth: HCI UART protocol H4 registered
    [    1.681433] Bluetooth: HCI UART protocol BCSP registered
    [    1.686778] Bluetooth: HCI UART protocol LL registered
    [    1.691926] Bluetooth: HCI UART protocol ATH3K registered
    [    1.697352] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [    1.703714] Bluetooth: HCI UART protocol Broadcom registered
    [    1.709402] Bluetooth: HCI UART protocol QCA registered
    [    1.716098] sdhci: Secure Digital Host Controller Interface driver
    [    1.722303] sdhci: Copyright(c) Pierre Ossman
    [    1.727279] Synopsys Designware Multimedia Card Interface Driver
    [    1.733843] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.741799] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.748903] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    1.755875] usbcore: registered new interface driver usbhid
    [    1.761465] usbhid: USB HID core driver
    [    1.769720]  cs_system_cfg: CoreSight Configuration manager initialised
    [    1.771742] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
    [    1.780141] hantrodec 0 : module inserted. Major = 510
    [    1.789158] hantrodec 1 : module inserted. Major = 510
    [    1.795230] hx280enc: module inserted. Major <509>
    [    1.806012] NET: Registered PF_LLC protocol family
    [    1.812386] NET: Registered PF_INET6 protocol family
    [    1.819590] Segment Routing with IPv6
    [    1.823307] In-situ OAM (IOAM) with IPv6
    [    1.827316] NET: Registered PF_PACKET protocol family
    [    1.832411] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    1.846076] Bluetooth: RFCOMM TTY layer initialized
    [    1.850977] Bluetooth: RFCOMM socket layer initialized
    [    1.856147] Bluetooth: RFCOMM ver 1.11
    [    1.859916] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    1.865238] Bluetooth: BNEP filters: protocol multicast
    [    1.870476] Bluetooth: BNEP socket layer initialized
    [    1.875454] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    1.881395] Bluetooth: HIDP socket layer initialized
    [    1.887331] 8021q: 802.1Q VLAN Support v1.8
    [    1.891554] lib80211: common routines for IEEE802.11 drivers
    [    1.897220] lib80211_crypt: registered algorithm 'NULL'
    [    1.897225] lib80211_crypt: registered algorithm 'WEP'
    [    1.897230] lib80211_crypt: registered algorithm 'CCMP'
    [    1.897234] lib80211_crypt: registered algorithm 'TKIP'
    [    1.897328] 9pnet: Installing 9P2000 support
    [    1.901754] Key type dns_resolver registered
    [    1.907062] registered taskstats version 1
    [    1.911203] Loading compiled-in X.509 certificates
    [    1.922667] mmc2: new HS400 Enhanced strobe MMC card at address 0001
    [    1.929851] mmcblk2: mmc2:0001 DG4016 14.7 GiB 
    [    1.936256]  mmcblk2: p1
    [    1.939322] mmcblk2boot0: mmc2:0001 DG4016 4.00 MiB 
    [    1.944547] usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator
    [    1.945800] mmcblk2boot1: mmc2:0001 DG4016 4.00 MiB 
    [    1.952341] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
    [    1.958714] mmcblk2rpmb: mmc2:0001 DG4016 4.00 MiB, chardev (234:0)
    [    1.965728] usb_phy_generic usbphynop2: supply vcc not found, using dummy regulator
    [    1.979439] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
    [    1.988168] gpio-142 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    [    2.101431] i2c i2c-0: IMX I2C adapter registered
    [    2.106906] gpio-144 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    [    2.116765] i2c i2c-1: IMX I2C adapter registered
    [    2.122076] gpio-146 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    [    2.132248] i2c i2c-2: IMX I2C adapter registered
    [    2.137626] gpio-148 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    [    2.237237] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 3-0020
    [    2.248168] adv7180 3-0020: chip id 0x43 found @ 0x20 (30a50000.i2c)
    [    2.254699] i2c i2c-3: IMX I2C adapter registered
    [    2.260626] pwm-backlight backlight: supply power not found, using dummy regulator
    [    2.272933] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    2.281815] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    2.288842] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    2.300538] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    2.308817] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    2.321938] imx8mm-pinctrl 30330000.pinctrl: pin MX8MM_IOMUXC_ECSPI2_SCLK already requested by 30a60000.serial; cannot claim for 30830000.spi
    [    2.334672] imx8mm-pinctrl 30330000.pinctrl: pin-129 (30830000.spi) status -22
    [    2.341905] imx8mm-pinctrl 30330000.pinctrl: could not request pin 129 (MX8MM_IOMUXC_ECSPI2_SCLK) from group ecspi2grp  on device 30330000.pinctrl
    [    2.355040] spi_imx 30830000.spi: Error applying setting, reverse things back
    [    2.392099] pps pps0: new PPS source ptp0
    [    2.683585] fec 30be0000.ethernet eth0: registered PHC device 0
    [    2.690068] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 2 mkt segment 2 supported-hw 0x4 0x4
    [    2.702810] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
    [    2.703326] sdhci-esdhc-imx 30b40000.mmc: allocated mmc-pwrseq
    [    2.703768] galcore: clk_get vg clock failed, disable vg!
    [    2.704176] Galcore version 6.4.11.p2.684571
    [    2.725427] [drm] Initialized vivante 1.0.0 20170808 for 38000000.gpu on minor 0
    [    2.739585] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
    [    2.745886] pwm-backlight backlight: supply power not found, using dummy regulator
    [    2.758981] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    2.767846] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    2.774906] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    2.786640] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    2.794946] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    2.817954] pwm-backlight backlight: supply power not found, using dummy regulator
    [    2.829369] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    2.838325] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    2.845387] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    2.857119] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    2.865434] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    2.870511] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
    [    2.886851] pwm-backlight backlight: supply power not found, using dummy regulator
    [    2.898296] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    2.907157] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    2.914170] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    2.925855] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    2.934138] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    2.959652] input: bd718xx-pwrkey as /devices/platform/soc@0/30800000.bus/30a20000.i2c/i2c-0/0-004b/gpio-keys.0.auto/input/input1
    [    2.971894] pwm-backlight backlight: supply power not found, using dummy regulator
    [    2.974485] ALSA device list:
    [    2.981767] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    2.982455]   No soundcards found.
    [    2.994715] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    3.001735] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    3.013415] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    3.021687] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    3.043134] Waiting for root device /dev/mmcblk1p1...
    [    5.036857] mmc1: Skipping voltage switch
    [    5.208831] mmc1: host does not support reading read-only switch, assuming write-enable
    [    5.221925] mmc1: new high speed SDHC card at address aaaa
    [    5.228609] mmcblk1: mmc1:aaaa SS32G 29.7 GiB 
    [    5.238819]  mmcblk1: p1
    [    5.242446] pwm-backlight backlight: supply power not found, using dummy regulator
    [    5.253718] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    5.262588] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [    5.269598] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [    5.281284] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [    5.289568] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [    5.497560] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Quota mode: none.
    [    5.506334] VFS: Mounted root (ext4 filesystem) on device 179:97.
    [    5.515410] devtmpfs: mounted
    [    5.519329] Freeing unused kernel memory: 4160K
    [    5.523925] Run /sbin/init as init process
    [    5.528028]   with arguments:
    [    5.528033]     /sbin/init
    [    5.528036]   with environment:
    [    5.528039]     HOME=/
    [    5.528042]     TERM=linux
    [    6.049503] systemd[1]: System time before build time, advancing clock.
    [    6.145487] systemd[1]: systemd 253.1^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    6.177261] systemd[1]: Detected architecture arm64.
    [    6.273537] systemd[1]: Hostname set to <imx8mm-var-dart-pcu510>.
    [    6.411412] systemd-sysv-generator[202]: SysV service '/etc/init.d/rc.local' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    6.787707] systemd[1]: Queued start job for default target Graphical Interface.
    [    6.863696] systemd[1]: Created slice Slice /system/modprobe.
    [    6.890245] systemd[1]: Created slice Slice /system/serial-getty.
    [    6.917050] systemd[1]: Created slice User and Session Slice.
    [    6.938976] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    6.962903] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    6.986952] systemd[1]: Reached target Path Units.
    [    7.006672] systemd[1]: Reached target Remote File Systems.
    [    7.031060] systemd[1]: Reached target Slice Units.
    [    7.051056] systemd[1]: Reached target Swaps.
    [    7.117999] systemd[1]: Listening on RPCbind Server Activation Socket.
    [    7.146830] systemd[1]: Reached target RPC Port Mapper.
    [    7.167471] systemd[1]: Listening on Syslog Socket.
    [    7.187024] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    7.211812] systemd[1]: Listening on Journal Audit Socket.
    [    7.235759] systemd[1]: Listening on Journal Socket (/dev/log).
    [    7.259633] systemd[1]: Listening on Journal Socket.
    [    7.279528] systemd[1]: Listening on udev Control Socket.
    [    7.303556] systemd[1]: Listening on udev Kernel Socket.
    [    7.327865] systemd[1]: Listening on User Database Manager Socket.
    [    7.375674] systemd[1]: Mounting Huge Pages File System...
    [    7.404570] systemd[1]: Mounting POSIX Message Queue File System...
    [    7.431920] systemd[1]: Mounting Kernel Debug File System...
    [    7.455424] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
    [    7.503641] systemd[1]: Mounting Temporary Directory /tmp...
    [    7.528696] systemd[1]: Starting Create List of Static Device Nodes...
    [    7.579875] systemd[1]: Starting Load Kernel Module configfs...
    [    7.602982] systemd[1]: Starting Load Kernel Module drm...
    [    7.655887] systemd[1]: Starting Load Kernel Module fuse...
    [    7.681728] systemd[1]: Starting RPC Bind...
    [    7.694291] fuse: init (API version 7.37)
    [    7.698896] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
    [    7.735695] systemd[1]: Starting Journal Service...
    [    7.758192] systemd[1]: Load Kernel Modules was skipped because no trigger condition checks were met.
    [    7.772204] systemd[1]: Starting Generate network units from Kernel command line...
    [    7.799270] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    7.802348] systemd-journald[217]: Collecting audit messages is enabled.
    [    7.828898] EXT4-fs (mmcblk1p1): re-mounted. Quota mode: none.
    [    7.832271] systemd[1]: Starting Apply Kernel Variables...
    [    7.859809] systemd[1]: Starting Coldplug All udev Devices...
    [    7.919531] systemd[1]: Starting Setup Virtual Console...
    [    7.948347] systemd[1]: Started RPC Bind.
    [    7.967237] systemd[1]: Started Journal Service.
    [    8.302376] systemd-journald[217]: Received client request to flush runtime journal.
    [    8.481974] audit: type=1334 audit(1677836960.428:2): prog-id=5 op=LOAD
    [    8.488928] audit: type=1334 audit(1677836960.436:3): prog-id=6 op=LOAD
    [    9.864963] caam-snvs 30370000.caam-snvs: ipid matched - 0x3e
    [    9.870995] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
    [    9.887470] pwm-backlight backlight: supply power not found, using dummy regulator
    [    9.987287] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [    9.996201] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.003287] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.015008] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.029592] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.038677] caam 30900000.crypto: device ID = 0x0a16040100000000 (Era 9)
    [   10.062550] caam 30900000.crypto: job rings = 2, qi = 0
    [   10.069748] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.072313] imx-sdma 302c0000.dma-controller: firmware found.
    [   10.079732] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.086369] imx-sdma 302c0000.dma-controller: loaded firmware 4.6
    [   10.091966] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.108240] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.118613] imx-sdma 302b0000.dma-controller: firmware found.
    [   10.121849] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.134233] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.154658] imx-sdma 30bd0000.dma-controller: firmware found.
    [   10.160209] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.180111] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.192491] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.201711] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.213636] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.222027] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.252288] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.262097] audit: type=1334 audit(1677845904.980:4): prog-id=7 op=LOAD
    [   10.262412] audit: type=1334 audit(1677845904.980:5): prog-id=8 op=LOAD
    [   10.270747] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.270912] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.270974] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.271004] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.271012] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.505626] wm8904 2-001a: revision A
    [   10.518981] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.522647] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.522795] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.522839] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.522865] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.522872] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.549166] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.561570] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.561722] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.561769] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.561797] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.561804] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   10.614200] ci_hdrc ci_hdrc.0: EHCI Host Controller
    [   10.614232] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
    [   10.627890] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
    [   10.629215] hub 1-0:1.0: USB hub found
    [   10.629254] hub 1-0:1.0: 1 port detected
    [   10.641101] pwm-backlight backlight: supply power not found, using dummy regulator
    [   10.650682] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   10.650836] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   10.650891] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   10.650923] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   10.650931] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   11.013957] EXT4-fs (mmcblk2p1): mounted filesystem with ordered data mode. Quota mode: none.
    [   11.162521] random: crng init done
    [   11.456601] CAN device driver interface
    [   11.476931] spi_master spi0: will run message pump with realtime priority
    [   11.513968] mcp251xfd spi0.1 can0: MCP2518FD rev0.0 (+RX_INT -PLL -MAB_NO_WARN +CRC_REG +CRC_RX +CRC_TX +ECC -HD o:40.00MHz c:40.00MHz m:20.00MHz rs:17.00MHz es:16.66MHz rf:17.00MHz ef:16.66MHz) successfully initialized.
    [   11.517754] pwm-backlight backlight: supply power not found, using dummy regulator
    [   11.528627] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   11.528777] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   11.528824] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   11.528852] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   11.528859] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   11.533901] caam algorithms registered in /proc/crypto
    [   11.537168] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
    [   11.538370] caam 30900000.crypto: rng crypto API alg registered prng-caam
    [   11.538397] caam 30900000.crypto: registering rng-caam
    [   11.540244] Device caam-keygen registered
    [   11.542100] pwm-backlight backlight: supply power not found, using dummy regulator
    [   11.558715] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   11.558887] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   11.558951] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   11.558985] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   11.558994] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   11.571137] pwm-backlight backlight: supply power not found, using dummy regulator
    [   11.591789] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   11.591969] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   11.592031] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   11.592062] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   11.592070] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   12.300377] audit: type=1334 audit(1677845907.020:6): prog-id=9 op=LOAD
    [   12.307483] audit: type=1334 audit(1677845907.028:7): prog-id=10 op=LOAD
    [   12.760796] audit: type=1334 audit(1677845907.480:8): prog-id=11 op=LOAD
    [   12.767589] audit: type=1334 audit(1677845907.480:9): prog-id=12 op=LOAD
    [   12.987119] ADIN1300 30be0000.ethernet-1:00: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:00, irq=POLL)
    [   13.230682] audit: type=1006 audit(1677845907.952:10): pid=716 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
    [   13.243111] audit: type=1300 audit(1677845907.952:10): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffc1769f60 a2=1 a3=1 items=0 ppid=1 pid=716 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [   13.873377] kauditd_printk_skb: 9 callbacks suppressed
    [   13.873389] audit: type=1006 audit(1677845908.592:15): pid=699 uid=0 old-auid=4294967295 auid=0 tty=tty7 old-ses=4294967295 ses=2 res=1
    [   13.890857] audit: type=1300 audit(1677845908.592:15): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffc1769f60 a2=1 a3=1 items=0 ppid=1 pid=699 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=2 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
    [   13.916024] audit: type=1327 audit(1677845908.592:15): proctitle="(weston)"
    [   16.186279] pwm-backlight backlight: supply power not found, using dummy regulator
    [   16.197130] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   16.206139] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   16.213279] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   16.226332] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   16.235544] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   17.360044] Bluetooth: MGMT ver 1.22
    [   17.362381] Bluetooth: hci0: Setting baudrate failed (-56)
    [   17.371744] Bluetooth: hci0: Setting wake-up method failed (-56)
    [   17.397485] NET: Registered PF_ALG protocol family
    [   18.551753] Bluetooth: hci0: Frame reassembly failed (-84)
    [   18.557305] ------------[ cut here ]------------
    [   18.561967] serial serial0: receive_buf returns -84 (count = 1)
    [   18.567948] WARNING: CPU: 1 PID: 9 at drivers/tty/serdev/serdev-ttyport.c:37 ttyport_receive_buf+0xb0/0x100
    [   18.577711] Modules linked in: algif_hash algif_skcipher af_alg btnxpuart overlay fsl_jr_uio mcp251xfd can_dev caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine authenc libdes crct10dif_ce polyval_ce ci_hdrc_imx ci_hdrc polyval_generic ehci_hcd usbmisc_imx snd_soc_wm8904 rtc_ds1307 snd_soc_fsl_sai snd_soc_fsl_utils caam imx_sdma secvio error fuse
    [   18.609835] CPU: 1 PID: 9 Comm: kworker/u8:0 Not tainted 6.1.36-imx8mm+g8798c14d8b93 #1
    [   18.617841] Hardware name: Variscite DART-MX8M-MINI on DT8MCustomBoard 2.x and above (DT)
    [   18.626018] Workqueue: events_unbound flush_to_ldisc
    [   18.630991] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   18.637954] pc : ttyport_receive_buf+0xb0/0x100
    [   18.642486] lr : ttyport_receive_buf+0xb0/0x100
    [   18.647020] sp : ffff8000080a3d30
    [   18.650334] x29: ffff8000080a3d30 x28: 0000000000000000 x27: 0000000000000000
    [   18.657474] x26: ffff5269c400c000 x25: ffff5269c5cb3420 x24: ffff5269c4009005
    [   18.664616] x23: ffff5269c402f528 x22: ffff5269c402f550 x21: ffff5269c49c6800
    [   18.671759] x20: 00000000ffffffac x19: 0000000000000001 x18: 0000000000000006
    [   18.678897] x17: 0000000000000000 x16: ffffd5bedf707438 x15: ffff8000080a3860
    [   18.686038] x14: 0000000000000000 x13: ffffd5bee02c2198 x12: 0000000000000669
    [   18.693181] x11: 0000000000000223 x10: ffffd5bee031a198 x9 : ffffd5bee02c2198
    [   18.700321] x8 : 00000000ffffefff x7 : ffffd5bee031a198 x6 : 80000000fffff000
    [   18.707460] x5 : ffff526a3fb6ba18 x4 : ffff526a3fb6ba18 x3 : ffff526a3fb6ec20
    [   18.714601] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff5269c4130000
    [   18.721745] Call trace:
    [   18.724191]  ttyport_receive_buf+0xb0/0x100
    [   18.728379]  flush_to_ldisc+0xb4/0x1c0
    [   18.732130]  process_one_work+0x1d4/0x330
    [   18.736143]  worker_thread+0x6c/0x430
    [   18.739807]  kthread+0x108/0x10c
    [   18.743034]  ret_from_fork+0x10/0x20
    [   18.746615] ---[ end trace 0000000000000000 ]---
    [   21.186813] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   21.193550] fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   26.350325] pwm-backlight backlight: supply power not found, using dummy regulator
    [   26.360838] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
    [   26.369765] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
    [   26.376854] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
    [   26.388568] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
    [   26.396856] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
    [   26.405552] i2c 0-002c: deferred probe pending
    [   26.410063] platform backlight: deferred probe pending
    [   26.415256] platform panel-lvds: deferred probe pending
    [   26.420502] platform imx-lcdif-crtc.0: deferred probe pending
    [   38.119155] audit: type=1006 audit(1677845932.840:16): pid=903 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
    [   38.131674] audit: type=1300 audit(1677845932.840:16): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffc1769f60 a2=1 a3=1 items=0 ppid=1 pid=903 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [   38.157112] audit: type=1327 audit(1677845932.840:16): proctitle="(systemd)"
    [   38.164268] audit: type=1334 audit(1677845932.864:17): prog-id=15 op=LOAD
    [   38.171125] audit: type=1300 audit(1677845932.864:17): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffcde076b8 a2=90 a3=0 items=0 ppid=1 pid=903 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/lib/systemd/systemd" key=(null)
    [   38.196561] audit: type=1327 audit(1677845932.864:17): proctitle="(systemd)"
    [   38.203651] audit: type=1334 audit(1677845932.876:18): prog-id=15 op=UNLOAD
    [   38.210661] audit: type=1334 audit(1677845932.876:19): prog-id=16 op=LOAD
    [   38.217505] audit: type=1300 audit(1677845932.876:19): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffcde07768 a2=90 a3=aaab0c23904a items=0 ppid=1 pid=903 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/lib/systemd/systemd" key=(null)
    [   38.243869] audit: type=1327 audit(1677845932.876:19): proctitle="(systemd)"
    [   46.654623] kauditd_printk_skb: 1 callbacks suppressed
    [   46.654635] audit: type=1334 audit(1677845941.376:21): prog-id=10 op=UNLOAD
    [   46.666818] audit: type=1334 audit(1677845941.376:22): prog-id=9 op=UNLOAD
    [  122.414072] mxc_mipi-csi 32e30000.mipi_csi: format not match
    [  204.447270] mxc_mipi-csi 32e30000.mipi_csi: format not match
    

  • Hi,

    The error code you see in the last 2 lines comes from here:
    https://github.com/nxp-imx/linux-imx/blob/d23d64eea5111e1607efcce1d601834fceec92cb/drivers/media/platform/mxc/capture/mxc_mipi_csi.c#L733

    To the call "enum_mbus_code" adv7180 driver respond with only MEDIA_BUS_FMT_UYVY8_2X8.

    Because I.MX driver support only the formats from this list the streaming won't start because of no matching format between ADV and I.MX.

    I recommend you to check with NXP if UYVY8_2X8 is supported and if it is add support for it in I.MX8MMini MIPI CSI driver.