arm64: dts: qcom: msm8939: Add BAM-DMUX WWAN
authorVincent Knecht <vincent.knecht@mailoo.org>
Tue, 3 Oct 2023 13:18:19 +0000 (15:18 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sat, 21 Oct 2023 20:06:57 +0000 (13:06 -0700)
BAM DMUX is used as the network interface to the modem. This is copied
as-is from msm8916.dtsi.

Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20231003-msm8916-modem-v2-1-61b684be55c0@gerhold.net
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8939.dtsi

index 324b5d26db4005aabf8fce357678d10ff60e4958..65c68e0e88d577face457812e561ed12a59d3f36 100644 (file)
                        #interrupt-cells = <4>;
                };
 
+               bam_dmux_dma: dma-controller@4044000 {
+                       compatible = "qcom,bam-v1.7.0";
+                       reg = <0x04044000 0x19000>;
+                       interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+                       #dma-cells = <1>;
+                       qcom,ee = <0>;
+
+                       num-channels = <6>;
+                       qcom,num-ees = <1>;
+                       qcom,powered-remotely;
+
+                       status = "disabled";
+               };
+
                mpss: remoteproc@4080000 {
                        compatible = "qcom,msm8916-mss-pil";
                        reg = <0x04080000 0x100>, <0x04020000 0x040>;
                        qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>;
                        status = "disabled";
 
+                       bam_dmux: bam-dmux {
+                               compatible = "qcom,bam-dmux";
+
+                               interrupt-parent = <&hexagon_smsm>;
+                               interrupts = <1 IRQ_TYPE_EDGE_BOTH>, <11 IRQ_TYPE_EDGE_BOTH>;
+                               interrupt-names = "pc", "pc-ack";
+
+                               qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>;
+                               qcom,smem-state-names = "pc", "pc-ack";
+
+                               dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>;
+                               dma-names = "tx", "rx";
+
+                               status = "disabled";
+                       };
+
                        mba {
                                memory-region = <&mba_mem>;
                        };