52 lines
1.7 KiB
Diff
52 lines
1.7 KiB
Diff
From: Platina Linux contributors
|
|
Subject: [PATCH] arm64: dts: qcom: sdm660: add ipa v2 node and enable on platina
|
|
|
|
Describe the IPA v2.6L register and BAM ranges from Xiaomi platina-o-oss
|
|
commit 0bb2780bccb9c7e05f0edf5db8860e779179b5f9. The IPA registers start
|
|
at wrapper base + 0x40000. BAM is not IPA shared memory. Use the level-high
|
|
BAM IRQ configured by the original SPS driver, without a GSI loader property.
|
|
|
|
Declare the AP DMA stream (0x19c0) on ANOC2 SMMU as in the original AP
|
|
context bank, along with the a2noc memory and gnoc config interconnect paths
|
|
required by the SDM660 IPA v2.6L BAM transport driver.
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/sdm660.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi
|
|
@@ -435,6 +435,26 @@
|
|
};
|
|
};
|
|
};
|
|
+ ipa: ipa@147c0000 {
|
|
+ compatible = "qcom,sdm660-ipa", "qcom,ipa-v2.6";
|
|
+ reg = <0x147c0000 0xeffc>,
|
|
+ <0x14784000 0x26934>;
|
|
+ reg-names = "ipa-reg",
|
|
+ "bam";
|
|
+ interrupts-extended = <&intc GIC_SPI 333 IRQ_TYPE_EDGE_RISING>,
|
|
+ <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "ipa",
|
|
+ "bam";
|
|
+ /* Original ipa_smmu_ap context bank; uC/WLAN use other SIDs. */
|
|
+ iommus = <&anoc2_smmu 0x19c0>;
|
|
+ interconnects = <&a2noc 0 &bimc 5>,
|
|
+ <&gnoc 0 &snoc 10>;
|
|
+ interconnect-names = "memory",
|
|
+ "config";
|
|
+ clocks = <&rpmcc RPM_SMD_IPA_CLK>;
|
|
+ clock-names = "core";
|
|
+ status = "disabled";
|
|
+ };
|
|
};
|
|
|
|
&tlmm {
|
|
--- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
|
+++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
|
@@ -1230,3 +1230,7 @@
|
|
opp-2150400000 { opp-hz = /bits/ 64 <2150400000>; };
|
|
opp-2208000000 { opp-hz = /bits/ 64 <2208000000>; };
|
|
};
|
|
+
|
|
+&ipa {
|
|
+ status = "okay";
|
|
+};
|