mediatek: mt7981: add reserved memory to support pstore
Add reserved memory for pstore/ramoops to device tree used by Linux as well as U-Boot. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
		
				
					committed by
					
						
						Daniel Golle
					
				
			
			
				
	
			
			
			
						parent
						
							213b728276
						
					
				
				
					commit
					3eb354f999
				
			@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					--- a/arch/arm/dts/mt7981.dtsi
 | 
				
			||||||
 | 
					+++ b/arch/arm/dts/mt7981.dtsi
 | 
				
			||||||
 | 
					@@ -32,6 +32,35 @@
 | 
				
			||||||
 | 
					 		};
 | 
				
			||||||
 | 
					 	};
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					+	psci {
 | 
				
			||||||
 | 
					+		compatible  = "arm,psci-0.2";
 | 
				
			||||||
 | 
					+		method      = "smc";
 | 
				
			||||||
 | 
					+	};
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					+	reserved-memory {
 | 
				
			||||||
 | 
					+		#address-cells = <2>;
 | 
				
			||||||
 | 
					+		#size-cells = <2>;
 | 
				
			||||||
 | 
					+		ranges;
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					+		/* 64 KiB reserved for ramoops/pstore */
 | 
				
			||||||
 | 
					+		ramoops@42ff0000 {
 | 
				
			||||||
 | 
					+			compatible = "ramoops";
 | 
				
			||||||
 | 
					+			reg = <0 0x42ff0000 0 0x10000>;
 | 
				
			||||||
 | 
					+			record-size = <0x1000>;
 | 
				
			||||||
 | 
					+		};
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					+		/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
 | 
				
			||||||
 | 
					+		secmon_reserved: secmon@43000000 {
 | 
				
			||||||
 | 
					+			reg = <0 0x43000000 0 0x30000>;
 | 
				
			||||||
 | 
					+			no-map;
 | 
				
			||||||
 | 
					+		};
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					+		wmcpu_emi: wmcpu-reserved@4fc00000 {
 | 
				
			||||||
 | 
					+			no-map;
 | 
				
			||||||
 | 
					+			reg = <0 0x4fc00000 0 0x00100000>;
 | 
				
			||||||
 | 
					+		};
 | 
				
			||||||
 | 
					+	};
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					 	gpt_clk: gpt_dummy20m {
 | 
				
			||||||
 | 
					 		compatible = "fixed-clock";
 | 
				
			||||||
 | 
					 		clock-frequency = <13000000>;
 | 
				
			||||||
@@ -164,6 +164,13 @@
 | 
				
			|||||||
		#size-cells = <2>;
 | 
							#size-cells = <2>;
 | 
				
			||||||
		ranges;
 | 
							ranges;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							/* 64 KiB reserved for ramoops/pstore */
 | 
				
			||||||
 | 
							ramoops@42ff0000 {
 | 
				
			||||||
 | 
								compatible = "ramoops";
 | 
				
			||||||
 | 
								reg = <0 0x42ff0000 0 0x10000>;
 | 
				
			||||||
 | 
								record-size = <0x1000>;
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
 | 
							/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
 | 
				
			||||||
		secmon_reserved: secmon@43000000 {
 | 
							secmon_reserved: secmon@43000000 {
 | 
				
			||||||
			reg = <0 0x43000000 0 0x30000>;
 | 
								reg = <0 0x43000000 0 0x30000>;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user