IMX8MP camera output of size zero

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8MP camera output of size zero

跳至解决方案
2,628 次查看
rajtend
Contributor III

Hi,

I have a Phytec SoM: https://www.phytec.de/produkte/system-on-modules/phycore-imx-8m-plus/.

And I am using this version of NXP BSP:
https://www.phytec.de/bsp-download/?bsp=BSP-Yocto-NXP-i.MX8MP-PD23.1.0


I am trying to set a custom camera which is connected to CSI0 port of my board having imx.8mp. The camera is connected via LVDS to MIPI bridge and I2C of the bridge is currently programmed by a MicroController. I don;t need I2C for the moment.

I have adapted following sensor driver to suit my needs:
https://download.phytec.de/ImageProcessing/phyBOARD-Pollux-i.MX8MP_linux_PD21.1.1/VM-017/ar052x.c


I have checked using Scope, and I see the MIPI CSI signals on the pins.

I am trying to capture a single frame from camera, but the command remains stuck and the output file is of zero bytes

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RGB24
# This command remains stuck and can be terminated by ^C
v4l2-ctl -d /dev/video0 --stream-mmap --stream-to=/tmp/capture.raw --stream-count=1

I see the micro-controller output which programs the bridge:

[INFO ] LT9211C Jan 30 2025 18:53:24
[INFO ] LT9211C Chip ID: 0x21 0x03 0xe1
[INFO ] LT9211C Code Version: U2
[INFO ] ****LT9211C MIPITX Pattern Config****
[INFO ] pclk_khz: 74250
[DEBUG] ulMipiDataRate: 1011000, ulMpiTXPhyClk: 1011000, ucSericlkDiv: 1, ucPreDiv: 1, ucDivSet: 40
[INFO ] LT9211C tx pll lock
[INFO ] FM CLOCK DET Stable
[DEBUG] ulMipiDataRate: 1011000, ulrdbyteclk: 125
[DEBUG] ck_post (0xD4A9) = 0x0f
[DEBUG] ck_zero (0xD4A7) = 0x1e
[DEBUG] hs_lpx  (0xD4A4) = 0x08
[DEBUG] hs_prep (0xD4A5) = 0x07
[DEBUG] hs_trail(0xD4A6) = 0x0c
[DEBUG] hs_rqst (0xD48A) = 0x2f
[DEBUG] readdly = 0x00fc
[INFO ] Mipi CSI Out
[INFO ] ucframerate: 30
[INFO ] sync_polarity = 0x0f
[INFO ] Video Pattern Set 1920x1080_60Hz
[INFO ] hfp, hs, hbp, hact, htotal = 88 44 148 1920 2200
[INFO ] vfp, vs, vbp, vact, vtotal = 4 5 36 1080 1125
[INFO ] ****LT9211C MIPITX Vid Pattern Out*****

Here is my DTS configuration:

&cameradev {
        status = "okay";
        cap_device {
                status = "okay";
        };
};

&i2c3 {
    status = "okay";

    lvds_bridge {
        reg = <0x5A>;
        status = "okay";
        compatible = "lt9211c";
        #address-cells = <0x1>;
        #size-cells = <0x0>;
        mclk = <24000000>;
        mclk_source = <0>;
        mipi-csi;

        port {
          ar052x_ep: endpoint {
            data-lanes = <2>;
            clock-lanes = <0>;
            clock-noncontinuous = <1>;
            bus-type = <4>;
            remote-endpoint = <&mipi_csi0_ep>;
          };
        };

    };
};

&isi_0 {
      status = "okay";
        cap_device {
                status = "okay";
        };
        m2m_device {
          status = "disabled";
        };
};
&isi_1 {
        status = "disabled";
        cap_device {
                status = "okay";
        };
};

&mipi_csi_0 {
        status = "okay";
  #address-cells = <1>;
        #size-cells = <0>;
        port@0 {
                reg = <0>;
                mipi_csi0_ep: endpoint {
      remote-endpoint = <&ar052x_ep>;
      data-lanes = <2>;
      csis-hs-settle = <13>;
      csis-clk-settle = <2>;
      csis-wclk;
      bus-type = <4>;  /* 4 = MIPI CSI-2 D-PHY */
      link-frequencies = /bits/ 64 <450000000>; // Mentioned in the LT9211 datasheet
      max-pixelrate = <297000000>; // Mentioned in the LT9211 datasheet
    };
        };
};

&mipi_csi_1 {
        status = "disabled";
  #address-cells = <1>;
        #size-cells = <0>;
        port@0 {
                reg = <1>;
                mipi_csi1_ep: endpoint {};
        };
};


Kernel log:

root@phyboard-pollux-imx8mp-3:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.71-bsp-yocto-nxp-i.mx8mp-pd23.1.0 (oe-user@oe-host) (aarch64-phytec-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Tue Dec 5 09:20:38 UTC 2023
[    0.000000] Machine model: PHYTEC phyBOARD-Pollux i.MX8MP
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000006a000000, size 640 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbfc3f800-0xbfc41fff]
[    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-0x0000000055ffffff]
[    0.000000]   node   0: [mem 0x0000000058000000-0x00000000923fffff]
[    0.000000]   node   0: [mem 0x0000000092400000-0x00000000a43fffff]
[    0.000000]   node   0: [mem 0x00000000a4400000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] On node 0, zone DMA: 8192 pages in unavailable ranges
[    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: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s43288 r8192 d30440 u81920
[    0.000000] pcpu-alloc: s43288 r8192 d30440 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: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507904
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p2 fsck.repair=yes rootwait rw
[    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:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1039532K/2064384K available (19840K kernel code, 2072K rwdata, 8072K rodata, 3776K init, 558K bss, 369492K reserved, 655360K 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: 160 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    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.000477] Console: colour dummy device 80x25
[    0.000539] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000553] pid_max: default: 32768 minimum: 301
[    0.000606] LSM: Security Framework initializing
[    0.000694] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000711] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002167] rcu: Hierarchical SRCU implementation.
[    0.004103] EFI services will not be available.
[    0.004397] smp: Bringing up secondary CPUs ...
[    0.004849] Detected VIPT I-cache on CPU1
[    0.004876] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.004912] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.005375] Detected VIPT I-cache on CPU2
[    0.005392] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.005413] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005830] Detected VIPT I-cache on CPU3
[    0.005846] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.005865] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005924] smp: Brought up 1 node, 4 CPUs
[    0.005951] SMP: Total of 4 processors activated.
[    0.005958] CPU features: detected: 32-bit EL0 Support
[    0.005962] CPU features: detected: 32-bit EL1 Support
[    0.005970] CPU features: detected: CRC32 instructions
[    0.013653] CPU: All CPU(s) started at EL2
[    0.013690] alternatives: patching kernel code
[    0.014855] devtmpfs: initialized
[    0.023891] KASLR disabled due to lack of seed
[    0.024031] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.024047] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.041499] pinctrl core: initialized pinctrl subsystem
[    0.042024] DMI not present or invalid.
[    0.042638] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.047588] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.047979] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.048378] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.048988] thermal_sys: Registered thermal governor 'step_wise'
[    0.048996] thermal_sys: Registered thermal governor 'power_allocator'
[    0.049306] cpuidle: using governor menu
[    0.049525] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.049616] ASID allocator initialised with 65536 entries
[    0.050743] Serial: AMBA PL011 UART driver
[    0.050811] imx mu driver is registered.
[    0.050833] imx rpmsg driver is registered.
[    0.063394] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.074671] platform 32c00000.bus:ldb@32ec005c: Fixing up cyclic dependency with 32e90000.lcd-controller
[    0.074734] platform 32c00000.bus:ldb@32ec005c: Fixing up cyclic dependency with panel0
[    0.080031] platform 32fd8000.hdmi: Fixing up cyclic dependency with 32fc6000.lcd-controller
[    0.102626] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.102645] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.102654] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.102660] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.103807] cryptd: max_cpu_qlen set to 1000
[    0.106982] ACPI: Interpreter disabled.
[    0.108797] iommu: Default domain type: Translated 
[    0.108812] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.108963] vgaarb: loaded
[    0.109230] SCSI subsystem initialized
[    0.109364] libata version 3.00 loaded.
[    0.109545] usbcore: registered new interface driver usbfs
[    0.109583] usbcore: registered new interface driver hub
[    0.109612] usbcore: registered new device driver usb
[    0.111006] mc: Linux media interface: v0.10
[    0.111034] videodev: Linux video capture interface: v2.00
[    0.111108] pps_core: LinuxPPS API ver. 1 registered
[    0.111114] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111135] PTP clock support registered
[    0.111317] EDAC MC: Ver: 3.0.0
[    0.112457] FPGA manager framework
[    0.112563] Advanced Linux Sound Architecture Driver Initialized.
[    0.113064] Bluetooth: Core ver 2.22
[    0.113107] NET: Registered PF_BLUETOOTH protocol family
[    0.113114] Bluetooth: HCI device and connection manager initialized
[    0.113126] Bluetooth: HCI socket layer initialized
[    0.113136] Bluetooth: L2CAP socket layer initialized
[    0.113151] Bluetooth: SCO socket layer initialized
[    0.114071] clocksource: Switched to clocksource arch_sys_counter
[    0.114213] VFS: Disk quotas dquot_6.6.0
[    0.114262] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.114424] pnp: PnP ACPI: disabled
[    0.120326] NET: Registered PF_INET protocol family
[    0.120467] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.121530] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.121563] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.121576] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.121688] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.121913] TCP: Hash tables configured (established 16384 bind 16384)
[    0.121992] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.122042] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.122210] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.122559] RPC: Registered named UNIX socket transport module.
[    0.122567] RPC: Registered udp transport module.
[    0.122573] RPC: Registered tcp transport module.
[    0.122578] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.123263] PCI: CLS 0 bytes, default 64
[    0.123979] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.124724] kvm [1]: IPA Size Limit: 40 bits
[    0.126446] kvm [1]: GICv3: no GICV resource entry
[    0.126456] kvm [1]: disabling GICv2 emulation
[    0.126469] kvm [1]: GIC system register CPU interface enabled
[    0.126557] kvm [1]: vgic interrupt IRQ9
[    0.126662] kvm [1]: Hyp mode initialized successfully
[    0.129856] Initialise system trusted keyrings
[    0.130003] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.135726] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.136256] NFS: Registering the id_resolver key type
[    0.136283] Key type id_resolver registered
[    0.136289] Key type id_legacy registered
[    0.136360] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.136369] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.136390] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.136756] 9p: Installing v9fs 9p2000 file system support
[    0.172874] Key type asymmetric registered
[    0.172884] Asymmetric key parser 'x509' registered
[    0.172937] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.173032] io scheduler mq-deadline registered
[    0.173042] io scheduler kyber registered
[    0.180469] EINJ: ACPI disabled.
[    0.189654] mxs-dma 33000000.dma-apbh: initialized
[    0.191462] SoC: i.MX8MP revision 1.1
[    0.192076] Bus freq driver module loaded
[    0.198498] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.200783] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 34, base_baud = 1500000) is a IMX
[    1.238779] printk: console [ttymxc0] enabled
[    1.243663] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 35, base_baud = 1500000) is a IMX
[    1.252938] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 36, base_baud = 5000000) is a IMX
[    1.262209] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 44, base_baud = 1500000) is a IMX
[    1.287339] loop: module loaded
[    1.291966] megasas: 07.717.02.00-rc1
[    1.297343] imx ahci driver is registered.
[    1.305509] spi-nor spi0.0: mt25qu512a (65536 Kbytes)
[    1.310616] 4 fixed-partitions partitions found on MTD device 30bb0000.spi
[    1.317502] Creating 4 MTD partitions on "30bb0000.spi":
[    1.322824] 0x000000000000-0x0000003c0000 : "u-boot"
[    1.328808] 0x0000003c0000-0x0000003e0000 : "env"
[    1.334452] 0x0000003e0000-0x000000400000 : "env_redund"
[    1.340665] 0x000000400000-0x000004000000 : "none"
[    1.349540] tun: Universal TUN/TAP device driver, 1.6
[    1.354801] CAN device driver interface
[    1.359466] thunder_xcv, ver 1.0
[    1.362740] thunder_bgx, ver 1.0
[    1.365994] nicpf, ver 1.0
[    1.371179] hclge is initializing
[    1.374524] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.381754] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.387117] e1000: Intel(R) PRO/1000 Network Driver
[    1.392002] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.397784] e1000e: Intel(R) PRO/1000 Network Driver
[    1.402755] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.408747] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.414156] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.419766] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.426040] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.432182] sky2: driver version 1.30
[    1.436452] usbcore: registered new interface driver r8152
[    1.442206] VFIO - User Level meta-driver version: 0.3
[    1.453111] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.459741] ehci-pci: EHCI PCI platform driver
[    1.464231] ehci-platform: EHCI generic platform driver
[    1.469697] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.475898] ohci-pci: OHCI PCI platform driver
[    1.480377] ohci-platform: OHCI generic platform driver
[    1.486523] usbcore: registered new interface driver uas
[    1.491886] usbcore: registered new interface driver usb-storage
[    1.497962] usbcore: registered new interface driver usbserial_generic
[    1.504516] usbserial: USB Serial support registered for generic
[    1.510554] usbcore: registered new interface driver ftdi_sio
[    1.516322] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.523667] usbcore: registered new interface driver usb_serial_simple
[    1.530216] usbserial: USB Serial support registered for carelink
[    1.536330] usbserial: USB Serial support registered for zio
[    1.542012] usbserial: USB Serial support registered for funsoft
[    1.548039] usbserial: USB Serial support registered for flashloader
[    1.554411] usbserial: USB Serial support registered for google
[    1.560353] usbserial: USB Serial support registered for libtransistor
[    1.566902] usbserial: USB Serial support registered for vivopay
[    1.572931] usbserial: USB Serial support registered for moto_modem
[    1.579221] usbserial: USB Serial support registered for motorola_tetra
[    1.585855] usbserial: USB Serial support registered for nokia
[    1.591714] usbserial: USB Serial support registered for novatel_gps
[    1.598091] usbserial: USB Serial support registered for hp4x
[    1.603857] usbserial: USB Serial support registered for suunto
[    1.609800] usbserial: USB Serial support registered for siemens_mpi
[    1.616188] usbcore: registered new interface driver usb_ehset_test
[    1.625643] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/30000000.bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
[    1.639246] usbcore: registered new interface driver usbtouchscreen
[    1.646882] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc1
[    1.653227] i2c_dev: i2c /dev entries driver
[    1.663067] Bluetooth: HCI UART driver ver 2.3
[    1.667540] Bluetooth: HCI UART protocol H4 registered
[    1.672686] Bluetooth: HCI UART protocol BCSP registered
[    1.678027] Bluetooth: HCI UART protocol LL registered
[    1.683174] Bluetooth: HCI UART protocol ATH3K registered
[    1.688601] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.694978] Bluetooth: HCI UART protocol Broadcom registered
[    1.700666] Bluetooth: HCI UART protocol QCA registered
[    1.706155] EDAC MC: ECC not enabled
[    1.711296] sdhci: Secure Digital Host Controller Interface driver
[    1.717509] sdhci: Copyright(c) Pierre Ossman
[    1.722709] Synopsys Designware Multimedia Card Interface Driver
[    1.729516] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.737863] ledtrig-cpu: registered to indicate activity on CPUs
[    1.744874] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.752394] caam 30900000.crypto: device ID = 0x0a16040100000100 (Era 9)
[    1.759127] caam 30900000.crypto: job rings = 2, qi = 0
[    1.767886] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[    1.796526] caam algorithms registered in /proc/crypto
[    1.802683] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[    1.810193] caam 30900000.crypto: rng crypto API alg registered prng-caam
[    1.817010] caam 30900000.crypto: registering rng-caam
[    1.823459] Device caam-keygen registered
[    1.827719] caam_jr 30903000.jr: failed to flush job ring 1
[    1.833306] caam_jr: probe of 30903000.jr failed with error -5
[    1.839587] caam-snvs 30370000.caam-snvs: ipid matched - 0x3e
[    1.845401] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
[    1.853550] hid: raw HID events driver (C) Jiri Kosina
[    1.859200] usbcore: registered new interface driver usbhid
[    1.864803] usbhid: USB HID core driver
[    1.864824] random: crng init done
[    1.873280]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.881704] optee: probing for conduit method.
[    1.886223] optee: revision 4.0 (2a5b1d12)
[    1.887059] optee: dynamic shared memory is enabled
[    1.896606] optee: initialized driver
[    1.901398] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[    1.903321] Galcore version 6.4.3.p4.398061
[    1.908722] mmcblk2: mmc2:0001 DG4008 7.28 GiB 
[    1.919000]  mmcblk2: p1 p2
[    1.924936] mmcblk2boot0: mmc2:0001 DG4008 4.00 MiB 
[    1.931905] mmcblk2boot1: mmc2:0001 DG4008 4.00 MiB 
[    1.938487] mmcblk2rpmb: mmc2:0001 DG4008 4.00 MiB, chardev (234:0)
[    2.023749] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[    2.033535] hantrodec 0 : module inserted. Major = 509
[    2.039153] hantrodec 1 : module inserted. Major = 509
[    2.045823] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[    2.052762] hx280enc: module inserted. Major <508>
[    2.060944] NET: Registered PF_LLC protocol family
[    2.066192] IPVS: Registered protocols ()
[    2.070242] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    2.077653] IPVS: ipvs loaded.
[    2.081163] NET: Registered PF_INET6 protocol family
[    2.088052] Segment Routing with IPv6
[    2.091759] In-situ OAM (IOAM) with IPv6
[    2.095761] NET: Registered PF_PACKET protocol family
[    2.100826] can: controller area network core
[    2.105273] NET: Registered PF_CAN protocol family
[    2.110094] can: raw protocol
[    2.113064] can: broadcast manager protocol
[    2.117265] can: netlink gateway - max_hops=1
[    2.122413] Bluetooth: RFCOMM TTY layer initialized
[    2.127304] Bluetooth: RFCOMM socket layer initialized
[    2.132473] Bluetooth: RFCOMM ver 1.11
[    2.136249] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.141569] Bluetooth: BNEP filters: protocol multicast
[    2.146805] Bluetooth: BNEP socket layer initialized
[    2.151776] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.157708] Bluetooth: HIDP socket layer initialized
[    2.163337] 8021q: 802.1Q VLAN Support v1.8
[    2.167549] lib80211: common routines for IEEE802.11 drivers
[    2.173216] lib80211_crypt: registered algorithm 'NULL'
[    2.173221] lib80211_crypt: registered algorithm 'WEP'
[    2.173225] lib80211_crypt: registered algorithm 'CCMP'
[    2.173229] lib80211_crypt: registered algorithm 'TKIP'
[    2.173311] 9pnet: Installing 9P2000 support
[    2.177617] tsn generic netlink module v1 init...
[    2.182401] Key type dns_resolver registered
[    2.187250] Loading compiled-in X.509 certificates
[    2.274592] nxp-pca9450 0-0025: pca9450bc probed.
[    2.283314] at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
[    2.418134] rtc-rv3028 0-0052: registered as rtc0
[    2.424989] rtc-rv3028 0-0052: hctosys: unable to read the hardware clock
[    2.444350] at24 0-0059: 32 byte 24c32 EEPROM, writable, 32 bytes/write
[    2.451052] i2c i2c-0: IMX I2C adapter registered
[    2.485695] leds-pca953x 1-0062: setting platform data
[    2.496330] i2c i2c-1: IMX I2C adapter registered
[    2.502230] i2c 2-005a: Fixing up cyclic dependency with 32e40000.csi
[    2.508890] i2c i2c-2: IMX I2C adapter registered
[    2.578623] tlv320aic3x 3-0018: Failed to init class  -6
[    2.584226] i2c i2c-3: IMX I2C adapter registered
[    2.592987] imx6q-pcie 33800000.pcie: PLL REF_CLK is used!.
[    2.599196] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.
[    2.613845] pps pps0: new PPS source ptp0
[    2.626824] fec 30be0000.ethernet eth0: registered PHC device 0
[    2.633612] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[    2.640096] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[    2.646902] imx-dwmac 30bf0000.ethernet: 	DWMAC4/5
[    2.651702] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[    2.658459] imx6q-pcie 33800000.pcie: PCIe PLL is locked.
[    2.658848] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[    2.664293] imx6q-pcie 33800000.pcie: iATU unroll: enabled
[    2.671379] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[    2.676868] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    2.683570] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[    2.691149] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[    2.697285] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.704462] imx6q-pcie 33800000.pcie:   No bus range found for /soc@0/pcie@33800000, using [bus 00-ff]
[    2.712118] imx-dwmac 30bf0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[    2.721452] imx6q-pcie 33800000.pcie:       IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[    2.728223] imx-dwmac 30bf0000.ethernet: Enabled RFS Flow TC (entries=8)
[    2.736410] imx6q-pcie 33800000.pcie:      MEM 0x0018000000..0x001fefffff -> 0x0018000000
[    2.743112] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[    2.751356] imx6q-pcie 33800000.pcie: iATU unroll: enabled
[    2.758878] imx-dwmac 30bf0000.ethernet: Using 34 bits DMA width
[    2.764335] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    2.778520] mdio_bus stmmac-1: MDIO device at address 1 is missing.
[    2.786822] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    2.792345] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    2.800401] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000002001010010
[    2.809843] xhci-hcd xhci-hcd.1.auto: irq 77, io mem 0x38100000
[    2.815930] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    2.821435] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    2.829105] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    2.836527] hub 1-0:1.0: USB hub found
[    2.840308] hub 1-0:1.0: 1 port detected
[    2.844544] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.853674] hub 2-0:1.0: USB hub found
[    2.857458] hub 2-0:1.0: 1 port detected
[    2.862862] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.868389] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[    2.876406] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000002001010010
[    2.885847] xhci-hcd xhci-hcd.2.auto: irq 78, io mem 0x38200000
[    2.891902] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.897403] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4
[    2.905074] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    2.912673] hub 3-0:1.0: USB hub found
[    2.916461] hub 3-0:1.0: 1 port detected
[    2.920689] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.929820] hub 4-0:1.0: USB hub found
[    2.933603] hub 4-0:1.0: 1 port detected
[    2.938731] gpio-fan fan: GPIO fan initialized
[    2.943486] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[    2.955353] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[    2.957379] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    2.971322] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    2.981492] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.989474] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    2.995708] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[    2.997672] imx-drm display-subsystem: bound 32c00000.bus:ldb@32ec005c (ops imx8mp_ldb_ops)
[    3.012824] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)
[    3.021124] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    3.077900] Console: switching to colour frame buffer device 160x50
[    3.095890] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[    3.109724] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.121084] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.127726] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.136354] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    3.145752] ALSA device list:
[    3.148749]   No soundcards found.
[    3.424671] mmc1: new high speed SDHC card at address 214d
[    3.431616] mmcblk1: mmc1:214d APPSD 14.8 GiB 
[    3.437820]  mmcblk1: p1 p2
[    3.754737] imx6q-pcie 33800000.pcie: Phy link never came up
[    3.760457] imx6q-pcie: probe of 33800000.pcie failed with error -110
[    3.807702] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    3.817599] VFS: Mounted root (ext4 filesystem) on device 179:98.
[    3.824921] devtmpfs: mounted
[    3.828605] Freeing unused kernel memory: 3776K
[    3.833196] Run /sbin/init as init process
[    3.837295]   with arguments:
[    3.837299]     /sbin/init
[    3.837302]   with environment:
[    3.837305]     HOME=/
[    3.837308]     TERM=linux
[    4.305935] systemd[1]: System time before build time, advancing clock.
[    4.395462] systemd[1]: systemd 250.5+ 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 -BZIP2 +LZ4 -XZ -ZLIB -ZSTD -BPF_FRAMEWORK +XKBCOMMON -UTMP -SYSVINIT default-hierarchy=hybrid)
[    4.427171] systemd[1]: Detected architecture arm64.
[    4.499183] systemd[1]: Hostname set to <phyboard-pollux-imx8mp-3>.
[    4.543038] systemd[1]: Using hardware watchdog 'imx2+ watchdog', version 0, device /dev/watchdog0
[    4.552073] systemd[1]: Watchdog running with a timeout of 1min.
[    4.898771] systemd[1]: Queued start job for default target Graphical Interface.
[    4.941244] systemd[1]: Created slice Slice /system/getty.
[    4.964128] systemd[1]: Created slice Slice /system/modprobe.
[    4.988048] systemd[1]: Created slice Slice /system/serial-getty.
[    5.011949] systemd[1]: Created slice User and Session Slice.
[    5.034524] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.058450] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.082519] systemd[1]: Reached target Path Units.
[    5.102211] systemd[1]: Reached target Remote File Systems.
[    5.126816] systemd[1]: Reached target Slice Units.
[    5.146223] systemd[1]: Reached target Swaps.
[    5.182718] systemd[1]: Listening on RPCbind Server Activation Socket.
[    5.206292] systemd[1]: Reached target RPC Port Mapper.
[    5.230649] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[    5.242306] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.266683] systemd[1]: Listening on Journal Socket.
[    5.286895] systemd[1]: Listening on Network Service Netlink Socket.
[    5.311444] systemd[1]: Listening on udev Control Socket.
[    5.334986] systemd[1]: Listening on udev Kernel Socket.
[    5.361640] systemd[1]: Mounting Huge Pages File System...
[    5.385564] systemd[1]: Mounting POSIX Message Queue File System...
[    5.409792] systemd[1]: Mounting Kernel Debug File System...
[    5.430560] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[    5.452776] systemd[1]: Mounting Temporary Directory /tmp...
[    5.473831] systemd[1]: Starting Create List of Static Device Nodes...
[    5.501701] systemd[1]: Starting Load Kernel Module configfs...
[    5.529598] systemd[1]: Starting Load Kernel Module drm...
[    5.549636] systemd[1]: Starting Load Kernel Module fuse...
[    5.582979] systemd[1]: Starting RPC Bind...
[    5.587832] fuse: init (API version 7.34)
[    5.606342] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[    5.624003] systemd[1]: Starting Journal Service...
[    5.652589] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
[    5.665008] systemd[1]: Starting Generate network units from Kernel command line...
[    5.693939] systemd[1]: Starting Remount Root and Kernel File Systems...
[    5.711676] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null). Quota mode: none.
[    5.733126] systemd[1]: Starting Apply Kernel Variables...
[    5.753236] systemd[1]: Starting Coldplug All udev Devices...
[    5.776104] systemd[1]: Started RPC Bind.
[    5.794722] systemd[1]: Started Journal Service.
[    6.085387] systemd-journald[270]: Received client request to flush runtime journal.
[    6.702264] imx-hdmi sound-hdmi: snd_soc_register_card failed (-517)
[    6.803842] imx-hdmi sound-hdmi: snd_soc_register_card failed (-517)
[    6.847174] fsl-jr-uio 30903000.jr: UIO device full name fsl-jr0 initialized
[    6.865024] imx-hdmi sound-hdmi: snd_soc_register_card failed (-517)
[    6.874970] imx-dwmac 30bf0000.ethernet eth1: no phy at addr -1
[    6.876507] imx-sdma 30bd0000.dma-controller: firmware found.
[    6.881008] imx-dwmac 30bf0000.ethernet eth1: stmmac_open: Cannot attach to PHY (error: -19)
[    6.888034] imx-hdmi sound-hdmi: snd_soc_register_card failed (-517)
[    6.897286] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6
[    6.909604] imx-sdma 30e10000.dma-controller: firmware found.
[    6.918909] imx-hdmi sound-hdmi: snd_soc_register_card failed (-517)
[    6.931517] input: audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card1/input1
[    6.960101] TI DP83867 30be0000.ethernet-1:00: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:00, irq=POLL)
[    7.234292] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[    7.246592] tpm_tis_spi: probe of spi1.0 failed with error -110
[    8.254122] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[   14.142874] TI DP83867 30be0000.ethernet-1:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
[   14.154991] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.162182] fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Full (downshifted) - flow control rx/tx
[   30.702587] Simulated I2C driver registered successfully
[   30.708198] lvds_bridge 3-005a: Simulated I2C device probed at address 0x5a
[   30.726265] ===== begin parsing endpoint /soc@0/bus@30800000/i2c@30a40000/lvds_bridge/port/endpoint
[   30.726290] fwnode video bus type MIPI CSI-2 D-PHY (4), mbus type MIPI CSI-2 D-PHY (5)
[   30.726297] no lane mapping given, using defaults
[   30.726301] data-lanes property exists; disabling default mapping
[   30.726304] lane 0 position 2
[   30.726308] clock lane position 0
[   30.726312] non-continuous clock
[   30.726315] no lane polarities defined, assuming not inverted
[   30.726320] ===== end parsing endpoint /soc@0/bus@30800000/i2c@30a40000/lvds_bridge/port/endpoint
[   30.734398] LT9211C Camera Driver Loaded !!
[   30.752313] imx8_mipi_csi2_sam: module is from the staging directory, the quality is unknown, you have been warned.
[   30.764298] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[   30.773215] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[   30.779231] mxc-mipi-csi2-sam 32e40000.csi: lanes: 2, hs_settle: 9, clk_settle: 0, wclk: 1, freq: 500000000
[   30.803555] imx8_isi_hw: module is from the staging directory, the quality is unknown, you have been warned.
[   30.828521] imx8_isi_mem2mem: module is from the staging directory, the quality is unknown, you have been warned.
[   30.857185] imx8_isi_capture: module is from the staging directory, the quality is unknown, you have been warned.
[   30.879479] imx8_capture: module is from the staging directory, the quality is unknown, you have been warned.
[   30.908720] Parent device name: 32e00000.isi
[   30.918455] mxc-isi 32e00000.isi: mxc_isi.0 registered successfully
[   30.934458] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[   30.945429] mxc-md 32c00000.bus:camera: Media device initialized
[   30.956719] mxc-md 32c00000.bus:camera: media_gobj_create id 1: entity 'mxc_isi.0'
[   30.956728] mxc-md 32c00000.bus:camera: media_gobj_create id 2: sink pad 'mxc_isi.0':0
[   30.956734] mxc-md 32c00000.bus:camera: media_gobj_create id 3: sink pad 'mxc_isi.0':1
[   30.956740] mxc-md 32c00000.bus:camera: media_gobj_create id 4: sink pad 'mxc_isi.0':2
[   30.956746] mxc-md 32c00000.bus:camera: media_gobj_create id 5: sink pad 'mxc_isi.0':3
[   30.956752] mxc-md 32c00000.bus:camera: media_gobj_create id 6: sink pad 'mxc_isi.0':4
[   30.956758] mxc-md 32c00000.bus:camera: media_gobj_create id 7: sink pad 'mxc_isi.0':5
[   30.956763] mxc-md 32c00000.bus:camera: media_gobj_create id 8: sink pad 'mxc_isi.0':6
[   30.956769] mxc-md 32c00000.bus:camera: media_gobj_create id 9: sink pad 'mxc_isi.0':7
[   30.956775] mxc-md 32c00000.bus:camera: media_gobj_create id 10: sink pad 'mxc_isi.0':8
[   30.956781] mxc-md 32c00000.bus:camera: media_gobj_create id 11: sink pad 'mxc_isi.0':9
[   30.956787] mxc-md 32c00000.bus:camera: media_gobj_create id 12: sink pad 'mxc_isi.0':10
[   30.956792] mxc-md 32c00000.bus:camera: media_gobj_create id 13: sink pad 'mxc_isi.0':11
[   30.956798] mxc-md 32c00000.bus:camera: media_gobj_create id 14: source pad 'mxc_isi.0':12
[   30.956804] mxc-md 32c00000.bus:camera: media_gobj_create id 15: source pad 'mxc_isi.0':13
[   30.956810] mxc-md 32c00000.bus:camera: media_gobj_create id 16: source pad 'mxc_isi.0':14
[   30.956816] mxc-md 32c00000.bus:camera: media_gobj_create id 17: sink pad 'mxc_isi.0':15
[   30.957011] mxc-md 32c00000.bus:camera: media_gobj_create id 18: entity 'mxc_isi.0.capture'
[   30.957019] mxc-md 32c00000.bus:camera: media_gobj_create id 19: sink pad 'mxc_isi.0.capture':0
[   30.957026] mxc-md 32c00000.bus:camera: media_gobj_create id 20: intf_devnode v4l-video - major: 81, minor: 0
[   30.957033] mxc-md 32c00000.bus:camera: media_gobj_create id 21: interface link id 20 ==> id 18
[   30.957039] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0
[   30.963427] mxc-md 32c00000.bus:camera: media_gobj_create id 22: entity 'mxc-mipi-csi2.0'
[   30.974569] mxc-md 32c00000.bus:camera: media_gobj_create id 23: sink pad 'mxc-mipi-csi2.0':0
[   30.974579] mxc-md 32c00000.bus:camera: media_gobj_create id 24: sink pad 'mxc-mipi-csi2.0':1
[   30.974585] mxc-md 32c00000.bus:camera: media_gobj_create id 25: sink pad 'mxc-mipi-csi2.0':2
[   30.980073] mxc-md 32c00000.bus:camera: media_gobj_create id 26: sink pad 'mxc-mipi-csi2.0':3
[   30.980079] mxc-md 32c00000.bus:camera: media_gobj_create id 27: source pad 'mxc-mipi-csi2.0':4
[   30.980083] Parent device name: 32e00000.isi
[   30.980085] mxc-md 32c00000.bus:camera: media_gobj_create id 28: source pad 'mxc-mipi-csi2.0':5
[   30.984392] mxc-md 32c00000.bus:camera: media_gobj_create id 29: source pad 'mxc-mipi-csi2.0':6
[   30.989696] mxc-md 32c00000.bus:camera: media_gobj_create id 30: source pad 'mxc-mipi-csi2.0':7
[   30.989720] ===== begin parsing endpoint /soc@0/bus@32c00000/camera/csi@32e40000/port@0/endpoint
[   30.989743] fwnode video bus type MIPI CSI-2 D-PHY (4), mbus type not specified (0)
[   30.989749] no lane mapping given, using defaults
[   30.989753] data-lanes property exists; disabling default mapping
[   30.989756] lane 0 position 2
[   30.989762] no lane polarities defined, assuming not inverted
[   30.989766] ===== end parsing endpoint /soc@0/bus@32c00000/camera/csi@32e40000/port@0/endpoint
[   30.989813] mxc-md 32c00000.bus:camera: media_gobj_create id 31: entity 'lt9211c'
[   30.989820] mxc-md 32c00000.bus:camera: media_gobj_create id 32: source pad 'lt9211c':0
[   30.989826] mx8-img-md: Registered sensor subdevice: lt9211c (1)
[   30.995859] mxc-md 32c00000.bus:camera: media_gobj_create id 33: data link id 14 ==> id 19
[   30.995869] mxc-md 32c00000.bus:camera: media_gobj_create id 34: data link id 14 ==> id 19
[   30.995874] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[   30.995879] mxc-md 32c00000.bus:camera: media_gobj_create id 35: data link id 27 ==> id 2
[   30.995885] mxc-md 32c00000.bus:camera: media_gobj_create id 36: data link id 27 ==> id 2
[   31.001300] Parent device name: 32e00000.isi
[   31.028846] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[   31.035313] mxc-md 32c00000.bus:camera: media_gobj_create id 37: data link id 32 ==> id 23
[   31.035321] mxc-md 32c00000.bus:camera: media_gobj_create id 38: data link id 32 ==> id 23
[   31.035327] mx8-img-md: created link [lt9211c] => [mxc-mipi-csi2.0]
[   31.041631] mxc-md 32c00000.bus:camera: mxc_md_create_links
[   31.047400] mxc-md 32c00000.bus:camera: media_gobj_create id 39: intf_devnode v4l-subdev - major: 81, minor: 1
[   31.047412] mxc-md 32c00000.bus:camera: media_gobj_create id 40: interface link id 39 ==> id 22
[   31.047555] mxc-md 32c00000.bus:camera: media_gobj_create id 41: intf_devnode v4l-subdev - major: 81, minor: 2
[   31.047564] mxc-md 32c00000.bus:camera: media_gobj_create id 42: interface link id 41 ==> id 31
[   31.047666] mxc-md 32c00000.bus:camera: Media device registered
[   33.758417] VCC-3V3-Audio: disabling
[   33.762010] VCC-1V8-Audio: disabling
[   83.409789] Parent device name: 32e00000.isi
[   83.419781] mxc_isi_cap_g_fmt_mplane fh 5946a00 file :42ce800 f 5946c00
[   83.426418] mxc_isi_cap_g_fmt_mplane cap 1e66080
[   83.431042] mxc_isi_cap_g_fmt_mplane pdev 5870400
[   83.435754] mxc_isi_cap_g_fmt_mplane dev aefb890
[   83.440394] mxc_isi_cap_g_fmt_mplane pix 5946c08
[   83.445022] mxc_isi_cap_g_fmt_mplane dst_f 1e67890
[   83.498776] Parent device name: 32e00000.isi
[   83.513452] mc: media_release: Media Release
[   91.373072] Parent device name: 32e00000.isi
[   91.392728] vb2_common_vm_open: 00000000d890d630, refcount: 1, vma: ffff8c561000-ffff8cb50000
[   91.392752] vb2_dc_mmap: mapped dma addr 0x7a700000 at 0xffff8c561000, size 6221824
[   91.392787] vb2_common_vm_open: 000000004dd52174, refcount: 1, vma: ffff8bf72000-ffff8c561000
[   91.392794] vb2_dc_mmap: mapped dma addr 0x7ad00000 at 0xffff8bf72000, size 6221824
[   91.392820] vb2_common_vm_open: 000000004b5db2d8, refcount: 1, vma: ffff8b983000-ffff8bf72000
[   91.392827] vb2_dc_mmap: mapped dma addr 0x7b300000 at 0xffff8b983000, size 6221824
[   91.392854] vb2_common_vm_open: 00000000a4f10b58, refcount: 1, vma: ffff8b394000-ffff8b983000
[   91.392860] vb2_dc_mmap: mapped dma addr 0x7b900000 at 0xffff8b394000, size 6221824
[   91.392888] mxc_isi_cap_g_fmt_mplane fh 5946a00 file :4398900 f 5946c00
[   91.399548] mxc_isi_cap_g_fmt_mplane cap 1e66080
[   91.404184] mxc_isi_cap_g_fmt_mplane pdev 5870400
[   91.408896] mxc_isi_cap_g_fmt_mplane dev af33890
[   91.413518] mxc_isi_cap_g_fmt_mplane pix 5946c08
[   91.418141] mxc_isi_cap_g_fmt_mplane dst_f 1e67890
[   91.471791] Parent device name: 32e00000.isi
[   91.498153] Parent device name: 32e00000.isi
[   91.512774] bypass csc
[   91.515138] input fmt RGB4
[   91.517843] output fmt RGB3
[   91.854107] LT9211C: Starting stream
[   91.857727] mxc_isi_cap_g_fmt_mplane fh 5946a00 file :4398900 f 48b5c00
[   91.864420] mxc_isi_cap_g_fmt_mplane cap 1e66080
[   91.869074] mxc_isi_cap_g_fmt_mplane pdev 5870400
[   91.873810] mxc_isi_cap_g_fmt_mplane dev af33890
[   91.878463] mxc_isi_cap_g_fmt_mplane pix 48b5c08
[   91.883221] mxc_isi_cap_g_fmt_mplane dst_f 1e67890
[  160.906026] vb2_common_vm_close: 00000000a4f10b58, refcount: 2, vma: ffff8b394000-ffff8b983000
[  160.906056] vb2_common_vm_close: 000000004b5db2d8, refcount: 2, vma: ffff8b983000-ffff8bf72000
[  160.906107] vb2_common_vm_close: 000000004dd52174, refcount: 2, vma: ffff8bf72000-ffff8c561000
[  160.906119] vb2_common_vm_close: 00000000d890d630, refcount: 2, vma: ffff8c561000-ffff8cb50000
[  160.906187] mc: media_release: Media Release
[  160.923078] Parent device name: 32e00000.isi
[  160.949491] Parent device name: 32e00000.isi
[  160.959120] LT9211C: Stopping stream
[  175.129934] Parent device name: 32e00000.isi
[  175.148489] vb2_common_vm_open: 0000000098464fbc, refcount: 1, vma: ffffa1af1000-ffffa20e0000
[  175.148514] vb2_dc_mmap: mapped dma addr 0x7a700000 at 0xffffa1af1000, size 6221824
[  175.148548] vb2_common_vm_open: 0000000015128612, refcount: 1, vma: ffffa1502000-ffffa1af1000
[  175.148554] vb2_dc_mmap: mapped dma addr 0x7ad00000 at 0xffffa1502000, size 6221824
[  175.148582] vb2_common_vm_open: 00000000cf858454, refcount: 1, vma: ffffa0f13000-ffffa1502000
[  175.148588] vb2_dc_mmap: mapped dma addr 0x7b300000 at 0xffffa0f13000, size 6221824
[  175.148615] vb2_common_vm_open: 000000000011d799, refcount: 1, vma: ffffa0924000-ffffa0f13000
[  175.148622] vb2_dc_mmap: mapped dma addr 0x7b900000 at 0xffffa0924000, size 6221824
[  175.148650] mxc_isi_cap_g_fmt_mplane fh 5946c00 file :5787d00 f 5946d00
[  175.155313] mxc_isi_cap_g_fmt_mplane cap 1e66080
[  175.159949] mxc_isi_cap_g_fmt_mplane pdev 5870400
[  175.164660] mxc_isi_cap_g_fmt_mplane dev af7b890
[  175.169283] mxc_isi_cap_g_fmt_mplane pix 5946d08
[  175.173906] mxc_isi_cap_g_fmt_mplane dst_f 1e67890
[  175.227551] Parent device name: 32e00000.isi
[  175.253920] Parent device name: 32e00000.isi
[  175.268521] bypass csc
[  175.270897] input fmt RGB4
[  175.273602] output fmt RGB3
[  175.614406] mxc-mipi-csi2.0: mipi_csis_s_stream: 1, state: 0x0
[  175.614517] mxc-mipi-csi2.0: mipi_csis_imx8mp_phy_reset: bus fmt is 12 bit !
[  175.614552] mxc-mipi-csi2.0: fmt: 0x100a, 1920 x 1080
[  175.630677] LT9211C: Starting stream
[  175.634268] mxc-mipi-csi2.0: --- mipi_csis_s_stream ---
[  175.634273] mxc-mipi-csi2.0:         CSIS_VERSION[0]: 0x03060301
[  175.634279] mxc-mipi-csi2.0:        CSIS_CMN_CTRL[4]: 0x00004905
[  175.634284] mxc-mipi-csi2.0:        CSIS_CLK_CTRL[8]: 0x000f0000
[  175.634289] mxc-mipi-csi2.0:          CSIS_INTMSK[10]: 0x0fffff1f
[  175.634295] mxc-mipi-csi2.0:          CSIS_INTSRC[14]: 0x00000004
[  175.634300] mxc-mipi-csi2.0:      CSIS_DPHYSTATUS[20]: 0x000000e0
[  175.634305] mxc-mipi-csi2.0:        CSIS_DPHYCTRL[24]: 0x09000007
[  175.634310] mxc-mipi-csi2.0:     CSIS_DPHYBCTRL_L[30]: 0x000001f4
[  175.634315] mxc-mipi-csi2.0:     CSIS_DPHYBCTRL_H[34]: 0x00000000
[  175.634320] mxc-mipi-csi2.0:     CSIS_DPHYSCTRL_L[38]: 0x00000000
[  175.634325] mxc-mipi-csi2.0:     CSIS_DPHYSCTRL_H[3c]: 0x00000000
[  175.634330] mxc-mipi-csi2.0:   CSIS_ISPCONFIG_CH0[40]: 0x00000090
[  175.634335] mxc-mipi-csi2.0:   CSIS_ISPCONFIG_CH1[50]: 0x000008fd
[  175.634340] mxc-mipi-csi2.0:   CSIS_ISPCONFIG_CH2[60]: 0x000008fe
[  175.634345] mxc-mipi-csi2.0:   CSIS_ISPCONFIG_CH3[70]: 0x000008ff
[  175.634350] mxc-mipi-csi2.0:    CSIS_ISPRESOL_CH0[44]: 0x04380780
[  175.634355] mxc-mipi-csi2.0:    CSIS_ISPRESOL_CH1[54]: 0x80008000
[  175.634360] mxc-mipi-csi2.0:    CSIS_ISPRESOL_CH2[64]: 0x80008000
[  175.634365] mxc-mipi-csi2.0:    CSIS_ISPRESOL_CH3[74]: 0x80008000
[  175.634371] mxc-mipi-csi2.0:     CSIS_ISPSYNC_CH0[48]: 0x00000000
[  175.634376] mxc-mipi-csi2.0:     CSIS_ISPSYNC_CH1[58]: 0x00000000
[  175.634381] mxc-mipi-csi2.0:     CSIS_ISPSYNC_CH2[68]: 0x00000000
[  175.634386] mxc-mipi-csi2.0:     CSIS_ISPSYNC_CH3[78]: 0x00000000
[  175.634391] mxc-mipi-csi2.0: --- mipi_csis_s_stream ---
[  175.634396] mxc-mipi-csi2.0:    GPR_GASKET_0_CTRL[0]: 0x00002401
[  175.634402] mxc-mipi-csi2.0:   GPR_GASKET_0_HSIZE[4]: 0x00000780
[  175.634407] mxc-mipi-csi2.0:   GPR_GASKET_0_VSIZE[8]: 0x00000438
[  175.634434] mxc_isi_cap_g_fmt_mplane fh 5946c00 file :5787d00 f 5946d00
[  175.641112] mxc_isi_cap_g_fmt_mplane cap 1e66080
[  175.645759] mxc_isi_cap_g_fmt_mplane pdev 5870400
[  175.650491] mxc_isi_cap_g_fmt_mplane dev af7b890
[  175.655131] mxc_isi_cap_g_fmt_mplane pix 5946d08
[  175.659871] mxc_isi_cap_g_fmt_mplane dst_f 1e67890
[  177.364877] vb2_common_vm_close: 000000000011d799, refcount: 2, vma: ffffa0924000-ffffa0f13000
[  177.364907] vb2_common_vm_close: 00000000cf858454, refcount: 2, vma: ffffa0f13000-ffffa1502000
[  177.364917] vb2_common_vm_close: 0000000015128612, refcount: 2, vma: ffffa1502000-ffffa1af1000
[  177.364928] vb2_common_vm_close: 0000000098464fbc, refcount: 2, vma: ffffa1af1000-ffffa20e0000
[  177.364995] mc: media_release: Media Release
[  177.381986] Parent device name: 32e00000.isi
[  177.408599] Parent device name: 32e00000.isi
[  177.418201] mxc-mipi-csi2.0: mipi_csis_s_stream: 0, state: 0x0
[  177.418209] LT9211C: Stopping stream
[  177.421787] mxc-mipi-csi2.0: Frame End events: 0
[  177.426402] mxc-mipi-csi2.0: Frame Start events: 107
[  177.431364] mxc-mipi-csi2.0: Non-image data after odd frame events: 0
[  177.437800] mxc-mipi-csi2.0: Non-image data before odd frame events: 0
[  177.444324] mxc-mipi-csi2.0: Non-image data after even frame events: 0
[  177.450848] mxc-mipi-csi2.0: Non-image data before even frame events: 0
[  177.457458] mxc-mipi-csi2.0: Unknown Error events: 0
[  177.462419] mxc-mipi-csi2.0: CRC Error events: 0
[  177.467032] mxc-mipi-csi2.0: ECC Error events: 54445
[  177.471993] mxc-mipi-csi2.0: FIFO Overflow Error events: 0
[  177.477476] mxc-mipi-csi2.0: Lost Frame End Error events: 106
[  177.483219] mxc-mipi-csi2.0: Lost Frame Start Error events: 0
[  177.488961] mxc-mipi-csi2.0: SOT Error events: 1

 

media-ctl topology:

root@phyboard-pollux-imx8mp-3:~# media-ctl -p
Media controller API version 5.15.71

Media device information
------------------------
driver          mxc-md
model           FSL Capture Media Device
serial          
bus info        
hw revision     0x0
driver version  5.15.71

Device topology
- entity 1: mxc_isi.0 (16 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
	pad0: Sink
		<- "mxc-mipi-csi2.0":4 [ENABLED]
	pad1: Sink
	pad2: Sink
	pad3: Sink
	pad4: Sink
	pad5: Sink
	pad6: Sink
	pad7: Sink
	pad8: Sink
	pad9: Sink
	pad10: Sink
	pad11: Sink
	pad12: Source
		-> "mxc_isi.0.capture":0 [ENABLED]
	pad13: Source
	pad14: Source
	pad15: Sink

- entity 18: mxc_isi.0.capture (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video0
	pad0: Sink
		<- "mxc_isi.0":12 [ENABLED]

- entity 22: mxc-mipi-csi2.0 (8 pads, 2 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev0
	pad0: Sink
		<- "lt9211c":0 [ENABLED,IMMUTABLE]
	pad1: Sink
	pad2: Sink
	pad3: Sink
	pad4: Source
		-> "mxc_isi.0":0 [ENABLED]
	pad5: Source
	pad6: Source
	pad7: Source

- entity 31: lt9211c (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev1
	pad0: Source
		[fmt:RGB888_1X24/1920x1080@1/30 field:none colorspace:srgb
		 crop.bounds:(0,0)/1920x1080
		 crop:(0,0)/1920x1080
		 compose.bounds:(0,0)/1920x1080
		 compose:(0,0)/1920x1080]
		-> "mxc-mipi-csi2.0":0 [ENABLED,IMMUTABLE]

 

Video devices info:

root@phyboard-pollux-imx8mp-3:~# v4l2-ctl --list-devices
 ():
	/dev/v4l-subdev0

mxc-isi-cap (platform:32e00000.isi:cap_devic):
	/dev/video0

FSL Capture Media Device (platform:mxc-md):
	/dev/media0

root@phyboard-pollux-imx8mp-3:~# v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'GREY' (8-bit Greyscale)
	[1]: 'Y10 ' (10-bit Greyscale)
	[2]: 'Y12 ' (12-bit Greyscale)
	[3]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[4]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[5]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[6]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[7]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[8]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[9]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[10]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[11]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[12]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[13]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[14]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[15]: 'RGBP' (16-bit RGB 5-6-5)
	[16]: 'RGB3' (24-bit RGB 8-8-8)
		Size: Discrete 1920x1080
	[17]: 'BGR3' (24-bit BGR 8-8-8)
	[18]: 'YUYV' (YUYV 4:2:2)
	[19]: 'YUV4' (32-bit A/XYUV 8-8-8-8)
	[20]: 'NV12' (Y/CbCr 4:2:0)
	[21]: 'NM12' (Y/CbCr 4:2:0 (N-C))
	[22]: 'YM24' (Planar YUV 4:4:4 (N-C))
	[23]: 'XR24' (32-bit BGRX 8-8-8-8)
		Size: Discrete 1920x1080
	[24]: 'AR24' (32-bit BGRA 8-8-8-8)
		Size: Discrete 1920x1080

 

Thanks for you support.

0 项奖励
回复
1 解答
2,568 次查看
NashNeel
Contributor II
Someone tried fixing their kernel for the same here- There is some fix in the kernel here - https://community.nxp.com/t5/i-MX-Processors/Confusion-of-MIPI-CSI2-ISI-drivers-for-IMX8MP/m-p/19753...

在原帖中查看解决方案

0 项奖励
回复
13 回复数
926 次查看
hehaibo
Contributor I

Hello @rajtend, I am researching a similar issue (i.MX8MP and LT9211C driver), could you please share more details or a contact method? Thank you!

0 项奖励
回复
2,565 次查看
rajtend
Contributor III

There are 3 questions related to the topic:

1. Is the clock configuration correct? How can I verify if this is correct?
2. Is the media pipeline setup correctly or not? All sink and sources are matched?
3. Does it have any format mismatch error due to RGB3 or RGB4? Are supported formats for all stages of pipeline configured properly? How to verify this?

0 项奖励
回复
2,566 次查看
NashNeel
Contributor II
0 项奖励
回复
2,569 次查看
NashNeel
Contributor II
Someone tried fixing their kernel for the same here- There is some fix in the kernel here - https://community.nxp.com/t5/i-MX-Processors/Confusion-of-MIPI-CSI2-ISI-drivers-for-IMX8MP/m-p/19753...
0 项奖励
回复
2,571 次查看
NashNeel
Contributor II
https://community.nxp.com/t5/i-MX-Processors/Creating-a-MIPI-CSI-Camera-driver-on-i-MX-8MP-EVK/m-p/1...

And try setting mbus type -
&csi1_bridge {
status = "okay";
port {
csi1_ep: endpoint {
remote-endpoint = <&camera_ep>;
data-lanes = <1 2>;
clock-lanes = <0>;
link-frequencies = /bits/ 64 <456000000>;
mbus-type = <MEDIA_BUS_FMT_SGRBG10_1X10>;
};
};
};

static const struct v4l2_mbus_framefmt fmt = {
.code = MEDIA_BUS_FMT_SGRBG10_1X10,
.width = 1920,
.height = 1080,
.field = V4L2_FIELD_NONE,
.colorspace = V4L2_COLORSPACE_SRGB,
};
0 项奖励
回复
2,590 次查看
NashNeel
Contributor II
0 项奖励
回复
2,597 次查看
NashNeel
Contributor II
0 项奖励
回复
2,610 次查看
NashNeel
Contributor II
0 项奖励
回复
2,600 次查看
NashNeel
Contributor II
Or more the link inside with v4l2src
0 项奖励
回复
2,583 次查看
rajtend
Contributor III
It does not tell how to configure the clocks in DTS
0 项奖励
回复
2,580 次查看
NashNeel
Contributor II
0 项奖励
回复
2,579 次查看
NashNeel
Contributor II
The pdf file - application note AN13857
0 项奖励
回复
2,500 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

good1

0 项奖励
回复