Why TX2 always reboot after add WM8960 audio device?

Hi:
Everyone,I encounter a problem!
When I add a wm8960 module on TX2, I only connect I2C bus on devkit’s J21. I enable WM8960 driver in kernel and I add some line in DTS file like below:

i2c@3160000 {
		    wm8960_codec: wm8960@1a {
		        status = "okay";
 		       compatible = "wlf,wm8960";
		        reg = <0x1a>;
	    };
	};
Then the TX2 always reboot and print some line:

CPU2 : stopping 
CPU: 2 PID : 0 comm :swapper/2 Tainted : G DW 4.4.38-tegra #44.....

Someone can help me? Thank you!

Hi Richard,

Can you tell me which pins on J21 you are using? There are two I2C bus available on J21 and typically I use the I2C on pins 3 and 5 which is i2c@c240000. Looks like you are trying to use I2C1 on J21 pins 27 and 28. Is that correct?

Can you also attach the complete serial console output?

Thanks
Jon

@jonathanh
Thank you for ur replay. I use pin 27 an pin 28 on J21 which paired with i2c@3160000. Because I first used pin 3 and 5 encounter the same problem. I add my dts code in file :tegra186-quill-power-tree-p3310-1000-a00-00.dtsi . Is that right?

I used jetpack ver28.1. The boot image I put here:

Does the problem occur even if you don’t make any changes to the device-tree files? In other words, use the L4T release without any modifications? If so, then this implies an electrical issue with the connection between the Jetson TX2 and the codec board.

What WM8960 module are you using? Is this something that you have purchased or made?

Exactly how is the module connected to the Jetson TX2? For example, I have used the fe-pi audio z v2 board [0] which has a 40-pin connector that is compatible with the 40-pin header on the Jetson. Does your board have a 40-pin header or do you just connect the relevant signals via jumper wires? Any details you can provide on how the module is connected would be helpful.

With regard to where to add your device-tree changes, typically I would place them in hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-common.dtsi.

Regards,
Jon

@jonathanh
Thank you for ur replay!
1. The problem don’t occur if I only change the dts file but not connect the I2C bus. If I connect the 2 wires of I2C bus, the problem is occurred. After the TX2 boot up successfully, I connect the 2 wire bus, the wm8960 module can be write but can’t be detected by “i2cdetect -y -r 0”.
2. I use a wm8960 module which bought from web, the module may be mature and was bought 100+ times.
3. I just connect the module via jumper wires and only 2 wires for test.

The image is my connect method.

 The image is my waveform when I write wm8960 register." i2cset -f -y 0 0x1a 0x0 0xf5".

Can you save the complete console output to a text file, showing the complete boot log until the crash and attach?

I would also like to know if having the module connected but NOT enabled in device-tree also would cause the crash. If it does, then it implies an electrical issue but if not then maybe a software/configuration issue.

Thanks Jon

If I dont enable the device in dts file, the system is work fine. I will upload thelog later. And I bought another module like ur mentioned. That module can connect directly with TX2 J21. Thank you.

@jonathanh
hi,I bought another module like ur mentioned(wm8960 module), but the TX2 always reboot. I found that may be a config problem:
I change the dts file like below:
wm8960_dai_link: nvidia,dai-link-1 {
link-name = “wm8960-playback”;
cpu-dai = <&tegra_i2s1>;
codec-dai = <&wm8960_codec>;
cpu-dai-name = “I2S1”;
codec-dai-name = “wm8960-hifi”;
format = “i2s”;
bitclock-slave;
frame-slave;
bitclock-noninversion;
frame-noninversion;
bit-format = “s16_le”;
bclk_ratio = <0>;
srate = <48000>;
num-channel = <2>;
ignore_suspend;
name-prefix = “x”;
status = “okay”;
};
If the line :codec-dai-name = “wm8960-hifi”;TX2 always reboot. But I change the line to
codec-dai-name = “dit-hifi”;
The TX2 can reboot but TX2 can’t find sound card!
Can u give me some suggestion?

Hello!

Sounds like the kernel is crashing. Per comment #7 please can you save the complete console output to a text file in the case where the codec-dai-name = “wm8960-hifi” and the TX2 reboots and attach this file.

Regards,
Jon

If I use codec-dai-name = “wm8960-hifi” ,the log like this and always reboot.I found that the wm8960 codec is registered then the cpu into wrong state!

[    2.621046] cpufreq: platform driver Initialization: pass
[    2.621186] tegra_cluster_clk e090000.cluster_clk_priv: in probe()...
[    2.621241] tegra_cluster_clk e090000.cluster_clk_priv: passed
[    2.621415] tegra186-padctl 3520000.pinctrl: padctl mmio start 0x0000000003520000 end 0x0000000003520fff
[    2.621419] tegra186-padctl 3520000.pinctrl: ao mmio start 0x0000000003540000 end 0x0000000003540fff
[    2.621453] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2ca917
[    2.621456] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    2.622443] tegra186-padctl 3520000.pinctrl: using UTMI port 0 for otg
[    2.622969] tegra186-padctl 3520000.pinctrl: VBUS over-current detection enabled
[    2.623452] tegra-bpmp-thermal d000000.bpmp:bpmpthermal: zone 0 not supported
[    2.625352] cpuidle: Initializing cpuidle driver init for Denver cluster
[    2.625461] cpuidle: Initializing cpuidle driver init for A57 cluster
[    2.626298] tachometer tegra-tachometer: Tachometer driver tegra-tachometer registered
[    2.626301] Tachometer driver initialized with pulse_per_rev: 2 and win_len: 2
[    2.627798] enter wm8960_i2c_probe--------------------------------
[    2.631730] finish wm8960_i2c_probe--------------------------------
[    2.632723] tegra210_adsp_audio_platform_probe: platform probe started
[    2.633222] tegra210-adsp adsp_audio: Default param-type to BYTE for mp3-dec1
[    2.633464] tegra210-adsp adsp_audio: Default param-type to BYTE for spkprot
[    2.633778] tegra210-adsp adsp_audio: Default param-type to BYTE for src
[    2.634047] tegra210-adsp adsp_audio: Default param-type to BYTE for aac-dec1
[    2.634358] tegra210-adsp adsp_audio: Default param-type to BYTE for aec
[    2.634362] tegra210-adsp adsp_audio: adma channel page address dt entry not found
[    2.634363] tegra210-adsp adsp_audio: using adma channel page 0
[    2.640853] tegra210_adsp_audio_platform_probe probe successfull.
[    2.640853] input: tegra-hda HDMI/DP,pcm=3 as /devices/3510000.hda/sound/card0/input0
[    2.640976] input: tegra-hda HDMI/DP,pcm=7 as /devices/3510000.hda/sound/card0/input1
[    2.644070] OPE platform probe
[    2.644137] OPE platform probe successful
[    2.648628] enter tegra_t186ref_driver_probe--------------------------------
[    2.648744] tegra-snd-t186ref-mobile-rt565x sound: Failed to get HP Det GPIO, should be handled by codec
[    2.652583] mmc1: SDHCI controller on 3440000.sdhci [3440000.sdhci] using PIO with 64 bit addr
[    2.652828] sdhci-tegra 3400000.sdhci: Got CD GPIO
[    2.652865] sdhci-tegra 3400000.sdhci: Got WP GPIO
[    2.652913] sdhci-tegra 3400000.sdhci: Parent select= pll_p rate=408000000
[    2.652934] sdhci-tegra 3400000.sdhci: wakeup init done, cd_irq: 256
[    2.653138] sdhci-tegra 3400000.sdhci: Client registration for eMC Successful
[    2.686599] mmc0: MAN_BKOPS_EN bit is not set
[    2.692861] gpio tegra-gpio wake71 for gpio=125(P:5)
[    2.692896] mmc2: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit with 64 bit addr
[    2.693866] mmc0: Skipping tuning since strobe enabled
[    2.696973] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF1 <-> ADMAIF1 mapping ok
[    2.697045] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF2 <-> ADMAIF2 mapping ok
[    2.697112] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF3 <-> ADMAIF3 mapping ok
[    2.697180] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF4 <-> ADMAIF4 mapping ok
[    2.697251] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF5 <-> ADMAIF5 mapping ok
[    2.697320] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF6 <-> ADMAIF6 mapping ok
[    2.697388] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF7 <-> ADMAIF7 mapping ok
[    2.697456] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF8 <-> ADMAIF8 mapping ok
[    2.697530] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF9 <-> ADMAIF9 mapping ok
[    2.697601] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF10 <-> ADMAIF10 mapping ok
[    2.697668] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF11 <-> ADMAIF11 mapping ok
[    2.697742] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF12 <-> ADMAIF12 mapping ok
[    2.697808] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF13 <-> ADMAIF13 mapping ok
[    2.697876] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF14 <-> ADMAIF14 mapping ok
[    2.697943] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF15 <-> ADMAIF15 mapping ok
[    2.698009] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF16 <-> ADMAIF16 mapping ok
[    2.698083] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF17 <-> ADMAIF17 mapping ok
[    2.698148] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF18 <-> ADMAIF18 mapping ok
[    2.698215] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF19 <-> ADMAIF19 mapping ok
[    2.698281] tegra-snd-t186ref-mobile-rt565x sound: ADMAIF20 <-> ADMAIF20 mapping ok
[    2.701153] tegra-snd-t186ref-mobile-rt565x sound: ADSP-FE1 <-> ADSP PCM1 mapping ok
[    2.701222] tegra-snd-t186ref-mobile-rt565x sound: ADSP-FE2 <-> ADSP PCM2 mapping ok
[    2.701246] compress asoc: ADSP-FE3 <-> ADSP COMPR1 mapping ok
[    2.701268] compress asoc: ADSP-FE4 <-> ADSP COMPR2 mapping ok
[    2.701334] mmc0: periodic cache flush enabled
[    2.701341] mmc0: new HS400 MMC card at address 0001
[    2.701642] mmcblk0: mmc0:0001 032G34 29.1 GiB 
[    2.701780] mmcblk0rpmb: mmc0:0001 032G34 partition 3 4.00 MiB
[    2.702963]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
[    2.741100] mmc1: queuing unknown CIS tuple 0x80 (5 bytes)
[    2.772598] ata1: SATA link down (SStatus 0 SControl 300)
[    2.833943] input: tegra-snd-t186ref-mobile-rt565x Headphone Jack as /devices/sound/sound/card1/input2
[    2.834365] tegra-snd-t186ref-mobile-rt565x sound: codec-dai "wm8960-hifi" registered
[    2.834370] ------------[ cut here ]------------
[    2.834372] WARNING: at ffffffc0000bb2d0 [verbose debug info unavailable]
[    2.834374] Modules linked in:
[    2.834374] 
[    2.834378] CPU: 4 PID: 1 Comm: swapper/0 Tainted: G        W       4.4.38-tegra #48
[    2.834379] Hardware name: quill (DT)
[    2.834381] task: ffffffc1ece70000 ti: ffffffc1ece78000 task.ti: ffffffc1ece78000
[    2.834388] PC is at __queue_delayed_work+0x138/0x148
[    2.834391] LR is at queue_delayed_work_on+0x74/0x80
[    2.834393] pc : [<ffffffc0000bb2d0>] lr : [<ffffffc0000bb354>] pstate: 200000c5
[    2.834393] sp : ffffffc1ece7bb10
[    2.834396] x29: ffffffc1ece7bb10 x28: 0000000000000014 
[    2.834398] x27: ffffffbffa81efb0 x26: ffffffc07037a198 
[    2.834400] x25: ffffffc1f5e75840 x24: ffffffc001388028 
[    2.834402] x23: 000000000000003f x22: ffffffc1ecde4e00 
[    2.834403] x21: ffffffc1ecde4e00 x20: 0000000000000040 
[    2.834405] x19: ffffffc1e618c580 x18: 0000000000020000 
[    2.834406] x17: 000000000004bc41 x16: 0000000000014b12 
[    2.834408] x15: ffffffc0012501e8 x14: 6572657473696765 
[    2.834409] x13: 722022696669682d x12: 303639386d772220 
[    2.834411] x11: 000000000000001a x10: 0101010101010101 
[    2.834413] x9 : 207835363574722d x8 : 7f7f7f7f7f7f7f7f 
[    2.834414] x7 : fefefeff1f686568 x6 : 0000002080808083 
[    2.834416] x5 : 0000000000000000 x4 : ffffffc0000bb178 
[    2.834417] x3 : 000000000000003f x2 : ffffffc1e618c560 
[    2.834419] x1 : 0000000000000000 x0 : ffffffc0013b491b 
[    2.834419] 
[    2.834420] ---[ end trace 3f45d095aabf7d5a ]---
[    2.834422] Call trace:
[    2.834424] [<ffffffc0000bb2d0>] __queue_delayed_work+0x138/0x148
[    2.834427] [<ffffffc0000bb354>] queue_delayed_work_on+0x74/0x80
[    2.834432] [<ffffffc00098c82c>] rt5659_set_jack_detect+0x2c/0x38
[    2.834435] [<ffffffc0009a59c8>] tegra_t186ref_driver_probe+0x500/0x548
[    2.834439] [<ffffffc00057b3b8>] platform_drv_probe+0x50/0xb8
[    2.834442] [<ffffffc000578eb4>] driver_probe_device+0xcc/0x428
[    2.834443] [<ffffffc0005792ac>] __driver_attach+0x9c/0xa0
[    2.834447] [<ffffffc000576dd0>] bus_for_each_dev+0x60/0xa0
[    2.834448] [<ffffffc0005787d0>] driver_attach+0x20/0x28
[    2.834450] [<ffffffc000578340>] bus_add_driver+0x210/0x298
[    2.834452] [<ffffffc00057a078>] driver_register+0x60/0xf8
[    2.834454] [<ffffffc00057b2f4>] __platform_driver_register+0x4c/0x58
[    2.834458] [<ffffffc00113844c>] tegra_t186ref_driver_init+0x1c/0x24
[    2.834460] [<ffffffc000081ac0>] do_one_initcall+0xd0/0x1d8
[    2.834464] [<ffffffc0010f0b50>] kernel_init_freeable+0x1d4/0x278
[    2.834467] [<ffffffc000b552b8>] kernel_init+0x18/0xe0
[    2.834470] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    2.834471] ------------[ cut here ]------------
[    2.834472] WARNING: at ffffffc0000bb298 [verbose debug info unavailable]
[    2.834473] Modules linked in:
[    2.834473] 
[    2.834476] CPU: 4 PID: 1 Comm: swapper/0 Tainted: G        W       4.4.38-tegra #48
[    2.834476] Hardware name: quill (DT)
[    2.834477] task: ffffffc1ece70000 ti: ffffffc1ece78000 task.ti: ffffffc1ece78000
[    2.834480] PC is at __queue_delayed_work+0x100/0x148
[    2.834482] LR is at queue_delayed_work_on+0x74/0x80
[    2.834483] pc : [<ffffffc0000bb298>] lr : [<ffffffc0000bb354>] pstate: 200000c5
[    2.834484] sp : ffffffc1ece7bb10
[    2.834486] x29: ffffffc1ece7bb10 x28: 0000000000000014 
[    2.834487] x27: ffffffbffa81efb0 x26: ffffffc07037a198 
[    2.834489] x25: ffffffc1f5e75840 x24: ffffffc001388028 
[    2.834491] x23: 000000000000003f x22: ffffffc1ecde4e00 
[    2.834492] x21: ffffffc1ecde4e00 x20: 0000000000000040 
[    2.834494] x19: ffffffc1e618c580 x18: 0000000000020000 
[    2.834495] x17: 000000000004bc41 x16: 0000000000014b12 
[    2.834497] x15: ffffffc0012501e8 x14: 6572657473696765 
[    2.834498] x13: 722022696669682d x12: 303639386d772220 
[    2.834500] x11: 000000000000001a x10: 0101010101010101 
[    2.834501] x9 : 207835363574722d x8 : 7f7f7f7f7f7f7f7f 
[    2.834503] x7 : fefefeff1f686568 x6 : 0000002080808083 
[    2.834504] x5 : 0000000000000000 x4 : ffffffc0000bb178 
[    2.834506] x3 : 000000000000003f x2 : ffffffc1e618c560 
[    2.834507] x1 : 0000000000000000 x0 : ffffffc0013b491b 
[    2.834508] 
[    2.834509] ---[ end trace 3f45d095aabf7d5b ]---
[    2.834509] Call trace:
[    2.834511] [<ffffffc0000bb298>] __queue_delayed_work+0x100/0x148
[    2.834513] [<ffffffc0000bb354>] queue_delayed_work_on+0x74/0x80
[    2.834515] [<ffffffc00098c82c>] rt5659_set_jack_detect+0x2c/0x38
[    2.834516] [<ffffffc0009a59c8>] tegra_t186ref_driver_probe+0x500/0x548
[    2.834518] [<ffffffc00057b3b8>] platform_drv_probe+0x50/0xb8
[    2.834520] [<ffffffc000578eb4>] driver_probe_device+0xcc/0x428
[    2.834521] [<ffffffc0005792ac>] __driver_attach+0x9c/0xa0
[    2.834523] [<ffffffc000576dd0>] bus_for_each_dev+0x60/0xa0
[    2.834525] [<ffffffc0005787d0>] driver_attach+0x20/0x28
[    2.834526] [<ffffffc000578340>] bus_add_driver+0x210/0x298
[    2.834527] [<ffffffc00057a078>] driver_register+0x60/0xf8
[    2.834529] [<ffffffc00057b2f4>] __platform_driver_register+0x4c/0x58
[    2.834531] [<ffffffc00113844c>] tegra_t186ref_driver_init+0x1c/0x24
[    2.834532] [<ffffffc000081ac0>] do_one_initcall+0xd0/0x1d8
[    2.834534] [<ffffffc0010f0b50>] kernel_init_freeable+0x1d4/0x278
[    2.834536] [<ffffffc000b552b8>] kernel_init+0x18/0xe0
[    2.834537] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    2.834538] ------------[ cut here ]------------
[    2.834539] WARNING: at ffffffc0000bb268 [verbose debug info unavailable]
[    2.834540] Modules linked in:
[    2.834540] 
[    2.834542] CPU: 4 PID: 1 Comm: swapper/0 Tainted: G        W       4.4.38-tegra #48
[    2.834543] Hardware name: quill (DT)
[    2.834544] task: ffffffc1ece70000 ti: ffffffc1ece78000 task.ti: ffffffc1ece78000
[    2.834546] PC is at __queue_delayed_work+0xd0/0x148
[    2.834548] LR is at queue_delayed_work_on+0x74/0x80
[    2.834549] pc : [<ffffffc0000bb268>] lr : [<ffffffc0000bb354>] pstate: 000000c5
[    2.834550] sp : ffffffc1ece7bb10
[    2.834552] x29: ffffffc1ece7bb10 x28: 0000000000000014 
[    2.834553] x27: ffffffbffa81efb0 x26: ffffffc07037a198 
[    2.834555] x25: ffffffc1f5e75840 x24: ffffffc001388028 
[    2.834556] x23: 000000000000003f x22: ffffffc1ecde4e00 
[    2.834558] x21: ffffffc1ecde4e00 x20: 0000000000000040 
[    2.834559] x19: ffffffc1e618c580 x18: 0000000000020000 
[    2.834561] x17: 000000000004bc41 x16: 0000000000014b12 
[    2.834562] x15: ffffffc0012501e8 x14: 6572657473696765 
[    2.834564] x13: 722022696669682d x12: 303639386d772220 
[    2.834565] x11: 000000000000001a x10: 0101010101010101 
[    2.834567] x9 : 207835363574722d x8 : 7f7f7f7f7f7f7f7f 
[    2.834568] x7 : fefefeff1f686568 x6 : 0000002080808083 
[    2.834570] x5 : 0000000000000000 x4 : ffffffc0000bb178 
[    2.834571] x3 : 000000000000003f x2 : ffffffc1e618c560 
[    2.834573] x1 : 0000000000000000 x0 : ffffffc0013b491b 
[    2.834573] 
[    2.834574] ---[ end trace 3f45d095aabf7d5c ]---
[    2.834574] Call trace:
[    2.834577] [<ffffffc0000bb268>] __queue_delayed_work+0xd0/0x148
[    2.834579] [<ffffffc0000bb354>] queue_delayed_work_on+0x74/0x80
[    2.834580] [<ffffffc00098c82c>] rt5659_set_jack_detect+0x2c/0x38
[    2.834581] [<ffffffc0009a59c8>] tegra_t186ref_driver_probe+0x500/0x548
[    2.834583] [<ffffffc00057b3b8>] platform_drv_probe+0x50/0xb8
[    2.834584] [<ffffffc000578eb4>] driver_probe_device+0xcc/0x428
[    2.834586] [<ffffffc0005792ac>] __driver_attach+0x9c/0xa0
[    2.834588] [<ffffffc000576dd0>] bus_for_each_dev+0x60/0xa0
[    2.834589] [<ffffffc0005787d0>] driver_attach+0x20/0x28
[    2.834591] [<ffffffc000578340>] bus_add_driver+0x210/0x298
[    2.834592] [<ffffffc00057a078>] driver_register+0x60/0xf8
[    2.834594] [<ffffffc00057b2f4>] __platform_driver_register+0x4c/0x58
[    2.834596] [<ffffffc00113844c>] tegra_t186ref_driver_init+0x1c/0x24
[    2.834597] [<ffffffc000081ac0>] do_one_initcall+0xd0/0x1d8
[    2.834599] [<ffffffc0010f0b50>] kernel_init_freeable+0x1d4/0x278
[    2.834600] [<ffffffc000b552b8>] kernel_init+0x18/0xe0
[    2.834602] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    2.834604] ------------[ cut here ]------------
[    2.834605] Kernel BUG at ffffffc000108598 [verbose debug info unavailable]
[    2.834607] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[    2.834609] Modules linked in:
[    2.834611] CPU: 4 PID: 1 Comm: swapper/0 Tainted: G        W       4.4.38-tegra #48
[    2.834612] Hardware name: quill (DT)
[    2.834613] task: ffffffc1ece70000 ti: ffffffc1ece78000 task.ti: ffffffc1ece78000
[    2.834616] PC is at add_timer+0x20/0x28
[    2.834618] LR is at __queue_delayed_work+0x90/0x148
[    2.834619] pc : [<ffffffc000108598>] lr : [<ffffffc0000bb228>] pstate: 600000c5
[    2.834620] sp : ffffffc1ece7bb10
[    2.834622] x29: ffffffc1ece7bb10 x28: 0000000000000014 
[    2.834623] x27: ffffffbffa81efb0 x26: ffffffc07037a198 
[    2.834625] x25: ffffffc1f5e75840 x24: ffffffc001388028 
[    2.834627] x23: 000000000000003f x22: ffffffc1ecde4e00 
[    2.834628] x21: ffffffc1ecde4e00 x20: 0000000000000040 
[    2.834630] x19: ffffffc1e618c580 x18: 0000000000020000 
[    2.834631] x17: 000000000004bc41 x16: 0000000000014b12 
[    2.834633] x15: ffffffc0012501e8 x14: 6572657473696765 
[    2.834634] x13: 722022696669682d x12: 303639386d772220 
[    2.834636] x11: 000000000000001a x10: 0101010101010101 
[    2.834637] x9 : 207835363574722d x8 : 7f7f7f7f7f7f7f7f 
[    2.834639] x7 : fefefeff1f686568 x6 : 0000002080808083 
[    2.834640] x5 : 0000000000000000 x4 : ffffffc0000bb178 
[    2.834642] x3 : 00000000fffeddfd x2 : ffffffc1e618c880 
[    2.834643] x1 : 0000000000000001 x0 : ffffffc1e618c580 
[    2.834643] 
[    2.834645] Process swapper/0 (pid: 1, stack limit = 0xffffffc1ece78020)
[    2.834645] Call trace:
[    2.834647] [<ffffffc000108598>] add_timer+0x20/0x28
[    2.834649] [<ffffffc0000bb354>] queue_delayed_work_on+0x74/0x80
[    2.834651] [<ffffffc00098c82c>] rt5659_set_jack_detect+0x2c/0x38
[    2.834652] [<ffffffc0009a59c8>] tegra_t186ref_driver_probe+0x500/0x548
[    2.834654] [<ffffffc00057b3b8>] platform_drv_probe+0x50/0xb8
[    2.834655] [<ffffffc000578eb4>] driver_probe_device+0xcc/0x428
[    2.834657] [<ffffffc0005792ac>] __driver_attach+0x9c/0xa0
[    2.834659] [<ffffffc000576dd0>] bus_for_each_dev+0x60/0xa0
[    2.834660] [<ffffffc0005787d0>] driver_attach+0x20/0x28
[    2.834661] [<ffffffc000578340>] bus_add_driver+0x210/0x298
[    2.834663] [<ffffffc00057a078>] driver_register+0x60/0xf8
[    2.834664] [<ffffffc00057b2f4>] __platform_driver_register+0x4c/0x58
[    2.834666] [<ffffffc00113844c>] tegra_t186ref_driver_init+0x1c/0x24
[    2.834667] [<ffffffc000081ac0>] do_one_initcall+0xd0/0x1d8
[    2.834669] [<ffffffc0010f0b50>] kernel_init_freeable+0x1d4/0x278
[    2.834671] [<ffffffc000b552b8>] kernel_init+0x18/0xe0
[    2.834673] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    2.834675] ---[ end trace 3f45d095aabf7d5d ]---
[    2.835680] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.835680] 
[    2.835684] CPU5: stopping
[    2.835687] CPU: 5 PID: 0 Comm: swapper/5 Tainted: G      D W       4.4.38-tegra #48
[    2.835688] Hardware name: quill (DT)
[    2.835689] Call trace:
[    2.835693] [<ffffffc000089378>] dump_backtrace+0x0/0xe8
[    2.835695] [<ffffffc000089474>] show_stack+0x14/0x20
[    2.835699] [<ffffffc000333f18>] dump_stack+0xa0/0xc8
[    2.835701] [<ffffffc00008e6d8>] handle_IPI+0x2f8/0x320
[    2.835703] [<ffffffc00008160c>] gic_handle_irq+0xa4/0xc0
[    2.835705] [<ffffffc000084740>] el1_irq+0x80/0xf8
[    2.835709] [<ffffffc0007f9fa0>] cpuidle_enter+0x18/0x20
[    2.835711] [<ffffffc0000e880c>] call_cpuidle+0x24/0x50
[    2.835713] [<ffffffc0000e8aa8>] cpu_startup_entry+0x270/0x340
[    2.835714] [<ffffffc00008e0ac>] secondary_start_kernel+0x12c/0x168
[    2.835716] [<000000008008192c>] 0x8008192c
[    2.835718] CPU3: stopping
[    2.835720] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D W       4.4.38-tegra #48
[    2.835721] Hardware name: quill (DT)
[    2.835722] Call trace:
[    2.835726] [<ffffffc000089378>] dump_backtrace+0x0/0xe8
[    2.835728] [<ffffffc000089474>] show_stack+0x14/0x20
[    2.835730] [<ffffffc000333f18>] dump_stack+0xa0/0xc8
[    2.835732] [<ffffffc00008e6d8>] handle_IPI+0x2f8/0x320
[    2.835733] [<ffffffc00008160c>] gic_handle_irq+0xa4/0xc0
[    2.835735] [<ffffffc000084740>] el1_irq+0x80/0xf8
[    2.835737] [<ffffffc0007f9fa0>] cpuidle_enter+0x18/0x20
[    2.835739] [<ffffffc0000e880c>] call_cpuidle+0x24/0x50
[    2.835740] [<ffffffc0000e8aa8>] cpu_startup_entry+0x270/0x340
[    2.835742] [<ffffffc00008e0ac>] secondary_start_kernel+0x12c/0x168
[    2.835744] [<000000008008192c>] 0x8008192c
[    2.835750] CPU1: stopping
[    2.835758] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.4.38-tegra #48
[    2.835760] Hardware name: quill (DT)
[    2.835761] Call trace:
[    2.835770] [<ffffffc000089378>] dump_backtrace+0x0/0xe8
[    2.835774] [<ffffffc000089474>] show_stack+0x14/0x20
[    2.835778] [<ffffffc000333f18>] dump_stack+0xa0/0xc8
[    2.835782] [<ffffffc00008e6d8>] handle_IPI+0x2f8/0x320
[    2.835785] [<ffffffc00008160c>] gic_handle_irq+0xa4/0xc0
[    2.835788] [<ffffffc000084740>] el1_irq+0x80/0xf8
[    2.835793] [<ffffffc0007f9fa0>] cpuidle_enter+0x18/0x20
[    2.835797] [<ffffffc0000e880c>] call_cpuidle+0x24/0x50
[    2.835800] [<ffffffc0000e8aa8>] cpu_startup_entry+0x270/0x340
[    2.835803] [<ffffffc00008e0ac>] secondary_start_kernel+0x12c/0x168
[    2.835806] [<000000008008192c>] 0x8008192c
[    2.835810] CPU2: stopping
[    2.835814] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D W       4.4.38-tegra #48
[    2.835816] Hardware name: quill (DT)
[    2.835817] Call trace:
[    2.835823] [<ffffffc000089378>] dump_backtrace+0x0/0xe8
[    2.835826] [<ffffffc000089474>] show_stack+0x14/0x20
[    2.835848] [<ffffffc000333f18>] dump_stack+0xa0/0xc8
[    2.835851] [<ffffffc00008e6d8>] handle_IPI+0x2f8/0x320
[    2.835853] [<ffffffc00008160c>] gic_handle_irq+0xa4/0xc0
[    2.835856] [<ffffffc000084740>] el1_irq+0x80/0xf8
[    2.835859] [<ffffffc0007f9fa0>] cpuidle_enter+0x18/0x20
[    2.835862] [<ffffffc0000e880c>] call_cpuidle+0x24/0x50
[    2.835864] [<ffffffc0000e8aa8>] cpu_startup_entry+0x270/0x340
[    2.835867] [<ffffffc00008e0ac>] secondary_start_kernel+0x12c/0x168
[    2.835870] [<000000008008192c>] 0x8008192c
[    2.835871] CPU0: stopping
[    2.835874] CPU: 0 PID: 150 Comm: kworker/u12:3 Tainted: G      D W       4.4.38-tegra #48
[    2.835875] Hardware name: quill (DT)
[    2.835880] Workqueue: kmmcd mmc_rescan
[    2.835881] Call trace:
[    2.835884] [<ffffffc000089378>] dump_backtrace+0x0/0xe8
[    2.835886] [<ffffffc000089474>] show_stack+0x14/0x20
[    2.835888] [<ffffffc000333f18>] dump_stack+0xa0/0xc8
[    2.835890] [<ffffffc00008e6d8>] handle_IPI+0x2f8/0x320
[    2.835891] [<ffffffc00008160c>] gic_handle_irq+0xa4/0xc0
[    2.835893] [<ffffffc000084740>] el1_irq+0x80/0xf8
[    2.835897] [<ffffffc00081aa58>] sdhci_execute_tuning+0x480/0x870
[    2.835899] [<ffffffc0007ffc90>] mmc_execute_tuning+0x48/0xb0
[    2.835901] [<ffffffc000809660>] mmc_sdio_init_card+0x7e0/0x9d8
[    2.835903] [<ffffffc000809e9c>] mmc_attach_sdio+0x9c/0x350
[    2.835904] [<ffffffc0008011d8>] mmc_rescan+0x288/0x300
[    2.835905] [<ffffffc0000bbab8>] process_one_work+0x138/0x4c0
[    2.835907] [<ffffffc0000bbf64>] worker_thread+0x124/0x498
[    2.835909] [<ffffffc0000c1cc4>] kthread+0xdc/0xf0
[    2.835911] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    6.356359] Rebooting in 5 seconds..

my dts file like below :

tegra_sound: sound {
		compatible = "nvidia,tegra-audio-t186ref-mobile-rt565x";
		nvidia,model = "tegra-snd-t186ref-mobile-rt565x";		
                 nvidia,num-codec-link = <1>;
		nvidia,num-clk = <8>;
		nvidia,clk-rates = < 270950400	/* PLLA_x11025_RATE */
				     11289600	/* AUD_MCLK_x11025_RATE */
				     45158400	/* PLLA_OUT0_x11025_RATE */
				     45158400	/* AHUB_x11025_RATE */
				     245760000  /* PLLA_x8000_RATE */
				     12288000	/* AUD_MCLK_x8000_RATE */
				     49152000	/* PLLA_OUT0_x8000_RATE */
				     49152000 >;/* AHUB_x8000_RATE */
		clocks = <&tegra_car TEGRA186_CLK_PLLP_OUT0>,
			<&tegra_car TEGRA186_CLK_PLLA>,
			<&tegra_car TEGRA186_CLK_PLL_A_OUT0>,
			<&tegra_car TEGRA186_CLK_AHUB>,
			<&tegra_car TEGRA186_CLK_CLK_M>,
			<&tegra_car TEGRA186_CLK_AUD_MCLK>;
		clock-names = "pll_p_out1", "pll_a", "pll_a_out0", "ahub",
				"clk_m", "extern1";
		resets = <&tegra_car TEGRA186_RESET_AUD_MCLK>;
		reset-names = "extern1_rst";

		status = "okay";
		nvidia,audio-routing =
                         "x Headphone", "x HP_L",
    			 "x Headphone", "x HP_R";			

		nvidia,xbar = <&tegra_axbar>;		

                wm8960_dai_link: nvidia,dai-link-1 {
		    link-name = "rt565x-playback";
		    cpu-dai = <&tegra_i2s1>;
		    codec-dai = <&wm8960_codec>;
		    cpu-dai-name = "I2S1";
		    codec-dai-name = "dit-hifi";
		    format = "i2s";
		    bitclock-slave;
		    frame-slave;
		    bitclock-noninversion;
		    frame-noninversion;
		    bit-format = "s16_le";
		    bclk_ratio = <0>;
		    srate = <48000>;
		    num-channel = <2>;
		    ignore_suspend;
		    name-prefix = "x";
		    status = "okay";
		};		
		
	};

and

i2c@c240000 {
		status = "okay";

	         wm8960_codec: wm8960@1a {
		        status = "okay";
 		        compatible = "wlf,wm8960";
		        reg = <0x1a>;
	         };

All these code in tegra186-quill-common.dtsi file.

Thanks! Now I see what is happening and can see why the kernel is crashing. This is a known bug and is fixed by the following …

https://nv-tegra.nvidia.com/gitweb/?p=linux-t18x.git;a=commit;h=2b5800eb3797037defbdd02d2d5dbf9ac09394ef

The above fix should be in L4T rel28.2, what release are you using?

Regards,
Jon