public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: smaug: Add EMC frequency change tables
@ 2023-03-19 19:42 Diogo Ivo
  2023-03-20  6:50 ` Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Diogo Ivo @ 2023-03-19 19:42 UTC (permalink / raw)
  To: diogo.ivo, robh+dt, krzysztof.kozlowski+dt, thierry.reding,
	jonathanh, arnd, linux-tegra

Add the reserved-memory regions of the nominal and derated tables setup by
the bootloader so that the EMC frequency change code can access them.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
index 709f3f417a19..a74826ae97b4 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -30,6 +30,22 @@ memory {
 		reg = <0x0 0x80000000 0x0 0xc0000000>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		nominal: emc-table@f67cc000 {
+			compatible = "nvidia,tegra210-emc-table";
+			reg = <0x0 0xf67cc000 0x0 0xbea0>;
+		};
+
+		derated: emc-table@f67d7ea0 {
+			compatible = "nvidia,tegra210-emc-table";
+			reg = <0x0 0xf67d7ea0 0x0 0xbea0>;
+		};
+	};
+
 	host1x@50000000 {
 		dc@54200000 {
 			status = "okay";
@@ -1735,6 +1751,11 @@ pmc@7000e400 {
 		status = "okay";
 	};
 
+	emc: external-memory-controller@7001b000 {
+		memory-region = <&nominal>, <&derated>;
+		memory-region-names = "nominal", "derated";
+	};
+
 	usb@70090000 {
 		phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>,
 		       <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>;
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-10 17:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19 19:42 [PATCH] arm64: dts: smaug: Add EMC frequency change tables Diogo Ivo
2023-03-20  6:50 ` Krzysztof Kozlowski
2023-03-20 11:34   ` Diogo Ivo
2023-03-20 11:37     ` Krzysztof Kozlowski
2023-04-05 13:18 ` Thierry Reding
2023-04-10  9:17   ` Diogo Ivo
2023-07-10 15:32     ` Thierry Reding
2023-07-10 17:46       ` Diogo Ivo
2023-06-19  8:55 ` Diogo Ivo
2023-07-10 13:18 ` Diogo Ivo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox