About porting audio codec from TX1 to TX2.

Trying to port the I2S audio codec from TX1 to TX2.
TX1 operates by setting DTS as follows.

<hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-common.dtsi>

pinmux: pinmux@700008d4 {                 ★★★
	pinmux_default: common {
		aud_mclk_pbb0 {
			nvidia,pins = "aud_mclk_pbb0";         ★★★
			nvidia,function = "aud";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_DISABLE>;
		};

		dap1_din_pb1 {
			nvidia,pins = "dap1_din_pb1";         ★★★
			nvidia,function = "i2s1";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
		};

		dap1_dout_pb2 {
			nvidia,pins = "dap1_dout_pb2";         ★★★
			nvidia,function = "i2s1";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
		};

		dap1_fs_pb0 {
			nvidia,pins = "dap1_fs_pb0";          ★★★
			nvidia,function = "i2s1";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
		};

		dap1_sclk_pb3 {
			nvidia,pins = "dap1_sclk_pb3";         ★★★
			nvidia,function = "i2s1";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
		};
	};
};

<hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-common-p3489-1000-a00.dtsi>

gpio@6000d000 {
    gpio_default: default {
        gpio-hog;
        function;
        gpios = <
            TEGRA_GPIO(B, 0) 0               ★★★
            TEGRA_GPIO(B, 1) 0               ★★★
            TEGRA_GPIO(B, 2) 0               ★★★
            TEGRA_GPIO(B, 3) 0               ★★★
            TEGRA_GPIO(BB, 0) 0              ★★★
            >;
        label = "I2S0_LRCLK", "I2S0_SDIN", "I2S0_SDOUT",
            "I2S0_CLK", "AUDIO_MCLK";
        status = "okay";
    };
};

In order to port to TX2, I think that the above code needs to be changed.
Can you teach me how to change a line with ★★★ in TX2?
I want to know what the corresponding pins.

In addition, I operate GPIO in TX1.
I want to know what the corresponding GPIO number is in TX2.
The GPIO numbers operated by TX1 are listed below.

[TX1 GPIO number]
216(AUD_MCLK)、8(LR)、9(Data in)、10(Data out)、11(BCLK)、66(AMP)

The fact that the above GPIO operation is necessary is referred to the following Forum.

https://devtalk.nvidia.com/default/topic/949616/jetson-tx1/setting-audio_mclk-to-output/post/4940627/#4940627

Hi kmatsuda,

It looks weird to me that you want to use those pins directly on TX2.

For example,
aud_mclk_pbb0 indicates it is using pin BB.0, but this pin on TX2 is actually used by UFS.

You should follow up the pinmux spreadsheet on the download center and find the correct pin.

Hi WayneWWW,

Thank you for the information.
I will check the documents.