t23x: nv-public: Fix serial aliases

When booting Linux with GRUB, the serial console does not show the
kernel boot messages as expected. By default GRUB does not add the
'console' kernel parameter and relies on device-tree to configure the
default serial port. Device-tree configures the default serial port by
setting the property 'stdout-path=serial0:115200n8' where 'serial0' is
an alises to one of the devices serial ports. The default serial port
for Tegra234 devices is the TCU0 and so 'serial0' should be mapped to
this interface. However, the 'serial0' is being updated to be mapped to
a different UART.

Fix this by removing the additional 'serialX' aliases in the base
overlay file and add any alises that are not already defined to the
appropriate board file. This does change the mapping of some aliases but
this aligns the boards with the aliases as they are defined upstream.

Bug 4264560

Change-Id: Icf6bdb1e7d5c9abf5bdbf5378b4ed8122910b507
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3072368
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Paritosh Dixit <paritoshd@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2024-02-07 13:40:35 +00:00
committed by mobile promotions
parent 3b8b08c22b
commit 6114a37466
3 changed files with 9 additions and 4 deletions

View File

@@ -12,6 +12,10 @@
#include "tegra234-dcb-p3737-0000-p3701-0000.dtsi" #include "tegra234-dcb-p3737-0000-p3701-0000.dtsi"
/ { / {
aliases {
serial2 = "/bus@0/serial@3110000";
};
cpus { cpus {
idle-states { idle-states {
c7 { c7 {

View File

@@ -13,6 +13,10 @@
#include "tegra234-dcb-p3737-0000-p3701-0000.dtsi" #include "tegra234-dcb-p3737-0000-p3701-0000.dtsi"
/ { / {
aliases {
serial2 = "/bus@0/serial@3110000";
};
chosen { chosen {
bootargs = "console=ttyTCU0,115200n8"; bootargs = "console=ttyTCU0,115200n8";
}; };

View File

@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. // SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// This file contains the additional parameters which are missing from DT nodes of T234 // This file contains the additional parameters which are missing from DT nodes of T234
// available in base/tegra234.dtsi // available in base/tegra234.dtsi
@@ -22,9 +22,6 @@
/ { / {
aliases { aliases {
serial0 = "/bus@0/serial@3100000";
serial1 = "/bus@0/serial@3110000";
serial2 = "/bus@0/serial@3140000";
i2c0 = "/bus@0/i2c@3160000"; i2c0 = "/bus@0/i2c@3160000";
i2c1 = "/bus@0/i2c@c240000"; i2c1 = "/bus@0/i2c@c240000";
i2c2 = "/bus@0/i2c@3180000"; i2c2 = "/bus@0/i2c@3180000";