Skip to contentSkip to conversation

arm: Add basic support for MediaTek MT8127 & MT8135 SoCs

PATCH Superseded Joe.C 4 participants 13 messages Sep 4, 2014 – Sep 8, 2014

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Joe.C

author
#0 lore raw

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
author
#1 lore raw

PATCH 1/5 arm: MTK: Add basic support for mt8127

From: "Joe.C" <[email protected]>

This adds a basic dtsi for MT8127 SoC.

---
 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
arch/arm/boot/dts/mt8127.dtsi new file +93 -0
new file mode 100644
index 0000000..261213c
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2014 MediaTek Inc.
+ * Author: Joe.C <[email protected]>
+ *
+ * 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>;
+		};
+	};
+};
arch/arm/mach-mediatek/mediatek.c +1 -0
index f2acf07..7f478ce 100644
@@ -19,6 +19,7 @@
 
 static const char * const mediatek_board_dt_compat[] = {
 	"mediatek,mt6589",
+	"mediatek,mt8127",
 	NULL,
 };
 
Signature · 1 line
1.8.1.1.dirty
author
#2 lore raw

PATCH 2/5 arm: mediatek: add dts for 8127 Moose board

In reply to Joe.C

From: "Joe.C" <[email protected]>

Moose is a tablet evalutation board based on MT8127 SoC.

---
 arch/arm/boot/dts/mt8127-moose.dts | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
arch/arm/boot/dts/mt8127-moose.dts new file +24 -0
new file mode 100644
index 0000000..715e23c
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2014 MediaTek Inc.
+ * Author: Joe.C <[email protected]>
+ *
+ * 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>;
+	};
+};
Signature · 1 line
1.8.1.1.dirty
#3 lore raw

PATCH 2/5 arm: mediatek: add dts for 8127 Moose board

Quoted 9 lines · Joe.C

From: "Joe.C" <[email protected]>

Moose is a tablet evalutation board based on MT8127 SoC.

---
 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

Signature · 4 lines
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 |
author
#4 lore raw

PATCH 3/5 arm: MTK: Add basic support for mt8135

In reply to Joe.C

From: "Joe.C" <[email protected]>

This adds a basic dtsi for MT8135 based SoC.

---
 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
arch/arm/boot/dts/mt8135.dtsi new file +115 -0
new file mode 100644
index 0000000..e05e421
@@ -0,0 +1,115 @@
+/*
+ * Copyright (c) 2014 MediaTek Inc.
+ * Author: Joe.C <[email protected]>
+ *
+ * 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>;
+		};
+	};
+};
arch/arm/mach-mediatek/mediatek.c +1 -0
index 7f478ce..48051a2 100644
@@ -20,6 +20,7 @@
 static const char * const mediatek_board_dt_compat[] = {
 	"mediatek,mt6589",
 	"mediatek,mt8127",
+	"mediatek,mt8135",
 	NULL,
 };
 
Signature · 1 line
1.8.1.1.dirty
#5 lore raw

PATCH 3/5 arm: MTK: Add basic support for mt8135

arch/arm/boot/dts/mt8135.dtsi line 98

Quoted 11 lines · Joe.C

From: "Joe.C" <[email protected]>

arch/arm/boot/dts/mt8135.dtsi new file +9 -0
+
+	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

Signature · 4 lines
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 |
author
#6 lore raw

PATCH 4/5 arm: mediatek: add dts for MT8135 evaluation board.

In reply to Joe.C

From: "Joe.C" <[email protected]>

Evbp1 is a tablet evaluation board based on MT8135 SoC.

---
 arch/arm/boot/dts/mt8135-evbp1.dts | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 arch/arm/boot/dts/mt8135-evbp1.dts
arch/arm/boot/dts/mt8135-evbp1.dts new file +24 -0
new file mode 100644
index 0000000..d7c5ef0
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2014 MediaTek Inc.
+ * Author: Joe.C <[email protected]>
+ *
+ * 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>;
+	};
+};
Signature · 1 line
1.8.1.1.dirty
author
#7 lore raw

PATCH 5/5 dt-bindings: add more chips in documentation for Mediatek SoC

In reply to Joe.C

From: "Joe.C" <[email protected]>

Add MT8127 & MT8135 from Mediatek.

---
 Documentation/devicetree/bindings/arm/mediatek.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/mediatek.txt +6 -3
index d6ac71f..451d48d 100644
@@ -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"
 
Signature · 1 line
1.8.1.1.dirty
#8 lore raw
In reply to Joe.C

Hello Joe,

Quoted 7 lines · 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.

Quoted 4 lines

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

maintainer
#9 lore raw

2014-09-05 21:36 GMT+02:00 Arnd Bergmann <[email protected]>:

Quoted 14 lines

Hello Joe,

Quoted 7 lines · 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.

Quoted 7 lines
Quoted 4 lines

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.

Quoted 2 lines

Arnd

Signature · 1 line
motzblog.wordpress.com
#10 lore raw
Quoted 20 lines · On Saturday 06 September 2014 09:27:28 Matthias Brugger wrote:

2014-09-05 21:36 GMT+02:00 Arnd Bergmann <[email protected]>:

Quoted 19 lines

Hello Joe,

Quoted 7 lines · 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.

Quoted 4 lines

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.

Quoted 6 lines
Quoted 2 lines

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

#11 lore raw
In reply to Joe.C
Quoted 15 lines · Joe.C

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

Quoted 8 lines

[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<-------------------------------

Quoted 1 line

From 16709f768d955b561972f809f2a6260435cabbe4 Mon Sep 17 00:00:00 2001

From: Sascha Hauer <[email protected]>
Date: Mon, 8 Sep 2014 09:17:02 +0200
Subject: [PATCH] ARM: Mediatek: Add lowlevel debug uart support

---
 arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/Kconfig.debug +20 -0
index b11ad54..0d33c74 100644
@@ -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
Signature · 8 lines
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 |
maintainer
#12 lore raw

2014-09-08 9:28 GMT+02:00 Sascha Hauer <[email protected]>:

Quoted 25 lines · Joe.C
Quoted 15 lines

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

Quoted 8 lines

[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

Quoted 5 lines

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

Quoted 69 lines

Sascha

----------------------------8<-------------------------------

From 16709f768d955b561972f809f2a6260435cabbe4 Mon Sep 17 00:00:00 2001
From: Sascha Hauer <[email protected]>
Date: Mon, 8 Sep 2014 09:17:02 +0200
Subject: [PATCH] ARM: Mediatek: Add lowlevel debug uart support

---
 arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/Kconfig.debug +20 -1
index b11ad54..0d33c74 100644
@@ -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 |
Signature · 1 line
motzblog.wordpress.com