Building static device tree fails, l4t-32.2/32.2.1

Hi,

in L4T-32.2 & L4T-32.2.1 building static device tree for TX2 fails because of nonexisting labels.

Procedure:
comment out #include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi> and #include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi> in tegra186-quill-p3310-1000-a00-00-base.dts

add reference driver dtree:
#include <t18x-common-platforms/tegra186-quill-camera-imx185-a00.dtsi>

err code:

make: Entering directory '/opt/JetPack_4.2.2/Linux_for_Tegra/sources/kernel/kernel-4.9'
make[1]: Entering directory '/opt/JetPack_4.2.2/Linux_for_Tegra/custom/kernel'
  CHK     scripts/mod/devicetable-offsets.h
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-ape-cam.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-edp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-hdmi-primary-p3310-1000-c03-00.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-hdmi-primary-p3310-1000-a00-00.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base-mods-display.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-imx274.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-imx185_v1.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb
ERROR (phandle_references): Reference to non-existent node or label "cam_module0_drivernode1"

ERROR (phandle_references): Reference to non-existent node or label "cam_module1_drivernode1"

ERROR (phandle_references): Reference to non-existent node or label "vi_base"

ERROR: Input tree has errors, aborting (use -f to force output)
/opt/JetPack_4.2.2/Linux_for_Tegra/sources/kernel/kernel-4.9/arch/arm64/boot/dts/Makefile:120: recipe for target 'arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb' failed
make[2]: *** [arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb] Error 2
make[2]: *** Waiting for unfinished jobs....
arch/arm64/Makefile:154: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: Leaving directory '/opt/JetPack_4.2.2/Linux_for_Tegra/custom/kernel'
Makefile:171: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/opt/JetPack_4.2.2/Linux_for_Tegra/sources/kernel/kernel-4.9'

Hi,

tegra186-quill-camera-modules.dtsi has some alias of those nodes and other device trees refer to that nodes too. If you just delete them w/o adding those nickname in somewhere else, it would hit this issue.

/* all cameras are disabled by default */
 	host1x {
 		<b>vi_base:</b> vi@15700000 {
 			ports {
 				vi_port0: port@0 {
modules {
 			cam_module0: module0 {
 				status = "disabled";
 				cam_module0_drivernode0: drivernode0 {
 					status = "disabled";
 				};
 				<b>cam_module0_drivernode1</b>: drivernode1 {
 					status = "disabled";
 					pcl_id = "v4l2_lens";
 				};