Files
mi8-platina-linux/ports/candidate/linux-postmarketos-qcom-sdm660/0042-arm64-dts-sdm660-add-ipa-v2-node.patch
T
shenlei 2a9ec1e1d6
Offline project checks / check (push) Canceled after 0s
feat(ipa): port Qualcomm IPA v2.6 driver and add SDM660 device tree support
- Add patch 0042: add ipa@1e00000 node in sdm660.dtsi and enable in sdm660-xiaomi-platina.dts.
- Add patch 0043: port IPA v2.6 driver support to Linux kernel 7.2:
  * Define IPA_VERSION_2_6 and hardware configuration (ipa_data_v2_6).
  * Bypass GSI channel init, table commands, and DMA when version < IPA_VERSION_3_0.
  * Establish AP/Modem QMI Service 0x31 handshake over QRTR to prevent Hexagon modem (MPSS) assertion crashes.
  * Gracefully handle null SMP2P interrupts and drop unsupported TX frames until BAM DMA is active.
- Bump candidate kernel package to 7.2.12-r15 and update sources.lock.json checksums.
- Verified on remote ARM64 compile server with successful package generation and test pass.
2026-11-09 05:08:55 -08:00

45 lines
1.2 KiB
Diff

From: Platina Linux contributors
Subject: [PATCH] arm64: dts: qcom: sdm660: add ipa v2 node and enable on platina
Add the IPA hardware node to sdm660.dtsi with BAM DMA and register ranges,
RPM SMD core clock, interrupts, and SMMU context bank. Enable the IPA
device on Xiaomi Mi 8 Lite (Platina).
--- a/arch/arm64/boot/dts/qcom/sdm660.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi
@@ -435,6 +435,24 @@
};
};
};
+ ipa: ipa@1e00000 {
+ compatible = "qcom,sdm660-ipa", "qcom,ipa-v2.6";
+ reg = <0x01e00000 0x34000>,
+ <0x01e04000 0x4000>,
+ <0x01e04000 0x15000>;
+ reg-names = "ipa-reg",
+ "ipa-shared",
+ "bam-reg";
+ interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
+ <&intc GIC_SPI 312 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "ipa",
+ "bam";
+ clocks = <&rpmcc RPM_SMD_IPA_CLK>;
+ clock-names = "core";
+ iommus = <&anoc2_smmu 0x140>;
+ qcom,gsi-loader = "skip";
+ 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";
+};