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"; +};