arm/dts: add Troika init dts
authorzhaoxp3 <zhaoxp3@motorola.com>
Tue, 22 Jan 2019 02:22:19 +0000 (10:22 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:34 +0000 (17:30 +0800)
init device tree for Troika
Change-Id: I8c89161bbf5e4c0022f5765c3e69fde3cc78f3cb
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1298023
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

arch/arm64/boot/dts/exynos/Makefile
arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dts [new file with mode: 0755]
arch/arm64/boot/dts/exynos/exynos9610-mot-troika.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/exynos/exynos9610_dtboimg.cfg

index b15351bb5b23eb7c9f4b84608cf444f7952649b9..39056b1367aba02b5590ca8b30144e6922b7ca41 100644 (file)
@@ -8,6 +8,7 @@ dtb-$(CONFIG_SOC_EXYNOS9610) += exynos9610.dtb
 dtb-$(CONFIG_SOC_EXYNOS9610) += \
        exynos9610-erd9610.dtbo \
        exynos9609-wing.dtbo \
+       exynos9609-troika_evb.dtbo \
        exynos9609-robusta2_evb.dtbo
 
 always         := $(dtb-y) $(dtbo-y)
diff --git a/arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dts b/arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dts
new file mode 100755 (executable)
index 0000000..c032e7b
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * SAMSUNG EXYNOS9610 board device tree source
+ *
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *             http://www.samsung.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "exynos9610-troika-common.dtsi"
+
+/ {
+       compatible = "samsung,exynos9610", "samsung,Robusta2 Play EVB";
+       board_id = <0x1>;
+       board_rev = <0x0>;
+
+       fragment@model {
+               target-path = "/";
+               __overlay__ {
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+                       model = "Samsung Robusta2 Play EVB board based on EXYNOS9610";
+               }; /* end of __overlay__ */
+       }; /* end of fragment */
+}; /* end of root */
+#include "exynos9610-mot-troika.dtsi"
diff --git a/arch/arm64/boot/dts/exynos/exynos9610-mot-troika.dtsi b/arch/arm64/boot/dts/exynos/exynos9610-mot-troika.dtsi
new file mode 100644 (file)
index 0000000..973f670
--- /dev/null
@@ -0,0 +1,80 @@
+
+/ {
+       fragment@model {
+               target-path = "/";
+               __overlay__ {
+                       model = "troika";
+                       mot,soc-id = <0xE9610000>;
+                       mot,board-id = <0x43 0xA100>;
+
+                       utags {
+                               compatible = "mmi,utags";
+                               mmi,main-utags = "/dev/block/bootdevice/by-name/utags";
+                               mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup";
+                       };
+
+                       hw {
+                               compatible = "mmi,utags";
+                               mmi,dir-name = "hw";
+                               mmi,main-utags = "/dev/block/bootdevice/by-name/hw";
+                       };
+
+                       aov-trigger {
+                               status = "okay";
+                               compatible = "mmi,aov-trigger";
+                       };
+
+               };
+       };
+};
+
+&exynos_adc {
+       status = "okay";
+       cpu_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 0>;
+               io-channel-names = "cpu_therm";
+       };
+       battery_thermistor {
+               compatible = "murata,ncp15xh103";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 1>;
+               io-channel-names = "bat_therm";
+       };
+       pa_thermistor {
+               compatible = "murata,ncp15xh103";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <0>;
+               pulldown-ohm = <10000>;
+               io-channels = <&exynos_adc 4>;
+               io-channel-names = "pa_therm";
+               connected-positive;
+       };
+       board_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 7>;
+               io-channel-names = "board_therm";
+       };
+       usb_con_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 8>;
+               io-channel-names = "usb_con_therm";
+       };
+};
+
diff --git a/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi b/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi
new file mode 100644 (file)
index 0000000..9e6ad1f
--- /dev/null
@@ -0,0 +1,16 @@
+/* Copyright (c) 2018, Motorola Mobility Inc. 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 "exynos9609-robusta2_common.dtsi"
+
+
index 7b5b4e1536156eca1ac8b0ddc5583ffa15c88409..dae8d6f2ccd93c6c6a07e06f5270dd87dd816221 100644 (file)
@@ -2,6 +2,6 @@
   id=/:board_id
   rev=/:board_rev
 
-arch/arm64/boot/dts/exynos/exynos9609-wing.dtbo
 arch/arm64/boot/dts/exynos/exynos9609-robusta2_evb.dtbo
+arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dtbo