Duplicate dtsi filename under nv-pubilc/ directory in L4T 36.2

We noticed that duplicate filename [tegra234-p3768-0000.dtsi] in nv-public at L4T 36.2.

Linux_for_Tegra/source/hardware/nvidia/t23x/nv-public$ find ./ -name "tegra234-p3768-0000.dtsi"
./tegra234-p3768-0000.dtsi
./nv-platform/tegra234-p3768-0000.dtsi

I think It should not exist same filename with different file contents in whole DTB structure.
So confusing and easy to make mistake for developers.

[./tegra234-p3768-0000.dtsi]

// SPDX-License-Identifier: GPL-2.0

/ {
	compatible = "nvidia,p3768-0000";

	aliases {
		serial0 = &tcu;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};
...
[./nv-platform/tegra234-p3768-0000.dtsi]

// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

/ {
	bus@0 {

		aconnect@2900000 {
			ahub@2900800 {
				i2s@2901100 {
					ports {
						port@1 {
							hdr40_snd_i2s_dap_ep: endpoint {
							};
						};
					};
				};
			};
		};

	};

I hope it will be fixed next production relase.

Hi shinichiro.adachi,

These 2 tegra234-p3768-0000.dtsi are included by different dts.
Please refer to the following.

It seems the device trees under nv-public are from linux upstream, and the device trees under nv-platform are specific for Jetson device.
Please refer to Jetson AGX Orin Platform Adaptation and Bring-Up — Overview of T23x Device Tree Structure for details.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.