From e0746bddd1d2eaa6508e09807bfdcb5412a1ee1f Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Tue, 22 Jan 2019 10:22:19 +0800 Subject: [PATCH] arm/dts: add Troika init dts init device tree for Troika Change-Id: I8c89161bbf5e4c0022f5765c3e69fde3cc78f3cb Signed-off-by: zhaoxp3 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 | 1 + .../boot/dts/exynos/exynos9609-troika_evb.dts | 31 +++++++ .../dts/exynos/exynos9610-mot-troika.dtsi | 80 +++++++++++++++++++ .../dts/exynos/exynos9610-troika-common.dtsi | 16 ++++ .../boot/dts/exynos/exynos9610_dtboimg.cfg | 2 +- 5 files changed, 129 insertions(+), 1 deletion(-) create mode 100755 arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dts create mode 100644 arch/arm64/boot/dts/exynos/exynos9610-mot-troika.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index b15351bb5b23..39056b1367ab 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -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 index 000000000000..c032e7bc4f4e --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9609-troika_evb.dts @@ -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 index 000000000000..973f670bc4ca --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9610-mot-troika.dtsi @@ -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 index 000000000000..9e6ad1f143e1 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi @@ -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" + + diff --git a/arch/arm64/boot/dts/exynos/exynos9610_dtboimg.cfg b/arch/arm64/boot/dts/exynos/exynos9610_dtboimg.cfg index 7b5b4e153615..dae8d6f2ccd9 100644 --- a/arch/arm64/boot/dts/exynos/exynos9610_dtboimg.cfg +++ b/arch/arm64/boot/dts/exynos/exynos9610_dtboimg.cfg @@ -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 -- 2.20.1