From 985b24e379e6f8a20b5dedb33c25af73a0978cda Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sun, 6 Oct 2024 14:05:00 +0800 Subject: [PATCH] uboot: mt7622: enable pstore Signed-off-by: Tianling Shen --- uboot-mtk-20220606/arch/arm/dts/mt7622.dtsi | 24 +++++++++++++++++++ .../arch/arm/dts/mt7622.dtsi | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/uboot-mtk-20220606/arch/arm/dts/mt7622.dtsi b/uboot-mtk-20220606/arch/arm/dts/mt7622.dtsi index 0cf08b8ec..273aac372 100644 --- a/uboot-mtk-20220606/arch/arm/dts/mt7622.dtsi +++ b/uboot-mtk-20220606/arch/arm/dts/mt7622.dtsi @@ -37,6 +37,30 @@ }; }; + psci { + compatible = "arm,psci-1.0"; + 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; + }; + }; + snfi: snfi@1100d000 { compatible = "mediatek,mtk-snfi-spi"; reg = <0x1100d000 0x2000>; diff --git a/uboot-mtk-20230718-09eda825/arch/arm/dts/mt7622.dtsi b/uboot-mtk-20230718-09eda825/arch/arm/dts/mt7622.dtsi index 3d698b890..9a78c3aa5 100644 --- a/uboot-mtk-20230718-09eda825/arch/arm/dts/mt7622.dtsi +++ b/uboot-mtk-20230718-09eda825/arch/arm/dts/mt7622.dtsi @@ -37,6 +37,30 @@ }; }; + psci { + compatible = "arm,psci-1.0"; + 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; + }; + }; + snfi: snfi@1100d000 { compatible = "mediatek,mtk-snfi-spi"; reg = <0x1100d000 0x2000>;