Skip to contentSkip to conversation

arm: mediatek: Add more basic features

PATCH New Matthias Brugger 1 participant 8 messages Sep 9, 2014

Subsystems (4)
lore
Share & tools
lore

Matthias Brugger

author maintainer
#0 lore raw

v3 cover arm: mediatek: Add more basic features

This patch set adds some minor changes to the Mediatek mt6589 support.

Features are low-level debugging on the mt6589, the addition to the "make dtbs" and multi_v7_defconfig, earlyprintk suppport, as well as a small changes in the DTS files.

The patch set is based on v3.17-rc1

Changes for v3:
- drop quirk to enable ARM arch timer

Changes for v2:
- rebased on v3.17-rc1
- add patch for the compatible property of aquaris5
- add patch setting GIC compatible string to new "arm,cortex-a7-gic"
- set ARM arch timer frequency in DTS

---

Matthias Brugger (7):
arm: dts: Build dtb for Mediatek board
arm: multi_v7_defconfig: Enable Mediatek platform
arm: dts: mt6589: Fix typo in GIC unit address
arm: mediatek: Add earlyprintk support for mt6589
arm: dts: mt6589-aquaris5: Add boot argument earlyprintk
arm: dts: mediatek: Add compatible property for aquaris5
arm: dts: mt6589: Change compatible string for GIC

 Documentation/devicetree/bindings/arm/mediatek.txt |  6 ++++++
 arch/arm/Kconfig.debug                             | 10 ++++++++++
 arch/arm/boot/dts/Makefile                         |  1 +
 arch/arm/boot/dts/mt6589-aquaris5.dts              |  5 +++++
 arch/arm/boot/dts/mt6589.dtsi                      |  4 ++--
 arch/arm/configs/multi_v7_defconfig                |  1 +
 6 files changed, 25 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author maintainer
#1 lore raw

PATCH v3 1/7 arm: dts: Build dtb for Mediatek board

This allows the "make dtbs" to build the aquaris5 dtb for the Mediatek SoC.

---
 arch/arm/boot/dts/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/Makefile +1 -0
index b8c5cd3..055b20c 100644
@@ -491,6 +491,7 @@ 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
 
 targets += dtbs dtbs_install
 targets += $(dtb-y)
Signature · 1 line
1.9.1
author maintainer
#2 lore raw

PATCH v3 2/7 arm: multi_v7_defconfig: Enable Mediatek platform

In reply to Matthias Brugger

Enable Mediatek platform support for multi_v7_defconfig.

---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/multi_v7_defconfig +1 -0
index 5fb95fb..4c08101 100644
@@ -42,6 +42,7 @@ CONFIG_SOC_AM33XX=y
 CONFIG_SOC_AM43XX=y
 CONFIG_SOC_DRA7XX=y
 CONFIG_ARCH_QCOM=y
+CONFIG_ARCH_MEDIATEK=y
 CONFIG_ARCH_MSM8X60=y
 CONFIG_ARCH_MSM8960=y
 CONFIG_ARCH_MSM8974=y
Signature · 1 line
1.9.1
author maintainer
#3 lore raw

PATCH v3 3/7 arm: dts: mt6589: Fix typo in GIC unit address

In reply to Matthias Brugger

This changes the unit address of the gic node to it's first register area.

---
 arch/arm/boot/dts/mt6589.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/mt6589.dtsi +1 -1
index d0297a0..742c9bd 100644
@@ -81,7 +81,7 @@
 			clock-names = "system-clk", "rtc-clk";
 		};
 
-		gic: interrupt-controller at 10212000 {
+		gic: interrupt-controller at 10211000 {
 			compatible = "arm,cortex-a15-gic";
 			interrupt-controller;
 			#interrupt-cells = <3>;
Signature · 1 line
1.9.1
author maintainer
#4 lore raw

PATCH v3 4/7 arm: mediatek: Add earlyprintk support for mt6589

In reply to Matthias Brugger

Enable low-level debug for Mediatek mt6589 SoC on UART0.

---
 arch/arm/Kconfig.debug | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/Kconfig.debug +10 -0
index b11ad54..cfdd1c0 100644
@@ -834,6 +834,14 @@ choice
 		  Say Y here if you want kernel low-level debugging support
 		  on Ux500 based platforms.
 
+	config DEBUG_MT6589_UART0
+		bool "Mediatek mt6589 UART0"
+		depends on ARCH_MEDIATEK
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  for Mediatek mt6589 based platforms on UART0.
+
 	config DEBUG_VEXPRESS_UART0_DETECT
 		bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
 		depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -1075,6 +1083,7 @@ config DEBUG_UART_PHYS
 	default 0x10126000 if DEBUG_RK3X_UART1
 	default 0x101f1000 if ARCH_VERSATILE
 	default 0x101fb000 if DEBUG_NOMADIK_UART
+	default 0x11006000 if DEBUG_MT6589_UART0
 	default 0x16000000 if ARCH_INTEGRATOR
 	default 0x18000300 if DEBUG_BCM_5301X
 	default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
@@ -1137,6 +1146,7 @@ config DEBUG_UART_VIRT
 	default 0xf01fb000 if DEBUG_NOMADIK_UART
 	default 0xf0201000 if DEBUG_BCM2835
 	default 0xf1000300 if DEBUG_BCM_5301X
+	default 0xf1006000 if DEBUG_MT6589_UART0
 	default 0xf11f1000 if ARCH_VERSATILE
 	default 0xf1600000 if ARCH_INTEGRATOR
 	default 0xf1c28000 if DEBUG_SUNXI_UART0
Signature · 1 line
1.9.1
author maintainer
#5 lore raw

PATCH v3 5/7 arm: dts: mt6589-aquaris5: Add boot argument earlyprintk

In reply to Matthias Brugger

Add boot argument for earlyprintk to the aquaris5 device tree file.

---
 arch/arm/boot/dts/mt6589-aquaris5.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/mt6589-aquaris5.dts +4 -0
index 443b446..74cb1ba 100644
@@ -19,6 +19,10 @@
 / {
 	model = "bq Aquaris5";
 
+	chosen {
+		bootargs = "earlyprintk";
+	};
+
 	memory {
 		reg = <0x80000000 0x40000000>;
 	};
Signature · 1 line
1.9.1
author maintainer
#6 lore raw

PATCH v3 6/7 arm: dts: mediatek: Add compatible property for aquaris5

In reply to Matthias Brugger

Add the missing 'compatible' property to device tree root node of

- mt6589-aquaris5.dts

and document the new values.

---
 Documentation/devicetree/bindings/arm/mediatek.txt | 6 ++++++
 arch/arm/boot/dts/mt6589-aquaris5.dts              | 1 +
 2 files changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.txt +6 -0
index d6ac71f..fa25226 100644
@@ -6,3 +6,9 @@ Required root node property:
 
 compatible: must contain "mediatek,mt6589"
 
+
+Supported boards:
+
+- bq Aquaris5 smart phone:
+    Required root node properties:
+      - compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
arch/arm/boot/dts/mt6589-aquaris5.dts +1 -0
index 74cb1ba..0da0470 100644
@@ -18,6 +18,7 @@
 
 / {
 	model = "bq Aquaris5";
+	compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
 
 	chosen {
 		bootargs = "earlyprintk";
Signature · 1 line
1.9.1
author maintainer
#7 lore raw

PATCH v3 7/7 arm: dts: mt6589: Change compatible string for GIC

In reply to Matthias Brugger

This patch changes the compatible string of the GIC to the new "arm,cortex-a7-gic" which does reflect the actual hardware.

---
 arch/arm/boot/dts/mt6589.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/mt6589.dtsi +1 -1
index 742c9bd..e3c7600 100644
@@ -82,7 +82,7 @@
 		};
 
 		gic: interrupt-controller at 10211000 {
-			compatible = "arm,cortex-a15-gic";
+			compatible = "arm,cortex-a7-gic";
 			interrupt-controller;
 			#interrupt-cells = <3>;
 			reg = <0x10211000 0x1000>,
Signature · 1 line
1.9.1