--- a/arch/arm64/boot/dts/qcom/sdm636-bbry-luna-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm636-bbry-luna-common.dtsi @@ -37,3 +37,98 @@ &wifi { qcom,ath10k-calibration-variant = "bbry_luna"; }; + +/* + * IPA v2.6L (SDM636, same silicon as the proven X00TD port) + SPS + RmNet. + * Registers and SMMU SIDs validated against X00TD (20.5 Mbps LTE verified). + * IPA hw v2.6L: BAM transports, uC in modem image, QMI control over QRTR. + */ +&soc { + qcom_sps: qcom,sps { + compatible = "qcom,msm-sps-4k"; + qcom,device-type = <3>; /* default value — no BAMDMA */ + qcom,pipe-attr-ee; + status = "okay"; + }; + + ipa: ipa@14780000 { + compatible = "qcom,ipa"; + + /* Two separate register ranges: IPA core + BAM-DMA */ + reg = <0x14780000 0x4000>, + <0x14784000 0x3C000>; + reg-names = "ipa-base", "bam-base"; + + qcom,ipa-hw-ver = <6>; + qcom,ipa-hw-mode = <0>; /* IPA_MODE_NORMAL */ + qcom,ee = <0>; + qcom,wan-rx-ring-size = <0xc0>; + qcom,lan-rx-ring-size = <0xc0>; + qcom,rx-polling-sleep-ms = <1>; + qcom,ipa-polling-iteration = <40>; + /* __ipa_arm_smmu_patch__ - required for SMMU CB child node probe */ + qcom,arm-smmu; + qcom,smmu-s1-bypass; + qcom,modem-cfg-emb-pipe-flt; /* CRITICAL: modem handles internal filter install */ + qcom,use-dma-zone; /* DMA-capable mem for descriptors */ + qcom,use-ipa-tethering-bridge; /* tethering paths */ + qcom,ipa-wdi2; /* WDI 2.0 capability advertise */ + interrupts = , /* IPA */ + ; /* BAM */ + interrupt-names = "ipa-irq", "bam-irq"; + + clocks = <&rpmcc RPM_SMD_IPA_CLK>, + <&rpmcc RPM_SMD_AGGR2_NOC_CLK>; + clock-names = "core_clk", "smmu_clk"; + + /* Force RPM clock vote at probe time regardless of driver bugs */ + assigned-clocks = <&rpmcc RPM_SMD_IPA_CLK>; + assigned-clock-rates = <200000000>; /* 200 MHz turbo */ + + /* SMMU stream IDs for the IPA core itself */ + iommus = <&anoc2_smmu 0x19C0>, + <&anoc2_smmu 0x19C2>; + + dma-coherent; + + /* Bandwidth voting paths consumed by msm_bus_compat.c via + * devm_of_icc_get("ipa-mem"/"ipa-imem"); "cpu-cfg" is declared + * for completeness but has no consumer yet. */ + interconnects = <&a2noc MASTER_IPA &bimc SLAVE_EBI>, + <&a2noc MASTER_IPA &snoc SLAVE_IMEM>, + <&gnoc MASTER_APSS_PROC &snoc SLAVE_IPA>; + interconnect-names = "ipa-mem", "ipa-imem", "cpu-cfg"; + + status = "okay"; + + /* Children: SMMU context banks parsed by ipa_smmu_*_cb_probe() */ + qcom,ipa-smmu-ap-cb { + compatible = "qcom,ipa-smmu-ap-cb"; + iommus = <&anoc2_smmu 0x19C0>; + qcom,iommu-dma-addr-pool = <0x20000000 0x40000000>; + }; + + qcom,ipa-smmu-wlan-cb { + compatible = "qcom,ipa-smmu-wlan-cb"; + iommus = <&anoc2_smmu 0x19C1>; + qcom,iommu-dma-addr-pool = <0x20000000 0x40000000>; + }; + + qcom,ipa-smmu-uc-cb { + compatible = "qcom,ipa-smmu-uc-cb"; + iommus = <&anoc2_smmu 0x19C2>; + qcom,iommu-dma-addr-pool = <0x20000000 0x40000000>; + }; + }; + + rmnet_ipa { + compatible = "qcom,rmnet-ipa"; + /* __rmnet_ipa_dt_patch__ - properties from 4.19 vendor analysis */ + qcom,rmnet-ipa-ssr; /* enable MPSS POWERUP handshake */ + qcom,ipa-loaduC; /* load uC firmware */ + qcom,ipa-advertise-sg-support; /* scatter-gather support */ + qcom,ipa-napi-enable; /* enable NAPI on pipe 5 (RX) */ + qcom,wan-rx-desc-size = <1024>; + status = "okay"; + }; +};