mediatek: mt7981: add reserved memory to support pstore
[openwrt/openwrt.git] / package / boot / uboot-mediatek / patches / 052-mt7981-enable-pstore.patch
1 --- a/arch/arm/dts/mt7981.dtsi
2 +++ b/arch/arm/dts/mt7981.dtsi
3 @@ -32,6 +32,35 @@
4 };
5 };
6
7 + psci {
8 + compatible = "arm,psci-0.2";
9 + method = "smc";
10 + };
11 +
12 + reserved-memory {
13 + #address-cells = <2>;
14 + #size-cells = <2>;
15 + ranges;
16 +
17 + /* 64 KiB reserved for ramoops/pstore */
18 + ramoops@42ff0000 {
19 + compatible = "ramoops";
20 + reg = <0 0x42ff0000 0 0x10000>;
21 + record-size = <0x1000>;
22 + };
23 +
24 + /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
25 + secmon_reserved: secmon@43000000 {
26 + reg = <0 0x43000000 0 0x30000>;
27 + no-map;
28 + };
29 +
30 + wmcpu_emi: wmcpu-reserved@4fc00000 {
31 + no-map;
32 + reg = <0 0x4fc00000 0 0x00100000>;
33 + };
34 + };
35 +
36 gpt_clk: gpt_dummy20m {
37 compatible = "fixed-clock";
38 clock-frequency = <13000000>;