ARM: dts: msm: Add initial device tree for sdmbat

Add support for device tree needed to support sdmbat soc and sdmbat
rumi platform.

Change-Id: I60f073894ecf91569d710874dabf93d6db173a58
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 2eb3148..3ed0b06 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -7,6 +7,11 @@
 	msmskunk-mtp.dtb \
 	msmskunk-cdp.dtb
 
+dtb-$(CONFIG_ARCH_SDMBAT) += sdmbat-sim.dtb \
+	sdmbat-rumi.dtb \
+	sdmbat-mtp.dtb \
+	sdmbat-cdp.dtb
+
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
 clean-files	:= *.dtb
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-cdp.dts b/arch/arm64/boot/dts/qcom/sdmbat-cdp.dts
new file mode 100644
index 0000000..f8f916e
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-cdp.dts
@@ -0,0 +1,23 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+
+/dts-v1/;
+
+#include "sdmbat.dtsi"
+#include "sdmbat-cdp.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDM bat v1 CDP";
+	compatible = "qcom,sdmbat-cdp", "qcom,sdmbat", "qcom,cdp";
+	qcom,board-id = <1 0>;
+};
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-cdp.dtsi b/arch/arm64/boot/dts/qcom/sdmbat-cdp.dtsi
new file mode 100644
index 0000000..1003478
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-cdp.dtsi
@@ -0,0 +1,14 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "msmskunk-cdp.dtsi"
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-mtp.dts b/arch/arm64/boot/dts/qcom/sdmbat-mtp.dts
new file mode 100644
index 0000000..fb8e85a
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-mtp.dts
@@ -0,0 +1,23 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+
+/dts-v1/;
+
+#include "sdmbat.dtsi"
+#include "sdmbat-mtp.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDM bat v1 MTP";
+	compatible = "qcom,sdmbat-mtp", "qcom,sdmbat", "qcom,mtp";
+	qcom,board-id = <8 0>;
+};
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-mtp.dtsi b/arch/arm64/boot/dts/qcom/sdmbat-mtp.dtsi
new file mode 100644
index 0000000..ad26a14
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-mtp.dtsi
@@ -0,0 +1,14 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "msmskunk-mtp.dtsi"
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-rumi.dts b/arch/arm64/boot/dts/qcom/sdmbat-rumi.dts
new file mode 100644
index 0000000..2bf868e
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-rumi.dts
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/dts-v1/;
+/memreserve/ 0x90000000 0x00000100;
+
+#include "sdmbat.dtsi"
+#include "sdmbat-rumi.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDM BAT RUMI";
+	compatible = "qcom,sdmbat-rumi", "qcom,sdmbat", "qcom,rumi";
+	qcom,board-id = <15 0>;
+};
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-rumi.dtsi b/arch/arm64/boot/dts/qcom/sdmbat-rumi.dtsi
new file mode 100644
index 0000000..11901f1
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-rumi.dtsi
@@ -0,0 +1,20 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * As a general rule, only version-specific property overrides should be placed
+ * inside this file. Common device definitions should be placed inside the
+ * msmskunk-rumi.dtsi file.
+ */
+
+ #include "msmskunk-rumi.dtsi"
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-sim.dts b/arch/arm64/boot/dts/qcom/sdmbat-sim.dts
new file mode 100644
index 0000000..216b3d0
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-sim.dts
@@ -0,0 +1,25 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+
+/dts-v1/;
+/memreserve/ 0x90000000 0x00000100;
+
+#include "sdmbat.dtsi"
+#include "sdmbat-sim.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDM BAT SIM";
+	compatible = "qcom,sdmbat-sim", "qcom,sdmbat", "qcom,sim";
+	qcom,board-id = <16 0>;
+};
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat-sim.dtsi b/arch/arm64/boot/dts/qcom/sdmbat-sim.dtsi
new file mode 100644
index 0000000..560ad45
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat-sim.dtsi
@@ -0,0 +1,20 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * As a general rule, only version-specific property overrides should be placed
+ * inside this file. Common device definitions should be placed inside the
+ * msmskunk-sim.dtsi file.
+ */
+
+ #include "msmskunk-sim.dtsi"
+
diff --git a/arch/arm64/boot/dts/qcom/sdmbat.dtsi b/arch/arm64/boot/dts/qcom/sdmbat.dtsi
new file mode 100644
index 0000000..950d130
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdmbat.dtsi
@@ -0,0 +1,33 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * As a general rule, only version-specific property overrides should be placed
+ * inside this file. Common device definitions should be placed inside the
+ * msmskunk.dtsi file.
+ */
+
+ #include "msmskunk.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDM BAT";
+	compatible = "qcom,sdmbat";
+	qcom,msm-id = <328 0x0>;
+
+};
+
+&soc {
+	qcom,llcc@1300000 {
+		status = "disabled";
+	};
+};
+