Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2da0480 authored by Chris Lew's avatar Chris Lew
Browse files

ARM: dts: msm: Add NPU GLINK and SMP2P nodes for Kona



Add RPMSG GLINK and SMP2P nodes for communication to and from the NPU
processor.

Change-Id: I89599e6fc617a6a1f4a756f6dd1d70b1480303c5
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 3e63d02d
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -74,5 +74,27 @@
			#interrupt-cells = <2>;
		};
	};

	qcom,smp2p-npu {
		compatible = "qcom,smp2p";
		qcom,smem = <617>, <616>;
		interrupt-parent = <&ipcc_mproc>;
		interrupts = <IPCC_CLIENT_NPU IPCC_MPROC_SIGNAL_SMP2P
			      IRQ_TYPE_EDGE_RISING>;
		mboxes = <&ipcc_mproc IPCC_CLIENT_NPU IPCC_MPROC_SIGNAL_SMP2P>;
		qcom,local-pid = <0>;
		qcom,remote-pid = <10>;

		npu_smp2p_out: master-kernel {
			qcom,entry-name = "master-kernel";
			#qcom,smem-state-cells = <1>;
		};

		npu_smp2p_in: slave-kernel {
			qcom,entry-name = "slave-kernel";
			interrupt-controller;
			#interrupt-cells = <2>;
		};
	};
};
+29 −1
Original line number Diff line number Diff line
@@ -1164,6 +1164,33 @@
		#size-cells = <1>;
		ranges;

		glink_npu: npu {
			qcom,remote-pid = <10>;
			transport = "smem";
			mboxes = <&ipcc_mproc IPCC_CLIENT_NPU
				  IPCC_MPROC_SIGNAL_GLINK_QMP>;
			mbox-names = "npu_smem";
			interrupt-parent = <&ipcc_mproc>;
			interrupts = <IPCC_CLIENT_NPU
				      IPCC_MPROC_SIGNAL_GLINK_QMP
				      IRQ_TYPE_EDGE_RISING>;

			label = "npu";
			qcom,glink-label = "npu";

			qcom,npu_qrtr {
				qcom,glink-channels = "IPCRTR";
				qcom,intents = <0x800  5
						0x2000 3
						0x4400 2>;
			};

			qcom,npu_glink_ssr {
				qcom,glink-channels = "glink_ssr";
				qcom,notify-edges = <&glink_cdsp>;
			};
		};

		glink_adsp: adsp {
			qcom,remote-pid = <2>;
			transport = "smem";
@@ -1262,7 +1289,8 @@
			qcom,cdsp_glink_ssr {
				qcom,glink-channels = "glink_ssr";
				qcom,notify-edges = <&glink_adsp>,
						    <&glink_slpi>;
						    <&glink_slpi>,
						    <&glink_npu>;
			};
		};
	};