Porting realtek ALC5640(rt5640) codec to Nano

Hi, nvidia.
I’m trying to porting realtek’s ALC5640/RT5640 codec to Nano, with I2S and I2C interface.

I've found that there is driver for ALC5640 codec, and the driver's path in the kernel is as follows:
kernel-4.9/sound/soc/codecs/rt5640.c

I followed the steps listed in chapter"Audio Setup and Development, 40-pin GPIO Expansion Header", in this document:
https://docs.nvidia.com/jetson/l4t/index.html

But unfortunately, I found that the function "snd_soc_register_card()" failed in the following file:
"kernel_src\kernel\nvidia\sound\soc\tegra-alt\machine_drivers\tegra_machine_driver_mobile.c"

So, when I executed the command "aplay -l" in the Nano, the result is as follows:

xxxxxxxxxx@jetson-nano:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

I can't find the card "tegrasndt210ref" in the list.

I added some debug info in the file “tegra_machine_driver_mobile.c” with the help of “printk”, and I found that the function “snd_soc_find_dai()” in file “soc-core.c” failed for my dai_link.

static int soc_bind_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link)
{

rtd->cpu_dai = snd_soc_find_dai(&cpu_dai_component);
if (!rtd->cpu_dai) {
dev_err(card->dev, “ASoC: CPU DAI %s not registered\n”, dai_link->cpu_dai_name);
goto _err_defer;
}

}

The function “snd_soc_find_dai()” returned NULL, so error occured.

I modified the device tree file “tegra210-porg-p3448-common.dtsi”, and added some node in this file as follows:

/* codec rt5640 */
i2c@7000c400 {
clock-frequency = <400000>;
status = “okay”;

    rt5640_codec: rt5640_codec@1c {
            compatible = "realtek,rt5640";
            reg = <0x1c>;
            status = "okay";
    };  
};  

i2s@702d1000 {
    status = "okay";
};  

sound_card: sound {
	status = "okay";
	compatible = "nvidia,tegra-audio-t210ref-mobile-rt565x";
	nvidia,model = "tegra-snd-t210ref-mobile-rt565x";

	clocks = <&tegra_car TEGRA210_CLK_PLL_P_OUT1>,
		<&tegra_car TEGRA210_CLK_PLL_A>,
		<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
		<&tegra_car TEGRA210_CLK_D_AUDIO>,
		<&tegra_car TEGRA210_CLK_CLK_M>,
		<&tegra_car TEGRA210_CLK_EXTERN1>;
	clock-names = "pll_p_out1", "pll_a", "pll_a_out0", "ahub",
		"clk_m", "extern1";

	assigned-clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
		<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
		<&tegra_car TEGRA210_CLK_D_AUDIO>,
		<&tegra_car TEGRA210_CLK_EXTERN1>;
	assigned-clock-rates = <368640000>, <36864000>,
		<36864000>, <12288000>;
	nvidia,num-codec-link = <4>;

	nvidia,audio-routing =
		"x Headphone",	"x OUT",
		"x IN",		"x Mic",
		"y Headphone",	"y OUT",
		"y IN",		"y Mic",
		"a IN",		"a Mic",
		"b IN",		"b Mic";

	nvidia,xbar = <&tegra_axbar>;
    
	i2s_dai_link1: nvidia,dai-link-1 {
		link-name = "rt5640-codec";
		cpu-dai = <&tegra_i2s1>;
		codec-dai = <&rt5640_codec>;
		cpu-dai-name = "I2S1";
		codec-dai-name = "rt5640_codec";
		format = "i2s";
		bitclock-slave;
		frame-slave;
		bitclock-noninversion;
		frame-noninversion;
		bit-format = "s16_le";
		bclk_ratio = <1>;
		srate = <48000>;
		num-channel = <2>;
		ignore_suspend;
		name-prefix = "x";
		status = "okay";
	};
	nvidia,dai-link-2 {
		link-name = "spdif-dit-1";
		cpu-dai = <&tegra_i2s3>;
		codec-dai = <&spdif_dit1>;
		cpu-dai-name = "I2S3";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bitclock-slave;
		frame-slave;
		bitclock-noninversion;
		frame-noninversion;
		bit-format = "s16_le";
		bclk_ratio = <1>;
		srate = <48000>;
		num-channel = <2>;
		ignore_suspend;
		name-prefix = "y";
		status = "okay";
	};
	nvidia,dai-link-3 {
		link-name = "spdif-dit-2";
		cpu-dai = <&tegra_dmic1>;
		codec-dai = <&spdif_dit2>;
		cpu-dai-name = "DMIC1";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bit-format = "s16_le";
		srate = <48000>;
		ignore_suspend;
		num-channel = <2>;
		name-prefix = "a";
		status = "okay";
	};
	nvidia,dai-link-4 {
		link-name = "spdif-dit-3";
		cpu-dai = <&tegra_dmic2>;
		codec-dai = <&spdif_dit3>;
		cpu-dai-name = "DMIC2";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bit-format = "s16_le";
		srate = <48000>;
		ignore_suspend;
		num-channel = <2>;
		name-prefix = "b";
		status = "okay";
	};
};

This dai-link is my custom dai-link, and this dai-link caused the error.

Hello!

Can you send the complete output from ‘dmesg’ and also the output from the following command …

$ sudo cat /sys/kernel/debug/asoc/codecs

Thanks
Jon

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.140 (wujz@wujz-thinkpad-t450s) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ) #45 SMP PREEMPT Thu Apr 30 18:11:56 HKT 2020
[ 0.000000] Boot CPU: AArch64 Processor [411fd071]
[ 0.000000] OF: fdt:memory scan node memory@80000000, reg size 48,
[ 0.000000] OF: fdt: - 80000000 , 7ee00000
[ 0.000000] OF: fdt: - 100000000 , 7f200000
[ 0.000000] Found tegra_fbmem: 00140000@92cb0000
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb0_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb0_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb1_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb1_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vpr-carveout, compatible id nvidia,vpr-carveout
[ 0.000000] OF: reserved mem: initialized node iram-carveout, compatible id nvidia,iram-carveout
[ 0.000000] OF: reserved mem: initialized node ramoops_carveout, compatible id nvidia,ramoops
[ 0.000000] cma: Reserved 64 MiB at 0x00000000fac00000
[ 0.000000] On node 0 totalpages: 1039872
[ 0.000000] DMA zone: 8192 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 519168 pages, LIFO batch:31
[ 0.000000] Normal zone: 8136 pages used for memmap
[ 0.000000] Normal zone: 520704 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 25 pages/cpu @ffffffc0fefb1000 s61592 r8192 d32616 u102400
[ 0.000000] pcpu-alloc: s61592 r8192 d32616 u102400 alloc=25*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] CPU features: enabling workaround for ARM erratum 832075
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1023544
[ 0.000000] Kernel command line: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,2 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 tegra_fbmem=0x140000@0x92cb0000 is_hdmi_initialised=1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 quiet
[ 0.000000] log_buf_len individual max cpu contribution: 32768 bytes
[ 0.000000] log_buf_len total cpu_extra contributions: 98304 bytes
[ 0.000000] log_buf_len min size: 32768 bytes
[ 0.000000] log_buf_len: 131072 bytes
[ 0.000000] early log buf free: 29400(89%)
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Memory: 3568680K/4159488K available (15294K kernel code, 2934K rwdata, 6952K rodata, 8640K init, 609K bss, 115672K reserved, 475136K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008f70000 ( 15296 KB)
[ 0.000000] .rodata : 0xffffff8008f70000 - 0xffffff8009640000 ( 6976 KB)
[ 0.000000] .init : 0xffffff8009640000 - 0xffffff8009eb0000 ( 8640 KB)
[ 0.000000] .data : 0xffffff8009eb0000 - 0xffffff800a18d808 ( 2935 KB)
[ 0.000000] .bss : 0xffffff800a18d808 - 0xffffff800a225e3c ( 610 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf03fc8000 ( 63 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc0ff200000 ( 4082 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] /interrupt-controller@60004000: 192 interrupts forwarded to /interrupt-controller
[ 0.000000] t210 clock and reset probe
[ 0.000000] tegra-pmc: get_secure_pmc_setting: done secure_pmc=1
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.001778] Console: colour dummy device 80x25
[ 0.001796] console [tty0] enabled
[ 0.001814] kmemleak: Kernel memory leak detector disabled
[ 0.001831] Calibrating delay loop (skipped), value calculated using timer frequency… 38.40 BogoMIPS (lpj=76800)
[ 0.001843] pid_max: default: 32768 minimum: 301
[ 0.002295] Security Framework initialized
[ 0.002518] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.002527] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.003637] ftrace: allocating 47225 entries in 185 pages
[ 0.174999] sched-energy: CPU device node has no sched-energy-costs
[ 0.175031] ASID allocator initialised with 65536 entries
[ 0.211834] tegra-id: chipid=22117.
[ 0.211847] tegra-id: opt_subrevision=0.
[ 0.211864] Tegra Speedo/IDDQ fuse revision 4
[ 0.211870] Tegra: CPU Speedo ID 9, SoC Speedo ID 0, GPU Speedo ID 2
[ 0.211874] Tegra: CPU Process ID 0, SoC Process ID 0, GPU Process ID 0
[ 0.211879] Tegra: CPU Speedo Value 2045, SoC Speedo Value 1949, GPU Speedo Value 2052
[ 0.211883] Tegra: CPU IDDQ Value 1708, SoC IDDQ Value 1832, GPU IDDQ Value 2245
[ 0.211901] Tegra Revision: A02 SKU: 0x8f CPU Process: 0 SoC Process: 0
[ 0.211916] DTS File Name: arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0002-p3449-0000-b00.dts
[ 0.211922] DTB Build time: Apr 30 2020 15:30:39
[ 0.261068] CPU1: Booted secondary processor [411fd071]
[ 0.292954] CPU2: Booted secondary processor [411fd071]
[ 0.324930] CPU3: Booted secondary processor [411fd071]
[ 0.325017] Brought up 4 CPUs
[ 0.325023] SMP: Total of 4 processors activated.
[ 0.325031] CPU features: detected feature: 32-bit EL0 Support
[ 0.325288] CPU: All CPU(s) started at EL2
[ 0.325307] alternatives: patching kernel code
[ 0.333416] devtmpfs: initialized
[ 0.370933] Initilizing CustomIPI irq domain
[ 0.371315] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.371335] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.381951] pinctrl core: initialized pinctrl subsystem
[ 0.382604] OS set in device tree is not L4T.
[ 0.383061] regulator-dummy: no parameters
[ 0.383364] Initializing plugin-manager
[ 0.383481] Plugin module not found
[ 0.383712] node /plugin-manager/fragement@0 match with board >=3448-0002-100
[ 0.384256] node /plugin-manager/fragment@1 match with board >=3448-0002-101
[ 0.384777] node /plugin-manager/fragment@3 match with board >=3448-0002-100
[ 0.385534] node /plugin-manager/fragement@6 match with odm-data enable-tegra-wdt
[ 0.385992] node /plugin-manager/fragement@8 match with odm-data enable-tegra-wdt
[ 0.386630] node /plugin-manager/fragement@10 match with board >=3448-0002-300
[ 0.391993] NET: Registered protocol family 16
[ 0.393610] pstore: using zlib compression
[ 0.393653] console [pstore-1] enabled
[ 0.393659] pstore: Registered ramoops as persistent store backend
[ 0.393665] ramoops: attached 0x200000@0xb0000000, ecc: 0/0
[ 0.409087] cpuidle: using governor menu
[ 0.413422] tegra_smmu 70019000.iommu: Loaded Tegra IOMMU driver
[ 0.415038] vdso: 2 pages (1 code @ ffffff8008f77000, 1 data @ ffffff8009eb4000)
[ 0.415060] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.417570] atomic_pool_init():622: DMA: preallocated 1024 KiB pool for atomic allocations
[ 0.420159] tegra_powergate_init: DONE
[ 0.420175] DTS File Name: arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0002-p3449-0000-b00.dts
[ 0.420182] DTB Build time: Apr 30 2020 15:30:39
[ 0.422031] Tegra reboot handler registered.
[ 0.426486] iommu: Adding device tegra-carveouts to group 0
[ 0.426622] platform tegra-carveouts: domain=ffffffc0f9bc33d8 allocates as[0]=ffffffc0f94380a8
[ 0.426973] iommu: Adding device smmu_test to group 1
[ 0.427023] platform smmu_test: domain=ffffffc0f9bc3618 allocates as[0]=ffffffc0f9438110
[ 0.427818] mc: mapped MMIO address: 0xffffff800802e000 → 0x70019000
[ 0.427875] mc: mapped MMIO address: 0xffffff8008065000 → 0x7001c000
[ 0.427927] mc: mapped MMIO address: 0xffffff8008079000 → 0x7001d000
[ 0.427934] nv-tegra-mc 70019000.mc: No mssnvlink node
[ 0.427954] mc-err: mcerr ops are set to t21x
[ 0.437405] iommu: Adding device 70090000.xusb to group 2
[ 0.437683] iommu: Adding device 70006000.serial to group 3
[ 0.437764] platform 70006000.serial: domain=ffffffc0f94b4618 allocates as[0]=ffffffc0f9438178
[ 0.438188] iommu: Adding device 70006040.serial to group 4
[ 0.438459] iommu: Adding device 70006200.serial to group 5
[ 0.438683] iommu: Adding device sound to group 6
[ 0.438734] platform sound: domain=ffffffc0f94b4b58 allocates as[0]=ffffffc0f94381e0
[ 0.439288] iommu: Adding device 7000d400.spi to group 7
[ 0.439544] iommu: Adding device 7000d600.spi to group 8
[ 0.439880] iommu: Adding device 50000000.host1x to group 9
[ 0.440152] iommu: Adding device 54080000.vi to group 10
[ 0.440538] iommu: Adding device 54600000.isp to group 11
[ 0.440792] iommu: Adding device 54680000.isp to group 12
[ 0.441201] iommu: Adding device tegradc.0 to group 13
[ 0.441278] platform tegradc.0: domain=ffffffc0f94c2918 allocates as[0]=ffffffc0f9438248
[ 0.442659] platform tegradc.0: IOVA linear map 0x0000000092cb0000(140000)
[ 0.443048] platform tegradc.0: IOVA linear map 0x00000000d7000000(19000000)
[ 0.443383] iommu: Adding device tegradc.1 to group 14
[ 0.443432] platform tegradc.1: domain=ffffffc0f94c2b58 allocates as[0]=ffffffc0f94382b0
[ 0.444801] platform tegradc.1: IOVA linear map 0x0000000092cb0000(140000)
[ 0.445223] platform tegradc.1: IOVA linear map 0x00000000d7000000(19000000)
[ 0.445465] iommu: Adding device 54340000.vic to group 15
[ 0.445669] iommu: Adding device 544c0000.nvenc to group 16
[ 0.445863] iommu: Adding device 54500000.tsec to group 17
[ 0.446054] iommu: Adding device 54100000.tsecb to group 18
[ 0.446251] iommu: Adding device 54480000.nvdec to group 19
[ 0.446438] iommu: Adding device 54380000.nvjpg to group 20
[ 0.447508] iommu: Adding device 546c0000.i2c to group 21
[ 0.447839] iommu: Adding device 57000000.gpu to group 22
[ 0.447890] platform 57000000.gpu: domain=ffffffc0f94ceb58 allocates as[0]=ffffffc0f9438318
[ 0.447928] platform 57000000.gpu: domain=ffffffc0f94ceb58 allocates as[1]=ffffffc0f9438380
[ 0.447969] platform 57000000.gpu: domain=ffffffc0f94ceb58 allocates as[2]=ffffffc0f94383e8
[ 0.448009] platform 57000000.gpu: domain=ffffffc0f94ceb58 allocates as[3]=ffffffc0f9438450
[ 0.448893] tegra-pmc 7000e400.pmc: i2c-thermtrip node not found, emergency thermal reset disabled.
[ 0.448903] tegra-pmc 7000e400.pmc: scratch reg offset dts data not present
[ 0.448916] tegra-pmc: ### PMC reset source: TEGRA_SOFTWARE_RESET
[ 0.448920] tegra-pmc: ### PMC reset level: TEGRA_RESET_LEVEL_WARM
[ 0.448925] tegra-pmc: ### PMC reset status reg: 0x3
[ 0.501120] padctrl padctrl.0: Pad control driver tegra-pmc-padctrl registered
[ 0.501127] tegra-pmc: Clear bootloader IO dpd settings
[ 0.501146] tegra-pmc 7000e400.pmc: IO padctrl driver initialized
[ 0.501208] tegra-pmc 7000e400.pmc: PMC: Successfully configure bootrom reset commands
[ 0.501514] iommu: Adding device 70012000.se to group 23
[ 0.502274] iommu: Adding device 7000c000.i2c to group 24
[ 0.502531] iommu: Adding device 7000c400.i2c to group 25
[ 0.502772] iommu: Adding device 7000c500.i2c to group 26
[ 0.503022] iommu: Adding device 7000c700.i2c to group 27
[ 0.503263] iommu: Adding device 7000d000.i2c to group 28
[ 0.503540] iommu: Adding device 7000d100.i2c to group 29
[ 0.503805] iommu: Adding device sdhci-tegra.3 to group 30
[ 0.503860] platform sdhci-tegra.3: domain=ffffffc0f955ecd8 allocates as[0]=ffffffc0f94384b8
[ 0.504277] iommu: Adding device sdhci-tegra.2 to group 31
[ 0.504325] platform sdhci-tegra.2: domain=ffffffc0f955ef18 allocates as[0]=ffffffc0f9438520
[ 0.505181] iommu: Adding device 700d0000.xudc to group 32
[ 0.508530] vdd-ac-bat: 5000 mV
[ 0.508882] vdd-5v0-sys: 5000 mV
[ 0.509881] vdd-5v0-hdmi: supplied by vdd-5v0-sys
[ 0.509921] vdd-5v0-hdmi: 5000 mV
[ 0.510299] vdd-1v8-sys: 1800 mV
[ 0.510679] vdd-fan: supplied by vdd-5v0-sys
[ 0.510713] vdd-fan: 5000 mV
[ 0.511124] vdd-usb-vbus: supplied by vdd-5v0-sys
[ 0.511156] vdd-usb-vbus: 5000 mV
[ 0.511667] vdd-usb-vbus2: 5000 mV
[ 0.545815] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.548209] gpio gpiochip0: gpio-line-names specifies 240 line names but there are 256 lines on the chip
[ 0.549389] GPIO line 151 (camera-control-output-low) hogged as output/low
[ 0.549406] GPIO line 152 (camera-control-output-low) hogged as output/low
[ 0.549435] GPIO line 6 (system-suspend-gpio) hogged as output/high
[ 0.549783] gpiochip_setup_dev: registered GPIOs 0 to 255 on device: gpiochip0 (tegra-gpio)
[ 0.557670] eventlib_kernel: keventlib is initialized, test id: 0
[ 0.558005] SCSI subsystem initialized
[ 0.558226] libata version 3.00 loaded.
[ 0.558561] usbcore: registered new interface driver usbfs
[ 0.558615] usbcore: registered new interface driver hub
[ 0.558680] usbcore: registered new device driver usb
[ 0.562512] max77620 4-003c: PMIC Version OTP:0x35 and ES:0x8
[ 0.568316] vdd-core: 600 <–> 1162 mV at 1125 mV
[ 0.569075] random: fast init done
[ 0.569180] vdd-ddr-1v1: Bringing 1125000uV into 1150000-1150000uV
[ 0.572242] vdd-ddr-1v1: 1150 mV
[ 0.576238] vdd-pre-reg-1v35: 1350 mV
[ 0.580239] vdd-1v8: 1800 mV
[ 0.584232] avdd-sys-1v2: 1200 mV
[ 0.588235] vdd-pex-1v0: 1050 mV
[ 0.588790] vddio-sdmmc-ap: 1800 <–> 3300 mV at 3300 mV
[ 0.589272] max77620-ldo3: at 3100 mV
[ 0.592238] vdd-rtc: 850 <–> 1100 mV at 1000 mV
[ 0.592729] max77620-ldo5: at 3100 mV
[ 0.596237] vddio-sdmmc3-ap: 1800 <–> 3300 mV at 3300 mV
[ 0.600232] avdd-1v05-pll: 1050 mV
[ 0.604235] avdd-io-hdmi-dp: 1050 mV
[ 0.605302] GPIO line 505 (spmic-default-output-high) hogged as output/high
[ 0.605579] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip1 (max77620-gpio)
[ 0.606918] max77620 4-003c: max77620 probe successful
[ 0.609578] media: Linux media interface: v0.10
[ 0.609633] Linux video capture interface: v2.00
[ 0.610612] pps_core: LinuxPPS API ver. 1 registered
[ 0.610618] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.610643] PTP clock support registered
[ 0.614215] tegra_fiq_debugger_init: found FIQ source (IRQ 98)
[ 0.620540] tegra210-emc 7001b000.external-memory-controller: validated EMC DFS table
[ 0.621433] Advanced Linux Sound Architecture Driver Initialized.
[ 0.622094] Bluetooth: Core ver 2.22
[ 0.622144] NET: Registered protocol family 31
[ 0.622147] Bluetooth: HCI device and connection manager initialized
[ 0.622163] Bluetooth: HCI socket layer initialized
[ 0.622171] Bluetooth: L2CAP socket layer initialized
[ 0.622195] Bluetooth: SCO socket layer initialized
[ 0.623913] tegra210_dvfs: no clock found for sdmmc2_ddr
[ 0.623930] tegra210_dvfs: no clock found for sdmmc4_ddr
[ 0.623978] tegra210_dvfs: no clock found for sdmmc1_ddr
[ 0.623992] tegra210_dvfs: no clock found for sdmmc3_ddr
[ 0.627246] tegra_dvfs: Unable to get vdd-cpu rail for step info, defering probe
[ 0.628384] vdd-3v3-sys: supplied by vdd-5v0-sys
[ 0.628447] vdd-3v3-sys: 3300 mV
[ 0.628704] vdd-1v8-sys: supplied by vdd-3v3-sys
[ 0.632310] vdd-usb-vbus2: supplied by vdd-3v3-sys
[ 0.632777] vdd-3v3-sd: supplied by vdd-3v3-sys
[ 0.632815] vdd-3v3-sd: 3300 mV
[ 0.633613] avdd-io-edp-1v05: supplied by avdd-1v05-pll
[ 0.633656] avdd-io-edp-1v05: 1050 mV
[ 0.634115] vdd-usb-hub-en: supplied by vdd-1v8-sys
[ 0.634153] vdd-usb-hub-en: 5000 mV
[ 0.635450] camchar: rtcpu character device driver loaded
[ 0.636279] extcon-gpio-states extcon:extcon@1: Cable state:0, cable id:0
[ 0.637641] clocksource: Switched to clocksource arch_sys_counter
[ 0.676929] VFS: Disk quotas dquot_6.6.0
[ 0.677055] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.677552] nvmap_heap_init: nvmap_heap_init: created heap block cache
[ 0.677991] dma_declare_coherent_resizable_cma_memory:324: resizable heap=vpr, base=0x00000000d7000000, size=0x19000000
[ 0.678009] dma-vpr: heap size is not multiple of cma_chunk_size heap_info->num_chunks (13) rem_chunk_size(0x1000000)
[ 0.678203] cma: enabled page replacement for spfn=d7000, epfn=f0000
[ 0.678209] dma_declare_coherent_resizable_cma_memory:373: resizable cma heap=vpr create successful
[ 0.678220] tegra-carveouts tegra-carveouts: assigned reserved memory node vpr-carveout
[ 0.678247] tegra-carveouts tegra-carveouts: iram :dma coherent mem declare 0x0000000040001000,258048
[ 0.678253] tegra-carveouts tegra-carveouts: assigned reserved memory node iram-carveout
[ 0.678266] nvmap: nvmap_select_cache_ops() nvmap cache ops set to set/ways
[ 0.678274] nvmap_page_pool_init: Total RAM pages: 1010954
[ 0.678279] nvmap_page_pool_init: nvmap page pool size: 126369 pages (493 MB)
[ 0.678364] nvmap_background_zero_thread: PP zeroing thread starting.
[ 0.678860] misc nvmap: created heap iram base 0x0000000040001000 size (252KiB)
[ 0.679830] misc nvmap: created heap vpr base 0x00000000d7000000 size (409600KiB)
[ 0.688105] thermal thermal_zone0: Registering thermal zone thermal_zone0 for type AO-therm
[ 0.688518] thermal thermal_zone1: Registering thermal zone thermal_zone1 for type CPU-therm
[ 0.688764] thermal thermal_zone2: Registering thermal zone thermal_zone2 for type GPU-therm
[ 0.688974] thermal thermal_zone3: Registering thermal zone thermal_zone3 for type PLL-therm
[ 0.689152] thermal thermal_zone4: Registering thermal zone thermal_zone4 for type PMIC-Die
[ 0.689408] pre_t19x_iso_plat_init(): iso emc max clk=1600000KHz
[ 0.689413] pre_t19x_iso_plat_init(): max_iso_bw=33280000KB
[ 0.689885] NET: Registered protocol family 2
[ 0.690856] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.691066] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.691563] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.691709] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.691789] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.692194] NET: Registered protocol family 1
[ 0.692989] RPC: Registered named UNIX socket transport module.
[ 0.692994] RPC: Registered udp transport module.
[ 0.692998] RPC: Registered tcp transport module.
[ 0.693002] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.693015] PCI: CLS 0 bytes, default 64
[ 0.693252] Trying to unpack rootfs image as initramfs…
[ 0.938461] Freeing initrd memory: 5356K
[ 0.948229] host1x 50000000.host1x: initialized
[ 0.950178] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.953426] audit: initializing netlink subsys (disabled)
[ 0.953516] audit: type=2000 audit(0.799:1): initialized
[ 0.954335] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 0.964241] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.965786] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.966584] 9p: Installing v9fs 9p2000 file system support
[ 0.969834] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[ 0.969981] io scheduler noop registered
[ 0.970269] io scheduler cfq registered (default)
[ 0.972869] gic 702f9000.agic: GIC IRQ controller registered
[ 0.975681] iommu: Adding device 702ef000.adsp to group 33
[ 0.981932] iommu: Adding device aconnect@702c0000:adsp_audio to group 34
[ 0.982066] tegra-aconnect aconnect@702c0000: Tegra ACONNECT bus registered
[ 0.982659] tegra-xusb-padctl 7009f000.xusb_padctl: TEGRA_FUSE_SKU_CALIB_0 = 0x7a29c0f
[ 0.982667] tegra-xusb-padctl 7009f000.xusb_padctl: TEGRA_FUSE_USB_CALIB_EXT_0 = 0x4
[ 0.984277] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.0, lane = usb2-0, function = xusb
[ 0.984380] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.1, lane = usb2-1, function = xusb
[ 0.984470] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.2, lane = usb2-2, function = xusb
[ 0.984654] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.3, lane = pcie-0, function = pcie-x1
[ 0.984747] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.4, lane = pcie-1, function = pcie-x4
[ 0.984842] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.5, lane = pcie-2, function = pcie-x4
[ 0.984932] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.6, lane = pcie-3, function = pcie-x4
[ 0.985024] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.7, lane = pcie-4, function = pcie-x4
[ 0.985107] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.8, lane = pcie-5, function = xusb
[ 0.985195] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.9, lane = pcie-6, function = xusb
[ 0.991079] tegra-pwm 7000a000.pwm: PWM clk cannot sleep in ops
[ 0.992800] tegra-dfll-pwm 70110000.pwm: DFLL pwm-rate: 12800000
[ 0.994778] tegra-pcie 1003000.pcie: 4x1, 1x1 configuration
[ 0.996079] tegra-pcie 1003000.pcie: PCIE: Enable power rails
[ 0.996428] tegra-pcie 1003000.pcie: probing port 0, using 4 lanes
[ 0.997787] tegra-pcie 1003000.pcie: probing port 1, using 1 lanes
[ 0.997858] tegra_camera_platform tegra-camera-platform: tegra_camera_probe:camera_platform_driver probe
[ 0.998100] misc tegra_camera_ctrl: tegra_camera_isomgr_register isp_iso_bw=1500000, vi_iso_bw=1500000, max_bw=1500000
[ 0.998342] Adding domain tsec-pd to PM domain host1x-pd
[ 1.001696] tsec 54500000.tsec: initialized
[ 1.003050] tsec 54100000.tsecb: initialized
[ 1.003738] Adding domain nvdec-pd to PM domain host1x-pd
[ 1.007158] nvdec 54480000.nvdec: initialized
[ 1.008190] Adding domain vic03-pd to PM domain host1x-pd
[ 1.008375] Adding domain msenc-pd to PM domain host1x-pd
[ 1.008534] Adding domain nvjpg-pd to PM domain host1x-pd
[ 1.012651] falcon 54340000.vic: initialized
[ 1.013955] falcon 544c0000.nvenc: initialized
[ 1.015262] falcon 54380000.nvjpg: initialized
[ 1.019850] tegradc tegradc.0: disp0 connected to head0->/host1x/sor1
[ 1.019970] display board info: id 0x0, fab 0x0
[ 1.020030] generic_infoframe_type: 0x87
[ 1.020164] tegradc tegradc.0: DT parsed successfully
[ 1.020212] tegradc tegradc.0: Display dc.ffffff800abc0000 registered with id=0
[ 1.020811] tegradc tegradc.0: Bootloader disp_param detected. Detected mode: 640x480 (on 0x0mm) pclk=25173906
[ 1.023913] tegradc tegradc.0: probed
[ 1.028122] tegra-apbdma 60020000.dma: Tegra20 APB DMA driver register 32 channels
[ 1.032416] tegra-adma 702e2000.adma: Tegra210 ADMA driver registered 10 channels
[ 1.033251] tegra-fuse-burn 7000f800.efuse:efuse-burn: Fuse burn driver initialized
[ 1.033583] kfuse 7000fc00.kfuse: initialized
[ 1.035093] tegra-pmc-iopower pmc-iopower: Regulator supply iopower-dbg-supply not available
[ 1.036083] tegra-pmc-iopower pmc-iopower: NO_IOPOWER setting 0x0
[ 1.037468] tegra-dfll-pwm 70110000.pwm: DFLL_PWM regulator is available now
[ 1.037485] vdd-cpu: 708 <–> 1322 mV at 708 mV
[ 1.038032] pwm-regulator pwm_regulators:pwm-regulator@0: PWM regulator registration passed
[ 1.039273] vdd-gpu: applied init 1000000uV constraint
[ 1.039281] vdd-gpu: 708 <–> 1323 mV at 997 mV
[ 1.039717] pwm-regulator pwm_regulators:pwm-regulator@1: PWM regulator registration passed
[ 1.044242] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.044387] No Device Node present for smmu client: serial8250 !!
[ 1.044403] platform serial8250: No iommus property found in DT node, got swgids from fixup(101004000)
[ 1.044457] iommu: Adding device serial8250 to group 35
[ 1.046894] console [ttyS0] disabled
[ 1.046969] 70006000.serial: ttyS0 at MMIO 0x70006000 (irq = 63, base_baud = 25500000) is a Tegra
[ 1.047061] console [ttyS0] enabled
[ 1.047993] 70006040.serial: ttyTHS1 at MMIO 0x70006040 (irq = 64, base_baud = 0) is a TEGRA_UART
[ 1.048366] 70006200.serial: ttyTHS2 at MMIO 0x70006200 (irq = 65, base_baud = 0) is a TEGRA_UART
[ 1.049482] [drm] Initialized
[ 1.050185] Console: switching to colour frame buffer device 80x30
[ 1.050225] tegradc tegradc.0: fb registered
[ 1.059972] tegradc tegradc.0: DC initialized, skipping tegra_dc_program_mode.
[ 1.060026] tegradc tegradc.0: hdmi: tmds rate:25174K prod-setting:prod_c_hdmi_0m_54m
[ 1.060307] brd: module loaded
[ 1.060566] tegradc tegradc.0: hdmi: get RGB quant from REG programmed by BL.
[ 1.060580] tegradc tegradc.0: hdmi: BL set VIC 0
[ 1.060587] tegradc tegradc.0: hdmi: get YCC quant from REG programmed by BL.
[ 1.066688] loop: module loaded
[ 1.066799] tegra_profiler: version: 1.134, samples/io: 47/26
[ 1.066909] tegra_profiler: auth: init
[ 1.068319] THERMAL EST: found 2 subdevs
[ 1.068326] THERMAL EST num_resources: 0
[ 1.068332] [THERMAL EST subdev 0]
[ 1.068339] [THERMAL EST subdev 1]
[ 1.068800] thermal thermal_zone5: Registering thermal zone thermal_zone5 for type thermal-fan-est
[ 1.068804] THERMAL EST: thz register success.
[ 1.068950] THERMAL EST: end of probe, return err: 0
[ 1.070633] hisi_sas: driver version v1.6
[ 1.073810] extcon-disp-state extcon:disp-state: cable 47 state 1
[ 1.073819] Extcon AUX1(HDMI) enable
[ 1.074858] tegradc tegradc.1: disp1 connected to head1->/host1x/sor
[ 1.074966] tegradc tegradc.1: No lt-data, using default setting
[ 1.075008] tegradc tegradc.1: No hpd-gpio in DT
[ 1.075069] tegradc tegradc.1: DT parsed successfully
[ 1.075129] tegradc tegradc.1: Display dc.ffffff800d540000 registered with id=1
[ 1.076538] tegradc tegradc.1: dpd enable lookup fail:-19
[ 1.077406] libphy: Fixed MDIO Bus: probed
[ 1.078175] tun: Universal TUN/TAP device driver, 1.6
[ 1.078178] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 1.082579] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.082583] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.082639] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.082642] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.082697] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.082699] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.082748] Intel(R) 10GbE PCI Express Linux Network Driver - version 4.6.4
[ 1.082752] Copyright(c) 1999 - 2017 Intel Corporation.
[ 1.083811] PPP generic driver version 2.4.2
[ 1.084017] PPP BSD Compression module registered
[ 1.084023] PPP Deflate Compression module registered
[ 1.084065] PPP MPPE Compression module registered
[ 1.084072] NET: Registered protocol family 24
[ 1.084147] usbcore: registered new interface driver r8152
[ 1.084193] usbcore: registered new interface driver asix
[ 1.084236] usbcore: registered new interface driver ax88179_178a
[ 1.084281] usbcore: registered new interface driver cdc_ether
[ 1.084310] usbcore: registered new interface driver net1080
[ 1.084340] usbcore: registered new interface driver cdc_subset
[ 1.084369] usbcore: registered new interface driver zaurus
[ 1.084407] usbcore: registered new interface driver simcom_wwan
[ 1.084456] usbcore: registered new interface driver cdc_ncm
[ 1.084630] VFIO - User Level meta-driver version: 0.3
[ 1.086150] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.086172] ehci-pci: EHCI PCI platform driver
[ 1.086217] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.086228] ohci-pci: OHCI PCI platform driver
[ 1.086264] ohci-platform: OHCI generic platform driver
[ 1.088806] tegra-xusb 70090000.xusb: USB2 port 0 has OTG_CAP
[ 1.090386] tegra-xusb-padctl 7009f000.xusb_padctl: enabled OTG on UTMI pad 0
[ 1.090616] tegradc tegradc.1: probed
[ 1.092074] tegra-xusb 70090000.xusb: extcon 0: ffffffc0f9623800 id
[ 1.094133] usbcore: registered new interface driver uas
[ 1.094229] usbcore: registered new interface driver usb-storage
[ 1.094382] usbcore: registered new interface driver usbserial
[ 1.094421] usbcore: registered new interface driver option
[ 1.094457] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.101705] tegra-xusb 70090000.xusb: Firmware timestamp: 2019-10-17 15:58:59 UTC, Version: 50.25 release
[ 1.101834] tegra-xusb 70090000.xusb: xHCI Host Controller
[ 1.101893] tegra-xusb 70090000.xusb: new USB bus registered, assigned bus number 1
[ 1.102963] tegra-xusb 70090000.xusb: hcc params 0x0184f525 hci version 0x100 quirks 0x00050010
[ 1.103067] tegra-xusb 70090000.xusb: irq 61, io mem 0x70090000
[ 1.103410] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.103417] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.103423] usb usb1: Product: xHCI Host Controller
[ 1.103428] usb usb1: Manufacturer: Linux 4.9.140 xhci-hcd
[ 1.103433] usb usb1: SerialNumber: 70090000.xusb
[ 1.104505] tegra-xudc-new 700d0000.xudc: device count: 1
[ 1.104740] hub 1-0:1.0: USB hub found
[ 1.104802] hub 1-0:1.0: 5 ports detected
[ 1.105511] tegra-xusb 70090000.xusb: xHCI Host Controller
[ 1.105532] tegra-xusb 70090000.xusb: new USB bus registered, assigned bus number 2
[ 1.105687] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 1.105787] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.105793] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.105799] usb usb2: Product: xHCI Host Controller
[ 1.105804] usb usb2: Manufacturer: Linux 4.9.140 xhci-hcd
[ 1.105808] usb usb2: SerialNumber: 70090000.xusb
[ 1.106603] hub 2-0:1.0: USB hub found
[ 1.106645] hub 2-0:1.0: 4 ports detected
[ 1.106793] tegra-xudc-new 700d0000.xudc: USB charger detection disabled
[ 1.106811] tegra-xudc-new 700d0000.xudc: vbus state: 0
[ 1.106873] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 1.107220] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 1.108373] mousedev: PS/2 mouse device common for all mice
[ 1.108564] usbcore: registered new interface driver xpad
[ 1.108994] cyttsp5_i2c_adapter 0-0024: cyttsp5_init: INIT CYTTSP RST gpio=194 and IRQ gpio=224 r=0
[ 1.112188] tegradc tegradc.0: nominal-pclk:25174825 parent:25173906 div:1.0 pclk:25173906 24923052~27440532
[ 1.114023] cyttsp5_i2c_adapter 0-0024: cyttsp5_startup_: Bootloader mode
[ 1.116756] tegradc tegradc.1: fb registered
[ 1.119996] hpd: state 7 (Takeover from bootloader), hpd 0, pending_hpd_evt 1
[ 1.120004] hpd: switching from state 7 (Takeover from bootloader) to state 0 (Reset)
[ 1.120012] hpd: state 0 (Reset), hpd 0, pending_hpd_evt 0
[ 1.120027] tegradc tegradc.1: blank - powerdown
[ 1.120052] extcon-disp-state extcon:disp-state: cable 44 state 0 already set.
[ 1.120056] Extcon DP: HPD disabled
[ 1.120061] hpd: hpd_switch 0
[ 1.120065] hpd: switching from state 0 (Reset) to state 1 (Check Plug)
[ 1.120073] hpd: state 1 (Check Plug), hpd 0, pending_hpd_evt 0
[ 1.120080] hpd: switching from state 1 (Check Plug) to state 3 (Disabled)
[ 1.124416] cyttsp5_i2c_adapter 0-0024: cyttsp5_hid_output_validate_bl_response: HID output response, ERROR:5
[ 1.144292] tegra-i2c 7000c000.i2c: no acknowledge from address 0x24
[ 1.144333] cyttsp5_i2c_adapter 0-0024: cyttsp5_read_input: Error getting report, r=-121
[ 1.153678] cyttsp5_i2c_adapter 0-0024: cyttsp5_startup_: Operational mode
[ 1.153683] cyttsp5_i2c_adapter 0-0024: cyttsp5_startup_: Reading report descriptor
[ 1.193540] tegradc tegradc.0: blank - powerdown
[ 1.205755] tegra-xusb-padctl 7009f000.xusb_padctl: power on UTMI pads 1
[ 1.227301] extcon-disp-state extcon:disp-state: cable 47 state 0
[ 1.227305] Extcon AUX1(HDMI) disable
[ 1.258758] tegradc tegradc.0: unblank
[ 1.302973] tegradc tegradc.0: nominal-pclk:69300000 parent:69300000 div:1.0 pclk:69300000 68607000~75537000
[ 1.303047] tegradc tegradc.0: hdmi: tmds rate:69300K prod-setting:prod_c_hdmi_54m_75m
[ 1.323515] tegradc tegradc.0: sync windows ret = 250
[ 1.329248] extcon-disp-state extcon:disp-state: cable 40 state 1
[ 1.329252] Extcon HDMI: HPD enabled
[ 1.329283] tegradc tegradc.0: hdmi: plugged
[ 1.428000] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 1.429664] usb 1-2: new high-speed USB device number 2 using tegra-xusb
[ 1.458934] usb 1-2: New USB device found, idVendor=0bda, idProduct=5411
[ 1.458942] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.458947] usb 1-2: Product: 4-Port USB 2.1 Hub
[ 1.458952] usb 1-2: Manufacturer: Generic
[ 1.460385] hub 1-2:1.0: USB hub found
[ 1.460989] hub 1-2:1.0: 4 ports detected
[ 1.585662] tegra-xusb-padctl 7009f000.xusb_padctl: power down UTMI pad 1
[ 1.605654] usb 1-2: usb_suspend_both: status 0
[ 1.605732] usb usb1: usb_suspend_both: status 0
[ 1.831411] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 2.114354] cyttsp5_i2c_adapter 0-0024: cyttsp5 Protocol Version: 1.2
[ 2.138004] input: cyttsp5_mt as /devices/7000c000.i2c/i2c-0/0-0024/input/input0
[ 2.138370] input: cyttsp5_btn as /devices/7000c000.i2c/i2c-0/0-0024/input/input1
[ 2.138679] input: cyttsp5_proximity as /devices/7000c000.i2c/i2c-0/0-0024/input/input2
[ 2.233696] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 2.235715] tegra-pcie 1003000.pcie: link 0 down, ignoring
[ 2.341409] tegra-pcie 1003000.pcie: PCI host bridge to bus 0000:00
[ 2.341422] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 2.341428] pci_bus 0000:00: root bus resource [mem 0x13000000-0x1fffffff]
[ 2.341433] pci_bus 0000:00: root bus resource [mem 0x20000000-0x3fffffff pref]
[ 2.341439] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.341482] pci 0000:00:02.0: [10de:0faf] type 01 class 0x060400
[ 2.341585] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 2.341675] cyttsp5_i2c_adapter 0-0024: cyttsp5_hid_send_output_and_wait_: HID output cmd execution timed out
[ 2.341909] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.342067] pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000
[ 2.342095] pci 0000:01:00.0: reg 0x10: [io 0x0000-0x00ff]
[ 2.342129] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit pref]
[ 2.342151] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[ 2.342290] pci 0000:01:00.0: supports D1 D2
[ 2.342294] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 2.351889] cyttsp5_i2c_adapter 0-0024: cyttsp5_loader_probe: Successful probe 0-0024
[ 2.351940] cyttsp5_loader_init: Parade TTSP FW Loader Driver (Built TTDA.03.08.874312) rc=0
[ 2.352109] cyttsp5_i2c_adapter 0-0024: Direct firmware load for cyttsp5_fw.bin failed with error -2
[ 2.352115] cyttsp5_i2c_adapter 0-0024: Falling back to user helper
[ 2.352541] cyttsp5_device_access_init: Parade TTSP Device Access Driver (Built TTDA.03.08.874312) rc=0
[ 2.353254] cyttsp5_i2c_adapter 0-0024: Direct firmware load for ttdl_cmcp_thresholdfile.csv failed with error -2
[ 2.353261] cyttsp5_i2c_adapter 0-0024: Falling back to user helper
[ 2.353732] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.353791] pci 0000:00:02.0: BAR 15: assigned [mem 0x20000000-0x200fffff 64bit pref]
[ 2.353799] pci 0000:00:02.0: BAR 13: assigned [io 0x1000-0x1fff]
[ 2.353810] pci 0000:01:00.0: BAR 4: assigned [mem 0x20000000-0x20003fff 64bit pref]
[ 2.353832] pci 0000:01:00.0: BAR 2: assigned [mem 0x20004000-0x20004fff 64bit pref]
[ 2.353852] pci 0000:01:00.0: BAR 0: assigned [io 0x1000-0x10ff]
[ 2.353864] pci 0000:00:02.0: PCI bridge to [bus 01]
[ 2.353872] pci 0000:00:02.0: bridge window [io 0x1000-0x1fff]
[ 2.353881] pci 0000:00:02.0: bridge window [mem 0x20000000-0x200fffff 64bit pref]
[ 2.354269] pcieport 0000:00:02.0: Signaling PME through PCIe PME interrupt
[ 2.354275] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[ 2.354283] pcie_pme 0000:00:02.0:pcie001: service driver pcie_pme loaded
[ 2.354450] aer 0000:00:02.0:pcie002: service driver aer loaded
[ 2.354790] r8168 0000:01:00.0: enabling device (0000 → 0003)
[ 2.354820] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded
[ 2.376115] r8168 0000:01:00.0 (unnamed net_device) (uninitialized): Invalid ethernet address 00:00:00:00:00:00, trying device tree node
[ 2.376354] r8168 0000:01:00.0 (unnamed net_device) (uninitialized): Found valid ethernet address 00:04:4b:e9:d6:30 from device tree
[ 2.377042] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 2.377072] r8168 Copyright (C) 2017 Realtek NIC software team nicfae@realtek.com
This program comes with ABSOLUTELY NO WARRANTY; for details, please see http://www.gnu.org/licenses/.
This is free software, and you are welcome to redistribute it under certain conditions; see http://www.gnu.org/licenses/.
[ 2.482830] max77686-rtc max77620-rtc: rtc core: registered max77620-rtc as rtc0
[ 2.485281] rtc rtc1: alarm rtc device
[ 2.485303] tegra_rtc 7000e000.rtc: rtc core: registered 7000e000.rtc as rtc1
[ 2.485329] tegra_rtc 7000e000.rtc: Tegra internal Real Time Clock
[ 2.486257] i2c /dev entries driver
[ 2.488267] i2c i2c-6: Added multiplexed i2c bus 7
[ 2.488651] i2c i2c-6: Added multiplexed i2c bus 8
[ 2.488659] i2c-mux-gpio cam_i2cmux: 2 port mux on Tegra I2C adapter adapter
[ 2.489499] imx219 7-0010: tegracam sensor driver:imx219_v2.0.6
[ 2.512825] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x10
[ 2.512910] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[ 2.520553] imx219 7-0010: board setup failed
[ 2.525086] imx219: probe of 7-0010 failed with error -121
[ 2.525667] imx219 8-0010: tegracam sensor driver:imx219_v2.0.6
[ 2.548937] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x10
[ 2.549021] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[ 2.556616] imx219 8-0010: board setup failed
[ 2.561093] imx219: probe of 8-0010 failed with error -121
[ 2.562371] max77620-power max77620-power: Event recorder REG_NVERC : 0x0
[ 2.565304] tegra_soctherm 700e2000.soctherm: pllx_offset tz:0 max:14, min:2
[ 2.565311] tegra_soctherm 700e2000.soctherm: pllx_offset tz:2 max:8, min:4
[ 2.565800] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.565818] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when cpu reaches 102500 mC
[ 2.565829] tegra_soctherm 700e2000.soctherm: throttrip: will throttle when cpu reaches 100500 mC
[ 2.565999] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.566011] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when gpu reaches 103000 mC
[ 2.566018] tegra_soctherm 700e2000.soctherm: throttrip: will throttle when gpu reaches 101000 mC
[ 2.566169] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.566180] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when pll reaches 127000 mC
[ 2.566185] tegra_soctherm 700e2000.soctherm: throttrip: pll: missing hot temperature
[ 2.566377] tegra_soctherm 700e2000.soctherm: failed to register sensor: -19
[ 2.567224] tegra_aotag tegra-aotag: Registering sensor 0
[ 2.567279] tegra_aotag tegra-aotag: Invalid temp readout
[ 2.567305] tegra_aotag tegra-aotag: Invalid temp readout
[ 2.567323] tegra_aotag tegra-aotag: Bound to TZ : ID 0
[ 2.567332] tegra_aotag tegra-aotag: Probe done [SUCCESS]:0
[ 2.568278] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.568298] tegra_dfll_action dfll-cdev-cap: Tegra DFLL ‘cap cooling device’ registered
[ 2.568491] tegra_aotag tegra-aotag: Invalid temp readout
[ 2.568526] tegra_dfll_action dfll-cdev-floor: Tegra DFLL ‘floor cooling device’ registered
[ 2.568947] parse_throttle_dt_data: Num cap clks = 6
[ 2.568953] parse_throttle_dt_data: clk=cclk_g type=2
[ 2.568967] parse_throttle_dt_data: clk=gpu type=4
[ 2.568995] parse_throttle_dt_data: clk=cap.throttle.c2bus type=0
[ 2.569015] parse_throttle_dt_data: clk=cap.throttle.c3bus type=0
[ 2.569036] parse_throttle_dt_data: clk=cap.throttle.sclk type=0
[ 2.569040] parse_throttle_dt_data: clk=emc type=3
[ 2.569437] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.569532] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.569685] tegra_throttle_probe: probe successful. #cdevs=4
[ 2.570484] FAN dev name: pwm-fan
[ 2.570540] FAN:gpio request success.
[ 2.570612] pwm_fan_driver pwm-fan: cap state:7, cap pwm:255
[ 2.570927] pwm_fan_driver pwm-fan: got pwm for fan. polarity is normal
[ 2.571119] pwm_fan_driver pwm-fan: fan tach request irq success
[ 2.571129] pwm_fan_driver pwm-fan: tach period: 1000
[ 2.571227] pwm_fan_driver pwm-fan: index 0: pwm=0, rpm=0, rru=40, rrd=40, state:2
[ 2.571233] pwm_fan_driver pwm-fan: index 1: pwm=80, rpm=1000, rru=2, rrd=2, state:2
[ 2.571239] pwm_fan_driver pwm-fan: index 2: pwm=120, rpm=2000, rru=1, rrd=1, state:2
[ 2.571244] pwm_fan_driver pwm-fan: index 3: pwm=160, rpm=3000, rru=1, rrd=1, state:2
[ 2.571249] pwm_fan_driver pwm-fan: index 4: pwm=255, rpm=4000, rru=1, rrd=1, state:3
[ 2.571254] pwm_fan_driver pwm-fan: index 5: pwm=255, rpm=5000, rru=1, rrd=1, state:3
[ 2.571258] pwm_fan_driver pwm-fan: index 6: pwm=255, rpm=6000, rru=1, rrd=1, state:3
[ 2.571263] pwm_fan_driver pwm-fan: index 7: pwm=255, rpm=7000, rru=1, rrd=1, state:4
[ 2.571268] pwm_fan_driver pwm-fan: index 8: pwm=255, rpm=10000, rru=1, rrd=1, state:4
[ 2.571273] pwm_fan_driver pwm-fan: index 9: pwm=255, rpm=11000, rru=1, rrd=1, state:4
[ 2.571962] tegra-wdt 60005100.watchdog: Tegra WDT enabled on probe. Timeout = 120 seconds.
[ 2.572364] tegra-wdt 60005100.watchdog: initialized (timeout = 120 sec, nowayout = 1)
[ 2.573375] device-mapper: uevent: version 1.0.3
[ 2.573944] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[ 2.579560] tegra210-cpufreq cpufreq: probe()…completed
[ 2.580316] sdhci: Secure Digital Host Controller Interface driver
[ 2.580319] sdhci: Copyright(c) Pierre Ossman
[ 2.580321] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.580683] sdhci-tegra sdhci-tegra.3: Client registration for eMC Successful
[ 2.585375] sdhci-tegra sdhci-tegra.2: Client registration for eMC Successful
[ 2.590066] tegra-se 70012000.se: tegra_se_probe: complete
[ 2.590604] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.591752] usbcore: registered new interface driver usbhid
[ 2.591755] usbhid: USB HID core driver
[ 2.593911] tegra21x_actmon 6000c800.actmon: in actmon_register()…
[ 2.594082] tegra21x_actmon 6000c800.actmon: initialization Completed for the device mc_all
[ 2.595817] nvpmodel: initialized successfully
[ 2.596894] usbcore: registered new interface driver snd-usb-audio
[ 2.596958] No Device Node present for smmu client: snd-soc-dummy !!
[ 2.596963] platform snd-soc-dummy: No iommus property found in DT node, got swgids from fixup(101004000)
[ 2.596981] iommu: Adding device snd-soc-dummy to group 36
[ 2.597376] knl–>in rt5640_i2c_probe
[ 2.602620] input: tegra-hda HDMI/DP,pcm=3 as /devices/70030000.hda/sound/card0/input3
[ 2.621670] mmc0: SDHCI controller on sdhci-tegra.3 [sdhci-tegra.3] using ADMA 64-bit with 64 bit addr
[ 2.628754] OPE platform probe
[ 2.628843] OPE platform probe successful
[ 2.629210] OPE platform probe
[ 2.629292] OPE platform probe successful
[ 2.629656] mmc1: SDHCI controller on sdhci-tegra.2 [sdhci-tegra.2] using ADMA 64-bit with 64 bit addr
[ 2.630015] knl–>in tegra_machine_driver_probe
[ 2.630842] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 2.637977] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 2.644207] knl–>snd_soc_register_card failed (-517)
[ 2.644645] u32 classifier
[ 2.644647] Actions configured
[ 2.644718] Initializing XFRM netlink socket
[ 2.645444] NET: Registered protocol family 10
[ 2.646341] NET: Registered protocol family 17
[ 2.646353] NET: Registered protocol family 15
[ 2.646429] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.646578] Bluetooth: RFCOMM socket layer initialized
[ 2.646588] Bluetooth: RFCOMM ver 1.11
[ 2.646596] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.646626] Bluetooth: HIDP socket layer initialized
[ 2.646644] 9pnet: Installing 9P2000 support
[ 2.646678] Key type dns_resolver registered
[ 2.647136] Registered cp15_barrier emulation handler
[ 2.647143] Registered setend emulation handler
[ 2.648640] registered taskstats version 1
[ 2.649204] Adding domain ve2-pd to PM domain host1x-pd
[ 2.649443] Adding domain ve-pd to PM domain host1x-pd
[ 2.651481] isp 54600000.isp: initialized
[ 2.652409] isp 54680000.isp: initialized
[ 2.662949] last reset is due to software reset
[ 2.662954] KERNEL: PMC reset status reg: 0x3
[ 2.663035] BL: PMC reset status reg: 0x3
[ 2.663037] BL: PMIC poweroff Event Recorder: 0x0
[ 2.664569] clk_cbus_recalc_rate: no gbus parent
[ 2.664575] clk_cbus_round_rate: no gbus parent
[ 2.664578] clk_cbus_round_rate: no gbus parent
[ 2.664586] clk_cbus_recalc_rate: no gbus parent
[ 2.664686] clk_cbus_recalc_rate: no gbus parent
[ 2.664690] clk_cbus_round_rate: no gbus parent
[ 2.664693] clk_cbus_round_rate: no gbus parent
[ 2.664697] clk_cbus_recalc_rate: no gbus parent
[ 2.665358] tegra_dvfs: GPU-cap: registered
[ 2.665415] tegra dvfs: vdd-cpu: nominal 1168mV, offset 708000uV, step 19200uV, scaling enabled
[ 2.665418] tegra dvfs: vdd-core: nominal 1125mV, offset 600000uV, step 12500uV, scaling enabled
[ 2.665420] tegra dvfs: vdd-gpu: nominal 1068mV, offset 708000uV, step 10000uV, scaling enabled
[ 2.667975] tegra_dvfs: vdd-gpu-vts: registered
[ 2.668656] tegra_core_action core_dvfs_cdev_floor: Tegra CORE DVFS ‘floor cooling device’ registered
[ 2.669297] tegra_core_action core_dvfs_cdev_cap: Tegra CORE DVFS ‘cap cooling device’ registered
[ 2.670065] knl–>in tegra_machine_driver_probe
[ 2.670901] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 2.673343] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 2.673748] mmcblk0: mmc0:0001 DG4016 14.7 GiB
[ 2.677998] mmcblk0boot0: mmc0:0001 DG4016 partition 1 4.00 MiB
[ 2.678065] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 2.682181] mmcblk0boot1: mmc0:0001 DG4016 partition 2 4.00 MiB
[ 2.684307] knl–>snd_soc_register_card failed (-517)
[ 2.684905] input: gpio-keys as /devices/gpio-keys/input/input4
[ 2.686070] knl–>in tegra_machine_driver_probe
[ 2.686884] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 2.686979] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB
[ 2.690005] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
[ 2.694022] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 2.700246] knl–>snd_soc_register_card failed (-517)
[ 2.701035] knl–>in tegra_machine_driver_probe
[ 2.701872] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 2.708995] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 2.715214] knl–>snd_soc_register_card failed (-517)
[ 2.718288] tegra_rtc 7000e000.rtc: setting system clock to 2000-01-01 04:10:05 UTC (946699805)
[ 2.719297] vi 54080000.vi: vi_probe: ++
[ 2.722390] vi 54080000.vi: initialized
[ 2.724379] vi 54080000.vi: subdev nvcsi–2 bound
[ 2.724481] vi 54080000.vi: subdev nvcsi–1 bound
[ 2.725222] knl–>in tegra_machine_driver_probe
[ 2.725943] mmcblk mmc0:0001: Card claimed for testing.
[ 2.726028] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 2.727366] Disable partitions left on by BL
[ 2.727368] disb
[ 2.727415] bwmgr: missing cdev-type property
[ 2.727508] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.727514] DRAM derating cdev registered.
[ 2.728601] vdd-fan: disabling
[ 2.728603] vdd-usb-vbus: disabling
[ 2.728605] vdd-usb-vbus2: disabling
[ 2.728613] vddio-sdmmc-ap: disabling
[ 2.733210] vdd-3v3-sd: disabling
[ 2.733215] avdd-io-edp-1v05: disabling
[ 2.733218] vdd-usb-hub-en: disabling
[ 2.733238] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 2.739479] knl–>snd_soc_register_card failed (-517)
[ 2.739629] ALSA device list:
[ 2.739632] #0: tegra-hda at 0x70038000 irq 82
[ 2.742830] Freeing unused kernel memory: 8640K
[ 2.764173] Root device found: mmcblk0p1
[ 2.765227] Found dev node: /dev/mmcblk0p1
[ 2.787620] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 2.788375] Rootfs mounted over mmcblk0p1
[ 2.805361] Switching from initrd to actual rootfs
[ 2.885323] systemd[1]: System time before build time, advancing clock.
[ 2.907781] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.919270] cgroup: cgroup2: unknown option “nsdelegate”
[ 2.934684] systemd[1]: systemd 237 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)
[ 2.935443] systemd[1]: Detected architecture arm64.
[ 2.958098] systemd[1]: Set hostname to .
[ 3.020351] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 3.020361] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 3.034074] systemd[1]: network-online.target: Wants dependency dropin /etc/systemd/system/network-online.target.wants/networking.service.wujz is not a symlink, ignoring.
[ 3.120001] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.121944] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 3.122045] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.123954] systemd[1]: Created slice User and Session Slice.
[ 3.124002] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.124024] systemd[1]: Reached target User and Group Name Lookups.
[ 3.124074] systemd[1]: Reached target Swap.
[ 3.174036] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 3.522518] systemd-journald[1946]: Received request to flush runtime journal from PID 1
[ 3.766476] nvgpu: 57000000.gpu gm20b_init_clk_setup_sw:1268 [INFO] GPCPLL initial settings: NA mode, M=1, N=34, P=3 (id = 1)
[ 3.768574] knl–>in tegra_machine_driver_probe
[ 3.769531] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 3.787834] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 3.797289] knl–>snd_soc_register_card failed (-517)
[ 4.102789] using random self ethernet address
[ 4.108860] using random host ethernet address
[ 4.808774] random: crng init done
[ 4.812209] random: 7 urandom warning(s) missed due to ratelimiting
[ 4.924131] Mass Storage Function, version: 2009/09/11
[ 4.924138] LUN: removable file: (no medium)
[ 4.932752] using random self ethernet address
[ 4.940902] using random host ethernet address
[ 4.978040] rndis0: HOST MAC ce:db:ff:fe:f4:04
[ 4.978101] rndis0: MAC ce:db:ff:fe:f4:05
[ 4.980534] usb0: HOST MAC ce:db:ff:fe:f4:06
[ 4.980571] usb0: MAC ce:db:ff:fe:f4:07
[ 4.980595] tegra-xudc-new 700d0000.xudc: exiting ELPG
[ 4.982489] tegra-xudc-new 700d0000.xudc: exiting ELPG done
[ 4.982509] tegra-xudc-new 700d0000.xudc: ep 0 (type: 0, dir: out) enabled
[ 4.982543] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 4.982789] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 4.982805] tegra-xudc-new 700d0000.xudc: exiting ELPG
[ 4.991330] tegra-xudc-new 700d0000.xudc: exiting ELPG done
[ 4.991357] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 4.991604] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 4.997417] l4tbr0: port 1(rndis0) entered blocking state
[ 4.997422] l4tbr0: port 1(rndis0) entered disabled state
[ 4.998769] device rndis0 entered promiscuous mode
[ 5.033964] IPv6: ADDRCONF(NETDEV_UP): rndis0: link is not ready
[ 5.041241] l4tbr0: port 2(usb0) entered blocking state
[ 5.041246] l4tbr0: port 2(usb0) entered disabled state
[ 5.042391] device usb0 entered promiscuous mode
[ 5.050907] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 5.220423] cyttsp5_i2c_adapter 0-0024: _cyttsp5_firmware_cont_builtin: No builtin firmware
[ 5.226402] cyttsp5_i2c_adapter 0-0024: cyttsp5_cmcp_parse_threshold_file: No builtin cmcp threshold file
[ 5.229499] zram: Added device: zram0
[ 5.230389] zram: Added device: zram1
[ 5.234382] zram: Added device: zram2
[ 5.236429] zram: Added device: zram3
[ 5.266815] zram0: detected capacity change from 0 to 519401472
[ 5.270703] knl–>in tegra_machine_driver_probe
[ 5.271729] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 5.279094] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 5.286981] tegra-xusb 70090000.xusb: Upgrade port 0 to USB3.0
[ 5.286986] tegra-xusb 70090000.xusb: Upgrade port 1 to USB3.0
[ 5.287121] knl–>snd_soc_register_card failed (-517)
[ 5.303666] Adding 507224k swap on /dev/zram0. Priority:5 extents:1 across:507224k SS
[ 5.307635] zram1: detected capacity change from 0 to 519401472
[ 5.317087] eth0: 0xffffff800a839000, 00:04:4b:e9:d6:30, IRQ 404
[ 5.323226] Adding 507224k swap on /dev/zram1. Priority:5 extents:1 across:507224k SS
[ 5.327105] zram2: detected capacity change from 0 to 519401472
[ 5.339388] Adding 507224k swap on /dev/zram2. Priority:5 extents:1 across:507224k SS
[ 5.347835] zram3: detected capacity change from 0 to 519401472
[ 5.367511] Adding 507224k swap on /dev/zram3. Priority:5 extents:1 across:507224k SS
[ 5.491572] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.565608] knl–>in tegra_machine_driver_probe
[ 5.566730] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 5.571337] tegra-xusb-padctl 7009f000.xusb_padctl: power on UTMI pads 1
[ 5.574017] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 5.581677] knl–>snd_soc_register_card failed (-517)
[ 5.598452] usb 2-1: new SuperSpeed USB device number 2 using tegra-xusb
[ 5.627162] usb 2-1: New USB device found, idVendor=0bda, idProduct=0411
[ 5.627169] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.627173] usb 2-1: Product: 4-Port USB 3.1 Hub
[ 5.627177] usb 2-1: Manufacturer: Generic
[ 5.630989] hub 2-1:1.0: USB hub found
[ 5.631795] hub 2-1:1.0: 4 ports detected
[ 5.635088] knl–>in tegra_machine_driver_probe
[ 5.636062] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 5.645013] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 5.651407] knl–>snd_soc_register_card failed (-517)
[ 5.789666] usb 2-1: usb_suspend_both: status 0
[ 5.789829] usb usb2: usb_suspend_both: status 0
[ 5.969690] usb 1-2.4: new high-speed USB device number 3 using tegra-xusb
[ 5.990428] usb 1-2.4: New USB device found, idVendor=0bda, idProduct=c811
[ 5.990447] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.990451] usb 1-2.4: Product: 802.11ac NIC
[ 5.990455] usb 1-2.4: Manufacturer: Realtek
[ 5.990458] usb 1-2.4: SerialNumber: 123456
[ 5.993114] knl–>in tegra_machine_driver_probe
[ 5.994219] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 6.006628] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.006630] knl–>snd_soc_register_card failed (-517)
[ 7.314379] tegradc tegradc.0: blank - powerdown
[ 7.373413] extcon-disp-state extcon:disp-state: cable 47 state 0 already set.
[ 7.373416] Extcon AUX1(HDMI) disable
[ 7.394075] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: POWERDOWN!
[ 7.394105] tegradc tegradc.0: unblank
[ 7.406098] tegradc tegradc.0: nominal-pclk:69300000 parent:69300000 div:1.0 pclk:69300000 68607000~75537000
[ 7.406179] tegradc tegradc.0: hdmi: tmds rate:69300K prod-setting:prod_c_hdmi_54m_75m
[ 7.428416] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: UNBLANK!
[ 7.431264] tegradc tegradc.0: unblank
[ 7.431269] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: UNBLANK!
[ 7.431277] tegradc tegradc.1: blank - powerdown
[ 7.431281] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: POWERDOWN!
[ 7.542162] r8168: eth0: link up
[ 7.542286] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.028615] RTW: module init start
[ 8.028620] RTW: rtl8821cu v5.8.1.2_35530.20191025_COEX20191014-4141
[ 8.028623] RTW: build time: Apr 28 2020 11:40:24
[ 8.028625] RTW: rtl8821cu BT-Coex version = COEX20191014-4141
[ 8.028658] RTW: rtw_inetaddr_notifier_register
[ 8.028727] RTW:
usb_endpoint_descriptor(0):
[ 8.028730] RTW: bLength=7
[ 8.028732] RTW: bDescriptorType=5
[ 8.028734] RTW: bEndpointAddress=84
[ 8.028736] RTW: wMaxPacketSize=512
[ 8.028739] RTW: bInterval=0
[ 8.028741] RTW: RT_usb_endpoint_is_bulk_in = 4
[ 8.028743] RTW:
usb_endpoint_descriptor(1):
[ 8.028744] RTW: bLength=7
[ 8.028746] RTW: bDescriptorType=5
[ 8.028748] RTW: bEndpointAddress=5
[ 8.028750] RTW: wMaxPacketSize=512
[ 8.028752] RTW: bInterval=0
[ 8.028754] RTW: RT_usb_endpoint_is_bulk_out = 5
[ 8.028756] RTW:
usb_endpoint_descriptor(2):
[ 8.028758] RTW: bLength=7
[ 8.028760] RTW: bDescriptorType=5
[ 8.028762] RTW: bEndpointAddress=6
[ 8.028763] RTW: wMaxPacketSize=512
[ 8.028765] RTW: bInterval=0
[ 8.028767] RTW: RT_usb_endpoint_is_bulk_out = 6
[ 8.028769] RTW:
usb_endpoint_descriptor(3):
[ 8.028771] RTW: bLength=7
[ 8.028773] RTW: bDescriptorType=5
[ 8.028775] RTW: bEndpointAddress=87
[ 8.028776] RTW: wMaxPacketSize=64
[ 8.028778] RTW: bInterval=3
[ 8.028780] RTW: RT_usb_endpoint_is_int_in = 7, Interval = 3
[ 8.028782] RTW:
usb_endpoint_descriptor(4):
[ 8.028784] RTW: bLength=7
[ 8.028786] RTW: bDescriptorType=5
[ 8.028788] RTW: bEndpointAddress=8
[ 8.028789] RTW: wMaxPacketSize=512
[ 8.028791] RTW: bInterval=0
[ 8.028793] RTW: RT_usb_endpoint_is_bulk_out = 8
[ 8.028796] RTW: nr_endpoint=5, in_num=2, out_num=3

[ 8.028797] RTW: USB_SPEED_HIGH
[ 8.028800] RTW: CHIP TYPE: RTL8821C
[ 8.028906] RTW: [HALMAC]11692M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 6
HALMAC_MINOR_VER = 5
HALMAC_PATCH_VER = 5
[ 8.029702] RTW: Chip Version Info: CHIP_8821C_U2_1T1R_RomVer(1)
[ 8.029709] RTW: config_chip_out_EP OutEpQueueSel(0x07), OutEpNumber(3)
[ 8.029987] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.188601] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_LOGICAL_EFUSE
[ 8.188625] RTW: HW EFUSE
[ 8.188632] RTW: 0x000: 29 81 00 BC 09 00 21 00 6E 04 A4 10 10 00 30 0B
[ 8.188670] RTW: 0x010: FF FF FF FF FF FF FF FF FF FF FF 02 FF FF FF FF
[ 8.188705] RTW: 0x020: FF FF 26 27 27 28 27 27 25 22 23 22 25 26 26 28
[ 8.188739] RTW: 0x030: 33 FF FF FF FF FF F0 FF FF FF 25 25 25 26 26 26
[ 8.188773] RTW: 0x040: 29 29 29 29 29 33 FF FF FF FF FF FF FF FF FF FF
[ 8.188807] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.188840] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.188873] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.188907] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.188940] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.188975] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189009] RTW: 0x0B0: FF FF FF FF FF FF FF FF 7F 16 20 00 FF FF FF FF
[ 8.189044] RTW: 0x0C0: FF 01 00 41 00 00 00 00 00 FF 22 FF FF FF FF FF
[ 8.189078] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189111] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189145] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189178] RTW: 0x100: DA 0B 11 C8 E3 46 02 74 EE 2A 45 AD C7 09 03 52
[ 8.189212] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
[ 8.189244] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
[ 8.189277] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189311] RTW: 0x140: FF FF FF FF 00 00 31 0F FF FF FF FF FF FF FF FF
[ 8.189345] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189379] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189431] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189474] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189508] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189541] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189574] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189607] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189703] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189737] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189773] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 8.189810] RTW: EEPROM ID = 0x8129
[ 8.189813] RTW: EEPROM Version = 0
[ 8.189817] RTW: EEPROM Regulatory=0x01
[ 8.189819] RTW: EEPROM Board Type=0x00
[ 8.189980] RTW: EEPROM Disable BT-coex, ant_num=1
[ 8.189985] RTW: hal_com_config_channel_plan chplan:0x7F
[ 8.189988] RTW: EEPROM crystal_cap=0x16
[ 8.189991] RTW: EEPROM ThermalMeter=0x20
[ 8.189993] RTW: EEPROM Customer ID=0x00
[ 8.189996] RTW: EEPROM SupportRemoteWakeup=0
[ 8.189998] RTW: EEPROM rfe_type=0x22
[ 8.190002] RTW: EEPROM PAType_2G is 0x0, ExternalPA_2G = 0
[ 8.190005] RTW: EEPROM PAType_5G is 0x0, external_pa_5g = 0
[ 8.190007] RTW: EEPROM LNAType_2G is 0x0, ExternalLNA_2G = 0
[ 8.190010] RTW: EEPROM LNAType_5G is 0x0, external_lna_5g = 0
[ 8.190012] RTW: EEPROM TypeGPA = 0x0
[ 8.190014] RTW: EEPROM TypeAPA = 0x0
[ 8.190017] RTW: EEPROM TypeGLNA = 0x0
[ 8.190019] RTW: EEPROM TypeALNA = 0x0
[ 8.190021] RTW: EEPROM tx_bbswing_24G =0x00
[ 8.190026] RTW: EEPROM tx_bbswing_5G =0x00
[ 8.190028] RTW: EEPROM USB Switch=0
[ 8.190031] RTW: EEPROM VID = 0x0BDA, PID = 0xC811
[ 8.198938] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 8.199721] RTW: SetHwReg: bMacPwrCtrlOn=1
[ 8.266723] RTW: _rtw_hal_set_fw_rsvd_page((null)) Get [ NOR ] RsvdPageNUm ==>
[ 8.266729] RTW: LocPsPoll: 4
[ 8.266734] RTW: LocNullData: 5
[ 8.266738] RTW: LocQosNull: 6
[ 8.266741] RTW: LocBTQosNull: 7
[ 8.266745] RTW: _rtw_hal_set_fw_rsvd_page((null)) Get [ NOR ] RsvdPageNUm <==
[ 8.273983] RTW: WARN [HALMAC][WARN]the H2C ver. does not match halmac
[ 8.274831] RTW: rtl8821c_fw_dl Download Firmware from array success
[ 8.274837] RTW: NIC FW Version:24 SubVersion:5
[ 8.276083] RTW: SetHwReg: bMacPwrCtrlOn=0
[ 8.281705] RTW: hal_read_mac_hidden_rpt OK! (1, 8ms), fwdl:1, id:0x19
[ 8.281711] RTW: EEPROM Disable BT-coex by hal_spec
[ 8.281719] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.281890] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.281901] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282060] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282066] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282237] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282243] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282404] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282410] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282572] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282577] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282753] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282762] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 8.282924] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[ 8.282933] RTW: rtw_hal_read_chip_info in 252 ms
[ 8.282950] RTW: init_channel_set((null)) ChannelPlan ID:0x7f, ch num:37
[ 8.282959] RTW: [RF_PATH] IC’s RF PATH:RF_1T1R, max_tx_cnt:1
[ 8.282962] RTW: [RF_PATH] PG’s trx_path_bmp:0x00, max_tx_cnt:0
[ 8.282965] RTW: [RF_PATH] Registry’s RF PATH:UNKNOWN
[ 8.282968] RTW: [RF_PATH] HALDATA’s trx_path_bmp:0x11, max_tx_cnt:1
[ 8.282970] RTW: [RF_PATH] HALDATA’s RF PATH:RF_1T1R
[ 8.282972] RTW: [RF_PATH] NumTotalRFPath:1
[ 8.282976] RTW: rtw_hal_rfpath_init trx_path_bmp:0x11(RF_1T1R), NumTotalRFPath:1, max_tx_cnt:1
[ 8.282979] RTW: [TRX_Nss] HALSPEC - tx_nss :1, rx_nss:1
[ 8.282982] RTW: [TRX_Nss] Registry - tx_nss :0, rx_nss:0
[ 8.282984] RTW: [TRX_Nss] HALDATA - tx_nss :1, rx_nss:1
[ 8.282986] RTW: rtw_hal_trxnss_init tx_nss:1, rx_nss:1
[ 8.283076] RTW: init_mlme_default_rate_set: support CCK
[ 8.283078] RTW: init_mlme_default_rate_set: support OFDM
[ 8.283352] RTW: NR_RECVBUFF: 8
[ 8.283355] RTW: MAX_RECVBUF_SZ: 32768
[ 8.283359] RTW: NR_PREALLOC_RECV_SKB: 8
[ 8.283473] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 8.283479] RTW: rtw_init_pwrctrl_priv: IPS_mode=1, LPS_mode=2, LPS_level=0
[ 8.283489] RTW: IQK FW offload:enable
[ 8.283496] RTW: init_phydm_cominfo: Fv=1 Cv=1
[ 8.283512] RTW: [A] 2G G00 CCK-1T base:45 from IC_DEF
[ 8.283515] RTW: [A] 2G G01 CCK-1T base:45 from IC_DEF
[ 8.283518] RTW: [A] 2G G02 CCK-1T base:45 from IC_DEF
[ 8.283520] RTW: [A] 2G G03 CCK-1T base:45 from IC_DEF
[ 8.283523] RTW: [A] 2G G04 CCK-1T base:45 from IC_DEF
[ 8.283526] RTW: [A] 2G G05 CCK-1T base:45 from IC_DEF
[ 8.283528] RTW: [A] 2G G00 BW40-1S base:45 from IC_DEF
[ 8.283531] RTW: [A] 2G G01 BW40-1S base:45 from IC_DEF
[ 8.283534] RTW: [A] 2G G02 BW40-1S base:45 from IC_DEF
[ 8.283536] RTW: [A] 2G G03 BW40-1S base:45 from IC_DEF
[ 8.283539] RTW: [A] 2G G04 BW40-1S base:45 from IC_DEF
[ 8.283560] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 8.283605] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[ 8.283616] RTW: default power by rate loaded
[ 8.283621] RTW: phy_txpwr_by_rate_chk_for_path_dup duplicate 2.4G [A] to [B]
[ 8.283632] RTW: can’t get autopm:
[ 8.283638] RTW: rtw_macaddr_cfg mac addr:74:ee:2a:45:ad:c7
[ 8.283642] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[ 8.283678] RTW: rtw_wiphy_alloc(phy0)
[ 8.283683] RTW: rtw_wdev_alloc(padapter=ffffff80114ab000)
[ 8.283688] RTW: rtw_wiphy_register(phy0)
[ 8.283691] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[ 8.283839] RTW: rtw_reg_notifier: NL80211_REGDOM_SET_BY_CORE
[ 8.284048] RTW: rtw_ndev_init(wlan0) if1 mac_addr=74:ee:2a:45:ad:c7
[ 8.284287] RTW: rtw_ndev_notifier_call(wlan0) state:16
[ 8.284933] RTW: cfg80211_rtw_get_txpower
[ 8.284941] RTW: rtw_ndev_notifier_call(wlan0) state:5
[ 8.286364] knl–>in tegra_machine_driver_probe
[ 8.287505] tegra-asoc: sound: ASoC: CODEC DAI codec_roborock not registered
[ 8.287845] RTW: cfg80211_rtw_get_txpower
[ 8.297855] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 8.305736] knl–>snd_soc_register_card failed (-517)
[ 8.308332] usbcore: registered new interface driver rtl8821cu
[ 8.308337] RTW: module init ret=0
[ 8.432451] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 8.432621] RTW: rtw_ndev_notifier_call(wlan0) state:13
[ 8.432627] RTW: _netdev_open(wlan0) , bup=0
[ 8.442082] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 8.443113] RTW: SetHwReg: bMacPwrCtrlOn=1
[ 8.519082] RTW: _rtw_hal_set_fw_rsvd_page(wlan0) Get [ NOR ] RsvdPageNUm ==>
[ 8.519089] RTW: LocPsPoll: 4
[ 8.519094] RTW: LocNullData: 5
[ 8.519097] RTW: LocQosNull: 6
[ 8.519101] RTW: LocBTQosNull: 7
[ 8.519105] RTW: _rtw_hal_set_fw_rsvd_page(wlan0) Get [ NOR ] RsvdPageNUm <==
[ 8.526904] RTW: rtw_start_drv_threads(wlan0) enter
[ 8.526908] RTW: rtw_start_drv_threads(wlan0) start RTW_CMD_THREAD
[ 8.528036] RTW: WARN [HALMAC][WARN]the H2C ver. does not match halmac
[ 9.262300] RTW: FW Version:24 SubVersion:5
[ 9.262306] RTW: rtl8821c_hal_init_main: successful
[ 9.263440] RTW: txpath=0x1, rxpath=0x1
[ 9.263445] RTW: txpath_1ss:0x1, num:1
[ 9.277272] start_addr=(0x8000), end_addr=(0x10000), buffer_size=(0x8000), smp_number_max=(4096)
[ 9.279740] RTW: rtl8821cu_hal_init in 848ms
[ 9.279751] RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =74:ee:2a:45:ad:c7
[ 9.280080] RTW: rtw_hal_get_macaddr_port wlan0- hw port(0) mac_addr =74:ee:2a:45:ad:c7
[ 9.280085] RTW: wlan0- hw port(0) mac_addr =74:ee:2a:45:ad:c7
[ 9.280493] RTW: [HW_VAR_ENABLE_RX_BAR] 0x6A2=0x500
[ 9.302125] RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =74:ee:2a:45:ad:c7
[ 9.302291] RTW: wlan0: hw_port(0) set mode=2
[ 9.302994] RTW: MAC Address = 74:ee:2a:45:ad:c7
[ 9.302999] RTW: rtw_cfg80211_init_wiphy:rf_type=0
[ 9.303004] RTW: [HT] HAL Support LDPC = 0x02
[ 9.303007] RTW: [HT] HAL Support STBC = 0x01
[ 9.303011] RTW: [HT] HAL Support LDPC = 0x02
[ 9.303014] RTW: [HT] HAL Support STBC = 0x01
[ 9.303017] RTW: [VHT] Support LDPC = 0x02
[ 9.303020] RTW: [VHT] Support STBC = 0x01
[ 9.303028] RTW: rtw_build_vht_cap_ie, line810, Set MAX MPDU len = 11454 bytes
[ 9.303031] RTW: [VHT] Declare supporting SGI 80MHz
[ 9.303034] RTW: [VHT] Declare supporting RX STBC = 1
[ 9.303043] RTW: -871x_drv - drv_open, bup=1
[ 9.303302] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 9.303312] RTW: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 9.303317] RTW: rtw_ndev_notifier_call(wlan0) state:1
[ 9.305580] RTW: cfg80211_rtw_get_txpower
[ 9.317050] RTW: cfg80211_rtw_get_txpower
[ 9.317129] RTW: cfg80211_rtw_get_txpower
[ 9.317513] RTW: cfg80211_rtw_get_txpower
[ 9.317582] RTW: cfg80211_rtw_get_txpower
[ 9.319164] RTW: cfg80211_rtw_get_txpower
[ 9.319261] RTW: rtw_ndev_notifier_call(wlan0) state:4
[ 9.338163] RTW: cfg80211_rtw_flush_pmksa(wlan0)
[ 9.377052] RTW: rtw_ndev_notifier_call(wlan0) state:4
[ 9.377480] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 9.380105] RTW: cfg80211_rtw_scan(wlan0)
[ 9.380807] RTW: [HW_VAR_CHECK_TXBUF] Empty in 0 ms
[ 9.380983] RTW: wlan0 sleep m0=0x00000002, ori reg_0x4d4=0x00000000
[ 10.830557] RTW: cfg80211_rtw_get_txpower
[ 10.845807] RTW: cfg80211_rtw_set_power_mgmt(wlan0) enabled:0, timeout:-1
[ 11.169141] fuse init (API version 7.26)
[ 11.249005] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 11.249018] Bluetooth: BNEP socket layer initialized
[ 12.096597] tegradc tegradc.0: unblank
[ 12.096603] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: UNBLANK!
[ 12.096613] tegradc tegradc.1: blank - powerdown
[ 12.096616] cyttsp5_i2c_adapter 0-0024: fb_notifier_callback: POWERDOWN!
[ 13.587076] RTW: wlan0 wakeup m0=0x00000002, ori reg_0x4d4=0x00000002
[ 13.587179] RTW: survey done event(22) band:0 for wlan0
[ 13.587287] RTW: rtw_indicate_scan_done(wlan0)
[ 13.597004] RTW: ==>rtw_ps_processor .fw_state(8)
[ 13.597009] RTW: ==>ips_enter cnts:1
[ 13.597011] RTW: nolinked power save enter
[ 13.597013] RTW: ===> rtw_ips_pwr_down…
[ 13.597016] RTW: ====> rtw_ips_dev_unload…
[ 13.597385] RTW: usb_read_port_cancel
[ 13.597749] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.598177] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.598563] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.598920] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.599300] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.599666] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.600048] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.600412] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[ 13.600430] RTW: usb_write_port_cancel
[ 13.600455] RTW: ==> rtl8821cu_hal_deinit
[ 13.601218] RTW: SetHwReg: bMacPwrCtrlOn=0
[ 13.607490] RTW: rtl8821cu_hal_deinit <==
[ 13.608080] RTW: <=== rtw_ips_pwr_down… in 12ms
[ 16.257603] RTW: cfg80211_rtw_get_txpower
[ 20.824296] RTW: cfg80211_rtw_get_txpower

$ sudo cat /sys/kernel/debug/asoc/codecs

tegra210-ope.1
tegra210-ope.0
tegra210-mvc.1
tegra210-mvc.0
tegra210-afc.5
tegra210-afc.4
tegra210-afc.3
tegra210-afc.2
tegra210-afc.1
tegra210-afc.0
tegra210-sfc.3
tegra210-sfc.2
tegra210-sfc.1
tegra210-sfc.0
tegra210-mixer
tegra210-adx.1
tegra210-adx.0
tegra210-amx.1
tegra210-amx.0
tegra210-dmic.1
tegra210-dmic.0
tegra210-i2s.3
tegra210-i2s.2
tegra210-admaif
tegra210-axbar
7.spdif-dit.7
6.spdif-dit.6
5.spdif-dit.5
4.spdif-dit.4
3.spdif-dit.3
2.spdif-dit.2
1.spdif-dit.1
0.spdif-dit.0
rt5640.1-001c
snd-soc-dummy

The content of file “tegra210-porg-p3448-common.dtsi” is as follows:

/*

  • arch/arm64/boot/dts/tegra210-porg-p3448-common.dtsi
  • Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
  • This program is free software; you can redistribute it and/or modify
  • it under the terms of the GNU General Public License as published by
  • the Free Software Foundation; version 2 of the License.
  • This program is distributed in the hope that it will be useful, but WITHOUT
  • ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  • FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  • more details.
  • You should have received a copy of the GNU General Public License along
  • with this program; if not, write to the Free Software Foundation, Inc.,
  • 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

*/
/dts-v1/;
/memreserve/ 0x80000000 0x00020000;

#include <t210-common-platforms/tegra210-common.dtsi>
#include <tegra210-soc/tegra210-sdhci.dtsi>
#include <t210-common-platforms/tegra210-thermal-nct72-p2530.dtsi>
#include <tegra210-soc/tegra210-thermal-Tboard-Tdiode.dtsi>
#include “porg-platforms/tegra210-porg-power-tree-p3448-0000-a00.dtsi”
#include “porg-platforms/tegra210-pinmux-drive-sdmmc-common.dtsi”
#include “porg-platforms/tegra210-porg-pwm-fan.dtsi”
#include “porg-platforms/tegra210-porg-camera.dtsi”
#include “porg-platforms/tegra210-porg-camera-rbpcv2-imx219.dtsi”
#include “porg-platforms/tegra210-porg-camera-rbpcv2-dual-imx219.dtsi”
#include <t210-common-platforms/tegra210-ers-hdmi-e2190-1100-a00.dtsi>
#include <t210-common-platforms/tegra210-dp.dtsi>
#include “porg-platforms/tegra210-porg-thermal.dtsi”
#include “porg-platforms/tegra210-porg-thermal-fan-est.dtsi”
#include “porg-platforms/tegra210-porg-keys-p3448-0000-a00.dtsi”
#include <dt-bindings/iio/meter/ina3221x.h>
#include <tegra210-soc/tegra210-audio.dtsi>
#include “porg-platforms/tegra210-porg-cpufreq.dtsi”
#include “porg-platforms/tegra210-porg-powermon-p3448-0000-a00.dtsi”
#include “porg-plugin-manager/tegra210-porg-eeprom-manager.dtsi”
#include “porg-plugin-manager/tegra210-porg-plugin-manager.dtsi”
#include <tegra210-soc/mods-simple-bus.dtsi>
#include “porg-platforms/tegra210-porg-extcon-p3448-0000-a00.dtsi”
#include “porg-platforms/tegra210-porg-p3448-emc-a00.dtsi”
#include “porg-platforms/tegra210-porg-pcie.dtsi”
#include “porg-platforms/tegra210-porg-prods.dtsi”
#include “porg-platforms/tegra210-porg-super-module-e2614.dtsi”

/ {
nvidia,boardids = “3448”;
nvidia,proc-boardid = “3448”;
nvidia,pmu-boardid = “3448”;
nvidia,fastboot-usb-pid = <0xb442>;

chosen {
	nvidia,tegra-porg-sku;
	stdout-path = "/serial@70006000";
	nvidia,tegra-always-on-personality;
	bootargs = "kmemleak=on earlycon=uart8250,mmio32,0x70006000";
};

cpus {
	cpu@0 {
		clocks = <&tegra_car TEGRA210_CLK_CCLK_G>,
			 <&tegra_car TEGRA210_CLK_CCLK_LP>,
			 <&tegra_car TEGRA210_CLK_PLL_X>,
			 <&tegra_car TEGRA210_CLK_PLL_P_OUT4>,
			 <&tegra_clk_dfll>;
		clock-names = "cpu_g", "cpu_lp", "pll_x", "pll_p", "dfll";
		clock-latency = <300000>;
	};
};

rollback-protection {
	status = "okay";
};

watchdog@60005100 {
	status = "okay";
};

tegra_wdt: watchdog@60005100 {
	status = "disabled";
};

/* Graphics Host Registers */	
host1x {
	assigned-clocks = <&tegra_car TEGRA210_CLK_EXTERN3>,
					<&tegra_car TEGRA210_CLK_CILE>,
					<&tegra_car TEGRA210_CLK_CILCD>,
					<&tegra_car TEGRA210_CLK_CILAB>,
					<&tegra_car TEGRA210_CLK_VI_I2C>,
					<&tegra_car TEGRA210_CLK_CLK_OUT_3_MUX>,
					<&tegra_car TEGRA210_CLK_VI>,
					<&tegra_car TEGRA210_CLK_ISP>,
					<&tegra_car TEGRA210_CLK_ISPB>;
	
	assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>,
					<&tegra_car TEGRA210_CLK_PLL_P>,
					<&tegra_car TEGRA210_CLK_PLL_P>,
					<&tegra_car TEGRA210_CLK_PLL_P>,
					<&tegra_car TEGRA210_CLK_PLL_P>,
					<&tegra_car TEGRA210_CLK_EXTERN3>,
					<&tegra_car TEGRA210_CLK_PLL_C>,
					<&tegra_car TEGRA210_CLK_PLL_C>,
					<&tegra_car TEGRA210_CLK_ISP>;
	
	assigned-clock-rates = <24000000>,
					<102000000>,
					<102000000>,
					<102000000>,
					<102000000>,
					<24000000>,
					<408000000>,
					<408000000>,
					<0>;

	dc@54200000 {
		status = "okay";
		nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
		nvidia,emc-clk-rate = <300000000>;
		nvidia,cmu-enable = <1>;
		nvidia,fb-bpp = <32>; /* bits per pixel */
		nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
		nvidia,dc-or-node = "/host1x/sor1";
		nvidia,dc-connector = <&sor1>;
	};
	
	dc@54240000 {
		status = "okay";
		nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
		nvidia,emc-clk-rate = <300000000>;
		nvidia,cmu-enable = <1>;
		nvidia,fb-bpp = <32>; /* bits per pixel */
		nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
		nvidia,dc-or-node = "/host1x/sor";
		nvidia,dc-connector = <&sor0>;
	};

	/* sor, serial output resources (SORs) */
	sor {
		status = "okay";
		nvidia,xbar-ctrl = <2 1 0 3 4>;
		dp-display {
			status = "okay";
		};
	};

	/* 
	 * Compared to Jetson-TX1's baseboard (P2597), HDMI TX
	 * lanes 0 and 2 have been swapped in Porg's baseboard
	 * (P3448) making it a straight lane mapping between
	 * SOR1 and the pad.
	 */
	sor1 {
		nvidia,xbar-ctrl = <0 1 2 3 4>;
		status = "okay";
		hdmi-display {
			status = "okay";
		};
	};
	
	dpaux {
		status = "okay";
	};
	
	dpaux1 {
		status = "okay";
	};
};

pwm@7000a000 {
	nvidia,no-clk-sleeping-in-ops;
};

/* pmc, Power Management Controller */
pmc@7000e400 {
	#nvidia,wake-cells = <3>;

	nvidia,invert-interrupt;
	nvidia,suspend-mode = <0>;
	nvidia,cpu-pwr-good-time = <0>;
	nvidia,cpu-pwr-off-time = <0>;
	nvidia,core-pwr-good-time = <4587 3876>;
	nvidia,core-pwr-off-time = <39065>;
	nvidia,core-pwr-req-active-high;
	nvidia,sys-clock-req-active-high;

	iopad-defaults {
		audio-hv-pads {
			pins = "audio-hv";
			nvidia,power-source-voltage = <TEGRA_IO_PAD_VOLTAGE_1800000UV>;
		};

		spi-hv-pads {
			pins = "spi-hv";
			nvidia,power-source-voltage = <TEGRA_IO_PAD_VOLTAGE_1800000UV>;
		};

		gpio-pads {
			pins = "gpio";
			nvidia,power-source-voltage = <TEGRA_IO_PAD_VOLTAGE_1800000UV>;
		};

		sdmmc-io-pads {
			pins = "sdmmc1", "sdmmc3";
			nvidia,enable-voltage-switching;
		};
	};
};

spi@7000d400 {
	status = "okay";
};

spi@7000d600 {
	status = "okay";
};

spi@7000d800 {
	status = "disabled";
};

spi@7000da00 {
	status = "disabled";
};

spi@70410000 {
	status = "okay";
	spi-max-frequency = <104000000>;

	spiflash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "MX25U3235F";
		reg = <0>;
		spi-max-frequency = <104000000>;
		controller-data {
			nvidia,x1-len-limit = <4194304>;
			nvidia,x1-bus-speed = <104000000>;
			nvidia,x1-dymmy-cycle = <8>;
			nvidia,ctrl-bus-clk-ratio = /bits/ 8 <0x01>;
		};
	};
};

/* SDMMC4 for EMMC */
sdhci@700b0600 {
	uhs-mask = <0x0>;
	mmc-hs400-enhanced-strobe;
	built-in;
	power-off-rail;
	status = "disabled";
	bus-width = <8>;
	non-removable;
	/delete-property/ nvidia,enable-hs533-mode;
	no-sdio;
	no-sd;
	pll_source = "pll_p", "pll_c4_out2";
	max-clk-limit = <0xbebc200>;
};

sdhci@700b0400 {
	status = "okay";
	/delete-property/ keep-power-in-suspend;
	/delete-property/ non-removable;
	mmc-ddr-1_8v;
	mmc-ocr-mask = <3>;
	uhs-mask = <0x0>;
	max-clk-limit = <400000>;
	tap-delay = <3>;
};

/* SDMMC2 for Wifi */
sdhci@700b0200 {
	uhs-mask = <0x8>;
	power-off-rail;
	force-non-removable-rescan;
	status = "disabled";
};

/* SDMMC1 for SD card */
sdhci@700b0000 {
	default-drv-type = <1>;
	cd-gpios = <&gpio TEGRA_GPIO(Z, 1) 0>;
	sd-uhs-sdr104;
	sd-uhs-sdr50;
	sd-uhs-sdr25;
	sd-uhs-sdr12;
	mmc-ddr-1_8v;
	mmc-hs200-1_8v;
	nvidia,cd-wakeup-capable;
	nvidia,update-pinctrl-settings;
	nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_GPIO 35
		PMC_TRIGGER_TYPE_NONE>;
	uhs-mask = <0xc>;
	no-sdio;
	no-mmc;
	disable-wp;
	status = "okay";
};

aconnect@702c0000 {
	adma@702e2000 {
		dma-channels = <10>;
		status = "okay";
	};

	ahub {
		i2s@702d1000 {
			status = "disabled";
		};

		i2s@702d1100 {
			status = "disabled";
		};

		i2s@702d1200 {
			regulator-supplies = "vdd-1v8-dmic";
			vdd-1v8-dmic-supply = <&max77620_sd3>;
			fsync-width = <15>;
			status = "okay";
		};

		i2s@702d1300 {
			regulator-supplies = "vddio-uart";
			vddio-uart-supply = <&max77620_sd3>;
			fsync-width = <15>;
			status = "okay";

			/*
			 * I2S4 on Jetson Nano uses the I2S4B pads
                             * and to use these pads bit 0 in the I2S_CYA
			 * register must be set.
			 */
			enable-cya;
		};

		i2s@702d1400 {
			status = "disabled";
		};

		dmic@702d4000 {
			regulator-supplies = "vdd-1v8-dmic";
			vdd-1v8-dmic-supply = <&max77620_sd3>;
			status = "okay";
		};

		dmic@702d4100 {
			regulator-supplies = "vdd-1v8-dmic";
			vdd-1v8-dmic-supply = <&max77620_sd3>;
			status = "okay";
		};

		dmic@702d4200 {
			status = "disabled";
		};
	};
};

hda@70030000 {
	status = "okay";
};

/* codec rt5640 */
i2c@7000c400 {
    clock-frequency = <400000>;
    status = "okay";

    rt5640_codec: rt5640_codec@1c {
        compatible = "realtek,rt5640";
        reg = <0x1c>;
        status = "okay";
    };  
};  

i2s@702d1000 {
    status = "okay";
};  

sound_card: sound {
	status = "okay";
	compatible = "nvidia,tegra-audio-t210ref-mobile-rt565x";
	nvidia,model = "tegra-snd-t210ref-mobile-rt565x";

	clocks = <&tegra_car TEGRA210_CLK_PLL_P_OUT1>,
		<&tegra_car TEGRA210_CLK_PLL_A>,
		<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
		<&tegra_car TEGRA210_CLK_D_AUDIO>,
		<&tegra_car TEGRA210_CLK_CLK_M>,
		<&tegra_car TEGRA210_CLK_EXTERN1>;
	clock-names = "pll_p_out1", "pll_a", "pll_a_out0", "ahub",
		"clk_m", "extern1";

	assigned-clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
		<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
		<&tegra_car TEGRA210_CLK_D_AUDIO>,
		<&tegra_car TEGRA210_CLK_EXTERN1>;
	assigned-clock-rates = <368640000>, <36864000>,
		<36864000>, <12288000>;
	nvidia,num-codec-link = <4>;

	nvidia,audio-routing =
		"x Headphone",	"x OUT",
		"x IN",		"x Mic",
		"y Headphone",	"y OUT",
		"y IN",		"y Mic",
		"a IN",		"a Mic",
		"b IN",		"b Mic";

	nvidia,xbar = <&tegra_axbar>;
    
	i2s_dai_link1: nvidia,dai-link-1 {
		link-name = "rt5640-codec";
		cpu-dai = <&tegra_i2s1>;
		codec-dai = <&rt5640_codec>;
		cpu-dai-name = "I2S1";
		codec-dai-name = "rt5640_codec";
		format = "i2s";
		bitclock-slave;
		frame-slave;
		bitclock-noninversion;
		frame-noninversion;
		bit-format = "s16_le";
		bclk_ratio = <1>;
		srate = <48000>;
		num-channel = <2>;
		ignore_suspend;
		name-prefix = "x";
		status = "okay";
	};
	nvidia,dai-link-2 {
		link-name = "spdif-dit-1";
		cpu-dai = <&tegra_i2s3>;
		codec-dai = <&spdif_dit1>;
		cpu-dai-name = "I2S3";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bitclock-slave;
		frame-slave;
		bitclock-noninversion;
		frame-noninversion;
		bit-format = "s16_le";
		bclk_ratio = <1>;
		srate = <48000>;
		num-channel = <2>;
		ignore_suspend;
		name-prefix = "y";
		status = "okay";
	};
	nvidia,dai-link-3 {
		link-name = "spdif-dit-2";
		cpu-dai = <&tegra_dmic1>;
		codec-dai = <&spdif_dit2>;
		cpu-dai-name = "DMIC1";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bit-format = "s16_le";
		srate = <48000>;
		ignore_suspend;
		num-channel = <2>;
		name-prefix = "a";
		status = "okay";
	};
	nvidia,dai-link-4 {
		link-name = "spdif-dit-3";
		cpu-dai = <&tegra_dmic2>;
		codec-dai = <&spdif_dit3>;
		cpu-dai-name = "DMIC2";
		codec-dai-name = "dit-hifi";
		format = "i2s";
		bit-format = "s16_le";
		srate = <48000>;
		ignore_suspend;
		num-channel = <2>;
		name-prefix = "b";
		status = "okay";
	};
};

extcon {
	extcon@0 {
		status = "disabled";
	};
};

xusb_padctl@7009f000 {
	status = "okay";

	pads {
		usb2 {
			status = "okay";

			lanes {
				usb2-0 {
					status = "okay";
					nvidia,function = "xusb";
				};
				usb2-1 {
					status = "okay";
					nvidia,function = "xusb";
				};
				usb2-2 {
					status = "okay";
					nvidia,function = "xusb";
				};
			};
		};

		pcie {
			status = "okay";

			lanes {
				pcie-0 {
					status = "okay";
					nvidia,function = "pcie-x1";
				};
				pcie-1 {
					status = "okay";
					nvidia,function = "pcie-x4";
				};
				pcie-2 {
					status = "okay";
					nvidia,function = "pcie-x4";
				};
				pcie-3 {
					status = "okay";
					nvidia,function = "pcie-x4";
				};
				pcie-4 {
					status = "okay";
					nvidia,function = "pcie-x4";
				};
				pcie-5 {
					status = "okay";
					nvidia,function = "xusb";
				};
				pcie-6 {
					status = "okay";
					nvidia,function = "xusb";
				};
			};
		};
	};

	ports {
		usb2-0 {
			status = "okay";
			mode = "otg";
			nvidia,usb3-port-fake = <3>;
		};
		
		usb2-1 {
			status = "okay";
			mode = "host";
		};
		
		usb2-2 {
			status = "okay";
			mode = "host";
		};
		
		usb3-0 {
			status = "okay";
			nvidia,usb2-companion = <1>;
		};
	};
};

xusb@70090000 {
	phys = <&{/xusb_padctl@7009f000/pads/usb2/lanes/usb2-0}>,
			<&{/xusb_padctl@7009f000/pads/usb2/lanes/usb2-1}>,
			<&{/xusb_padctl@7009f000/pads/usb2/lanes/usb2-2}>,
			<&{/xusb_padctl@7009f000/pads/pcie/lanes/pcie-6}>;
	
	phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0";
	
	#extcon-cells = <1>;
	
	nvidia,pmc-wakeup =
		<&tegra_pmc
			PMC_WAKE_TYPE_EVENT 39 PMC_TRIGGER_TYPE_HIGH>,
		<&tegra_pmc
			PMC_WAKE_TYPE_EVENT 40 PMC_TRIGGER_TYPE_HIGH>,
		<&tegra_pmc
			PMC_WAKE_TYPE_EVENT 41 PMC_TRIGGER_TYPE_HIGH>,
		<&tegra_pmc
			PMC_WAKE_TYPE_EVENT 42 PMC_TRIGGER_TYPE_HIGH>,
		<&tegra_pmc
			PMC_WAKE_TYPE_EVENT 44 PMC_TRIGGER_TYPE_HIGH>;
	
	status = "okay";
};

xudc@700d0000 {
	phys =  <&{/xusb_padctl@7009f000/pads/usb2/lanes/usb2-0}>;
	phy-names = "usb2";
	charger-detector = <&tegra_usb_cd>;
	#extcon-cells = <1>;
	status = "okay";
};

tegra_usb_cd: usb_cd {
	reg = <0x0 0x7009f000 0x0 0x1000>;
	phys = <&{/xusb_padctl@7009f000/pads/usb2/lanes/usb2-0}>;
	phy-names = "otg-phy";
	status = "disabled";
};

psy_extcon_xudc {
	status = "disabled";
	/delete-property/ dt-override-status-odm-data;
};

xotg {
	status = "disabled";
	#extcon-cells = <1>;
};

chosen {
	nvidia,bootloader-xusb-enable;
	nvidia,bootloader-vbus-enable=<0x1>;
	nvidia,fastboot_without_usb;
	nvidia,gpu-disable-power-saving;
	board-has-eeprom;
	firmware-blob-partition = "RP4";

	verified-boot {
		poweroff-on-red-state;
	};
};

gpu-dvfs-rework {
	status = "okay";
};

pwm_regulators {
	compatible = "simple-bus";
	#address-cells = <1>;
	#size-cells = <0>;

	cpu_ovr_reg: pwm-regulator@0 {
		status = "okay";
		reg = <0>;
		compatible = "pwm-regulator";
		pwms = <&tegra_pwm_dfll 0 2500>;
		regulator-name = "vdd-cpu";
		regulator-min-microvolt = <708000>;
		regulator-max-microvolt = <1323400>;
		regulator-always-on;
		regulator-boot-on;
		voltage-table =
			<708000 0>, <727200 1>, <746400 2>,
			<765600 3>, <784800 4>, <804000 5>,
			<823200 6>, <842400 7>, <861600 8>,
			<880800 9>, <900000 10>, <919200 11>,
			<938400 12>, <957600 13>, <976800 14>,
			<996000 15>, <1015200 16>, <1034400 17>,
			<1053600 18>, <1072800 19>, <1092000 20>,
			<1111200 21>, <1130400 22>, <1149600 23>,
			<1168800 24>, <1188000 25>, <1207200 26>,
			<1226400 27>, <1245600 28>, <1264800 29>,
			<1284000 30>, <1303200 31>, <1322400 32>;
	};

	pwm-regulator@1 {
		status = "okay";
		reg = <1>;
		compatible = "pwm-regulator";
		pwms = <&tegra_pwm 1 8000>;
		regulator-name = "vdd-gpu";
		regulator-min-microvolt = <708000>;
		regulator-max-microvolt = <1323400>;
		regulator-init-microvolt = <1000000>;
		regulator-n-voltages = <62>;
		regulator-enable-ramp-delay = <2000>;
		enable-gpio = <&max77620 6 0>;
		regulator-settling-time-us = <160>;
	};
};

/* soc thermal */
soctherm@0x700E2000 {
	throttle-cfgs {
		throttle_oc1: oc1 {
			nvidia,priority = <0>;
			nvidia,polarity-active-low = <0>;
			nvidia,count-threshold = <0>;
			nvidia,alarm-filter = <0>;
			nvidia,alarm-period = <0>;
			nvidia,cpu-throt-percent = <0>;
			nvidia,gpu-throt-level =
				<TEGRA_SOCTHERM_THROT_LEVEL_NONE>;
		};

		throttle_oc3: oc3 {
			nvidia,priority = <40>;
			nvidia,polarity-active-low = <1>;
			nvidia,count-threshold = <15>;
			nvidia,alarm-filter = <5100000>;
			nvidia,alarm-period = <0>;
			nvidia,cpu-throt-percent = <75>;
			nvidia,gpu-throt-level =
				<TEGRA_SOCTHERM_THROT_LEVEL_MED>;
		};
	};
};

/* UART-A : UART1: Debug */
serial@70006000 {
	compatible = "nvidia,tegra210-uart", "nvidia,tegra114-hsuart", "nvidia,tegra20-uart";
	console-port;
	sqa-automation-port;
	/delete-property/ resets;
	/delete-property/ reset-names;
	status = "okay";
};

/* UART-B : UART2 40 pin header */
serial@70006040 {
	compatible = "nvidia,tegra114-hsuart";
	status = "okay";
};

/* UART-C : UART3 : M.2 Key E */
serial@70006200 {
	compatible = "nvidia,tegra114-hsuart";
	//dma-names = "tx";
	//nvidia,adjust-baud-rates = <921600 921600 100>;
	status = "okay";
};

/* UART-D not used */
serial@70006300 { 
	status = "disabled";
};

i2c@7000c700 {
	status = "okay";
};

i2c@7000d000 {
	clock-frequency = <1000000>;
};

dfll-max77621@70110000 {
	i2c_dfll: dfll-max77621-integration {
		i2c-fs-rate = <1000000>;
		pmic-i2c-address = <0x36>;
		pmic-i2c-voltage-register = <0x01>;
		sel-conversion-slope = <1>;
	};

	dfll_max77621_parms: dfll-max77621-board-params {
		sample-rate = <12500>;
		fixed-output-forcing;
		cf = <10>;
		ci = <0>;
		cg = <2>;
		droop-cut-value = <0xf>;
		droop-restore-ramp = <0x0>;
		scale-out-ramp = <0x0>;
	};
};

dfll_cap: dfll-cdev-cap {
	compatible = "nvidia,tegra-dfll-cdev-action";
	act-dev = <&tegra_clk_dfll>;
	cdev-type = "DFLL-cap";
	#cooling-cells = <2>; /* min followed by max */
};

dfll_floor: dfll-cdev-floor {
	compatible = "nvidia,tegra-dfll-cdev-action";
	act-dev = <&tegra_clk_dfll>;
	cdev-type = "DFLL-floor";
	#cooling-cells = <2>; /* min followed by max */
};

i2c@7000c000 {
	tegra_nct72: temp-sensor@4c {
		status = "disabled";
	};
};

clock@70110000 {
	status = "okay";
	vdd-cpu-supply = <&cpu_ovr_reg>;
	nvidia,dfll-max-freq-khz = <1479000>;
	nvidia,pwm-to-pmic;
	nvidia,init-uv = <1000000>;
	nvidia,sample-rate = <25000>;
	nvidia,droop-ctrl = <0x00000f00>;
	nvidia,force-mode = <1>;
	nvidia,cf = <6>;
	nvidia,ci = <0>;
	nvidia,cg = <2>;
	nvidia,idle-override;
	nvidia,one-shot-calibrate;
	nvidia,pwm-period = <2500>; /* 2.5us */
	pinctrl-names = "dvfs_pwm_enable", "dvfs_pwm_disable";
	pinctrl-0 = <&dvfs_pwm_active_state>;
	pinctrl-1 = <&dvfs_pwm_inactive_state>;
	nvidia,align-offset-uv = <708000>;
	nvidia,align-step-uv = <19200>;
};

dvfs {
	compatible = "nvidia,tegra210-dvfs";
    vdd-cpu-supply = <&cpu_ovr_reg>;
    nvidia,gpu-max-freq-khz = <921600>;
};

rtc {
	nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 16
		PMC_TRIGGER_TYPE_HIGH>;
};

nvpmodel {
	status = "okay";
};

r8168 {
	isolate-gpio = <&gpio TEGRA_GPIO(X, 3) 0>;
};

tegra_udrm: tegra_udrm {
	compatible = "nvidia,tegra-udrm";
};

soft_wdt: soft_watchdog {
	status = "okay";
};

gpio: gpio@6000d000 {
	suspend_gpio: system-suspend-gpio {
		status = "okay";
		gpio-hog;
		output-high;
		gpio-suspend;
		suspend-output-low;
		gpios = <
			TEGRA_GPIO(A, 6) 0
			>;
	};
};

leds {
	compatible = "gpio-leds";
	status = "disabled";
	pwr {
		gpios = <&gpio TEGRA_GPIO(I, 1) GPIO_ACTIVE_HIGH>;
		default-state = "on";
		linux,default-trigger = "system-throttle";
	};
};

memory-controller@70019000 {
	status = "okay";
};

mailbox@70098000 {
	status = "okay";
};

memory@80000000 {
	device_type = "memory";
	reg = < 0x0 0x80000000 0x0 0x80000000 >;
};

pinmux@700008d4 {
	dvfs_pwm_active_state: dvfs_pwm_active {
    	dvfs_pwm_pbb1 {
        	nvidia,pins = "dvfs_pwm_pbb1";
            nvidia,tristate = <TEGRA_PIN_DISABLE>;
		};
	};

	dvfs_pwm_inactive_state: dvfs_pwm_inactive {
    	dvfs_pwm_pbb1 {
        	nvidia,pins = "dvfs_pwm_pbb1";
        	nvidia,tristate = <TEGRA_PIN_ENABLE>;
    	};
    };
};

pwm@70110000 {
	pinctrl-0 = <&dvfs_pwm_active_state>;
	pinctrl-1 = <&dvfs_pwm_inactive_state>;
	pwm-regulator = <&cpu_ovr_reg>;
	status = "okay";
};

nvdumper {
	status = "disabled";
};

cpu_edp {
	status = "okay";
	nvidia,edp_limit = <0x61a8>;
};

gpu_edp {
	status = "okay";
	nvidia,edp_limit = <0x4e20>;
};

};

#if LINUX_VERSION >= 414
#include <tegra210-linux-4.14.dtsi>
#endif

Hello,

The dmesg output shows that the instantiation of the soundcard is failing because the ‘codec_roborock’ is not found. I do not need any reference to this in the DT source provided. Any idea where this codec DAI is coming from? Have you made other changes to the machine driver?

Regards,
Jon

Thank you very much for replying, Jon!

I did’t make any changes to the machine driver (tegra_machine_driver_mobile.c) and codec driver (kernel-4.9\sound\soc\codecs\rt5640.c).

I just modified the dts file “tegra210-porg-p3448-common.dtsi”. I added a DAI in this dts file as follows:

sound_card: sound {
status = “okay”;
compatible = “nvidia,tegra-audio-t210ref-mobile-rt565x”;
nvidia,model = “tegra-snd-t210ref-mobile-rt565x”;

clocks = <&tegra_car TEGRA210_CLK_PLL_P_OUT1>,
	<&tegra_car TEGRA210_CLK_PLL_A>,
	<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
	<&tegra_car TEGRA210_CLK_D_AUDIO>,
	<&tegra_car TEGRA210_CLK_CLK_M>,
	<&tegra_car TEGRA210_CLK_EXTERN1>;
clock-names = "pll_p_out1", "pll_a", "pll_a_out0", "ahub",
	"clk_m", "extern1";

assigned-clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
	<&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
	<&tegra_car TEGRA210_CLK_D_AUDIO>,
	<&tegra_car TEGRA210_CLK_EXTERN1>;
assigned-clock-rates = <368640000>, <36864000>,
	<36864000>, <12288000>;
nvidia,num-codec-link = <4>;

nvidia,audio-routing =
	"x Headphone",	"x OUT",
	"x IN",		"x Mic",
	"y Headphone",	"y OUT",
	"y IN",		"y Mic",
	"a IN",		"a Mic",
	"b IN",		"b Mic";

nvidia,xbar = <&tegra_axbar>;

i2s_dai_link1: nvidia,dai-link-1 {
	link-name = "rt5640-playback";
	cpu-dai = <&tegra_i2s4>;
	codec-dai = <&rt5640_codec>;
	cpu-dai-name = "i2s4_roborock";
	codec-dai-name = "codec_roborock";
	format = "i2s";
	bitclock-slave;
	frame-slave;
	bitclock-noninversion;
	frame-noninversion;
	bit-format = "s16_le";
	bclk_ratio = <1>;
	srate = <48000>;
	num-channel = <2>;
	ignore_suspend;
	name-prefix = "x";
	status = "okay";
};
......

};

And the rt5640_codec node is as follows:

/* codec rt5640 */
i2c@7000c400 {
clock-frequency = <400000>;
status = “okay”;

rt5640_codec: rt5640_codec@1c {
        compatible = "realtek,rt5640";
        reg = <0x1c>;
        status = "okay";
};  

};

Hi, Jon
Thank you very much for replying!

I modified the sub node “nvidia,dai-link-1” as follows, and the function “snd_soc_register_card()” returned ok.

i2s_dai_link1: nvidia,dai-link-1 {
link-name = “rt5640_playback”;
cpu-dai = <&tegra_i2s4>;
codec-dai = <&rt5640_codec>;
cpu-dai-name = “I2S4”;
codec-dai-name = “rt5640-aif1”;
format = “i2s”;
bitclock-slave;
frame-slave;
bitclock-noninversion;
frame-noninversion;
bit-format = “s16_le”;
bclk_ratio = <1>;
srate = <48000>;
num-channel = <2>;
ignore_suspend;
name-prefix = “x”;
status = “okay”;
};

But there is no any data in the I2S bus between Jetson nano module and codec ALC5640 when I used the folloing command in nano:
aplay -l
speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0

When I executed the command “aplay -l”, the result is as follows:

roborock@jetson-nano:~$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 0: ADMAIF1 CIF ADMAIF1-0
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 1: ADMAIF2 CIF ADMAIF2-1
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 2: ADMAIF3 CIF ADMAIF3-2
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 3: ADMAIF4 CIF ADMAIF4-3
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 4: ADMAIF5 CIF ADMAIF5-4
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 5: ADMAIF6 CIF ADMAIF6-5
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 6: ADMAIF7 CIF ADMAIF7-6
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 7: ADMAIF8 CIF ADMAIF8-7
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 8: ADMAIF9 CIF ADMAIF9-8
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 9: ADMAIF10 CIF ADMAIF10-9
Subdevices: 1/1
Subdevice #0: subdevice #0

I used the following command to test speaker or headphone output:
speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0

And the result is as follows:

roborock@jetson-nano:~$ speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0

speaker-test 1.1.3

Playback device is plughw:CARD=tegrasndt210ref,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 8192
Period size range from 32 to 4096
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
0 - Front Left
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Time per period = 0.109037
0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Time per period = 0.119448
0 - Front Left
Write error: -32,Broken pipe
1 - Front Right
Time per period = 0.090788
0 - Front Left
1 - Front Right
Time per period = 0.093434
0 - Front Left
1 - Front Right
Time per period = 0.094561
0 - Front Left
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0.112389
0 - Front Left
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0.115736
0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Time per period = 0.112398
0 - Front Left
1 - Front Right
Time per period = 0.094554
0 - Front Left
1 - Front Right
Time per period = 0.093454
0 - Front Left
1 - Front Right
Time per period = 0.097502
0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0.122311
0 - Front Left
Write error: -32,Broken pipe
1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0.116299
0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
1 - Front Right
Time per period = 0.103405
0 - Front Left
1 - Front Right
Time per period = 0.093435
0 - Front Left
1 - Front Right
Time per period = 0.094523
0 - Front Left
1 - Front Right
Time per period = 0.094875
0 - Front Left
1 - Front Right
Time per period = 0.093317
0 - Front Left
1 - Front Right
Time per period = 0.093569
0 - Front Left
1 - Front Right
Time per period = 0.094050
0 - Front Left
1 - Front Right
Time per period = 0.094521
0 - Front Left
1 - Front Right
Time per period = 0.093572
0 - Front Left
1 - Front Right
Time per period = 0.094493
0 - Front Left
1 - Front Right
Time per period = 0.094536
0 - Front Left
1 - Front Right
Time per period = 0.093467
0 - Front Left
1 - Front Right
Write error: -32,Broken pipe
Time per period = 0.100996
0 - Front Left
1 - Front Right
Time per period = 0.093898
0 - Front Left
1 - Front Right
Time per period = 0.093470
0 - Front Left
1 - Front Right
Time per period = 0.094540
0 - Front Left
1 - Front Right
Time per period = 0.093945
0 - Front Left
1 - Front Right
Time per period = 0.094100
0 - Front Left
^C 1 - Front Right
Transfer failed: Bad address

As mentioned in chapter " Audio Setup and Development" of the L4T document:

“By default, a few interfaces may be connected to dummy codecs (spdif-dit0, spdif-dit1, etc.) for testing when no physical codec is present. This allows the SoC to drive the interface pins even when no external device is present. These dummy codecs can be replaced by actual codecs (like rt5658 in example above) when a codec is connected to a given interface.”

Then I used the dummy codecs (spdif-dit0) to drive the I2S interface pins, the according sub node “nvidia,dai-link-1” is as follows:

i2s_dai_link1: nvidia,dai-link-1 {
link-name = “spdif-dit-0”;
cpu-dai = <&tegra_i2s4>;
codec-dai = <&spdif_dit0>;
cpu-dai-name = “I2S4”;
codec-dai-name = “dit-hifi”;
format = “i2s”;
bitclock-slave;
frame-slave;
bitclock-noninversion;
frame-noninversion;
bit-format = “s16_le”;
bclk_ratio = <1>;
srate = <48000>;
num-channel = <2>;
ignore_suspend;
name-prefix = “x”;
status = “okay”;
};

When I executed the command “aplay -l”, the result is as follows:

roborock@jetson-nano:~$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 0: ADMAIF1 CIF ADMAIF1-0
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 1: ADMAIF2 CIF ADMAIF2-1
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 2: ADMAIF3 CIF ADMAIF3-2
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 3: ADMAIF4 CIF ADMAIF4-3
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 4: ADMAIF5 CIF ADMAIF5-4
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 5: ADMAIF6 CIF ADMAIF6-5
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 6: ADMAIF7 CIF ADMAIF7-6
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 7: ADMAIF8 CIF ADMAIF8-7
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 8: ADMAIF9 CIF ADMAIF9-8
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 9: ADMAIF10 CIF ADMAIF10-9
Subdevices: 1/1
Subdevice #0: subdevice #0

Then I used the “speker-test” tool to test speaker as follows:
speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0

And the result is as follows:

roborock@jetson-nano:~$ speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0

speaker-test 1.1.3

Playback device is plughw:CARD=tegrasndt210ref,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 8192
Period size range from 32 to 4096
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
0 - Front Left
1 - Front Right
Time per period = 2.866379
0 - Front Left
1 - Front Right
Time per period = 3.027356
0 - Front Left
1 - Front Right
Time per period = 2.986260
0 - Front Left
1 - Front Right
Time per period = 3.029689
0 - Front Left
1 - Front Right
Time per period = 2.988884
0 - Front Left
1 - Front Right
Time per period = 3.026966
0 - Front Left
1 - Front Right
Time per period = 2.986121
0 - Front Left
1 - Front Right
Time per period = 3.029676
0 - Front Left

I used the oscilloscope to measure the data on the I2S bus between nano module and codec(ALC5640), and there are datas on the I2S bus for the dummy codec(spdif-dit0).

Hello!

So you do not see any data on the I2S bus when using the RT5640 codec?

Have you configured the audio path in the RT5640 codec? If not then most audio codecs have various mixer settings that need to be configured in order to configure the audio path.

We use the RT5639 codec on the Jetson TK1 board (which uses the same driver as the RT5640) and to configure the codec for playback/capture we set the following …

# playback
$ amixer -c "${scard}" cset name='HP Playback Switch' on
$ amixer -c "${scard}" cset name='Stereo DAC MIXL DAC L1 Switch' on
$ amixer -c "${scard}" cset name='Stereo DAC MIXR DAC R1 Switch' on
$ amixer -c "${scard}" cset name='HPO MIX DAC1 Switch' on
# capture
$ amixer -c "${scard}" cset name="Stereo ADC MIXL ADC2 Switch" 0
$ amixer -c "${scard}" cset name="Stereo ADC MIXR ADC2 Switch" 0
$ amixer -c "${scard}" cset name="Int Mic Switch" 0
$ amixer -c "${scard}" cset name="ADC Capture Switch" 1
$ amixer -c "${scard}" cset name="RECMIXL BST1 Switch" 0
$ amixer -c "${scard}" cset name="RECMIXR BST1 Switch" 0
$ amixer -c "${scard}" cset name="RECMIXL BST2 Switch" 1
$ amixer -c "${scard}" cset name="RECMIXR BST2 Switch" 1
$ amixer -c "${scard}" cset name="Stereo ADC L1 Mux" "ADC"
$ amixer -c "${scard}" cset name="Stereo ADC R1 Mux" "ADC"
$ amixer -c "${scard}" cset name="Stereo ADC MIXL ADC1 Switch" 1
$ amixer -c "${scard}" cset name="Stereo ADC MIXR ADC1 Switch" 1
$ amixer -c "${scard}" cset name="Stereo ADC MIXL ADC2 Switch" 0
$ amixer -c "${scard}" cset name="Stereo ADC MIXR ADC2 Switch" 0
$ amixer -c "${scard}" cset name="IN1 Mode Control" "Single ended"
$ amixer -c "${scard}" cset name="IN2 Mode Control" "Single ended"

Where “${scard}” would be “tegrasndt210ref” in your case.

Regards,
Jon

Hi Jon, thank you very much for replying.

Yes, I did not see any data on the I2S bus when using the RT5640 codec, but the dummy codec(spdif-dit0) worked correctlly.

I executed the commands as you mentioned on Jetson nano to configure the audio path for RT5640 codec, but there were some errors. The results is as follows:

roborock@jetson-nano:~$ amixer -c “tegrasndt210ref” cset name=‘HP Playback Switch’ on
amixer: Cannot find the given element from control hw:1

roborock@jetson-nano:~$ amixer -c “tegrasndt210ref” cset name=‘Stereo DAC MIXL DAC L1 Switch’ on
amixer: Cannot find the given element from control hw:1

roborock@jetson-nano:~$ amixer -c “tegrasndt210ref” cset name=‘Stereo DAC MIXR DAC R1 Switch’ on
amixer: Cannot find the given element from control hw:1

roborock@jetson-nano:~$ amixer -c “tegrasndt210ref” cset name=‘HPO MIX DAC1 Switch’ on
amixer: Cannot find the given element from control hw:1