From: Joe.C <srv_yingjoe.chen@mediatek.com>
To: Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
arm@kernel.org
Cc: Mark Rutland <mark.rutland@arm.com>,
Anders Berg <anders.berg@lsi.com>,
Russell King <linux@arm.linux.org.uk>,
srv_heupstream@mediatek.com, yingjoe.chen@gmail.com,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
hc.yen@mediatek.com, Linus Walleij <linus.walleij@linaro.org>,
yh.chen@mediatek.com, linux-kernel@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>,
devicetree@vger.kernel.org, Pawel Moll <pawel.moll@arm.com>,
nathan.chung@mediatek.com, Kumar Gala <galak@codeaurora.org>,
yingjoe.chen@mediatek.com, eddie.huang@mediatek.com,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 3/7] arm: MTK: Add basic support for mt8135
Date: Fri, 19 Sep 2014 11:04:15 +0800 [thread overview]
Message-ID: <1411095859-18737-4-git-send-email-srv_yingjoe.chen@mediatek.com> (raw)
In-Reply-To: <1411095859-18737-1-git-send-email-srv_yingjoe.chen@mediatek.com>
From: "Joe.C" <yingjoe.chen@mediatek.com>
This adds a basic dtsi for MT8135 based SoC.
Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
arch/arm/boot/dts/mt8135.dtsi | 115 ++++++++++++++++++++++++++++++++++++++
arch/arm/mach-mediatek/mediatek.c | 1 +
2 files changed, 116 insertions(+)
create mode 100644 arch/arm/boot/dts/mt8135.dtsi
diff --git a/arch/arm/boot/dts/mt8135.dtsi b/arch/arm/boot/dts/mt8135.dtsi
new file mode 100644
index 0000000..90a56ad
--- /dev/null
+++ b/arch/arm/boot/dts/mt8135.dtsi
@@ -0,0 +1,115 @@
+/*
+ * Copyright (c) 2014 MediaTek Inc.
+ * Author: Joe.C <yingjoe.chen@mediatek.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.
+ *
+ * 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 <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include "skeleton64.dtsi"
+
+/ {
+ compatible = "mediatek,mt8135";
+ interrupt-parent = <&gic>;
+
+ cpu-map {
+ cluster0 {
+ core0 {
+ cpu = <&cpu0>;
+ };
+ core1 {
+ cpu = <&cpu1>;
+ };
+ };
+
+ cluster1 {
+ core0 {
+ cpu = <&cpu2>;
+ };
+ core1 {
+ cpu = <&cpu3>;
+ };
+ };
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x000>;
+ };
+
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x001>;
+ };
+
+ cpu2: cpu@100 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a15";
+ reg = <0x100>;
+ };
+
+ cpu3: cpu@101 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a15";
+ reg = <0x101>;
+ };
+ };
+
+ clocks {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "simple-bus";
+ ranges;
+
+ system_clk: dummy13m {
+ compatible = "fixed-clock";
+ clock-frequency = <13000000>;
+ #clock-cells = <0>;
+ };
+
+ rtc_clk: dummy32k {
+ compatible = "fixed-clock";
+ clock-frequency = <32000>;
+ #clock-cells = <0>;
+ };
+ };
+
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "simple-bus";
+ ranges;
+
+ timer: timer@10008000 {
+ compatible = "mediatek,mt8135-timer", "mediatek,mt6577-timer";
+ reg = <0 0x10008000 0 0x80>;
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&system_clk>, <&rtc_clk>;
+ clock-names = "system-clk", "rtc-clk";
+ };
+
+ gic: interrupt-controller@10211000 {
+ compatible = "arm,cortex-a15-gic";
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ reg = <0 0x10211000 0 0x1000>,
+ <0 0x10212000 0 0x1000>,
+ <0 0x10214000 0 0x2000>,
+ <0 0x10216000 0 0x2000>;
+ };
+ };
+};
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
index 7f478ce..48051a2 100644
--- a/arch/arm/mach-mediatek/mediatek.c
+++ b/arch/arm/mach-mediatek/mediatek.c
@@ -20,6 +20,7 @@
static const char * const mediatek_board_dt_compat[] = {
"mediatek,mt6589",
"mediatek,mt8127",
+ "mediatek,mt8135",
NULL,
};
--
1.8.1.1.dirty
next prev parent reply other threads:[~2014-09-19 3:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 3:04 [PATCH v3 0/7] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
2014-09-19 3:04 ` [PATCH v3 1/7] arm: MTK: Add basic support for mt8127 Joe.C
2014-09-19 3:04 ` [PATCH v3 2/7] arm: mediatek: add dts for 8127 Moose board Joe.C
2014-09-19 3:04 ` Joe.C [this message]
2014-09-19 3:04 ` [PATCH v3 4/7] arm: mediatek: add dts for MT8135 evaluation board Joe.C
2014-09-19 3:04 ` [PATCH v3 5/7] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
2014-09-19 3:04 ` [PATCH v3 6/7] arm: dts: Build dtb for mt8127 & mt8135 Joe.C
2014-09-19 3:04 ` [PATCH v3 7/7] arm: mediatek: Add earlyprintk support " Joe.C
[not found] ` <1411095859-18737-1-git-send-email-srv_yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2014-09-19 11:10 ` [PATCH v3 0/7] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Matthias Brugger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411095859-18737-4-git-send-email-srv_yingjoe.chen@mediatek.com \
--to=srv_yingjoe.chen@mediatek.com \
--cc=anders.berg@lsi.com \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=eddie.huang@mediatek.com \
--cc=galak@codeaurora.org \
--cc=hc.yen@mediatek.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=nathan.chung@mediatek.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=srv_heupstream@mediatek.com \
--cc=yh.chen@mediatek.com \
--cc=yingjoe.chen@gmail.com \
--cc=yingjoe.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).