From 283e3a58f7b847976061d41c6cac75f2fd772d60 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 11 Nov 2022 21:33:53 +0000 Subject: [PATCH] arm64: tegra: Add more DT overlays Add a new DT overlay for Tegra194 Jetson boards that populates the necessary device-tree nodes for devices that use out-of-tree drivers. Add the DT overlays for OPTEE and the Tegra234 SBSA UART that have been copied from the linux-stable branch. By adding them to this repository we can remove from linux-stable branch because this branch should only include changes from upstream. Bug 3733730 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2770883 Reviewed-by: Bibek Basu Change-Id: Id7997557bb0dd8e95a0f9c0089c0fe131f1abe8a Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2807816 Reviewed-by: svcacv GVS: Gerrit_Virtual_Submit --- Makefile | 1 + tegra234-sbsa-uart-overlay.dts | 42 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tegra234-sbsa-uart-overlay.dts diff --git a/Makefile b/Makefile index 6d8f043..fc39150 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ makefile-path := platform/t23x/concord/dts/generic-dts dtbo-y += tegra234-p3737-0000+p3701-0000-overlay.dtbo dtbo-y += tegra234-jetson-overlay.dtbo dtbo-y += tegra234-carveouts-overlay.dtbo +dtbo-y += tegra234-sbsa-uart-overlay.dtbo ifneq ($(dtb-y),) dtb-y := $(addprefix $(makefile-path)/,$(dtb-y)) diff --git a/tegra234-sbsa-uart-overlay.dts b/tegra234-sbsa-uart-overlay.dts new file mode 100644 index 0000000..8e85dd4 --- /dev/null +++ b/tegra234-sbsa-uart-overlay.dts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* + * Tegra234 Device-tree overlay for SBSA UART + */ + +/dts-v1/; +/plugin/; + +#include + +/ { + overlay-name = "Tegra234 SBSA UART overlay"; + compatible = "nvidia,tegra234"; + + fragment@0 { + target-path = "/bus@0/"; + __overlay__ { + serial@31d0000 { + compatible = "arm,sbsa-uart"; + reg = <0x31d0000 0x10000>; + interrupts = ; + current-speed = <115200>; + status = "okay"; + }; + }; + }; +};