audio problem on i2s3

dear sir
I’m working on my own board, L4T 32.2.2,now we have a codes connect to i2s3,but i can not capture the mclk with an oscilloscope.I check the function refer to https://devtalk.nvidia.com/default/topic/1049674/jetson-nano/audio-i2s-on-40-pin-connector/1 ,find the audio_mclk is config as gpio,the dmesg and dts config is like this:
1、dts config

sound {
		status = "okay";
		spkvdd-supply = <&en_aud_spk_5v0>;
		dbvdd-supply = <&en_aud_vdd_1v8>;
		avdd-supply = <&en_aud_vdd_3v3>;
		
		nvidia,audio-routing =			
			"x Headphone", "x SPK_LN",
		    "x Headphone", "x SPK_LP",
			"x Headphone", "x SPK_RN",
	        "x Headphone", "x SPK_RP",
			"x Headphone", "x HP_L",
			"x Headphone", "x HP_R",
			"x LINPUT1",		"x Mic",
			"x LINPUT2",		"x Mic",
						
			"y Headphone",	"y OUT",
			"y IN",		"y Mic",
			"a IN",		"a Mic",
			"b IN",		"b Mic";
			
			nvidia,dai-link-1 {
				//link-name = "wm8960-playback";
				link-name = "rt565x-playback";
				codec-dai = <&adas_wm8960>;	//codec_of_node
				codec-dai-name = "wm8960-hifi";
				cpu-dai = <&tegra_i2s3>;
				cpu-dai-name = "I2S3";
			};
			nvidia,dai-link-2 {
				cpu-dai = <&tegra_i2s4>;
				cpu-dai-name = "I2S4";
			
			};
	}
gpio@6000d000 {
		nb01-wm8960-audio {
			gpio-hog;
			function;
			gpios = <
				TEGRA_GPIO(E, 0) 0
				TEGRA_GPIO(E, 1) 0
				TEGRA_GPIO(E, 2) 0
				TEGRA_GPIO(E, 3) 0
				TEGRA_GPIO(BB, 0) 0
				>;
			label = "I2S3_LRCLK", "I2S3_SDIN", "I2S3_SDOUT",
				"I2S3_CLK", "AUDIO_MCLK";
			status = "okay";
		};
	}
i2c@7000c500 {
		adas_wm8960:wm8960@1a {
			compatible = "wlf,wm8960";
			reg = <0x1a>;
			status = "okay";
			// gpio for jack detection ,unused this time
			//gpios = <&tegra_main_gpio TEGRA_MAIN_GPIO(J , 5) GPIO_ACTIVE_HIGH>;
		};
	};

2、read the register config

:~$ sudo grep "Name:\|E:\|BB:" /sys/kernel/debug/tegra_gpio
Name:Bank:Port CNF OE OUT IN INT_STA INT_ENB INT_LVL
 E: 1:0 40 00 00 00 00 00 000000
BB: 6:3 01 00 00 01 00 00 000000
EE: 7:2 00 00 00 00 00 00 000000

Hi dgw_1985,

Have you referred to the L4T document to debug your audio issue?
See: https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fasoc_driver.html%23wwpID0E0SH0HA

hi,kayccc
yes,I have you referred to the L4T document,I’m port from TX2 to nano,it’s working fine on tx2,I can got the sound card message on kernel log,so could you check why the GPIOBB0 can not config as i2s function?

[    2.217458] vdd-fan: disabling
[    2.217461] vdd-usb-vbus: disabling
[    2.217464] vdd-usb-vbus2: disabling
[    2.217487] vddio-sdmmc-ap: disabling
[    2.217570] vdd-3v3-sd: disabling
[    2.217575] avdd-io-edp-1v05: disabling
[    2.217578] vdd-usb-hub-en: disabling
[    2.217580] pw-on-4g: disabling
[    2.217582] rst-4g: disabling
[    2.217585] en-4g-vdd-3v8: disabling
[    2.217587] en-aud-vdd-1v8: disabling
[    2.217589] en-aud-vdd-3v3: disabling
[    2.217592] en-aud-spk-5v0: disabling
[b][    2.217681] ALSA device list:
[    2.217684]   #0: tegra-hda at 0x70038000 irq 82
[    2.217687]   #1: tegra-snd-t210ref-mobile-rt565x[/b]
[    2.220718] Freeing unused kernel memory: 8576K
[    2.239219] L4T-INITRD Build DATE: Wed Nov 20 01:05:22 UTC 2019
[    2.243611] Root device found: mmcblk0p1
[    2.244669] Found dev node: /dev/mmcblk0p1

hi,kayccc
Have some new ideas

Hello!

The ‘gpio-hog’ functionality is no longer supported in the latest L4T release. We are working on a way to simplify the process for reconfiguring these pins but for now we recommend updating the u-boot bootloader as described in the following post for reconfiguring the AUD_MCLK. Note that this post configures the AUD_MCLK and the I2S4 pins.

https://devtalk.nvidia.com/default/topic/1061108/jetson-nano/i2s-audio-output-not-working/post/5374074/#5374074

Regards,
Jon

hello,jonathanh
have some link or document for uboot build? i have never used it or nano or tx2,tki

Hello!

Please see the following section in the development guide:

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fuboot_guide.html%23wwpID0E0LK0HA

Regards,
Jon

Hello!

I just wanted to let you know that we have release JetPack 4.3 (L4T 32.3.1) and we now have a tool included to assist with the reconfiguration of the pins exposed by the 40-pin header so that you no longer need to rebuild and reflash. Please see the following:

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fhw_setup_jetson_io.html%23

Regards,
Jon

Hello!

Just to let you know that we have identified an issue with the Jetson.IO tool on Nano when updating Nano using SD card image. However, there is a simple fix availabe. Details are here:

https://devtalk.nvidia.com/default/topic/1068583/jetson-nano/jetpack-4-3-l4t-r32-3-1-released/post/5413341/#5413341

Regards,
Jon