* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
@ 2014-09-04 23:50 Joe.C
2014-09-04 23:50 ` [PATCH 1/5] arm: MTK: Add basic support for mt8127 Joe.C
` (6 more replies)
0 siblings, 7 replies; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:50 UTC (permalink / raw)
To: linux-arm-kernel
This series add basic device tree support MT8127 & MT8135.
This series is based on v3.17-rc3.
We are planning to upstream drivers for MT8127 & MT8135 SoCs.
MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
tablet soc with 4 CA7. They share many similar IP components
with MT65xx series.
Please note this one is not base on intpol [1] patches I sent
last month. Base on the discussion on intpol, I think it might
take some more time. I'd like to have this merge first so we
can work on other stuff simultaneously.
Joe.C
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-August/279052.html
Joe.C (5):
arm: MTK: Add basic support for mt8127
arm: mediatek: add dts for 8127 Moose board
arm: MTK: Add basic support for mt8135
arm: mediatek: add dts for MT8135 evaluation board.
dt-bindings: add more chips in documentation for Mediatek SoC
Documentation/devicetree/bindings/arm/mediatek.txt | 9 +-
arch/arm/boot/dts/mt8127-moose.dts | 24 +++++
arch/arm/boot/dts/mt8127.dtsi | 93 +++++++++++++++++
arch/arm/boot/dts/mt8135-evbp1.dts | 24 +++++
arch/arm/boot/dts/mt8135.dtsi | 115 +++++++++++++++++++++
arch/arm/mach-mediatek/mediatek.c | 2 +
6 files changed, 264 insertions(+), 3 deletions(-)
create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
create mode 100644 arch/arm/boot/dts/mt8127.dtsi
create mode 100644 arch/arm/boot/dts/mt8135-evbp1.dts
create mode 100644 arch/arm/boot/dts/mt8135.dtsi
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/5] arm: MTK: Add basic support for mt8127
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
@ 2014-09-04 23:50 ` Joe.C
2014-09-04 23:50 ` [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board Joe.C
` (5 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:50 UTC (permalink / raw)
To: linux-arm-kernel
From: "Joe.C" <yingjoe.chen@mediatek.com>
This adds a basic dtsi for MT8127 SoC.
Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
arch/arm/boot/dts/mt8127.dtsi | 93 +++++++++++++++++++++++++++++++++++++++
arch/arm/mach-mediatek/mediatek.c | 1 +
2 files changed, 94 insertions(+)
create mode 100644 arch/arm/boot/dts/mt8127.dtsi
diff --git a/arch/arm/boot/dts/mt8127.dtsi b/arch/arm/boot/dts/mt8127.dtsi
new file mode 100644
index 0000000..261213c
--- /dev/null
+++ b/arch/arm/boot/dts/mt8127.dtsi
@@ -0,0 +1,93 @@
+/*
+ * 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,mt8127";
+ interrupt-parent = <&gic>;
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu at 0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x0>;
+ };
+ cpu at 1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x1>;
+ };
+ cpu at 2 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x2>;
+ };
+ cpu at 3 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x3>;
+ };
+
+ };
+
+ 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 at 10008000 {
+ compatible = "mediatek,mt6577-timer";
+ reg = <0 0x10008000 0 0x80>;
+ interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&system_clk>, <&rtc_clk>;
+ clock-names = "system-clk", "rtc-clk";
+ };
+
+ gic: interrupt-controller at 10211000 {
+ compatible = "arm,cortex-a7-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 f2acf07..7f478ce 100644
--- a/arch/arm/mach-mediatek/mediatek.c
+++ b/arch/arm/mach-mediatek/mediatek.c
@@ -19,6 +19,7 @@
static const char * const mediatek_board_dt_compat[] = {
"mediatek,mt6589",
+ "mediatek,mt8127",
NULL,
};
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
2014-09-04 23:50 ` [PATCH 1/5] arm: MTK: Add basic support for mt8127 Joe.C
@ 2014-09-04 23:50 ` Joe.C
2014-09-08 7:23 ` Sascha Hauer
2014-09-04 23:50 ` [PATCH 3/5] arm: MTK: Add basic support for mt8135 Joe.C
` (4 subsequent siblings)
6 siblings, 1 reply; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:50 UTC (permalink / raw)
To: linux-arm-kernel
From: "Joe.C" <yingjoe.chen@mediatek.com>
Moose is a tablet evalutation board based on MT8127 SoC.
Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
arch/arm/boot/dts/mt8127-moose.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
diff --git a/arch/arm/boot/dts/mt8127-moose.dts b/arch/arm/boot/dts/mt8127-moose.dts
new file mode 100644
index 0000000..715e23c
--- /dev/null
+++ b/arch/arm/boot/dts/mt8127-moose.dts
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+/dts-v1/;
+#include "mt8127.dtsi"
+
+/ {
+ model = "mt8127-moose";
+
+ memory {
+ reg = <0 0x80000000 0 0x40000000>;
+ };
+};
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/5] arm: MTK: Add basic support for mt8135
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
2014-09-04 23:50 ` [PATCH 1/5] arm: MTK: Add basic support for mt8127 Joe.C
2014-09-04 23:50 ` [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board Joe.C
@ 2014-09-04 23:50 ` Joe.C
2014-09-08 9:12 ` Sascha Hauer
2014-09-04 23:50 ` [PATCH 4/5] arm: mediatek: add dts for MT8135 evaluation board Joe.C
` (3 subsequent siblings)
6 siblings, 1 reply; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:50 UTC (permalink / raw)
To: linux-arm-kernel
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..e05e421
--- /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 at 0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x000>;
+ };
+
+ cpu1: cpu at 1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x001>;
+ };
+
+ cpu2: cpu at 100 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a15";
+ reg = <0x100>;
+ };
+
+ cpu3: cpu at 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 at 10008000 {
+ compatible = "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 at 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
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 4/5] arm: mediatek: add dts for MT8135 evaluation board.
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
` (2 preceding siblings ...)
2014-09-04 23:50 ` [PATCH 3/5] arm: MTK: Add basic support for mt8135 Joe.C
@ 2014-09-04 23:50 ` Joe.C
2014-09-04 23:51 ` [PATCH 5/5] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
` (2 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:50 UTC (permalink / raw)
To: linux-arm-kernel
From: "Joe.C" <yingjoe.chen@mediatek.com>
Evbp1 is a tablet evaluation board based on MT8135 SoC.
Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
arch/arm/boot/dts/mt8135-evbp1.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 arch/arm/boot/dts/mt8135-evbp1.dts
diff --git a/arch/arm/boot/dts/mt8135-evbp1.dts b/arch/arm/boot/dts/mt8135-evbp1.dts
new file mode 100644
index 0000000..d7c5ef0
--- /dev/null
+++ b/arch/arm/boot/dts/mt8135-evbp1.dts
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+/dts-v1/;
+#include "mt8135.dtsi"
+
+/ {
+ model = "mt8135-evbp1";
+
+ memory {
+ reg = <0 0x80000000 0 0x40000000>;
+ };
+};
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 5/5] dt-bindings: add more chips in documentation for Mediatek SoC
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
` (3 preceding siblings ...)
2014-09-04 23:50 ` [PATCH 4/5] arm: mediatek: add dts for MT8135 evaluation board Joe.C
@ 2014-09-04 23:51 ` Joe.C
2014-09-05 19:36 ` arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Arnd Bergmann
2014-09-08 7:28 ` Sascha Hauer
6 siblings, 0 replies; 13+ messages in thread
From: Joe.C @ 2014-09-04 23:51 UTC (permalink / raw)
To: linux-arm-kernel
From: "Joe.C" <yingjoe.chen@mediatek.com>
Add MT8127 & MT8135 from Mediatek.
Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
Documentation/devicetree/bindings/arm/mediatek.txt | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediatek.txt
index d6ac71f..451d48d 100644
--- a/Documentation/devicetree/bindings/arm/mediatek.txt
+++ b/Documentation/devicetree/bindings/arm/mediatek.txt
@@ -1,8 +1,11 @@
-Mediatek MT6589 Platforms Device Tree Bindings
+Mediatek Platforms Device Tree Bindings
-Boards with a SoC of the Mediatek MT6589 shall have the following property:
+Boards with a SoC of the Mediatek shall have the following property:
Required root node property:
-compatible: must contain "mediatek,mt6589"
+compatible: Must contain one of
+ "mediatek,mt6589"
+ "mediatek,mt8127"
+ "mediatek,mt8135"
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 13+ messages in thread
* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
` (4 preceding siblings ...)
2014-09-04 23:51 ` [PATCH 5/5] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
@ 2014-09-05 19:36 ` Arnd Bergmann
2014-09-06 7:27 ` Matthias Brugger
2014-09-08 7:28 ` Sascha Hauer
6 siblings, 1 reply; 13+ messages in thread
From: Arnd Bergmann @ 2014-09-05 19:36 UTC (permalink / raw)
To: linux-arm-kernel
Hello Joe,
On Friday 05 September 2014 07:50:55 Joe. C wrote:
> This series add basic device tree support MT8127 & MT8135.
> This series is based on v3.17-rc3.
>
> We are planning to upstream drivers for MT8127 & MT8135 SoCs.
> MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
> tablet soc with 4 CA7. They share many similar IP components
> with MT65xx series.
The patches look very nice to me, I'm glad to hear you have
plans to upstream more.
> Please note this one is not base on intpol [1] patches I sent
> last month. Base on the discussion on intpol, I think it might
> take some more time. I'd like to have this merge first so we
> can work on other stuff simultaneously.
Yes, I agree. I'll wait for Matthias to pick up your patches
and send a pull request for them.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
2014-09-05 19:36 ` arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Arnd Bergmann
@ 2014-09-06 7:27 ` Matthias Brugger
2014-09-06 14:09 ` Arnd Bergmann
0 siblings, 1 reply; 13+ messages in thread
From: Matthias Brugger @ 2014-09-06 7:27 UTC (permalink / raw)
To: linux-arm-kernel
2014-09-05 21:36 GMT+02:00 Arnd Bergmann <arnd@arndb.de>:
> Hello Joe,
>
> On Friday 05 September 2014 07:50:55 Joe. C wrote:
>> This series add basic device tree support MT8127 & MT8135.
>> This series is based on v3.17-rc3.
>>
>> We are planning to upstream drivers for MT8127 & MT8135 SoCs.
>> MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
>> tablet soc with 4 CA7. They share many similar IP components
>> with MT65xx series.
>
> The patches look very nice to me, I'm glad to hear you have
> plans to upstream more.
>
>> Please note this one is not base on intpol [1] patches I sent
>> last month. Base on the discussion on intpol, I think it might
>> take some more time. I'd like to have this merge first so we
>> can work on other stuff simultaneously.
>
> Yes, I agree. I'll wait for Matthias to pick up your patches
> and send a pull request for them.
The patches look fine to me, apart from the inconsistency in the
subject. I will fix this when I pick them.
I'm just wondering if I should wait until we get an ACK from the DTS maintainer.
>
> Arnd
--
motzblog.wordpress.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
2014-09-06 7:27 ` Matthias Brugger
@ 2014-09-06 14:09 ` Arnd Bergmann
0 siblings, 0 replies; 13+ messages in thread
From: Arnd Bergmann @ 2014-09-06 14:09 UTC (permalink / raw)
To: linux-arm-kernel
On Saturday 06 September 2014 09:27:28 Matthias Brugger wrote:
> 2014-09-05 21:36 GMT+02:00 Arnd Bergmann <arnd@arndb.de>:
> > Hello Joe,
> >
> > On Friday 05 September 2014 07:50:55 Joe. C wrote:
> >> This series add basic device tree support MT8127 & MT8135.
> >> This series is based on v3.17-rc3.
> >>
> >> We are planning to upstream drivers for MT8127 & MT8135 SoCs.
> >> MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
> >> tablet soc with 4 CA7. They share many similar IP components
> >> with MT65xx series.
> >
> > The patches look very nice to me, I'm glad to hear you have
> > plans to upstream more.
> >
> >> Please note this one is not base on intpol [1] patches I sent
> >> last month. Base on the discussion on intpol, I think it might
> >> take some more time. I'd like to have this merge first so we
> >> can work on other stuff simultaneously.
> >
> > Yes, I agree. I'll wait for Matthias to pick up your patches
> > and send a pull request for them.
>
> The patches look fine to me, apart from the inconsistency in the
> subject. I will fix this when I pick them.
> I'm just wondering if I should wait until we get an ACK from the DTS maintainer.
It surely doesn't hurt to wait a bit more, but if it takes too
long, you can just apply the patches. For all I can tell, only
documented bindings are used, and it's more important to
review new or extended bindings.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board
2014-09-04 23:50 ` [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board Joe.C
@ 2014-09-08 7:23 ` Sascha Hauer
0 siblings, 0 replies; 13+ messages in thread
From: Sascha Hauer @ 2014-09-08 7:23 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Sep 05, 2014 at 07:50:57AM +0800, Joe.C wrote:
> From: "Joe.C" <yingjoe.chen@mediatek.com>
>
> Moose is a tablet evalutation board based on MT8127 SoC.
>
> Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
> ---
> arch/arm/boot/dts/mt8127-moose.dts | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
> create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
You could add this and the other dts files to
dtb-$(CONFIG_ARCH_MEDIATEK) so the Mediatek device trees are compile
during the build
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
` (5 preceding siblings ...)
2014-09-05 19:36 ` arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Arnd Bergmann
@ 2014-09-08 7:28 ` Sascha Hauer
2014-09-08 9:26 ` Matthias Brugger
6 siblings, 1 reply; 13+ messages in thread
From: Sascha Hauer @ 2014-09-08 7:28 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Sep 05, 2014 at 07:50:55AM +0800, Joe.C wrote:
> This series add basic device tree support MT8127 & MT8135.
> This series is based on v3.17-rc3.
>
> We are planning to upstream drivers for MT8127 & MT8135 SoCs.
> MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
> tablet soc with 4 CA7. They share many similar IP components
> with MT65xx series.
>
> Please note this one is not base on intpol [1] patches I sent
> last month. Base on the discussion on intpol, I think it might
> take some more time. I'd like to have this merge first so we
> can work on other stuff simultaneously.
>
> Joe.C
>
> [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-August/279052.html
>
> Joe.C (5):
> arm: MTK: Add basic support for mt8127
> arm: mediatek: add dts for 8127 Moose board
> arm: MTK: Add basic support for mt8135
> arm: mediatek: add dts for MT8135 evaluation board.
> dt-bindings: add more chips in documentation for Mediatek SoC
We could add the following patch to this series so we actually see
something on the console during development of the other drivers.
I only know the UART base addresses of the mt8135, so I don't know
if MEDIATEK_ is an appropriate prefix. Maybe it should be changed to
MT8135_.
Sascha
----------------------------8<-------------------------------
>From 16709f768d955b561972f809f2a6260435cabbe4 Mon Sep 17 00:00:00 2001
From: Sascha Hauer <s.hauer@pengutronix.de>
Date: Mon, 8 Sep 2014 09:17:02 +0200
Subject: [PATCH] ARM: Mediatek: Add lowlevel debug uart support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index b11ad54..0d33c74 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -348,6 +348,22 @@ choice
Say Y here if you want the debug print routines to direct
their output to UART1 serial port on KEYSTONE2 devices.
+ config DEBUG_MEDIATEK_UART0
+ bool "Mediatek SoC Debug UART0"
+ depends on ARCH_MEDIATEK
+ select DEBUG_UART_8250
+ help
+ Say Y here if you want kernel low-level debugging support
+ on Mediatek SoC based platforms.
+
+ config DEBUG_MEDIATEK_UART3
+ bool "Mediatek SoC Debug UART3"
+ depends on ARCH_MEDIATEK
+ select DEBUG_UART_8250
+ help
+ Say Y here if you want kernel low-level debugging support
+ on Mediatek SoC based platforms.
+
config DEBUG_MMP_UART2
bool "Kernel low-level debugging message via MMP UART2"
depends on ARCH_MMP
@@ -1108,6 +1124,8 @@ config DEBUG_UART_PHYS
default 0xd0012000 if DEBUG_MVEBU_UART
default 0xd4017000 if DEBUG_MMP_UART2
default 0xd4018000 if DEBUG_MMP_UART3
+ default 0x11006000 if DEBUG_MEDIATEK_UART0
+ default 0x11009000 if DEBUG_MEDIATEK_UART3
default 0xe0000000 if ARCH_SPEAR13XX
default 0xf0000be0 if ARCH_EBSA110
default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
@@ -1164,6 +1182,8 @@ config DEBUG_UART_VIRT
default 0xfe012000 if ARCH_ORION5X
default 0xfe017000 if DEBUG_MMP_UART2
default 0xfe018000 if DEBUG_MMP_UART3
+ default 0xfe806000 if DEBUG_MEDIATEK_UART0
+ default 0xfe809000 if DEBUG_MEDIATEK_UART3
default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
default 0xfe230000 if DEBUG_PICOXCELL_UART
default 0xfe300000 if DEBUG_BCM_KONA_UART
--
1.8.3.2
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/5] arm: MTK: Add basic support for mt8135
2014-09-04 23:50 ` [PATCH 3/5] arm: MTK: Add basic support for mt8135 Joe.C
@ 2014-09-08 9:12 ` Sascha Hauer
0 siblings, 0 replies; 13+ messages in thread
From: Sascha Hauer @ 2014-09-08 9:12 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Sep 05, 2014 at 07:50:58AM +0800, Joe.C wrote:
> From: "Joe.C" <yingjoe.chen@mediatek.com>
>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> + compatible = "simple-bus";
> + ranges;
> +
> + timer: timer at 10008000 {
> + compatible = "mediatek,mt6577-timer";
This should also have a mediatek,mt8135-timer compatible. Just in case
there are incompatibilities in the timer you are not aware of now you'll
still have the possibility later to distinguish between the mt6577 timer
and the mt8135 timer in the driver.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
2014-09-08 7:28 ` Sascha Hauer
@ 2014-09-08 9:26 ` Matthias Brugger
0 siblings, 0 replies; 13+ messages in thread
From: Matthias Brugger @ 2014-09-08 9:26 UTC (permalink / raw)
To: linux-arm-kernel
2014-09-08 9:28 GMT+02:00 Sascha Hauer <s.hauer@pengutronix.de>:
> On Fri, Sep 05, 2014 at 07:50:55AM +0800, Joe.C wrote:
>> This series add basic device tree support MT8127 & MT8135.
>> This series is based on v3.17-rc3.
>>
>> We are planning to upstream drivers for MT8127 & MT8135 SoCs.
>> MT8135 is a tablet soc featuring 2 CA7 + 2 CA15. MT8127 is a
>> tablet soc with 4 CA7. They share many similar IP components
>> with MT65xx series.
>>
>> Please note this one is not base on intpol [1] patches I sent
>> last month. Base on the discussion on intpol, I think it might
>> take some more time. I'd like to have this merge first so we
>> can work on other stuff simultaneously.
>>
>> Joe.C
>>
>> [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-August/279052.html
>>
>> Joe.C (5):
>> arm: MTK: Add basic support for mt8127
>> arm: mediatek: add dts for 8127 Moose board
>> arm: MTK: Add basic support for mt8135
>> arm: mediatek: add dts for MT8135 evaluation board.
>> dt-bindings: add more chips in documentation for Mediatek SoC
>
> We could add the following patch to this series so we actually see
> something on the console during development of the other drivers.
> I only know the UART base addresses of the mt8135, so I don't know
> if MEDIATEK_ is an appropriate prefix. Maybe it should be changed to
> MT8135_.
Yes it should be MT8135_ as other chips have the UART mapped to
different addresses [0].
Cheers,
Matthias
[0] https://lkml.org/lkml/2014/8/18/454
>
> Sascha
>
> ----------------------------8<-------------------------------
>
> From 16709f768d955b561972f809f2a6260435cabbe4 Mon Sep 17 00:00:00 2001
> From: Sascha Hauer <s.hauer@pengutronix.de>
> Date: Mon, 8 Sep 2014 09:17:02 +0200
> Subject: [PATCH] ARM: Mediatek: Add lowlevel debug uart support
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
> arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index b11ad54..0d33c74 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -348,6 +348,22 @@ choice
> Say Y here if you want the debug print routines to direct
> their output to UART1 serial port on KEYSTONE2 devices.
>
> + config DEBUG_MEDIATEK_UART0
> + bool "Mediatek SoC Debug UART0"
> + depends on ARCH_MEDIATEK
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + on Mediatek SoC based platforms.
> +
> + config DEBUG_MEDIATEK_UART3
> + bool "Mediatek SoC Debug UART3"
> + depends on ARCH_MEDIATEK
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + on Mediatek SoC based platforms.
> +
> config DEBUG_MMP_UART2
> bool "Kernel low-level debugging message via MMP UART2"
> depends on ARCH_MMP
> @@ -1108,6 +1124,8 @@ config DEBUG_UART_PHYS
> default 0xd0012000 if DEBUG_MVEBU_UART
> default 0xd4017000 if DEBUG_MMP_UART2
> default 0xd4018000 if DEBUG_MMP_UART3
> + default 0x11006000 if DEBUG_MEDIATEK_UART0
> + default 0x11009000 if DEBUG_MEDIATEK_UART3
> default 0xe0000000 if ARCH_SPEAR13XX
> default 0xf0000be0 if ARCH_EBSA110
> default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
> @@ -1164,6 +1182,8 @@ config DEBUG_UART_VIRT
> default 0xfe012000 if ARCH_ORION5X
> default 0xfe017000 if DEBUG_MMP_UART2
> default 0xfe018000 if DEBUG_MMP_UART3
> + default 0xfe806000 if DEBUG_MEDIATEK_UART0
> + default 0xfe809000 if DEBUG_MEDIATEK_UART3
> default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
> default 0xfe230000 if DEBUG_PICOXCELL_UART
> default 0xfe300000 if DEBUG_BCM_KONA_UART
> --
> 1.8.3.2
>
>
> --
> Pengutronix e.K. | |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
motzblog.wordpress.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-09-08 9:26 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04 23:50 arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
2014-09-04 23:50 ` [PATCH 1/5] arm: MTK: Add basic support for mt8127 Joe.C
2014-09-04 23:50 ` [PATCH 2/5] arm: mediatek: add dts for 8127 Moose board Joe.C
2014-09-08 7:23 ` Sascha Hauer
2014-09-04 23:50 ` [PATCH 3/5] arm: MTK: Add basic support for mt8135 Joe.C
2014-09-08 9:12 ` Sascha Hauer
2014-09-04 23:50 ` [PATCH 4/5] arm: mediatek: add dts for MT8135 evaluation board Joe.C
2014-09-04 23:51 ` [PATCH 5/5] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
2014-09-05 19:36 ` arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Arnd Bergmann
2014-09-06 7:27 ` Matthias Brugger
2014-09-06 14:09 ` Arnd Bergmann
2014-09-08 7:28 ` Sascha Hauer
2014-09-08 9:26 ` Matthias Brugger
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).