devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
@ 2014-10-22 10:29 Joe.C
  2014-10-22 10:29 ` [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127 Joe.C
                   ` (7 more replies)
  0 siblings, 8 replies; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, linux-arm-kernel

This is v4 of adding basic device tree support for MT8127 & MT8135.
Since the last series didn't make it into v3.18-rc1, I updated the
series and send it again. This series is based on v3.18-rc1

Besides changing patch subjects to make them look more consistence,
I include config option patch original posted with mt8135 pinctrl
support[1]. It seems more natural in this series and our works on
clk & pmic will also need it.

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.

Changes in v4:
 - Include config options for different mediatek SoCs.

Changes in v3:
 - Changing earlyprintk order and dt-binding based on Matthias' suggestion.

v2:
 - Change timer compatible string.
 - Build dtb for mt8127 & mt8135
 - Adding earlyprintk support for mt8127 & mt8135

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/289285.html

Joe.C (8):
  ARM: mediatek: Add basic support for mt8127
  ARM: mediatek: add dts for 8127 Moose board
  ARM: mediatek: Add basic support for mt8135
  ARM: mediatek: add dts for MT8135 evaluation board.
  dt-bindings: add more chips in documentation for Mediatek SoC
  ARM: dts: Build dtb for mt8127 & mt8135
  ARM: mediatek: Add earlyprintk support for mt8127 & mt8135
  ARM: mediatek: Add config option for mediatek SoCs.

 Documentation/devicetree/bindings/arm/mediatek.txt |  15 ++-
 arch/arm/Kconfig.debug                             |  20 ++++
 arch/arm/boot/dts/Makefile                         |   4 +-
 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/Kconfig                     |  22 +++-
 arch/arm/mach-mediatek/mediatek.c                  |   2 +
 9 files changed, 312 insertions(+), 7 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] 26+ messages in thread

* [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
@ 2014-10-22 10:29 ` Joe.C
       [not found]   ` <1413973797-17619-2-git-send-email-yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
  2014-10-22 10:29 ` [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board Joe.C
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, 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..25c9f69
--- /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@0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a7";
+			reg = <0x0>;
+		};
+		cpu@1 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a7";
+			reg = <0x1>;
+		};
+		cpu@2 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a7";
+			reg = <0x2>;
+		};
+		cpu@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@10008000 {
+			compatible = "mediatek,mt8127-timer", "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@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] 26+ messages in thread

* [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
  2014-10-22 10:29 ` [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127 Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-11-03 17:55   ` Matthias Brugger
  2014-10-22 10:29 ` [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135 Joe.C
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, 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..602e2f0
--- /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 = "mediatek,mt8127-moose", "mediatek,mt8127";
+
+	memory {
+		reg = <0 0x80000000 0 0x40000000>;
+	};
+};
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
  2014-10-22 10:29 ` [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127 Joe.C
  2014-10-22 10:29 ` [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-11-03 17:58   ` Matthias Brugger
  2014-10-22 10:29 ` [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board Joe.C
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, 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..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

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board.
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
                   ` (2 preceding siblings ...)
  2014-10-22 10:29 ` [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135 Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-11-03 17:58   ` Matthias Brugger
  2014-10-22 10:29 ` [PATCH v4 5/8] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, 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..cba80b8
--- /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 = "mediatek,mt8135-evbp1", "mediatek,mt8135";
+
+	memory {
+		reg = <0 0x80000000 0 0x40000000>;
+	};
+};
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 5/8] dt-bindings: add more chips in documentation for Mediatek SoC
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
                   ` (3 preceding siblings ...)
  2014-10-22 10:29 ` [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-10-22 10:29 ` [PATCH v4 6/8] ARM: dts: Build dtb for mt8127 & mt8135 Joe.C
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, 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 | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediatek.txt
index fa25226..1ca713e 100644
--- a/Documentation/devicetree/bindings/arm/mediatek.txt
+++ b/Documentation/devicetree/bindings/arm/mediatek.txt
@@ -1,10 +1,13 @@
-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"
 
 
 Supported boards:
@@ -12,3 +15,9 @@ Supported boards:
 - bq Aquaris5 smart phone:
     Required root node properties:
       - compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
+- MTK mt8127 tablet moose EVB:
+    Required root node properties:
+      - compatible = "mediatek,mt8127-moose", "mediatek,mt8127";
+- MTK mt8135 tablet EVB:
+    Required root node properties:
+      - compatible = "mediatek,mt8135-evbp1", "mediatek,mt8135";
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 6/8] ARM: dts: Build dtb for mt8127 & mt8135
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
                   ` (4 preceding siblings ...)
  2014-10-22 10:29 ` [PATCH v4 5/8] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-10-22 10:29 ` [PATCH v4 7/8] ARM: mediatek: Add earlyprintk support " Joe.C
  2014-10-22 10:29 ` [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs Joe.C
  7 siblings, 0 replies; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, linux-arm-kernel

From: "Joe.C" <yingjoe.chen@mediatek.com>

This allows the "make dtbs" to build the moose and mt8135-evbp1
for MediaTek SoC

Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
 arch/arm/boot/dts/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 38c89ca..d2e6b2f 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -515,7 +515,9 @@ dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \
 	dove-d2plug.dtb \
 	dove-d3plug.dtb \
 	dove-dove-db.dtb
-dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb \
+	mt8127-moose.dtb \
+	mt8135-evbp1.dtb
 
 targets += dtbs dtbs_install
 targets += $(dtb-y)
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 7/8] ARM: mediatek: Add earlyprintk support for mt8127 & mt8135
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
                   ` (5 preceding siblings ...)
  2014-10-22 10:29 ` [PATCH v4 6/8] ARM: dts: Build dtb for mt8127 & mt8135 Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-10-22 10:29 ` [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs Joe.C
  7 siblings, 0 replies; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, linux-arm-kernel

From: "Joe.C" <yingjoe.chen@mediatek.com>

Enable low-level debug for Mediatek mt8127 & mt8135 SoC.

Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
 arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 03dc4c1..7d78ed7 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -866,6 +866,22 @@ choice
 		  Say Y here if you want kernel low-level debugging support
 		  for Mediatek mt6589 based platforms on UART0.
 
+	config DEBUG_MT8127_UART0
+		bool "Mediatek mt8127 UART0"
+		depends on ARCH_MEDIATEK
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  for Mediatek mt8127 based platforms on UART0.
+
+	config DEBUG_MT8135_UART3
+		bool "Mediatek mt8135 UART3"
+		depends on ARCH_MEDIATEK
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  for Mediatek mt8135 based platforms on UART3.
+
 	config DEBUG_VEXPRESS_UART0_DETECT
 		bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
 		depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -1113,7 +1129,9 @@ config DEBUG_UART_PHYS
 	default 0x10126000 if DEBUG_RK3X_UART1
 	default 0x101f1000 if ARCH_VERSATILE
 	default 0x101fb000 if DEBUG_NOMADIK_UART
+	default 0x11002000 if DEBUG_MT8127_UART0
 	default 0x11006000 if DEBUG_MT6589_UART0
+	default 0x11009000 if DEBUG_MT8135_UART3
 	default 0x16000000 if ARCH_INTEGRATOR
 	default 0x18000300 if DEBUG_BCM_5301X
 	default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
@@ -1181,7 +1199,9 @@ config DEBUG_UART_VIRT
 	default 0xf01fb000 if DEBUG_NOMADIK_UART
 	default 0xf0201000 if DEBUG_BCM2835
 	default 0xf1000300 if DEBUG_BCM_5301X
+	default 0xf1002000 if DEBUG_MT8127_UART0
 	default 0xf1006000 if DEBUG_MT6589_UART0
+	default 0xf1009000 if DEBUG_MT8135_UART3
 	default 0xf11f1000 if ARCH_VERSATILE
 	default 0xf1600000 if ARCH_INTEGRATOR
 	default 0xf1c28000 if DEBUG_SUNXI_UART0
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs.
  2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
                   ` (6 preceding siblings ...)
  2014-10-22 10:29 ` [PATCH v4 7/8] ARM: mediatek: Add earlyprintk support " Joe.C
@ 2014-10-22 10:29 ` Joe.C
  2014-10-22 13:18   ` Matthias Brugger
  7 siblings, 1 reply; 26+ messages in thread
From: Joe.C @ 2014-10-22 10:29 UTC (permalink / raw)
  To: Rob Herring, arm, Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, srv_heupstream,
	Pawel Moll, Ian Campbell, hc.yen, yh.chen, linux-kernel,
	nathan.chung, Sascha Hauer, Kumar Gala, Olof Johansson, Joe.C,
	eddie.huang, yingjoe.chen, linux-arm-kernel

From: "Joe.C" <yingjoe.chen@mediatek.com>

Add config options for ARCH_MT6589, ARCH_MT8127, ARCH_MT8135. The
upcoming pinctrl, clk drivers need to isolate SoCs support base on
these options.

Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
---
 arch/arm/mach-mediatek/Kconfig | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 2c043a2..25fe6cf 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -1,6 +1,22 @@
-config ARCH_MEDIATEK
-	bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
+menuconfig ARCH_MEDIATEK
+	bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
 	select ARM_GIC
 	select MTK_TIMER
 	help
-	  Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
+	  Support for Mediatek MT65xx & MT81xx SoCs
+
+if ARCH_MEDIATEK
+
+config MACH_MT6589
+	bool "MediaTek MT6589 SoCs support"
+	default ARCH_MEDIATEK
+
+config MACH_MT8127
+	bool "MediaTek MT8127 SoCs support"
+	default ARCH_MEDIATEK
+
+config MACH_MT8135
+	bool "MediaTek MT8135 SoCs support"
+	default ARCH_MEDIATEK
+
+endif
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs.
  2014-10-22 10:29 ` [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs Joe.C
@ 2014-10-22 13:18   ` Matthias Brugger
  2014-10-22 13:31     ` Yingjoe Chen
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Brugger @ 2014-10-22 13:18 UTC (permalink / raw)
  To: Joe.C
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer

2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> From: "Joe.C" <yingjoe.chen@mediatek.com>
>
> Add config options for ARCH_MT6589, ARCH_MT8127, ARCH_MT8135. The
> upcoming pinctrl, clk drivers need to isolate SoCs support base on
> these options.
>
> Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
> ---
>  arch/arm/mach-mediatek/Kconfig | 22 +++++++++++++++++++---
>  1 file changed, 19 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
> index 2c043a2..25fe6cf 100644
> --- a/arch/arm/mach-mediatek/Kconfig
> +++ b/arch/arm/mach-mediatek/Kconfig
> @@ -1,6 +1,22 @@
> -config ARCH_MEDIATEK
> -       bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
> +menuconfig ARCH_MEDIATEK
> +       bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
>         select ARM_GIC
>         select MTK_TIMER
>         help
> -         Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
> +         Support for Mediatek MT65xx & MT81xx SoCs
> +
> +if ARCH_MEDIATEK
> +
> +config MACH_MT6589
> +       bool "MediaTek MT6589 SoCs support"
> +       default ARCH_MEDIATEK
> +
> +config MACH_MT8127
> +       bool "MediaTek MT8127 SoCs support"
> +       default ARCH_MEDIATEK
> +
> +config MACH_MT8135
> +       bool "MediaTek MT8135 SoCs support"
> +       default ARCH_MEDIATEK
> +
> +endif

MACH_MTxxxx are not used nowhere, please remove them.

> --
> 1.8.1.1.dirty
>



-- 
motzblog.wordpress.com

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs.
  2014-10-22 13:18   ` Matthias Brugger
@ 2014-10-22 13:31     ` Yingjoe Chen
  2014-10-22 13:53       ` Matthias Brugger
  0 siblings, 1 reply; 26+ messages in thread
From: Yingjoe Chen @ 2014-10-22 13:31 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer


Hi Matthias,

On Wed, 2014-10-22 at 15:18 +0200, Matthias Brugger wrote:
> 2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> > +
> > +if ARCH_MEDIATEK
> > +
> > +config MACH_MT6589
> > +       bool "MediaTek MT6589 SoCs support"
> > +       default ARCH_MEDIATEK
> > +
> > +config MACH_MT8127
> > +       bool "MediaTek MT8127 SoCs support"
> > +       default ARCH_MEDIATEK
> > +
> > +config MACH_MT8135
> > +       bool "MediaTek MT8135 SoCs support"
> > +       default ARCH_MEDIATEK
> > +
> > +endif
> 
> MACH_MTxxxx are not used nowhere, please remove them.

Yes, they are not used in this series yet.

MACH_MT8135 was used in mt8135 pinctrl driver [1] and will be used in
mt8135 clk driver we are about to send. I don't want to create false
dependency between these 2 series so I put it here.
Do you prefer add them when they are first used?

Joe.C

[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/289288.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs.
  2014-10-22 13:31     ` Yingjoe Chen
@ 2014-10-22 13:53       ` Matthias Brugger
  2014-10-22 14:19         ` Yingjoe Chen
       [not found]         ` <CABuKBeLJuaDnCYuvvS6csNzvbTeEdgEUdZ4tBQeVPuw37JK11Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 2 replies; 26+ messages in thread
From: Matthias Brugger @ 2014-10-22 13:53 UTC (permalink / raw)
  To: Yingjoe Chen
  Cc: Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, Hsien-Chun Yen, huang eddie,
	Nathan Chung, Yuhau Chen, Sascha Hauer

Hi Joe,

2014-10-22 15:31 GMT+02:00 Yingjoe Chen <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>:
>
> Hi Matthias,
>
> On Wed, 2014-10-22 at 15:18 +0200, Matthias Brugger wrote:
>> 2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>:
>> > +
>> > +if ARCH_MEDIATEK
>> > +
>> > +config MACH_MT6589
>> > +       bool "MediaTek MT6589 SoCs support"
>> > +       default ARCH_MEDIATEK
>> > +
>> > +config MACH_MT8127
>> > +       bool "MediaTek MT8127 SoCs support"
>> > +       default ARCH_MEDIATEK
>> > +
>> > +config MACH_MT8135
>> > +       bool "MediaTek MT8135 SoCs support"
>> > +       default ARCH_MEDIATEK
>> > +
>> > +endif
>>
>> MACH_MTxxxx are not used nowhere, please remove them.
>
> Yes, they are not used in this series yet.
>
> MACH_MT8135 was used in mt8135 pinctrl driver [1] and will be used in
> mt8135 clk driver we are about to send. I don't want to create false
> dependency between these 2 series so I put it here.
> Do you prefer add them when they are first used?

Yes please add them, when they are first used.
Today I had a look on the pinctrl patches you mentioned. It looks to
me as if the config is not needed in the series.

Thanks,
Matthias

[0] http://thread.gmane.org/gmane.linux.ports.arm.kernel/358505

>
> Joe.C
>
> [1]
> http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/289288.html
>
>



-- 
motzblog.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs.
  2014-10-22 13:53       ` Matthias Brugger
@ 2014-10-22 14:19         ` Yingjoe Chen
       [not found]         ` <CABuKBeLJuaDnCYuvvS6csNzvbTeEdgEUdZ4tBQeVPuw37JK11Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 0 replies; 26+ messages in thread
From: Yingjoe Chen @ 2014-10-22 14:19 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer

On Wed, 2014-10-22 at 15:53 +0200, Matthias Brugger wrote:
> Hi Joe,
> 
> 2014-10-22 15:31 GMT+02:00 Yingjoe Chen <yingjoe.chen@mediatek.com>:
> >
> > Hi Matthias,
> >
> > On Wed, 2014-10-22 at 15:18 +0200, Matthias Brugger wrote:
> >> 2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> >> > +
> >> > +if ARCH_MEDIATEK
> >> > +
> >> > +config MACH_MT6589
> >> > +       bool "MediaTek MT6589 SoCs support"
> >> > +       default ARCH_MEDIATEK
> >> > +
> >> > +config MACH_MT8127
> >> > +       bool "MediaTek MT8127 SoCs support"
> >> > +       default ARCH_MEDIATEK
> >> > +
> >> > +config MACH_MT8135
> >> > +       bool "MediaTek MT8135 SoCs support"
> >> > +       default ARCH_MEDIATEK
> >> > +
> >> > +endif
> >>
> >> MACH_MTxxxx are not used nowhere, please remove them.
> >
> > Yes, they are not used in this series yet.
> >
> > MACH_MT8135 was used in mt8135 pinctrl driver [1] and will be used in
> > mt8135 clk driver we are about to send. I don't want to create false
> > dependency between these 2 series so I put it here.
> > Do you prefer add them when they are first used?
> 
> Yes please add them, when they are first used.
> Today I had a look on the pinctrl patches you mentioned. It looks to
> me as if the config is not needed in the series.

OK, I'll remove these in next version.

Joe.C

> 
> Thanks,
> Matthias
> 
> [0] http://thread.gmane.org/gmane.linux.ports.arm.kernel/358505
> 
> >
> > Joe.C
> >
> > [1]
> > http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/289288.html
> >
> >
> 
> 
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [PATCH v4 8/8] ARM: mediatek: Fix description for mediatek SoCs
       [not found]         ` <CABuKBeLJuaDnCYuvvS6csNzvbTeEdgEUdZ4tBQeVPuw37JK11Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-10-24  5:37           ` Yingjoe Chen
  2014-10-31  1:37             ` Yingjoe Chen
  0 siblings, 1 reply; 26+ messages in thread
From: Yingjoe Chen @ 2014-10-24  5:37 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, Hsien-Chun Yen, huang eddie,
	Nathan Chung, Yuhau Chen, Sascha Hauer

From: "Joe.C" <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>

We support more MediaTek SoCs now, update the description.

Signed-off-by: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
---
 arch/arm/mach-mediatek/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mediatek/Kconfig
b/arch/arm/mach-mediatek/Kconfig
index 2c043a2..f73f588 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -1,6 +1,6 @@
 config ARCH_MEDIATEK
-	bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
+	bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
 	select ARM_GIC
 	select MTK_TIMER
 	help
-	  Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
+	  Support for Mediatek MT65xx & MT81xx SoCs
-- 
1.8.1.1.dirty



--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Fix description for mediatek SoCs
  2014-10-24  5:37           ` [PATCH v4 8/8] ARM: mediatek: Fix description " Yingjoe Chen
@ 2014-10-31  1:37             ` Yingjoe Chen
  2014-10-31 14:53               ` Matthias Brugger
  0 siblings, 1 reply; 26+ messages in thread
From: Yingjoe Chen @ 2014-10-31  1:37 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, arm, Pawel Moll,
	Ian Campbell, Hsien-Chun Yen, Yuhau Chen, linux-kernel,
	srv_heupstream, Rob Herring, Nathan Chung, Sascha Hauer,
	Kumar Gala, Olof Johansson, huang eddie, Yingjoe Chen,
	linux-arm-kernel

Hi Matthias,

Is this series + this new 8/8 patch OK?
Anything else that I should change?

Joe.C

On Fri, 2014-10-24 at 13:37 +0800, Yingjoe Chen wrote:
> From: "Joe.C" <yingjoe.chen@mediatek.com>
> 
> We support more MediaTek SoCs now, update the description.
> 
> Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
> ---
>  arch/arm/mach-mediatek/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-mediatek/Kconfig
> b/arch/arm/mach-mediatek/Kconfig
> index 2c043a2..f73f588 100644
> --- a/arch/arm/mach-mediatek/Kconfig
> +++ b/arch/arm/mach-mediatek/Kconfig
> @@ -1,6 +1,6 @@
>  config ARCH_MEDIATEK
> -	bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
> +	bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
>  	select ARM_GIC
>  	select MTK_TIMER
>  	help
> -	  Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
> +	  Support for Mediatek MT65xx & MT81xx SoCs

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Fix description for mediatek SoCs
  2014-10-31  1:37             ` Yingjoe Chen
@ 2014-10-31 14:53               ` Matthias Brugger
       [not found]                 ` <CABuKBeKFZQAHPR4xjCnM+nz67zE79rWPTHbc=m3VKcCX54Q8rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Brugger @ 2014-10-31 14:53 UTC (permalink / raw)
  To: Yingjoe Chen
  Cc: Mark Rutland, devicetree, Russell King, arm, Pawel Moll,
	Ian Campbell, Hsien-Chun Yen, Yuhau Chen, linux-kernel,
	srv_heupstream, Rob Herring, Nathan Chung, Sascha Hauer,
	Kumar Gala, Olof Johansson, huang eddie, Yingjoe Chen,
	linux-arm-kernel

Hi Joe,

2014-10-31 2:37 GMT+01:00 Yingjoe Chen <yingjoe.chen@mediatek.com>:
> Hi Matthias,
>
> Is this series + this new 8/8 patch OK?
> Anything else that I should change?
>

I checked the patches on my mt8135 board and they work for me. So from
my site everything fine.

I added the patches to my tree [0] branches v3.19-next/soc and v3.19-next/dts
I made a small change to the commit message of patch 8 and I will try
to send the pull request asap.

Thanks,
Matthias

[0] https://github.com/mbgg/linux-mediatek

> Joe.C
>
> On Fri, 2014-10-24 at 13:37 +0800, Yingjoe Chen wrote:
>> From: "Joe.C" <yingjoe.chen@mediatek.com>
>>
>> We support more MediaTek SoCs now, update the description.
>>
>> Signed-off-by: Joe.C <yingjoe.chen@mediatek.com>
>> ---
>>  arch/arm/mach-mediatek/Kconfig | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/mach-mediatek/Kconfig
>> b/arch/arm/mach-mediatek/Kconfig
>> index 2c043a2..f73f588 100644
>> --- a/arch/arm/mach-mediatek/Kconfig
>> +++ b/arch/arm/mach-mediatek/Kconfig
>> @@ -1,6 +1,6 @@
>>  config ARCH_MEDIATEK
>> -     bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
>> +     bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
>>       select ARM_GIC
>>       select MTK_TIMER
>>       help
>> -       Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
>> +       Support for Mediatek MT65xx & MT81xx SoCs
>
>
>



-- 
motzblog.wordpress.com

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 8/8] ARM: mediatek: Fix description for mediatek SoCs
       [not found]                 ` <CABuKBeKFZQAHPR4xjCnM+nz67zE79rWPTHbc=m3VKcCX54Q8rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-03 17:51                   ` Matthias Brugger
  0 siblings, 0 replies; 26+ messages in thread
From: Matthias Brugger @ 2014-11-03 17:51 UTC (permalink / raw)
  To: Yingjoe Chen
  Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA, Russell King,
	arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll, Ian Campbell,
	Hsien-Chun Yen, Yuhau Chen, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	srv_heupstream, Rob Herring, Nathan Chung, Sascha Hauer,
	Kumar Gala, Olof Johansson, huang eddie, Yingjoe Chen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

2014-10-31 15:53 GMT+01:00 Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hi Joe,
>
> 2014-10-31 2:37 GMT+01:00 Yingjoe Chen <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>:
>> Hi Matthias,
>>
>> Is this series + this new 8/8 patch OK?
>> Anything else that I should change?
>>
>
> I checked the patches on my mt8135 board and they work for me. So from
> my site everything fine.

I just had another look on them and I think they are not correct,
please see my comments in the other mail.

>
> I added the patches to my tree [0] branches v3.19-next/soc and v3.19-next/dts
> I made a small change to the commit message of patch 8 and I will try
> to send the pull request asap.
>
> Thanks,
> Matthias
>
> [0] https://github.com/mbgg/linux-mediatek
>
>> Joe.C
>>
>> On Fri, 2014-10-24 at 13:37 +0800, Yingjoe Chen wrote:
>>> From: "Joe.C" <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
>>>
>>> We support more MediaTek SoCs now, update the description.
>>>
>>> Signed-off-by: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
>>> ---
>>>  arch/arm/mach-mediatek/Kconfig | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm/mach-mediatek/Kconfig
>>> b/arch/arm/mach-mediatek/Kconfig
>>> index 2c043a2..f73f588 100644
>>> --- a/arch/arm/mach-mediatek/Kconfig
>>> +++ b/arch/arm/mach-mediatek/Kconfig
>>> @@ -1,6 +1,6 @@
>>>  config ARCH_MEDIATEK
>>> -     bool "Mediatek MT6589 SoC" if ARCH_MULTI_V7
>>> +     bool "Mediatek MT65xx & MT81xx SoC" if ARCH_MULTI_V7
>>>       select ARM_GIC
>>>       select MTK_TIMER
>>>       help
>>> -       Support for Mediatek Cortex-A7 Quad-Core-SoC MT6589.
>>> +       Support for Mediatek MT65xx & MT81xx SoCs
>>
>>
>>
>
>
>
> --
> motzblog.wordpress.com



-- 
motzblog.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
       [not found]   ` <1413973797-17619-2-git-send-email-yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
@ 2014-11-03 17:53     ` Matthias Brugger
  2014-11-04  6:36       ` HC Yen
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Brugger @ 2014-11-03 17:53 UTC (permalink / raw)
  To: Joe.C
  Cc: Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, Hsien-Chun Yen, huang eddie,
	Nathan Chung, Yuhau Chen, Sascha Hauer

2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>:
> From: "Joe.C" <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
>
> This adds a basic dtsi for MT8127 SoC.
>
> Signed-off-by: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> ---
>  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..25c9f69
> --- /dev/null
> +++ b/arch/arm/boot/dts/mt8127.dtsi
> @@ -0,0 +1,93 @@
> +/*
> + * Copyright (c) 2014 MediaTek Inc.
> + * Author: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> + *
> + * 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"

Cortex a7 is 32 bits, right? So why do you use skeleton64.dtsi?

> +
> +/ {
> +       compatible = "mediatek,mt8127";
> +       interrupt-parent = <&gic>;
> +
> +       cpus {
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +
> +               cpu@0 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a7";
> +                       reg = <0x0>;
> +               };
> +               cpu@1 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a7";
> +                       reg = <0x1>;
> +               };
> +               cpu@2 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a7";
> +                       reg = <0x2>;
> +               };
> +               cpu@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@10008000 {
> +                       compatible = "mediatek,mt8127-timer", "mediatek,mt6577-timer";
> +                       reg = <0 0x10008000 0 0x80>;

This should be "reg = <0x10008000 0x80>;" right?
Same in mt8135.dtsi

> +                       interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&system_clk>, <&rtc_clk>;
> +                       clock-names = "system-clk", "rtc-clk";
> +               };
> +
> +               gic: interrupt-controller@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
>



-- 
motzblog.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board
  2014-10-22 10:29 ` [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board Joe.C
@ 2014-11-03 17:55   ` Matthias Brugger
       [not found]     ` <CABuKBe+ku=vWiWbvAm8M7QgyzvVWZ5sdkRMocuUym8JTyk-okg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Brugger @ 2014-11-03 17:55 UTC (permalink / raw)
  To: Joe.C
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer

2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> 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..602e2f0
> --- /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 = "mediatek,mt8127-moose", "mediatek,mt8127";

The model should be a string that identifies the board, e.g. "Moose".
Please add the compatible property.

> +
> +       memory {
> +               reg = <0 0x80000000 0 0x40000000>;

See comment on mt8127 register definitions.

> +       };
> +};
> --
> 1.8.1.1.dirty
>



-- 
motzblog.wordpress.com

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135
  2014-10-22 10:29 ` [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135 Joe.C
@ 2014-11-03 17:58   ` Matthias Brugger
  0 siblings, 0 replies; 26+ messages in thread
From: Matthias Brugger @ 2014-11-03 17:58 UTC (permalink / raw)
  To: Joe.C
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer

2014-10-22 12:29 GMT+02:00 Joe.C <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"

Same here A15 is 32 bits.

> +
> +/ {
> +       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
>



-- 
motzblog.wordpress.com

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board.
  2014-10-22 10:29 ` [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board Joe.C
@ 2014-11-03 17:58   ` Matthias Brugger
  0 siblings, 0 replies; 26+ messages in thread
From: Matthias Brugger @ 2014-11-03 17:58 UTC (permalink / raw)
  To: Joe.C
  Cc: Rob Herring, arm, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Russell King, Olof Johansson, devicetree,
	linux-kernel, linux-arm-kernel, srv_heupstream, Yingjoe Chen,
	Hsien-Chun Yen, huang eddie, Nathan Chung, Yuhau Chen,
	Sascha Hauer

2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> 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..cba80b8
> --- /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 = "mediatek,mt8135-evbp1", "mediatek,mt8135";

Same here, you switched model and compatible property. Please provide
both of them.

> +
> +       memory {
> +               reg = <0 0x80000000 0 0x40000000>;
> +       };
> +};
> --
> 1.8.1.1.dirty
>



-- 
motzblog.wordpress.com

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board
       [not found]     ` <CABuKBe+ku=vWiWbvAm8M7QgyzvVWZ5sdkRMocuUym8JTyk-okg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-04  5:44       ` Yingjoe Chen
  0 siblings, 0 replies; 26+ messages in thread
From: Yingjoe Chen @ 2014-11-04  5:44 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, Hsien-Chun Yen, huang eddie,
	Nathan Chung, Yuhau Chen, Sascha Hauer

On Mon, 2014-11-03 at 18:55 +0100, Matthias Brugger wrote:
> 2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>:
> > From: "Joe.C" <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> >
> > Moose is a tablet evalutation board based on MT8127 SoC.
> >
> > Signed-off-by: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> > ---
> >  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..602e2f0
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/mt8127-moose.dts
> > @@ -0,0 +1,24 @@
> > +/*
> > + * Copyright (c) 2014 MediaTek Inc.
> > + * Author: Joe.C <yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> > + *
> > + * 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 = "mediatek,mt8127-moose", "mediatek,mt8127";
> 
> The model should be a string that identifies the board, e.g. "Moose".
> Please add the compatible property.

Thanks for catching this. I just note we have warning on this line.
Will fix in next version.

Joe.C

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
  2014-11-03 17:53     ` Matthias Brugger
@ 2014-11-04  6:36       ` HC Yen
  2014-11-04  7:39         ` Arnd Bergmann
  0 siblings, 1 reply; 26+ messages in thread
From: HC Yen @ 2014-11-04  6:36 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Mark Rutland, devicetree, Russell King, arm, Pawel Moll,
	Ian Campbell, Yuhau Chen, linux-kernel, srv_heupstream,
	Rob Herring, Nathan Chung, Sascha Hauer, Kumar Gala,
	Olof Johansson, Joe.C, huang eddie, Yingjoe Chen,
	linux-arm-kernel

On Mon, 2014-11-03 at 18:53 +0100, Matthias Brugger wrote:
> 2014-10-22 12:29 GMT+02:00 Joe.C <yingjoe.chen@mediatek.com>:
> > 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..25c9f69
> > --- /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"
> 
> Cortex a7 is 32 bits, right? So why do you use skeleton64.dtsi?

Cortex-A7 is 32-bit, but that doesn't mean it can only have 32-bit
physical address.  With LPAE enabled, we can have physical address more
than 32 bits.

The main difference between "skeleton64.dtsi" and "skeleton.dtsi" is
"#address-cells" property set to 2.  Although there are few sources
using "skeleton64.dtsi", some of them write "#address-cells = <2>"
directly in order to have 64-bit address space.  ARM's TC2 reference
platform (vexpress-v2p-ca15_a7.dts) is an example.

Some of MediaTek ARMv7 SoCs support address space larger than 4GB. It
will be convenient to share the sources if we all use 64-bit device
tree.

> 
> > +
> > +/ {
> > +       compatible = "mediatek,mt8127";
> > +       interrupt-parent = <&gic>;
> > +
> > +       cpus {
> > +               #address-cells = <1>;
> > +               #size-cells = <0>;
> > +
> > +               cpu@0 {
> > +                       device_type = "cpu";
> > +                       compatible = "arm,cortex-a7";
> > +                       reg = <0x0>;
> > +               };
> > +               cpu@1 {
> > +                       device_type = "cpu";
> > +                       compatible = "arm,cortex-a7";
> > +                       reg = <0x1>;
> > +               };
> > +               cpu@2 {
> > +                       device_type = "cpu";
> > +                       compatible = "arm,cortex-a7";
> > +                       reg = <0x2>;
> > +               };
> > +               cpu@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@10008000 {
> > +                       compatible = "mediatek,mt8127-timer", "mediatek,mt6577-timer";
> > +                       reg = <0 0x10008000 0 0x80>;
> 
> This should be "reg = <0x10008000 0x80>;" right?
> Same in mt8135.dtsi
> 
> > +                       interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
> > +                       clocks = <&system_clk>, <&rtc_clk>;
> > +                       clock-names = "system-clk", "rtc-clk";
> > +               };
> > +
> > +               gic: interrupt-controller@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	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
  2014-11-04  6:36       ` HC Yen
@ 2014-11-04  7:39         ` Arnd Bergmann
  2014-11-04  8:36           ` Matthias Brugger
  0 siblings, 1 reply; 26+ messages in thread
From: Arnd Bergmann @ 2014-11-04  7:39 UTC (permalink / raw)
  To: HC Yen
  Cc: Matthias Brugger, Joe. C, Rob Herring,
	arm-DgEjT+Ai2ygdnm+yROfE0A, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Olof Johansson,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, huang eddie, Nathan Chung,
	Yuhau Chen, Sascha Hauer

On Tuesday 04 November 2014 14:36:45 HC Yen wrote:
> > > +
> > > +#include <dt-bindings/interrupt-controller/irq.h>
> > > +#include <dt-bindings/interrupt-controller/arm-gic.h>
> > > +#include "skeleton64.dtsi"
> > 
> > Cortex a7 is 32 bits, right? So why do you use skeleton64.dtsi?
> 
> Cortex-A7 is 32-bit, but that doesn't mean it can only have 32-bit
> physical address.  With LPAE enabled, we can have physical address more
> than 32 bits.
> 
> The main difference between "skeleton64.dtsi" and "skeleton.dtsi" is
> "#address-cells" property set to 2.  Although there are few sources
> using "skeleton64.dtsi", some of them write "#address-cells = <2>"
> directly in order to have 64-bit address space.  ARM's TC2 reference
> platform (vexpress-v2p-ca15_a7.dts) is an example.
> 
> Some of MediaTek ARMv7 SoCs support address space larger than 4GB. It
> will be convenient to share the sources if we all use 64-bit device
> tree.

Right, in general, I'd use #address-cells=<2> for Cortex-A7/A15/A17.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
  2014-11-04  7:39         ` Arnd Bergmann
@ 2014-11-04  8:36           ` Matthias Brugger
       [not found]             ` <CABuKBeL1JX88BBK7uXqpmaGzwCe5D6inB_n-NV6ajUt59V1swA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Brugger @ 2014-11-04  8:36 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: HC Yen, Joe. C, Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, huang eddie, Nathan Chung,
	Yuhau Chen, Sascha Hauer

2014-11-04 8:39 GMT+01:00 Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>:
> On Tuesday 04 November 2014 14:36:45 HC Yen wrote:
>> > > +
>> > > +#include <dt-bindings/interrupt-controller/irq.h>
>> > > +#include <dt-bindings/interrupt-controller/arm-gic.h>
>> > > +#include "skeleton64.dtsi"
>> >
>> > Cortex a7 is 32 bits, right? So why do you use skeleton64.dtsi?
>>
>> Cortex-A7 is 32-bit, but that doesn't mean it can only have 32-bit
>> physical address.  With LPAE enabled, we can have physical address more
>> than 32 bits.
>>
>> The main difference between "skeleton64.dtsi" and "skeleton.dtsi" is
>> "#address-cells" property set to 2.  Although there are few sources
>> using "skeleton64.dtsi", some of them write "#address-cells = <2>"
>> directly in order to have 64-bit address space.  ARM's TC2 reference
>> platform (vexpress-v2p-ca15_a7.dts) is an example.
>>
>> Some of MediaTek ARMv7 SoCs support address space larger than 4GB. It
>> will be convenient to share the sources if we all use 64-bit device
>> tree.
>
> Right, in general, I'd use #address-cells=<2> for Cortex-A7/A15/A17.

Alright, thanks for clarification. So we should use skeleton64.dtsi
for mt6589 as well, right?

>
>         Arnd



-- 
motzblog.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127
       [not found]             ` <CABuKBeL1JX88BBK7uXqpmaGzwCe5D6inB_n-NV6ajUt59V1swA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-04  9:45               ` Arnd Bergmann
  0 siblings, 0 replies; 26+ messages in thread
From: Arnd Bergmann @ 2014-11-04  9:45 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: HC Yen, Joe. C, Rob Herring, arm-DgEjT+Ai2ygdnm+yROfE0A,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	srv_heupstream, Yingjoe Chen, huang eddie, Nathan Chung,
	Yuhau Chen, Sascha Hauer

On Tuesday 04 November 2014 09:36:39 Matthias Brugger wrote:
> 2014-11-04 8:39 GMT+01:00 Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>:
> > On Tuesday 04 November 2014 14:36:45 HC Yen wrote:
> >> > > +
> >> > > +#include <dt-bindings/interrupt-controller/irq.h>
> >> > > +#include <dt-bindings/interrupt-controller/arm-gic.h>
> >> > > +#include "skeleton64.dtsi"
> >> >
> >> > Cortex a7 is 32 bits, right? So why do you use skeleton64.dtsi?
> >>
> >> Cortex-A7 is 32-bit, but that doesn't mean it can only have 32-bit
> >> physical address.  With LPAE enabled, we can have physical address more
> >> than 32 bits.
> >>
> >> The main difference between "skeleton64.dtsi" and "skeleton.dtsi" is
> >> "#address-cells" property set to 2.  Although there are few sources
> >> using "skeleton64.dtsi", some of them write "#address-cells = <2>"
> >> directly in order to have 64-bit address space.  ARM's TC2 reference
> >> platform (vexpress-v2p-ca15_a7.dts) is an example.
> >>
> >> Some of MediaTek ARMv7 SoCs support address space larger than 4GB. It
> >> will be convenient to share the sources if we all use 64-bit device
> >> tree.
> >
> > Right, in general, I'd use #address-cells=<2> for Cortex-A7/A15/A17.
> 
> Alright, thanks for clarification. So we should use skeleton64.dtsi
> for mt6589 as well, right?

If the chip is capable of accessing memory or registers higher than 4GB
physical address, then you should, yes.

If the SoC has limitations that mean you can't have higher addresses
anyway, then either way is fine, no need to change it.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-11-04  9:45 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-22 10:29 [PATCH v4 0/8] arm: Add basic support for MediaTek MT8127 & MT8135 SoCs Joe.C
2014-10-22 10:29 ` [PATCH v4 1/8] ARM: mediatek: Add basic support for mt8127 Joe.C
     [not found]   ` <1413973797-17619-2-git-send-email-yingjoe.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2014-11-03 17:53     ` Matthias Brugger
2014-11-04  6:36       ` HC Yen
2014-11-04  7:39         ` Arnd Bergmann
2014-11-04  8:36           ` Matthias Brugger
     [not found]             ` <CABuKBeL1JX88BBK7uXqpmaGzwCe5D6inB_n-NV6ajUt59V1swA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-04  9:45               ` Arnd Bergmann
2014-10-22 10:29 ` [PATCH v4 2/8] ARM: mediatek: add dts for 8127 Moose board Joe.C
2014-11-03 17:55   ` Matthias Brugger
     [not found]     ` <CABuKBe+ku=vWiWbvAm8M7QgyzvVWZ5sdkRMocuUym8JTyk-okg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-04  5:44       ` Yingjoe Chen
2014-10-22 10:29 ` [PATCH v4 3/8] ARM: mediatek: Add basic support for mt8135 Joe.C
2014-11-03 17:58   ` Matthias Brugger
2014-10-22 10:29 ` [PATCH v4 4/8] ARM: mediatek: add dts for MT8135 evaluation board Joe.C
2014-11-03 17:58   ` Matthias Brugger
2014-10-22 10:29 ` [PATCH v4 5/8] dt-bindings: add more chips in documentation for Mediatek SoC Joe.C
2014-10-22 10:29 ` [PATCH v4 6/8] ARM: dts: Build dtb for mt8127 & mt8135 Joe.C
2014-10-22 10:29 ` [PATCH v4 7/8] ARM: mediatek: Add earlyprintk support " Joe.C
2014-10-22 10:29 ` [PATCH v4 8/8] ARM: mediatek: Add config option for mediatek SoCs Joe.C
2014-10-22 13:18   ` Matthias Brugger
2014-10-22 13:31     ` Yingjoe Chen
2014-10-22 13:53       ` Matthias Brugger
2014-10-22 14:19         ` Yingjoe Chen
     [not found]         ` <CABuKBeLJuaDnCYuvvS6csNzvbTeEdgEUdZ4tBQeVPuw37JK11Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-24  5:37           ` [PATCH v4 8/8] ARM: mediatek: Fix description " Yingjoe Chen
2014-10-31  1:37             ` Yingjoe Chen
2014-10-31 14:53               ` Matthias Brugger
     [not found]                 ` <CABuKBeKFZQAHPR4xjCnM+nz67zE79rWPTHbc=m3VKcCX54Q8rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-03 17:51                   ` 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).