Эх сурвалжийг харах

arm64: tegra: Add stdout-path for various boards

For Tegra boards, the device-tree alias serial0 is used for the console
and so add the stdout-path information so that the console no longer
needs to be passed via the kernel boot parameters.

For tegra132-norrin the alias serial0 is not defined and so add this.

This has been tested on tegra132-norrin and tegra210-p2371-0000.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Jon Hunter 9 жил өмнө
parent
commit
69e29bd1a5

+ 4 - 1
arch/arm64/boot/dts/nvidia/tegra132-norrin.dts

@@ -10,9 +10,12 @@
 	aliases {
 		rtc0 = "/i2c@7000d000/as3722@40";
 		rtc1 = "/rtc@7000e000";
+		serial0 = &uarta;
 	};
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	memory {
 		device_type = "memory";

+ 4 - 0
arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi

@@ -9,6 +9,10 @@
 		serial0 = &uarta;
 	};
 
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x0 0x80000000 0x0 0xc0000000>;