AGX Xavier HDMI use HDMI0 & can not connect

Our new carrier board use the HDMIDP0-TXDP0 , not use the HDMIDP2-TXDP2
1646659073(1)

so I change the device -tree file
hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2822-disp.dtsi
like this:

&head0 {

status = "okay";

nvidia,fb-bpp = <32>;

nvidia,fbmem-size = <265420800>; /* 8K (7680*4320) 32bpp double buffered */

nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;

win-mask = <0x3>;

nvidia,fb-win = <0>;

nvidia,dc-connector = <&sor0>;

nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;

avdd_hdmi-supply = <&p2888_spmic_sd0>; /* 1v0 */

avdd_hdmi_pll-supply = <&p2888_spmic_sd1>; /* 1v8 */

vdd_hdmi_5v0-supply = <&p2822_vdd_hdmi_5v0>; /* 5v0 */

};

&sor0 {

status = "okay";

nvidia,active-panel = <&sor0_hdmi_display>;

};

&sor0_hdmi_display {

status = "okay";

disp-default-out {

    nvidia,out-flags = <TEGRA_DC_OUT_HOTPLUG_LOW>;

};

};

&dpaux0 {

status = "okay";

};

&dpaux1 {

status = "okay";

};

&dpaux2 {

status = "okay";

};

&tegra_cec {

status = "okay";

};

and then the log like this

[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options ‘’)
[ 0.000000] bootconsole [tegra_comb_uart0] enabled
[ 1.849542] ucsi_ccg 1-0008: read version failed
[ 1.849661] ucsi_ccg 1-0008: get_fw_info fail, err=-121
[ 2.426820] rt5659 7-001a: Device with ID register ffffff80 is not rt5659
[ 2.525848] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 2.526040] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.499951] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.500123] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.514028] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.514215] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.846010] cgroup: cgroup2: unknown option “nsdelegate”
[ 5.265760] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 5.265954] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.098154] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.098341] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.099263] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.103822] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.107599] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 6.109754] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.109935] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.115573] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.119121] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.134195] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 6.136341] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.136514] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.138968] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.142914] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.310282] random: crng init done
[ 6.310387] random: 7 urandom warning(s) missed due to ratelimiting
[ 7.123622] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 7.125780] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 7.125949] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 7.127076] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 7.131043] Could not get extcon-dev /xhci@3610000:id(0)
[ 7.214935] CPU4: shutdown
[ 7.266435] CPU5: shutdown
[ 7.322367] CPU6: shutdown
[ 7.398255] CPU7: shutdown
[ 8.367804] Bridge firewalling registered

can you give me some suggest?

Please try to correct the format to share log and code first.

you can put log like this

you can put code with "preformatted text"

This is log:

[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options ‘’)
[ 0.000000] bootconsole [tegra_comb_uart0] enabled
[ 1.849542] ucsi_ccg 1-0008: read version failed
[ 1.849661] ucsi_ccg 1-0008: get_fw_info fail, err=-121
[ 2.426820] rt5659 7-001a: Device with ID register ffffff80 is not rt5659
[ 2.525848] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 2.526040] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.499951] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.500123] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.514028] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.514215] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.846010] cgroup: cgroup2: unknown option “nsdelegate”
[ 5.265760] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 5.265954] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.098154] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.098341] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.099263] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.103822] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.107599] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 6.109754] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.109935] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.115573] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.119121] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.134195] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 6.136341] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.136514] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.138968] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 6.142914] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.310282] random: crng init done
[ 6.310387] random: 7 urandom warning(s) missed due to ratelimiting
[ 7.123622] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 7.125780] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 7.125949] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 7.127076] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 7.131043] Could not get extcon-dev /xhci@3610000:id(0)
[ 7.214935] CPU4: shutdown
[ 7.266435] CPU5: shutdown
[ 7.322367] CPU6: shutdown
[ 7.398255] CPU7: shutdown
[ 8.367804] Bridge firewalling registered
[/quote]

This is code

&head0 {
status = "okay";

nvidia,fb-bpp = <32>;

nvidia,fbmem-size = <265420800>; /* 8K (7680*4320) 32bpp double buffered */

nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;

win-mask = <0x3>;

nvidia,fb-win = <0>;

nvidia,dc-connector = <&sor0>;

nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;

avdd_hdmi-supply = <&p2888_spmic_sd0>; /* 1v0 */

avdd_hdmi_pll-supply = <&p2888_spmic_sd1>; /* 1v8 */

vdd_hdmi_5v0-supply = <&p2822_vdd_hdmi_5v0>; /* 5v0 */
};
&sor0 {
status = "okay";

nvidia,active-panel = <&sor0_hdmi_display>;
};
&sor0_hdmi_display {
status = "okay";

disp-default-out {

    nvidia,out-flags = <TEGRA_DC_OUT_HOTPLUG_LOW>;

};
};
&dpaux0 {
status = "okay";
};
&dpaux1 {
status = "okay";
};
&dpaux2 {
status = "okay";
};
&tegra_cec {
status = "okay";
};

Please remove the extcon node under your nvdisplay and xhci node. That is the type C node using on devkit for DP and usb port. I guess you don’t have them on your carrier board.

I am sorry that I don’t clearly about that how to remove the extcon node.

Current issue is below two lines.

[ 7.127076] Could not get extcon-dev /host1x/nvdisplay@15200000:typec0(0)
[ 7.131043] Could not get extcon-dev /xhci@3610000:id(0)

The nodes are already mentioned in log, so just search your device tree files and locate these two.

I delete that

-&head0 {
-       extcon-cables = <&typec_port0 2 &typec_port1 2>;
-       extcon-cable-names = "typec0", "typec1";
-       #extcon-cells = <1>;
-};
-
-&head1 {
-       extcon-cables = <&typec_port0 2 &typec_port1 2>;
-       extcon-cable-names = "typec0", "typec1";
-       #extcon-cells = <1>;
-};
-
-&head2 {
-       extcon-cables = <&typec_port0 2 &typec_port1 2>;
-       extcon-cable-names = "typec0", "typec1";
-       #extcon-cells = <1>;
-};
-
-&sor0 {
-       nvidia,typec-port = /bits/ 8 <0>;
-};
-
-&sor1 {
-       nvidia,typec-port = /bits/ 8 <1>;
-};
-

and the log like this

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.253-tegra (root@guanxing-GA-870A-UD3) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #180 SMP PREEMPT Mon Mar 7 15:58:03 CST 2022
[ 0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[ 0.000000] OF: fdt:memory scan node memory, reg size 48,
[ 0.000000] OF: fdt: - 80000000 , 2c000000
[ 0.000000] OF: fdt: - ac200000 , 44800000
[ 0.000000] OF: fdt: - 100000000 , 380000000
[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options ‘’)
[ 0.000000] bootconsole [tegra_comb_uart0] enabled
WARNING: pll_d has no dyn ramp
[ 1.755463] ucsi_ccg 1-0008: read version failed
[ 1.755581] ucsi_ccg 1-0008: get_fw_info fail, err=-121
[ 1.793266] tegradc 15200000.nvdisplay: hdmi: edid read failed
WARNING: pll_d has no dyn ramp
[ 2.379512] rt5659 7-001a: Device with ID register ffffff80 is not rt5659
[ 2.485317] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 2.485583] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.461352] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.461579] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.472507] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 4.472739] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 4.824231] cgroup: cgroup2: unknown option “nsdelegate”
[ 4.949255] tegra_cec 3960000.tegra_cec: timeout in tegra_cec_native_write_l:172.
[ 5.228463] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 5.228758] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 5.991902] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 5.992183] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 5.997450] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.001542] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 6.003989] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 6.004225] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 6.010344] Could not get extcon-dev /xhci@3610000:id(0)
[ 6.156478] random: crng init done
[ 6.156626] random: 7 urandom warning(s) missed due to ratelimiting
[ 7.046385] CPU4: shutdown
[ 7.138527] CPU5: shutdown
[ 7.214479] CPU6: shutdown
[ 7.297404] Could not get extcon-dev /xudc@3550000:vbus(0)
[ 7.300069] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[ 7.300287] tegra-asoc: sound: snd_soc_register_card failed (-517)
[ 7.304229] CPU7: shutdown
[ 7.305883] Could not get extcon-dev /xhci@3610000:id(0)
[ 8.784024] Bridge firewalling registered

Ubuntu 18.04.5 LTS nvidia-desktop ttyTCU0

nvidia-desktop login: [ 71.665800] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.670860] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.676005] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.689808] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.694551] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.699485] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.712288] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.717149] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.721956] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.735013] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.735735] tegradc 15200000.nvdisplay: hdmi: edid read failed
[ 71.758213] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.783193] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.788311] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.792997] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.798041] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.810434] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.815334] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.820183] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.824947] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.836910] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.841927] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 92.842802] tegradc 15200000.nvdisplay: hdmi: edid read failed
[ 92.865794] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50

add our I2C schematic diagram

Please refer to the AGX design guide for the i2c part.


Do you mean that 3.3V must be connected here?

Our hardware engineer rechecked the hardware and thought that the hardware design was in line with the guidance document

Can you give me some other suggestion

Please check if the pinmux of that HPD pin is set to GPIO. If you didn’t change the default one, then it might be SFIO for DP.

There is someting to update:

while I use this code change

diff -urNa hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2822-disp.dtsi hardware_gai/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2822-disp.dtsi
--- hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2822-disp.dtsi	2021-07-27 03:07:44.000000000 +0800
+++ hardware_gai/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2822-disp.dtsi	2021-12-17 11:56:07.000000000 +0800
@@ -50,11 +50,13 @@
 	nvidia,fb-win = <2>;
 	nvidia,dc-connector = <&sor0>;
 	nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
-	vdd-dp-pwr-supply = <&p2888_spmic_sd0>;
-	avdd-dp-pll-supply = <&p2888_spmic_sd1>;
-	vdd-edp-sec-mode-supply = <&battery_reg>;
-	vdd-dp-pad-supply = <&battery_reg>;
-	vdd_hdmi_5v0-supply = <&p2822_vdd_hdmi_5v0>;
+	//vdd-dp-pwr-supply = <&p2888_spmic_sd0>;
+	//avdd-dp-pll-supply = <&p2888_spmic_sd1>;
+	//vdd-edp-sec-mode-supply = <&battery_reg>;
+	//vdd-dp-pad-supply = <&battery_reg>;
+	avdd_hdmi-supply = <&p2888_spmic_sd0>; /* 1v0 */
+	avdd_hdmi_pll-supply = <&p2888_spmic_sd1>; /* 1v8 */
+	vdd_hdmi_5v0-supply = <&p2822_vdd_hdmi_5v0>; /* 5v0 */
 };
 
 &head2 {
@@ -73,7 +75,7 @@
 	vdd_hdmi_5v0-supply = <&p2822_vdd_hdmi_5v0>;
 };
 
-
+/*
 &sor0 {
 	status = "okay";
 	nvidia,active-panel = <&sor0_dp_display>;
@@ -82,8 +84,21 @@
 &sor0_dp_display {
 	status = "okay";
 	nvidia,is_ext_dp_panel = <1>;
+};*/
+
+&sor0 {
+	status = "okay";
+	nvidia,active-panel = <&sor0_hdmi_display>;
+};
+
+&sor0_hdmi_display {
+	status = "okay";
+	disp-default-out {
+		nvidia,out-flags = <TEGRA_DC_OUT_HOTPLUG_LOW>;
+	};
 };
 
+
 &sor1 {
 	status = "okay";
 	nvidia,active-panel = <&sor1_dp_display>;
diff -urNa hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi hardware_gai/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi
--- hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi	2021-07-27 03:07:44.000000000 +0800
+++ hardware_gai/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi	2021-12-17 18:09:02.000000000 +0800
@@ -127,7 +127,8 @@
 			status = "disabled";
 		};
 		ucsi_ccg: ucsi_ccg@8 {
-			status = "okay";
+			/*FEIYUM okay to disabled*/
+			status = "disabled";
 			typec-extcon {
 				typec_port0: port-0 {
 					status = "okay";
@@ -193,7 +194,8 @@
 
 		ports {
 			usb2-0 {
-				mode = "otg";
+				/*caoshiyao mode = "otg"*/
+				mode = "host";
 				status = "okay";
 			};
 			usb2-1 {
@@ -226,9 +228,10 @@
 #endif
 
 	tegra_xudc: xudc@3550000 {
+		/*FEIYUM del
 		extcon-cables = <&typec_port0 0>;
 		extcon-cable-names = "vbus";
-		#extcon-cells = <1>;
+		#extcon-cells = <1>;*/
 #if TEGRA_XUSB_PADCONTROL_VERSION >= DT_VERSION_2
 		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
 			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-2}>;
@@ -240,9 +243,10 @@
 	};
 
 	tegra_xhci: xhci@3610000 {
+		/*FEIYUM del
 		extcon-cables = <&typec_port0 1>;
 		extcon-cable-names = "id";
-		#extcon-cells = <1>;
+		#extcon-cells = <1>;*/
 #if TEGRA_XUSB_PADCONTROL_VERSION >= DT_VERSION_2
 		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
 			<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-1}>,
@@ -363,7 +367,7 @@
 		};
 	};
 };
-
+/*
 &head0 {
 	extcon-cables = <&typec_port0 2 &typec_port1 2>;
 	extcon-cable-names = "typec0", "typec1";
@@ -382,6 +386,7 @@
 	#extcon-cells = <1>;
 };
 
+
 &sor0 {
 	nvidia,typec-port = /bits/ 8 <0>;
 };
@@ -389,7 +394,7 @@
 &sor1 {
 	nvidia,typec-port = /bits/ 8 <1>;
 };
-
+*/
 #if LINUX_VERSION >= 414
 #include <tegra194-linux-4.14.dtsi>
 #endif
diff -urNa hardware/.vscode/settings.json hardware_gai/.vscode/settings.json
--- hardware/.vscode/settings.json	1970-01-01 08:00:00.000000000 +0800
+++ hardware_gai/.vscode/settings.json	2022-01-24 14:52:22.000000000 +0800
@@ -0,0 +1,2 @@
+{
+}
\ No newline at end of file

we can find the nvidia image


and the lock in here

Can I check the PHD again
Or we should do some others?

If hotplug the HDMI cable can bring you back to the desktop, then you don’t need to change pinmux.

Time to use the uart console to find out why it gets stuck in this screen. Below is the devkit case.

I have connected the console
and the log is also like this:

[ 71.670860] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.676005] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.689808] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.694551] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.699485] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.712288] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.717149] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.721956] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.735013] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50
[ 71.735735] tegradc 15200000.nvdisplay: hdmi: edid read failed
[ 71.758213] tegra-i2c 31b0000.i2c: no acknowledge from address 0x50

Please convert your dtb back to full dts with dtc tool and share that dts file here.

And your full dmesg as attachment.

tegra194-p2888-0001-p2822-0000_0310.dts (356.5 KB)
Thank you for your help

And where is the full dmesg?

0310.log (66.4 KB)
this is the log, thank you

Did you find any problems