From 09beba7104ca292e509014d5789d93c88fd2f65b Mon Sep 17 00:00:00 2001 From: Santosh Reddy Galma Date: Mon, 13 Feb 2023 22:03:24 +0530 Subject: [PATCH] soc: t23x: kernel-dts: Add display fb carveout node - Add display fb carveout region node to the list of reserved memory regions - UEFI updates the "reg" property with base address and size of display fb carveout memory region and "status" of display fb carveout region node to "okay" if UEFI initializes display. - keeping the fb carveout region node disabled by default such that it is enabled by UEFI dynamically only when UEFI initializes display and handsoff display fb carveout region to kernel. - add display fb reserved region node handle to display DT node for unity mapping of display reserved region when SMMU driver comes up in kernel only if display fb carveout region DT node is enabled by UEFI. Bug 3601162 Change-Id: Ia7060558e0723f4c04c2b026bc93a7e58692898a Signed-off-by: Santosh Reddy Galma Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x/+/2857443 (cherry picked from 5b2263f878459f4795e079d475cb0c3f416aaf7d) Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2942106 Reviewed-by: Vinod Atyam --- overlay/tegra234-soc-display-overlay.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/overlay/tegra234-soc-display-overlay.dtsi b/overlay/tegra234-soc-display-overlay.dtsi index e1752f2..5ec6c3d 100644 --- a/overlay/tegra234-soc-display-overlay.dtsi +++ b/overlay/tegra234-soc-display-overlay.dtsi @@ -7,6 +7,18 @@ fragment-t234-display@0 { target-path = "/"; __overlay__ { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + fb0_reserved: framebuffer@0,0 { + compatible = "framebuffer"; + reg = <0x00 0x00 0x00 0x00>; + iommu-addresses = <&dc0 0x0 0x0 0x0 0x0>; + status = "disabled"; + }; + }; dce@d800000 { compatible = "nvidia,tegra234-dce"; @@ -20,7 +32,7 @@ status = "disabled"; }; - display@13800000 { + dc0: display@13800000 { compatible = "nvidia,tegra234-display"; power-domains = <&bpmp TEGRA234_POWER_DOMAIN_DISP>; nvidia,num-dpaux-instance = <1>;