Eval-ad5370 device tree questions

Hi,

I am new to AD537x DACs. Currently I want to control the evaluation board eval-ad5370 via SPI directly with my Raspberry Pi 4. I built the kernel (wiki.analog.com/.../raspberrypi) and add the Linux iio drivers for Eval-ad5370 via "make menuconfig" . However, I encounter troubles when writing the device tree overlay file. I copied and change the codes on dtbo file of ad5686 from (https://github.com/analogdevicesinc/linux/commit/4a5b5b72149ad91fe7aa857a75d24fc97f13722e#diff-dc041e47200262dfab1ff9f9e0ef64c7). The code is shown as follows:

dts-v1/;

/plugin/;



/ {

	compatible = "brcm,bcm2708";



	fragment@0 {

		target-path = "/";

		__overlay__ {

			adc_vref: fixedregulator@0 {

				compatible = "regulator-fixed";

				regulator-name = "fixed-supply";

				regulator-min-microvolt = <3000000>;

				regulator-max-microvolt = <3000000>;

				regulator-boot-on;

			};

		};

	};



	fragment@1 {

		target = <&spi0>;

		__overlay__ {

			#address-cells = <1>;

			#size-cells = <0>;

			status = "okay";



			ad5370@0{

				compatible = "adi,ad5370";

				reg = <0>;

				spi-max-frequency = <1000000>;

				spi-cpha;

				vcc-supply = <&adc_vref>;

			};

		};

	};

};

The codes actually compiled with one warning, using  "dtc -I dts -O dtb -o" commands. However, it fails to makefile using

sudo dtoverlay rpi-ad5370-overlay.dtbo

I also did not see my dac is connected using  

cd /sys/bus/iio/devices/
ls

So I think my codes for device tree file has issues. I am wondering if someone can help me with the correct setting. I may need the required properties to build the device tree, such as this link (github.com/.../dac) or this link (wiki.analog.com/.../ad5676)

I think there are some threads talking about using Raspberry Pi to control the ad5370. However, I am not sure how they successfully added the device tree.

My ultimate goal is using python codes to control it, such as this link (github.com/.../AD5370). So I think after successfully adding the device tree overlay, I can achieve my goal.

Another option is using windows. However, I may need to program the channels and make a system with feedback(No speed requirements). If there are APIs on python with on windows platform, it will also be great.

Thanks a lot in advance for your help!

  • 0
    •  Analog Employees 
    on Jul 10, 2020 6:22 AM

    Hi,

    I moved your question to the proper community for your driver questions. Someone here should be able to help you.

    Cheers,

    Ivan

  • 0
    •  Analog Employees 
    on Jul 14, 2020 9:11 AM

    Hi SamFeng,

    The issue with your device tree is that it requires 2 vref for ad5370. The names for this would be "vref0" and "vref1". Here is the line of code that refers to this : https://github.com/analogdevicesinc/linux/blob/rpi-4.19.y/drivers/iio/dac/ad5360.c#L431

    So your device tree should be something like this:

    dts-v1/;
    
    /plugin/;
    
    / {
    	compatible = "brcm,bcm2708";
    
    	fragment@0 {
    		target-path = "/";
    		__overlay__ {
    			vref0: fixedregulator@0 {
    				compatible = "regulator-fixed";
    				regulator-name = "fixed-supply";
    				regulator-min-microvolt = <3000000>;
    				regulator-max-microvolt = <3000000>;
    				regulator-boot-on;
    			};
    			vref1: fixedregulator@1 {
    				compatible = "regulator-fixed";
    				regulator-name = "fixed-supply";
    				regulator-min-microvolt = <3000000>;
    				regulator-max-microvolt = <3000000>;
    				regulator-boot-on;
    			};
    		};
    	};
    
    	fragment@1 {
    		target = <&spi0>;
    		__overlay__ {
    			#address-cells = <1>;
    			#size-cells = <0>;
    			status = "okay";
    
    			ad5370@0{
    				compatible = "adi,ad5370";
    				reg = <0>;
    				spi-max-frequency = <1000000>;
    				spi-cpha;
    				vref0-supply = <&vref0>;
    				vref1-supply = <&vref1>;
    			};
    		};
    	};
    };

    Let me know if this works. You could also use the Linux image from Analog Devices based on Raspbian it has a lot of ADI tools installed along with libiio and pyadi-iio for interfacing with IIO drivers. The only thing you have to do is compile the device tree and copy it to the sd card and configure it inside config.txt just like any other Raspbian sd card.

    The kernel in the image is the one from Analog Devices and has all ADI drivers already enabled including the ad5370.

    Here is the link to download the image: https://wiki.analog.com/resources/tools-software/linux-software/adi-kuiper_images

    Regards,

    Mircea

  • Hi Mircea,

    Thanks for correcting my dts file, I uses it and compile it with two warnings:

    rpi-ad5370-overlay.dtbo: Warning (unit_address_vs_reg): /fragment@0/__overlay__/fixedregulator@0: node has a unit name, but no reg property
    rpi-ad5370-overlay.dtbo: Warning (unit_address_vs_reg): /fragment@0/__overlay__/fixedregulator@1: node has a unit name, but no reg property
    

    Then I use

    sudo dtoverlay rpi-ad5370-overlay.dtbo

    And it also runs with no errors.

    Then I add the following script to config.txt on SD card

    dtoverlay=rpi-ad5370-overlay

    No errors occurred. However, when I run commands

    cd /sys/bus/iio/devices/
    ls

    I still cannot see the DAC is detected. I am not sure which part is wrong.

    The driver is installed following the instructions: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-dac/ad5360, I think the driver is added correctly via make menuconfig.

    I will try to build the system you recommend on another Pi 4. However, if you notice anything wrong in my procedures. Please let me know. Thanks a lot! 

  • 0
    •  Analog Employees 
    on Jul 16, 2020 10:47 AM in reply to SamFeng

    You have an error in config.txt you have to set:

    dtoverlay=rpi-ad5370

    I usually use this command to generate device tree overlays:

    make dtbs

    You just have to add it to the makefile inside

    cd linux/arch/arm/boot/dts/overlays
    vim Makefile

    and add rpi-ad5370.dtbo to the list.

    Could you post a dmesg output so I could see the errors you get? It think the issue could be just some device tree

    mismatch.

    Thanks,

    Mircea

  • Hi Mircea

    I copied the dmesg output. Hopefully, it can help.

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.66-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1253 SMP Thu Aug 15 12:02:08 BST 2019
    [    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] cma: Reserved 256 MiB at 0x000000001ec00000
    [    0.000000] On node 0 totalpages: 1012736
    [    0.000000]   DMA zone: 1728 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 196608 pages, LIFO batch:63
    [    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
    [    0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4e8 with crng_init=0
    [    0.000000] percpu: Embedded 17 pages/cpu s39488 r8192 d21952 u69632
    [    0.000000] pcpu-alloc: s39488 r8192 d21952 u69632 alloc=17*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1011008
    [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1280x720@60 smsc95xx.macaddr=DC:A6:32:0D:7C:95 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=6328b11b-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 3735588K/4050944K available (8192K kernel code, 661K rwdata, 2348K rodata, 2048K init, 850K bss, 53212K reserved, 262144K cma-reserved, 3264512K highmem)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                       lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                       pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                       modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                         .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                         .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
                         .data : 0x(ptrval) - 0x(ptrval)   ( 662 kB)
                          .bss : 0x(ptrval) - 0x(ptrval)   ( 851 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] ftrace: allocating 28118 entries in 83 pages
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
    [    0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
    [    0.000017] Switching to timer-based delay loop, resolution 18ns
    [    0.000239] Console: colour dummy device 80x30
    [    0.000263] console [tty1] enabled
    [    0.000304] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
    [    0.000326] pid_max: default: 32768 minimum: 301
    [    0.000589] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000607] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001360] CPU: Testing write buffer coherency: ok
    [    0.001769] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.002409] Setting up static identity map for 0x200000 - 0x20003c
    [    0.002565] rcu: Hierarchical SRCU implementation.
    [    0.003427] smp: Bringing up secondary CPUs ...
    [    0.004224] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.005153] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [    0.006043] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [    0.006174] smp: Brought up 1 node, 4 CPUs
    [    0.006187] SMP: Total of 4 processors activated (432.00 BogoMIPS).
    [    0.006196] CPU: All CPU(s) started in HYP mode.
    [    0.006205] CPU: Virtualization extensions available.
    [    0.006988] devtmpfs: initialized
    [    0.017493] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
    [    0.017701] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.017721] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.025019] pinctrl core: initialized pinctrl subsystem
    [    0.025855] NET: Registered protocol family 16
    [    0.028816] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [    0.030344] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.030355] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.030549] Serial: AMBA PL011 UART driver
    [    0.033837] bcm2835-mbox fe00b880.mailbox: mailbox enabled
    [    0.070230] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
    [    0.072559] vgaarb: loaded
    [    0.072923] SCSI subsystem initialized
    [    0.073121] usbcore: registered new interface driver usbfs
    [    0.073171] usbcore: registered new interface driver hub
    [    0.073263] usbcore: registered new device driver usb
    [    0.090417] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-15 12:03, variant start
    [    0.100121] raspberrypi-firmware soc:firmware: Firmware hash is 9f8431fb7839c7f00f52b81f5822ddab2b31d0db
    [    0.111705] clocksource: Switched to clocksource arch_sys_counter
    [    0.189423] VFS: Disk quotas dquot_6.6.0
    [    0.189498] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.189647] FS-Cache: Loaded
    [    0.189830] CacheFiles: Loaded
    [    0.190382] simple-framebuffer 3ea38000.framebuffer: framebuffer at 0x3ea38000, 0x1c2000 bytes, mapped to 0x(ptrval)
    [    0.190397] simple-framebuffer 3ea38000.framebuffer: format=r5g6b5, mode=1280x720x16, linelength=2560
    [    0.194013] Console: switching to colour frame buffer device 160x45
    [    0.197158] simple-framebuffer 3ea38000.framebuffer: fb0: simplefb registered!
    [    0.206269] NET: Registered protocol family 2
    [    0.206914] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
    [    0.206940] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.207010] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.207080] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.207200] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.207224] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.207516] NET: Registered protocol family 1
    [    0.208027] RPC: Registered named UNIX socket transport module.
    [    0.208037] RPC: Registered udp transport module.
    [    0.208046] RPC: Registered tcp transport module.
    [    0.208055] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.208070] PCI: CLS 0 bytes, default 64
    [    0.211210] Initialise system trusted keyrings
    [    0.211374] workingset: timestamp_bits=14 max_order=20 bucket_order=6
    [    0.220263] FS-Cache: Netfs 'nfs' registered for caching
    [    0.220774] NFS: Registering the id_resolver key type
    [    0.220798] Key type id_resolver registered
    [    0.220808] Key type id_legacy registered
    [    0.220826] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.223110] Key type asymmetric registered
    [    0.223121] Asymmetric key parser 'x509' registered
    [    0.223229] bounce: pool size: 64 pages
    [    0.223273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    [    0.223438] io scheduler noop registered
    [    0.223449] io scheduler deadline registered (default)
    [    0.223596] io scheduler cfq registered
    [    0.223607] io scheduler mq-deadline registered (default)
    [    0.223617] io scheduler kyber registered
    [    0.252657] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000
    [    0.252677] brcm-pcie fd500000.pcie: could not get clock
    [    0.252738] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
    [    0.252775] brcm-pcie fd500000.pcie:   MEM 0x600000000..0x603ffffff -> 0xf8000000
    [    0.311743] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
    [    0.312022] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
    [    0.312037] pci_bus 0000:00: root bus resource [bus 00-01]
    [    0.312055] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
    [    0.312097] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
    [    0.312235] pci 0000:00:00.0: PME# supported from D0 D3hot
    [    0.315033] PCI: bus0: Fast back to back transfers disabled
    [    0.315051] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.315217] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
    [    0.315276] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
    [    0.315444] pci 0000:01:00.0: PME# supported from D0 D3cold
    [    0.318145] PCI: bus1: Fast back to back transfers disabled
    [    0.318161] pci_bus 0000:01: busn_res: [bus 01] end is updated to 01
    [    0.318207] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
    [    0.318226] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
    [    0.318256] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    0.318273] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
    [    0.318478] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
    [    0.318649] pcieport 0000:00:00.0: Signaling PME with IRQ 57
    [    0.318803] pcieport 0000:00:00.0: AER enabled with IRQ 57
    [    0.318938] pci 0000:01:00.0: enabling device (0140 -> 0142)
    [    0.322292] iproc-rng200 fe104000.rng: hwrng registered
    [    0.322516] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
    [    0.323026] vc-sm: Videocore shared memory driver
    [    0.323430] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
    [    0.333371] brd: module loaded
    [    0.343011] loop: module loaded
    [    0.343754] Loading iSCSI transport class v2.0-870.
    [    0.345426] libphy: Fixed MDIO Bus: probed
    [    0.345852] bcmgenet fd580000.genet: failed to get enet clock
    [    0.345868] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
    [    0.345885] bcmgenet fd580000.genet: failed to get enet-wol clock
    [    0.345901] bcmgenet fd580000.genet: failed to get enet-eee clock
    [    0.345924] bcmgenet: Skipping UMAC reset
    [    0.346155] unimac-mdio unimac-mdio.-19: DMA mask not set
    [    0.361735] libphy: bcmgenet MII bus: probed
    [    0.402226] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval)
    [    0.403119] usbcore: registered new interface driver r8152
    [    0.403179] usbcore: registered new interface driver lan78xx
    [    0.403231] usbcore: registered new interface driver smsc95xx
    [    0.403428] xhci_hcd 0000:01:00.0: xHCI Host Controller
    [    0.403458] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
    [    0.405570] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
    [    0.405736] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 58
    [    0.406363] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [    0.406377] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.406389] usb usb1: Product: xHCI Host Controller
    [    0.406400] usb usb1: Manufacturer: Linux 4.19.66-v7l+ xhci-hcd
    [    0.406410] usb usb1: SerialNumber: 0000:01:00.0
    [    0.406924] hub 1-0:1.0: USB hub found
    [    0.406978] hub 1-0:1.0: 1 port detected
    [    0.407389] xhci_hcd 0000:01:00.0: xHCI Host Controller
    [    0.407410] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
    [    0.407429] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
    [    0.407763] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
    [    0.407776] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.407787] usb usb2: Product: xHCI Host Controller
    [    0.407798] usb usb2: Manufacturer: Linux 4.19.66-v7l+ xhci-hcd
    [    0.407808] usb usb2: SerialNumber: 0000:01:00.0
    [    0.408304] hub 2-0:1.0: USB hub found
    [    0.408355] hub 2-0:1.0: 4 ports detected
    [    0.409470] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [    0.435043] dwc_otg fe980000.usb: base=(ptrval)
    [    0.635344] Core Release: 2.80a
    [    0.635357] Setting default values for core params
    [    0.635385] Finished setting default values for core params
    [    0.835719] Using Buffer DMA mode
    [    0.835728] Periodic Transfer Interrupt Enhancement - disabled
    [    0.835737] Multiprocessor Interrupt Enhancement - disabled
    [    0.835747] OTG VER PARAM: 0, OTG VER FLAG: 0
    [    0.835806] Dedicated Tx FIFOs mode
    [    0.836400] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = ded34000 dma = 0x00000000ded34000 len=9024
    [    0.836423] FIQ FSM acceleration enabled for :
                   Non-periodic Split Transactions
                   Periodic Split Transactions
                   High-Speed Isochronous Endpoints
                   Interrupt/Control Split Transaction hack enabled
    [    0.836434] dwc_otg: Microframe scheduler enabled
    [    0.836497] WARN::hcd_init_fiq:457: FIQ on core 1
    [    0.836514] WARN::hcd_init_fiq:458: FIQ ASM at c07b5a8c length 36
    [    0.836531] WARN::hcd_init_fiq:497: MPHI regs_base at f0810200
    [    0.836566] dwc_otg fe980000.usb: DWC OTG Controller
    [    0.836595] dwc_otg fe980000.usb: new USB bus registered, assigned bus number 3
    [    0.836627] dwc_otg fe980000.usb: irq 39, io mem 0x00000000
    [    0.836678] Init: Port Power? op_state=1
    [    0.836687] Init: Power Port (0)
    [    0.836944] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [    0.836958] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.836970] usb usb3: Product: DWC OTG Controller
    [    0.836981] usb usb3: Manufacturer: Linux 4.19.66-v7l+ dwc_otg_hcd
    [    0.836991] usb usb3: SerialNumber: fe980000.usb
    [    0.837495] hub 3-0:1.0: USB hub found
    [    0.837549] hub 3-0:1.0: 1 port detected
    [    0.838125] dwc_otg: FIQ enabled
    [    0.838134] dwc_otg: NAK holdoff enabled
    [    0.838143] dwc_otg: FIQ split-transaction FSM enabled
    [    0.838157] Module dwc_common_port init
    [    0.838370] usbcore: registered new interface driver uas
    [    0.838491] usbcore: registered new interface driver usb-storage
    [    0.838655] mousedev: PS/2 mouse device common for all mice
    [    0.839860] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
    [    0.840047] bcm2835-cpufreq: min=600000 max=1500000
    [    0.840665] sdhci: Secure Digital Host Controller Interface driver
    [    0.840674] sdhci: Copyright(c) Pierre Ossman
    [    0.841061] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
    [    0.841442] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.844511] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.844654] hidraw: raw HID events driver (C) Jiri Kosina
    [    0.844780] usbcore: registered new interface driver usbhid
    [    0.844788] usbhid: USB HID core driver
    [    0.845547] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
    [    0.847119] [vc_sm_connected_init]: start
    [    0.855390] [vc_sm_connected_init]: end - returning 0
    [    0.856455] Initializing XFRM netlink socket
    [    0.856482] NET: Registered protocol family 17
    [    0.856578] Key type dns_resolver registered
    [    0.856997] Registering SWP/SWPB emulation handler
    [    0.857579] registered taskstats version 1
    [    0.857594] Loading compiled-in X.509 certificates
    [    0.865334] uart-pl011 fe201000.serial: cts_event_workaround enabled
    [    0.865401] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
    [    0.868316] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
    [    0.868787] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
    [    0.869405] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
    [    0.869417] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
    [    0.894882] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.1
    [    0.911058] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    0.912816] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.914422] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.917410] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    0.919019] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.928011] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
    [    0.930320] of_cfs_init
    [    0.930400] of_cfs_init: OK
    [    0.930989] Waiting for root device PARTUUID=6328b11b-02...
    [    0.975017] random: fast init done
    [    0.981814] usb 1-1: new high-speed USB device number 2 using xhci_hcd
    [    0.986669] mmc1: new high speed SDIO card at address 0001
    [    1.031880] mmc0: new ultra high speed DDR50 SDXC card at address 0001
    [    1.032981] mmcblk0: mmc0:0001 GD4QT 119 GiB
    [    1.034096]  mmcblk0: p1 p2
    [    1.044897] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.044908] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    1.163544] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
    [    1.163559] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.163595] usb 1-1: Product: USB2.0 Hub
    [    1.165174] hub 1-1:1.0: USB hub found
    [    1.165443] hub 1-1:1.0: 4 ports detected
    [    1.406853] EXT4-fs (mmcblk0p2): recovery complete
    [    1.423097] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.423146] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.423989] devtmpfs: mounted
    [    1.430295] Freeing unused kernel memory: 2048K
    [    1.430535] Run /sbin/init as init process
    [    1.854174] systemd[1]: System time before build time, advancing clock.
    [    1.944840] NET: Registered protocol family 10
    [    1.946053] Segment Routing with IPv6
    [    1.982860] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
    [    1.983520] systemd[1]: Detected architecture arm.
    [    1.994615] systemd[1]: Set hostname to <raspberrypi>.
    [    2.000483] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
    [    2.260797] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    2.260818] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    2.662374] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.671074] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.675291] systemd[1]: Created slice User and Session Slice.
    [    2.675538] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.675833] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    2.676616] systemd[1]: Listening on Journal Socket.
    [    2.677244] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
    [    2.769126] i2c /dev entries driver
    [    3.370995] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    3.485765] systemd-journald[117]: Received request to flush runtime journal from PID 1
    [    3.980347] fixed-supply: Failed to create debugfs directory
    [    4.029179] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.031272] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
    [    4.031287] [vc_sm_connected_init]: start
    [    4.031857] [vc_sm_connected_init]: installed successfully
    [    4.037318] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
    [    4.037871] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
    [    4.038546] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
    [    4.038782] media: Linux media interface: v0.10
    [    4.039028] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
    [    4.080290] videodev: Linux video capture interface: v2.00
    [    4.116824] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.118677] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.125990] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.140333] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.162021] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
    [    4.162035] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
    [    4.173672] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
    [    4.173685] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
    [    4.174127] spi-bcm2835 fe204000.spi: chipselect 0 already in use
    [    4.174143] spi_master spi0: spi_device register error /soc/spi@7e204000/spidev@0
    [    4.174161] spi_master spi0: Failed to create SPI device for /soc/spi@7e204000/spidev@0
    [    4.196833] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
    [    4.196846] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
    [    4.287833] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.348408] bcm2835_audio soc:audio: card created with 8 channels
    [    4.371647] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    4.438280] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
    [    4.549757] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    4.617431] vc4-drm soc:gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
    [    4.617448] checking generic (3ea38000 1c2000) vs hw (0 ffffffffffffffff)
    [    4.617459] fb: switching to vc4drmfb from simple
    [    4.617686] Console: switching to colour dummy device 80x30
    [    4.622123] brcmfmac: F1 signature read @0x18000000=0x15264345
    [    4.624467] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 1
    [    4.624480] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    4.624489] [drm] No driver support for vblank timestamp query.
    [    4.624498] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
    [    4.626340] vc4-drm soc:gpu: HDMI-A-1: EDID is invalid:
    [    4.626357] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626367] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626376] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626385] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626394] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626403] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626412] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626421] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.635833] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
    [    4.636474] usbcore: registered new interface driver brcmfmac
    [    4.756380] Console: switching to colour frame buffer device 160x45
    [    4.781486] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
    [    4.865759] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
    [    4.879000] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
    [    6.795353] uart-pl011 fe201000.serial: no DMA platform data
    [    6.958293] random: crng init done
    [    6.958309] random: 7 urandom warning(s) missed due to ratelimiting
    [    6.966943] 8021q: 802.1Q VLAN Support v1.8
    [    7.336950] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
    [    7.349009] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [    7.349017] brcmfmac: power management disabled
    [    7.687614] bcmgenet: Skipping UMAC reset
    [    7.781996] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
    [    7.782138] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    8.791821] bcmgenet fd580000.genet eth0: Link is Down
    [    8.819158] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
    [   12.055540] fuse init (API version 7.27)
    [   12.978759] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [   13.642795] Bluetooth: Core ver 2.22
    [   13.642847] NET: Registered protocol family 31
    [   13.642851] Bluetooth: HCI device and connection manager initialized
    [   13.642862] Bluetooth: HCI socket layer initialized
    [   13.642868] Bluetooth: L2CAP socket layer initialized
    [   13.642888] Bluetooth: SCO socket layer initialized
    [   13.651627] Bluetooth: HCI UART driver ver 2.3
    [   13.651638] Bluetooth: HCI UART protocol H4 registered
    [   13.651790] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [   13.651988] Bluetooth: HCI UART protocol Broadcom registered
    [   13.915774] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [   13.915781] Bluetooth: BNEP filters: protocol multicast
    [   13.915794] Bluetooth: BNEP socket layer initialized
    [   13.952538] Bluetooth: RFCOMM TTY layer initialized
    [   13.952555] Bluetooth: RFCOMM socket layer initialized
    [   13.952597] Bluetooth: RFCOMM ver 1.11
    root@raspberrypi:/sys/bus/iio/devices# sudo raspi-config
    root@raspberrypi:/sys/bus/iio/devices# ls /dev/spi*
    /dev/spidev0.1
    root@raspberrypi:/sys/bus/iio/devices# ls /dev/sp*
    /dev/spidev0.1
    root@raspberrypi:/sys/bus/iio/devices# dmesg
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.66-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1253 SMP Thu Aug 15 12:02:08 BST 2019
    [    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] cma: Reserved 256 MiB at 0x000000001ec00000
    [    0.000000] On node 0 totalpages: 1012736
    [    0.000000]   DMA zone: 1728 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 196608 pages, LIFO batch:63
    [    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
    [    0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4e8 with crng_init=0
    [    0.000000] percpu: Embedded 17 pages/cpu s39488 r8192 d21952 u69632
    [    0.000000] pcpu-alloc: s39488 r8192 d21952 u69632 alloc=17*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1011008
    [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1280x720@60 smsc95xx.macaddr=DC:A6:32:0D:7C:95 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=6328b11b-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 3735588K/4050944K available (8192K kernel code, 661K rwdata, 2348K rodata, 2048K init, 850K bss, 53212K reserved, 262144K cma-reserved, 3264512K highmem)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                       lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                       pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                       modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                         .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                         .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
                         .data : 0x(ptrval) - 0x(ptrval)   ( 662 kB)
                          .bss : 0x(ptrval) - 0x(ptrval)   ( 851 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] ftrace: allocating 28118 entries in 83 pages
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
    [    0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
    [    0.000017] Switching to timer-based delay loop, resolution 18ns
    [    0.000239] Console: colour dummy device 80x30
    [    0.000263] console [tty1] enabled
    [    0.000304] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
    [    0.000326] pid_max: default: 32768 minimum: 301
    [    0.000589] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000607] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001360] CPU: Testing write buffer coherency: ok
    [    0.001769] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.002409] Setting up static identity map for 0x200000 - 0x20003c
    [    0.002565] rcu: Hierarchical SRCU implementation.
    [    0.003427] smp: Bringing up secondary CPUs ...
    [    0.004224] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.005153] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [    0.006043] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [    0.006174] smp: Brought up 1 node, 4 CPUs
    [    0.006187] SMP: Total of 4 processors activated (432.00 BogoMIPS).
    [    0.006196] CPU: All CPU(s) started in HYP mode.
    [    0.006205] CPU: Virtualization extensions available.
    [    0.006988] devtmpfs: initialized
    [    0.017493] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
    [    0.017701] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.017721] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.025019] pinctrl core: initialized pinctrl subsystem
    [    0.025855] NET: Registered protocol family 16
    [    0.028816] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [    0.030344] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.030355] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.030549] Serial: AMBA PL011 UART driver
    [    0.033837] bcm2835-mbox fe00b880.mailbox: mailbox enabled
    [    0.070230] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
    [    0.072559] vgaarb: loaded
    [    0.072923] SCSI subsystem initialized
    [    0.073121] usbcore: registered new interface driver usbfs
    [    0.073171] usbcore: registered new interface driver hub
    [    0.073263] usbcore: registered new device driver usb
    [    0.090417] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-15 12:03, variant start
    [    0.100121] raspberrypi-firmware soc:firmware: Firmware hash is 9f8431fb7839c7f00f52b81f5822ddab2b31d0db
    [    0.111705] clocksource: Switched to clocksource arch_sys_counter
    [    0.189423] VFS: Disk quotas dquot_6.6.0
    [    0.189498] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.189647] FS-Cache: Loaded
    [    0.189830] CacheFiles: Loaded
    [    0.190382] simple-framebuffer 3ea38000.framebuffer: framebuffer at 0x3ea38000, 0x1c2000 bytes, mapped to 0x(ptrval)
    [    0.190397] simple-framebuffer 3ea38000.framebuffer: format=r5g6b5, mode=1280x720x16, linelength=2560
    [    0.194013] Console: switching to colour frame buffer device 160x45
    [    0.197158] simple-framebuffer 3ea38000.framebuffer: fb0: simplefb registered!
    [    0.206269] NET: Registered protocol family 2
    [    0.206914] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
    [    0.206940] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.207010] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.207080] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.207200] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.207224] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.207516] NET: Registered protocol family 1
    [    0.208027] RPC: Registered named UNIX socket transport module.
    [    0.208037] RPC: Registered udp transport module.
    [    0.208046] RPC: Registered tcp transport module.
    [    0.208055] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.208070] PCI: CLS 0 bytes, default 64
    [    0.211210] Initialise system trusted keyrings
    [    0.211374] workingset: timestamp_bits=14 max_order=20 bucket_order=6
    [    0.220263] FS-Cache: Netfs 'nfs' registered for caching
    [    0.220774] NFS: Registering the id_resolver key type
    [    0.220798] Key type id_resolver registered
    [    0.220808] Key type id_legacy registered
    [    0.220826] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.223110] Key type asymmetric registered
    [    0.223121] Asymmetric key parser 'x509' registered
    [    0.223229] bounce: pool size: 64 pages
    [    0.223273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    [    0.223438] io scheduler noop registered
    [    0.223449] io scheduler deadline registered (default)
    [    0.223596] io scheduler cfq registered
    [    0.223607] io scheduler mq-deadline registered (default)
    [    0.223617] io scheduler kyber registered
    [    0.252657] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000
    [    0.252677] brcm-pcie fd500000.pcie: could not get clock
    [    0.252738] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
    [    0.252775] brcm-pcie fd500000.pcie:   MEM 0x600000000..0x603ffffff -> 0xf8000000
    [    0.311743] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
    [    0.312022] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
    [    0.312037] pci_bus 0000:00: root bus resource [bus 00-01]
    [    0.312055] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
    [    0.312097] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
    [    0.312235] pci 0000:00:00.0: PME# supported from D0 D3hot
    [    0.315033] PCI: bus0: Fast back to back transfers disabled
    [    0.315051] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.315217] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
    [    0.315276] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
    [    0.315444] pci 0000:01:00.0: PME# supported from D0 D3cold
    [    0.318145] PCI: bus1: Fast back to back transfers disabled
    [    0.318161] pci_bus 0000:01: busn_res: [bus 01] end is updated to 01
    [    0.318207] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
    [    0.318226] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
    [    0.318256] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    0.318273] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
    [    0.318478] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
    [    0.318649] pcieport 0000:00:00.0: Signaling PME with IRQ 57
    [    0.318803] pcieport 0000:00:00.0: AER enabled with IRQ 57
    [    0.318938] pci 0000:01:00.0: enabling device (0140 -> 0142)
    [    0.322292] iproc-rng200 fe104000.rng: hwrng registered
    [    0.322516] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
    [    0.323026] vc-sm: Videocore shared memory driver
    [    0.323430] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
    [    0.333371] brd: module loaded
    [    0.343011] loop: module loaded
    [    0.343754] Loading iSCSI transport class v2.0-870.
    [    0.345426] libphy: Fixed MDIO Bus: probed
    [    0.345852] bcmgenet fd580000.genet: failed to get enet clock
    [    0.345868] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
    [    0.345885] bcmgenet fd580000.genet: failed to get enet-wol clock
    [    0.345901] bcmgenet fd580000.genet: failed to get enet-eee clock
    [    0.345924] bcmgenet: Skipping UMAC reset
    [    0.346155] unimac-mdio unimac-mdio.-19: DMA mask not set
    [    0.361735] libphy: bcmgenet MII bus: probed
    [    0.402226] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval)
    [    0.403119] usbcore: registered new interface driver r8152
    [    0.403179] usbcore: registered new interface driver lan78xx
    [    0.403231] usbcore: registered new interface driver smsc95xx
    [    0.403428] xhci_hcd 0000:01:00.0: xHCI Host Controller
    [    0.403458] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
    [    0.405570] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
    [    0.405736] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 58
    [    0.406363] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [    0.406377] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.406389] usb usb1: Product: xHCI Host Controller
    [    0.406400] usb usb1: Manufacturer: Linux 4.19.66-v7l+ xhci-hcd
    [    0.406410] usb usb1: SerialNumber: 0000:01:00.0
    [    0.406924] hub 1-0:1.0: USB hub found
    [    0.406978] hub 1-0:1.0: 1 port detected
    [    0.407389] xhci_hcd 0000:01:00.0: xHCI Host Controller
    [    0.407410] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
    [    0.407429] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
    [    0.407763] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
    [    0.407776] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.407787] usb usb2: Product: xHCI Host Controller
    [    0.407798] usb usb2: Manufacturer: Linux 4.19.66-v7l+ xhci-hcd
    [    0.407808] usb usb2: SerialNumber: 0000:01:00.0
    [    0.408304] hub 2-0:1.0: USB hub found
    [    0.408355] hub 2-0:1.0: 4 ports detected
    [    0.409470] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [    0.435043] dwc_otg fe980000.usb: base=(ptrval)
    [    0.635344] Core Release: 2.80a
    [    0.635357] Setting default values for core params
    [    0.635385] Finished setting default values for core params
    [    0.835719] Using Buffer DMA mode
    [    0.835728] Periodic Transfer Interrupt Enhancement - disabled
    [    0.835737] Multiprocessor Interrupt Enhancement - disabled
    [    0.835747] OTG VER PARAM: 0, OTG VER FLAG: 0
    [    0.835806] Dedicated Tx FIFOs mode
    [    0.836400] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = ded34000 dma = 0x00000000ded34000 len=9024
    [    0.836423] FIQ FSM acceleration enabled for :
                   Non-periodic Split Transactions
                   Periodic Split Transactions
                   High-Speed Isochronous Endpoints
                   Interrupt/Control Split Transaction hack enabled
    [    0.836434] dwc_otg: Microframe scheduler enabled
    [    0.836497] WARN::hcd_init_fiq:457: FIQ on core 1
    [    0.836514] WARN::hcd_init_fiq:458: FIQ ASM at c07b5a8c length 36
    [    0.836531] WARN::hcd_init_fiq:497: MPHI regs_base at f0810200
    [    0.836566] dwc_otg fe980000.usb: DWC OTG Controller
    [    0.836595] dwc_otg fe980000.usb: new USB bus registered, assigned bus number 3
    [    0.836627] dwc_otg fe980000.usb: irq 39, io mem 0x00000000
    [    0.836678] Init: Port Power? op_state=1
    [    0.836687] Init: Power Port (0)
    [    0.836944] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [    0.836958] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.836970] usb usb3: Product: DWC OTG Controller
    [    0.836981] usb usb3: Manufacturer: Linux 4.19.66-v7l+ dwc_otg_hcd
    [    0.836991] usb usb3: SerialNumber: fe980000.usb
    [    0.837495] hub 3-0:1.0: USB hub found
    [    0.837549] hub 3-0:1.0: 1 port detected
    [    0.838125] dwc_otg: FIQ enabled
    [    0.838134] dwc_otg: NAK holdoff enabled
    [    0.838143] dwc_otg: FIQ split-transaction FSM enabled
    [    0.838157] Module dwc_common_port init
    [    0.838370] usbcore: registered new interface driver uas
    [    0.838491] usbcore: registered new interface driver usb-storage
    [    0.838655] mousedev: PS/2 mouse device common for all mice
    [    0.839860] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
    [    0.840047] bcm2835-cpufreq: min=600000 max=1500000
    [    0.840665] sdhci: Secure Digital Host Controller Interface driver
    [    0.840674] sdhci: Copyright(c) Pierre Ossman
    [    0.841061] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
    [    0.841442] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.844511] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.844654] hidraw: raw HID events driver (C) Jiri Kosina
    [    0.844780] usbcore: registered new interface driver usbhid
    [    0.844788] usbhid: USB HID core driver
    [    0.845547] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
    [    0.847119] [vc_sm_connected_init]: start
    [    0.855390] [vc_sm_connected_init]: end - returning 0
    [    0.856455] Initializing XFRM netlink socket
    [    0.856482] NET: Registered protocol family 17
    [    0.856578] Key type dns_resolver registered
    [    0.856997] Registering SWP/SWPB emulation handler
    [    0.857579] registered taskstats version 1
    [    0.857594] Loading compiled-in X.509 certificates
    [    0.865334] uart-pl011 fe201000.serial: cts_event_workaround enabled
    [    0.865401] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
    [    0.868316] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
    [    0.868787] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
    [    0.869405] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
    [    0.869417] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
    [    0.894882] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.1
    [    0.911058] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    0.912816] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.914422] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.917410] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    0.919019] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.928011] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
    [    0.930320] of_cfs_init
    [    0.930400] of_cfs_init: OK
    [    0.930989] Waiting for root device PARTUUID=6328b11b-02...
    [    0.975017] random: fast init done
    [    0.981814] usb 1-1: new high-speed USB device number 2 using xhci_hcd
    [    0.986669] mmc1: new high speed SDIO card at address 0001
    [    1.031880] mmc0: new ultra high speed DDR50 SDXC card at address 0001
    [    1.032981] mmcblk0: mmc0:0001 GD4QT 119 GiB
    [    1.034096]  mmcblk0: p1 p2
    [    1.044897] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.044908] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    1.163544] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
    [    1.163559] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.163595] usb 1-1: Product: USB2.0 Hub
    [    1.165174] hub 1-1:1.0: USB hub found
    [    1.165443] hub 1-1:1.0: 4 ports detected
    [    1.406853] EXT4-fs (mmcblk0p2): recovery complete
    [    1.423097] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.423146] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.423989] devtmpfs: mounted
    [    1.430295] Freeing unused kernel memory: 2048K
    [    1.430535] Run /sbin/init as init process
    [    1.854174] systemd[1]: System time before build time, advancing clock.
    [    1.944840] NET: Registered protocol family 10
    [    1.946053] Segment Routing with IPv6
    [    1.982860] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
    [    1.983520] systemd[1]: Detected architecture arm.
    [    1.994615] systemd[1]: Set hostname to <raspberrypi>.
    [    2.000483] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
    [    2.260797] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    2.260818] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    2.662374] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.671074] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.675291] systemd[1]: Created slice User and Session Slice.
    [    2.675538] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.675833] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    2.676616] systemd[1]: Listening on Journal Socket.
    [    2.677244] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
    [    2.769126] i2c /dev entries driver
    [    3.370995] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    3.485765] systemd-journald[117]: Received request to flush runtime journal from PID 1
    [    3.980347] fixed-supply: Failed to create debugfs directory
    [    4.029179] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.031272] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
    [    4.031287] [vc_sm_connected_init]: start
    [    4.031857] [vc_sm_connected_init]: installed successfully
    [    4.037318] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
    [    4.037871] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
    [    4.038546] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
    [    4.038782] media: Linux media interface: v0.10
    [    4.039028] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
    [    4.080290] videodev: Linux video capture interface: v2.00
    [    4.116824] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.118677] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.125990] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.140333] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.162021] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
    [    4.162035] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
    [    4.173672] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
    [    4.173685] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
    [    4.174127] spi-bcm2835 fe204000.spi: chipselect 0 already in use
    [    4.174143] spi_master spi0: spi_device register error /soc/spi@7e204000/spidev@0
    [    4.174161] spi_master spi0: Failed to create SPI device for /soc/spi@7e204000/spidev@0
    [    4.196833] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
    [    4.196846] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
    [    4.287833] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
    [    4.348408] bcm2835_audio soc:audio: card created with 8 channels
    [    4.371647] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    4.438280] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
    [    4.549757] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    4.617431] vc4-drm soc:gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
    [    4.617448] checking generic (3ea38000 1c2000) vs hw (0 ffffffffffffffff)
    [    4.617459] fb: switching to vc4drmfb from simple
    [    4.617686] Console: switching to colour dummy device 80x30
    [    4.622123] brcmfmac: F1 signature read @0x18000000=0x15264345
    [    4.624467] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 1
    [    4.624480] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    4.624489] [drm] No driver support for vblank timestamp query.
    [    4.624498] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
    [    4.626340] vc4-drm soc:gpu: HDMI-A-1: EDID is invalid:
    [    4.626357] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626367] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626376] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626385] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626394] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626403] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626412] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.626421] 	[00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [    4.635833] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
    [    4.636474] usbcore: registered new interface driver brcmfmac
    [    4.756380] Console: switching to colour frame buffer device 160x45
    [    4.781486] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
    [    4.865759] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
    [    4.879000] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
    [    6.795353] uart-pl011 fe201000.serial: no DMA platform data
    [    6.958293] random: crng init done
    [    6.958309] random: 7 urandom warning(s) missed due to ratelimiting
    [    6.966943] 8021q: 802.1Q VLAN Support v1.8
    [    7.336950] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
    [    7.349009] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [    7.349017] brcmfmac: power management disabled
    [    7.687614] bcmgenet: Skipping UMAC reset
    [    7.781996] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
    [    7.782138] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    8.791821] bcmgenet fd580000.genet eth0: Link is Down
    [    8.819158] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
    [   12.055540] fuse init (API version 7.27)
    [   12.978759] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [   13.642795] Bluetooth: Core ver 2.22
    [   13.642847] NET: Registered protocol family 31
    [   13.642851] Bluetooth: HCI device and connection manager initialized
    [   13.642862] Bluetooth: HCI socket layer initialized
    [   13.642868] Bluetooth: L2CAP socket layer initialized
    [   13.642888] Bluetooth: SCO socket layer initialized
    [   13.651627] Bluetooth: HCI UART driver ver 2.3
    [   13.651638] Bluetooth: HCI UART protocol H4 registered
    [   13.651790] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [   13.651988] Bluetooth: HCI UART protocol Broadcom registered
    [   13.915774] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [   13.915781] Bluetooth: BNEP filters: protocol multicast
    [   13.915794] Bluetooth: BNEP socket layer initialized
    [   13.952538] Bluetooth: RFCOMM TTY layer initialized
    [   13.952555] Bluetooth: RFCOMM socket layer initialized
    [   13.952597] Bluetooth: RFCOMM ver 1.11
    [  482.906656] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
    

    Currently I changed the config.txt as you recommended on SD card, I also add "rpi-ad5370" to kernel 7 and kernel 7l by compiling makefile. It seems it is still not working.

    Best,

    Sam Feng