You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
191 lines
4.6 KiB
191 lines
4.6 KiB
/*
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include <dt-bindings/msm/msm-bus-ids.h>
|
|
|
|
/ {
|
|
reserved_memory: reserved-memory {
|
|
|
|
pmem_shared: pmem_shared_region@a0000000 {
|
|
reg = <0x1 0x6a500000 0x0 0x51400000>;
|
|
label = "pmem_shared_mem";
|
|
};
|
|
|
|
secure_display_memory: secure_display_region { /* Secure UI */
|
|
compatible = "shared-dma-pool";
|
|
reusable;
|
|
reg = <0x0 0xc0000000 0x0 0x14400000>;
|
|
};
|
|
|
|
pil_ipa_fw_mem: pil_ipa_fw_region {
|
|
compatible = "removed-dma-pool";
|
|
no-map;
|
|
reg = <0x0 0x98700000 0x0 0x10000>;
|
|
};
|
|
|
|
pil_ipa_gsi_mem: pil_ipa_gsi_region {
|
|
compatible = "removed-dma-pool";
|
|
no-map;
|
|
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
|
|
alignment = <0x0 0x1000>;
|
|
size = <0x0 0x7000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&slpi_tlmm {
|
|
status = "ok";
|
|
};
|
|
|
|
&apps_smmu {
|
|
status = "ok";
|
|
};
|
|
|
|
&qupv3_se13_4uart {
|
|
status = "ok";
|
|
};
|
|
|
|
&usb0 {
|
|
status = "ok";
|
|
};
|
|
|
|
&usb2_phy0 {
|
|
status = "ok";
|
|
};
|
|
|
|
&pcie0_msi {
|
|
status = "ok";
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "ok";
|
|
};
|
|
|
|
&sdhc_2 {
|
|
status = "ok";
|
|
};
|
|
|
|
&msm_ion {
|
|
qcom,ion-heap@10 { /* SECURE DISPLAY HEAP */
|
|
reg = <10>;
|
|
memory-region = <&secure_display_memory>;
|
|
qcom,ion-heap-type = "HYP_CMA";
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
qcom,msm_gsi {
|
|
compatible = "qcom,msm_gsi";
|
|
};
|
|
|
|
ipa_hw: qcom,ipa@1e00000 {
|
|
compatible = "qcom,ipa";
|
|
reg = <0x1e00000 0x34000>,
|
|
<0x1e04000 0x28000>;
|
|
reg-names = "ipa-base", "gsi-base";
|
|
interrupts =
|
|
<0 311 0>,
|
|
<0 432 0>;
|
|
interrupt-names = "ipa-irq", "gsi-irq";
|
|
qcom,ipa-hw-ver = <15>; /* IPA core version = IPAv4.1 */
|
|
qcom,ipa-hw-mode = <0>;
|
|
qcom,platform-type = <2>; /* APQ platform */
|
|
qcom,ee = <0>;
|
|
qcom,use-ipa-tethering-bridge;
|
|
qcom,use-64-bit-dma-mask;
|
|
qcom,arm-smmu;
|
|
qcom,use-ipa-pm;
|
|
qcom,bandwidth-vote-for-ipa;
|
|
qcom,register-collection-on-crash;
|
|
qcom,manual-fw-load;
|
|
qcom,msm-bus,name = "ipa";
|
|
qcom,msm-bus,num-cases = <5>;
|
|
qcom,msm-bus,num-paths = <4>;
|
|
qcom,msm-bus,vectors-KBps =
|
|
/* No vote */
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 0 0>,
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 0 0>,
|
|
<MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 0 0>,
|
|
<MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 0>,
|
|
|
|
/* SVS2 */
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 600000>,
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 350000>,
|
|
<MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 40000 40000>,
|
|
<MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 125>,
|
|
|
|
/* SVS */
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 640000>,
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 640000>,
|
|
<MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 80000 80000>,
|
|
<MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 250>,
|
|
|
|
/* NOMINAL */
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 960000>,
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 960000>,
|
|
<MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 160000>,
|
|
<MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 500>,
|
|
|
|
/* TURBO */
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 3600000>,
|
|
<MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 3600000>,
|
|
<MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 300000>,
|
|
<MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 600>;
|
|
|
|
qcom,bus-vector-names = "MIN", "SVS2", "SVS", "NOMINAL",
|
|
"TURBO";
|
|
qcom,throughput-threshold = <310 600 1000>;
|
|
qcom,scaling-exceptions = <>;
|
|
};
|
|
|
|
ipa_smmu_ap: ipa_smmu_ap {
|
|
compatible = "qcom,ipa-smmu-ap-cb";
|
|
iommus = <&apps_smmu 0x520 0x0>;
|
|
qcom,iova-mapping = <0x20000000 0x40000000>;
|
|
qcom,smmu-fast-map;
|
|
};
|
|
|
|
ipa_smmu_wlan: ipa_smmu_wlan {
|
|
compatible = "qcom,ipa-smmu-wlan-cb";
|
|
iommus = <&apps_smmu 0x521 0x0>;
|
|
qcom,additional-mapping =
|
|
/* ipa-uc ram */
|
|
<0x1E60000 0x1E60000 0x80000>;
|
|
};
|
|
|
|
ipa_smmu_uc: ipa_smmu_uc {
|
|
compatible = "qcom,ipa-smmu-uc-cb";
|
|
iommus = <&apps_smmu 0x522 0x0>;
|
|
qcom,iova-mapping = <0x40400000 0x1FC00000>;
|
|
};
|
|
|
|
qcom,ipa_fws {
|
|
compatible = "qcom,pil-tz-generic";
|
|
qcom,pas-id = <0xf>;
|
|
qcom,firmware-name = "ipa_fws";
|
|
qcom,pil-force-shutdown;
|
|
memory-region = <&pil_ipa_gsi_mem>;
|
|
};
|
|
|
|
qcom,ipa_uc {
|
|
compatible = "qcom,pil-tz-generic";
|
|
qcom,pas-id = <0x1B>;
|
|
qcom,firmware-name = "ipa_uc";
|
|
qcom,pil-force-shutdown;
|
|
memory-region = <&pil_ipa_fw_mem>;
|
|
};
|
|
|
|
qcom,veth-ipa {
|
|
compatible = "qcom,veth-ipa";
|
|
};
|
|
};
|
|
|