From 062fe0da9a7335af7e622f7cdc61d32e13e92f2d Mon Sep 17 00:00:00 2001 From: wadesong Date: Mon, 12 Apr 2021 11:25:58 +0800 Subject: [PATCH] ARM: dts: qcom: Remove unused mem reservation for wlan It is confirmed that the following items from device tree will not be required on auto platforms given these items are only used by iHelium while auto platforms do not use the same chipset: 'pil_wlan_fw_mem' 'wlan_msa_mem' Those memory blocks reserved by the above dtsi nodes will be re-allocated to other components. Change-Id: Ib20177c135cf53ed0bfb7a97c03363ea6ac3b330 --- qcom/sa6155.dtsi | 7 +++++++ qcom/sa8155.dtsi | 5 +++++ qcom/sa8195p.dtsi | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/qcom/sa6155.dtsi b/qcom/sa6155.dtsi index e092a8907c96..d3b627917396 100644 --- a/qcom/sa6155.dtsi +++ b/qcom/sa6155.dtsi @@ -13,6 +13,13 @@ }; }; +&reserved_memory { + /* wlan_msa_mem is only used when iHelium is attached, + * so remove the node for sa6155 + */ + /delete-node/ wlan_msa_mem; +}; + &soc { qfprom: qfprom@780130 { compatible = "qcom,qfprom"; diff --git a/qcom/sa8155.dtsi b/qcom/sa8155.dtsi index 72f8f1fffd87..78933e085cd0 100644 --- a/qcom/sa8155.dtsi +++ b/qcom/sa8155.dtsi @@ -372,6 +372,11 @@ }; &reserved_memory { + /* pil_wlan_fw_mem is only used when iHelium is attached, + * so remove the node for sa8155 + */ + /delete-node/ pil_wlan_fw_mem; + uefi_log: uefi_log@0x9241C000 { reg = <0x0 0x9241C000 0x0 0x10000>; label = "uefi_log"; diff --git a/qcom/sa8195p.dtsi b/qcom/sa8195p.dtsi index 10532f45caff..392a9323f0b4 100644 --- a/qcom/sa8195p.dtsi +++ b/qcom/sa8195p.dtsi @@ -13,6 +13,13 @@ }; }; +&reserved_memory { + /* pil_wlan_fw_mem is only used when iHelium is attached, + * so remove the node for sa8195p + */ + /delete-node/ pil_wlan_fw_mem; +}; + &soc { qfprom: qfprom@780130 { compatible = "qcom,qfprom";