Using main platform dtree system won't boot

I’m on L4T 28.2.1 and I tried to configure main platform dtree. With that configuration system won’t boot. Later I checkout to init commit of kernel and dtree and results were the same. I discovered that commenting the gpio description in common-platform file helped. The same files are also ok with plugin manager enabled.

For example including tegra186-quill-camera-e3333-a00.dtsi with gpio descritpion -> system won’t boot.
Commenting the gpio description and after reflashing dtree everything is ok.

Is this some known issue, or?

I’cant see err from the log, and after a while uart0 is disabled…

log.txt (18.9 KB)

Could you share what you’ve changed?

disabeling plugin manager and adding tegra186-quill-camera-e3333-a00.dtsi

diff --git a/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts b/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
index d79f701..935a801 100644
--- a/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
+++ b/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
@@ -15,7 +15,8 @@
 

#include <t18x-common-platforms/tegra186-quill-common-p3310-1000-a00.dtsi>
 #include <t18x-common-platforms/tegra186-quill-power-tree-p3310-1000-a00-00.dtsi>
[b]-#include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi>
+//#include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi>
+#include <t18x-common-platforms/tegra186-quill-camera-e3333-a00.dtsi>[/b]
 #include <t18x-common-modules/tegra186-display-e3320-1000-a00.dtsi>
 
 /* comms dtsi file should be included after gpio dtsi file */
@@ -24,7 +25,7 @@
 #include <t18x-common-modules/tegra186-super-module-e2614-p2597-1000-a00.dtsi>
 #include <t18x-common-plugin-manager/tegra186-quill-display-plugin-manager.dtsi>
 #include <t18x-common-prod/tegra186-priv-quill-p3310-1000-a00-prod.dtsi>
[b]-#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi>
+//#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi>[/b]
 
 #include <dt-bindings/linux/driver-info.h>

Flashing with only this change, system won’t boot.

Commenting gpio description in tegra186-quill-camera-e3333-a00.dtsi

diff --git a/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3333-a00.dtsi b/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3333-a00.dtsi
index 099697d..beed674 100644
--- a/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3333-a00.dtsi
+++ b/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3333-a00.dtsi
@@ -27,7 +27,7 @@
 /* camera control gpio definitions */
 
 / {
[b]-	gpio@2200000 {
+/*	gpio@2200000 {
 		camera-control-output-low {
 			gpio-hog;
 			output-low;
@@ -36,7 +36,7 @@
 			label = "cam0-rst", "cam0-pwdn",
 				"cam1-rst", "cam1-pwdn";
 		};
-	};
+	};*/[/b]
 
 	i2c@3180000 {
 		tca6408_21: tca6408@21 {

Flashing it again system boots fine.

hello d.kristofic,

it’s due to there are several default definitions in the tegra186-quill-camera-modules.dtsi device tree.
the actual programming process should be exclude the plugin-in manager and add your customize device tree manually.
suggest you refer to Using Main Platform Device Tree File session for more details,
thanks

Hi Jerry,

tegra186-quill-camera-modules.dtsi file and tegra186-quill-camera-plugin-manager.dtsi are excluded (per Using Plugin Manager chapter in L4T documentation for L4T 28.2.1) if you look diff files and “customized” device tree is added. In this case customized dtree is tegra186-quill-camera-e3333-a00.dtsi file.

What are you saying exactly? My procedure is not ok? It’s not really clear from your answer.

hello d.kristofic,

  1. were you still able to reproduce booting failure below with diff.
diff --git a/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts b/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
index 8afcaea..3f94faf 100644
--- a/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
+++ b/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
@@ -24,7 +24,7 @@
 #include <t18x-common-modules/tegra186-super-module-e2614-p2597-1000-a00.dtsi>
 #include <t18x-common-plugin-manager/tegra186-quill-display-plugin-manager.dtsi>
 #include <t18x-common-prod/tegra186-priv-quill-p3310-1000-a00-prod.dtsi>
-#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi>
+//#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi>
 
 / {
  1. may I know what’s the purpose to include tegra186-quill-camera-e3333-a00.dtsi, did you had E3333 sensor board connected but cannot detected?
    thanks

making only this change you gave me, the system boots fine.

I’m not interested in this file, I just wanted to exclude error in my custom file. Thing is, I want to configure gpio over dtree but when I include gpio description in a file, the system won’t boot using main platform dtree.

hello d.kristofic,

please refer to Pinmux and GPIO Configuration chapter to customize GPIOs.
you’re able to access Jetson AGX Xavier Pinmux through Jetson Download Center.
thanks