arm/dt: msm: Add compatible field for IOMMU CBs

Add a compatible field for IOMMU context banks. This will
allow us to use a built-in function to add the context banks
as devices instead of replicating code.

Change-Id: I384fcd79db207e3a2ab7c6f3b81902e6223645d3
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
diff --git a/arch/arm/boot/dts/msm-iommu-v0.dtsi b/arch/arm/boot/dts/msm-iommu-v0.dtsi
index b0257d0..35829a7 100644
--- a/arch/arm/boot/dts/msm-iommu-v0.dtsi
+++ b/arch/arm/boot/dts/msm-iommu-v0.dtsi
@@ -30,6 +30,7 @@
 		status = "disabled";
 
 		lpass_q6_fw: qcom,iommu-ctx@fd000000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd000000 0x1000>;
 			interrupts = <0 250 0>;
 			qcom,iommu-ctx-mids = <0 15>;
@@ -37,6 +38,7 @@
 		};
 
 		lpass_audio_shared: qcom,iommu-ctx@fd001000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd001000 0x1000>;
 			interrupts = <0 250 0>;
 			qcom,iommu-ctx-mids = <1>;
@@ -44,6 +46,7 @@
 		};
 
 		lpass_video_shared: qcom,iommu-ctx@fd002000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd002000 0x1000>;
 			interrupts = <0 250 0>;
 			qcom,iommu-ctx-mids = <2>;
@@ -51,6 +54,7 @@
 		};
 
 		lpass_q6_spare: qcom,iommu-ctx@fd003000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd003000 0x1000>;
 			interrupts = <0 250 0>;
 			qcom,iommu-ctx-mids = <3 4 5 6 7 8 9 10 11 12 13 14>;
@@ -77,6 +81,7 @@
 		status = "disabled";
 
 		qcom,iommu-ctx@fd010000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd010000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <0>;
@@ -84,6 +89,7 @@
 		};
 
 		qcom,iommu-ctx@fd011000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd011000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <1>;
@@ -91,6 +97,7 @@
 		};
 
 		qcom,iommu-ctx@fd012000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd012000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <2>;
@@ -98,6 +105,7 @@
 		};
 
 		qcom,iommu-ctx@fd013000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd013000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <3>;
@@ -105,6 +113,7 @@
 		};
 
 		qcom,iommu-ctx@fd014000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd014000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <4>;
@@ -112,6 +121,7 @@
 		};
 
 		qcom,iommu-ctx@fd015000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd015000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <5>;
@@ -119,6 +129,7 @@
 		};
 
 		qcom,iommu-ctx@fd016000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd016000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <6>;
@@ -126,6 +137,7 @@
 		};
 
 		qcom,iommu-ctx@fd017000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd017000 0x1000>;
 			interrupts = <0 254 0>;
 			qcom,iommu-ctx-mids = <7>;
@@ -152,6 +164,7 @@
 		status = "disabled";
 
 		qcom,iommu-ctx@fd860000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd860000 0x1000>;
 			interrupts = <0 247 0>;
 			qcom,iommu-ctx-mids = <0 1 3>;
@@ -159,6 +172,7 @@
 		};
 
 		qcom,iommu-ctx@fd861000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd861000 0x1000>;
 			interrupts = <0 247 0>;
 			qcom,iommu-ctx-mids = <2>;
@@ -185,6 +199,7 @@
 		status = "disabled";
 
 		qcom,iommu-ctx@fd870000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd870000 0x1000>;
 			interrupts = <0 47 0>;
 			qcom,iommu-ctx-mids = <0>;
@@ -192,6 +207,7 @@
 		};
 
 		qcom,iommu-ctx@fd871000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd871000 0x1000>;
 			interrupts = <0 47 0>;
 			qcom,iommu-ctx-mids = <1>;
@@ -219,6 +235,7 @@
 		status = "disabled";
 
 		qcom,iommu-ctx@fd880000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd880000 0x1000>;
 			interrupts = <0 241 0>;
 			qcom,iommu-ctx-mids = <0 1 2 3 4 5 6 7 8 9 10 11 12 13
@@ -227,6 +244,7 @@
 		};
 
 		qcom,iommu-ctx@fd881000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd881000 0x1000>;
 			interrupts = <0 241 0>;
 			qcom,iommu-ctx-mids = <16 17 18 19 20 21 22 23 24 25
@@ -235,6 +253,7 @@
 		};
 
 		qcom,iommu-ctx@fd882000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd882000 0x1000>;
 			interrupts = <0 241 0>;
 			qcom,iommu-ctx-mids = <>;
@@ -261,6 +280,7 @@
 		status = "disabled";
 
 		qcom,iommu-ctx@fd890000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd890000 0x1000>;
 			interrupts = <0 65 0>;
 			qcom,iommu-ctx-mids = <0>;
@@ -268,6 +288,7 @@
 		};
 
 		qcom,iommu-ctx@fd891000 {
+			compatible = "qcom,msm-smmu-v0-ctx";
 			reg = <0xfd891000 0x1000>;
 			interrupts = <0 65 0>;
 			qcom,iommu-ctx-mids = <1>;