arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
Subsystems (5)
v5 cover arm: Add basic support for MediaTek MT8127 & MT8135 SoCs
This is v5 of adding basic device tree support for MT8127 & MT8135. This series is based on v3.18-rc1
This version fix board model name and change to use 32bits address for mt8127/mt8135 dtsi. I also took the chance to do a minor wording change in dt-bindings. Please note we already have some patches (uart, reset, i2c, pinctrl, intpol) thats depends on old version, and should be changed if this version is merged.
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 v5:
- Using 32bits address instead of 64bits in dtsi.
- Fix model name error
- Adjust wording in dtbindings.
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
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: Fix description 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 | 25 +++++ arch/arm/boot/dts/mt8127.dtsi | 94 +++++++++++++++++ arch/arm/boot/dts/mt8135-evbp1.dts | 25 +++++ arch/arm/boot/dts/mt8135.dtsi | 116 +++++++++++++++++++++ arch/arm/mach-mediatek/Kconfig | 4 +- arch/arm/mach-mediatek/mediatek.c | 2 + 9 files changed, 299 insertions(+), 6 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
PATCH v5 1/8 ARM: mediatek: Add basic support for mt8127
From: "Joe.C" <[email protected]>
This adds a basic dtsi for MT8127 SoC.
--- arch/arm/boot/dts/mt8127.dtsi | 94 +++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mediatek/mediatek.c | 1 + 2 files changed, 95 insertions(+) create mode 100644 arch/arm/boot/dts/mt8127.dtsi
arch/arm/boot/dts/mt8127.dtsi new file +94 -0
@@ -0,0 +1,94 @@ +/* + * 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 "skeleton.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 = <1>; + #size-cells = <1>; + 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 = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + ranges; + + timer: timer at 10008000 { + compatible = "mediatek,mt8127-timer", + "mediatek,mt6577-timer"; + reg = <0x10008000 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 = <0x10211000 0x1000>, + <0x10212000 0x1000>, + <0x10214000 0x2000>, + <0x10216000 0x2000>; + }; + }; +};
arch/arm/mach-mediatek/mediatek.c +1 -0
@@ -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
PATCH v5 1/8 ARM: mediatek: Add basic support for mt8127
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
This adds a basic dtsi for MT8127 SoC.
--- arch/arm/boot/dts/mt8127.dtsi | 94 +++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mediatek/mediatek.c | 1 + 2 files changed, 95 insertions(+) create mode 100644 arch/arm/boot/dts/mt8127.dtsi
arch/arm/boot/dts/mt8127.dtsi new file +94 -0
@@ -0,0 +1,94 @@ +/* + * 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@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>; + }; + }; +};
arch/arm/mach-mediatek/mediatek.c +1 -0
@@ -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
PATCH v5 2/8 ARM: mediatek: add dts for 8127 Moose board
From: "Joe.C" <[email protected]>
Moose is a tablet evalutation board based on MT8127 SoC.
--- arch/arm/boot/dts/mt8127-moose.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
arch/arm/boot/dts/mt8127-moose.dts new file +25 -0
@@ -0,0 +1,25 @@ +/* + * 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 = "MediaTek MT8127 Moose Board"; + compatible = "mediatek,mt8127-moose", "mediatek,mt8127"; + + memory { + reg = <0 0x80000000 0 0x40000000>; + }; +};
Signature · 1 line
1.8.1.1.dirty
PATCH v5 3/8 ARM: mediatek: Add basic support for mt8135
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
This adds a basic dtsi for MT8135 based SoC.
--- arch/arm/boot/dts/mt8135.dtsi | 116 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mediatek/mediatek.c | 1 + 2 files changed, 117 insertions(+) create mode 100644 arch/arm/boot/dts/mt8135.dtsi
arch/arm/boot/dts/mt8135.dtsi new file +116 -0
@@ -0,0 +1,116 @@ +/* + * 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@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>; + }; + }; +};
arch/arm/mach-mediatek/mediatek.c +1 -0
@@ -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
PATCH v5 4/8 ARM: mediatek: add dts for MT8135 evaluation board.
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
Evbp1 is a tablet evaluation board based on MT8135 SoC.
--- arch/arm/boot/dts/mt8135-evbp1.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt8135-evbp1.dts
arch/arm/boot/dts/mt8135-evbp1.dts new file +25 -0
@@ -0,0 +1,25 @@ +/* + * 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 = "MediaTek MT8135 evaluation board"; + compatible = "mediatek,mt8135-evbp1", "mediatek,mt8135"; + + memory { + reg = <0 0x80000000 0 0x40000000>; + }; +};
Signature · 1 line
1.8.1.1.dirty
Re: [PATCH v5' 1/8] ARM: mediatek: Add basic support for mt8127
In reply to Yingjoe ChenHi, Matthias, Arnd,
After previous discussion[1], I'm not sure which one do you preferred for mt8127/mt8135, so I send 64bits address version again. Trying to not SPAM too much, I only send the difference(first 4 patches) this time.
We do have SoC that need >4GB address, so at least those will need to use 64bits address. If we want to have a consistent look, 64bits is the way to go. Also we already have some patches under review now using 64bits address. So I preferred this one, but both versions are OK to me.
Please help to review this and let me know anything you want me to change. Thanks.
Joe.C
[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/299598.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Matthias Brugger
maintainerRe: [PATCH v5' 1/8] ARM: mediatek: Add basic support for mt8127
Hi Joe,
2014-11-11 8:58 GMT+01:00 Yingjoe Chen <[email protected]>:
Quoted 11 lines
Hi, Matthias, Arnd,
After previous discussion[1], I'm not sure which one do you preferred for mt8127/mt8135, so I send 64bits address version again. Trying to not SPAM too much, I only send the difference(first 4 patches) this time.
We do have SoC that need >4GB address, so at least those will need to use 64bits address. If we want to have a consistent look, 64bits is the way to go. Also we already have some patches under review now using 64bits address. So I preferred this one, but both versions are OK to me.
Regarding Arnd's last email, the 64 bit is the right way.
Quoted 11 lines
Please help to review this and let me know anything you want me to change. Thanks.
Joe.C
[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/299598.html
Signature · 1 line
motzblog.wordpress.com
Re: [PATCH v5' 1/8] ARM: mediatek: Add basic support for mt8127
Quoted 10 lines · Matthias Brugger
Hi Joe,
2014-11-11 8:58 GMT+01:00 Yingjoe Chen <[email protected]>:
Quoted 7 lines
Hi, Matthias, Arnd,
After previous discussion[1], I'm not sure which one do you preferred for mt8127/mt8135, so I send 64bits address version again. Trying to not SPAM too much, I only send the difference(first 4 patches) this time.
Quoted 6 lines
Quoted 4 lines
We do have SoC that need >4GB address, so at least those will need to use 64bits address. If we want to have a consistent look, 64bits is the way to go. Also we already have some patches under review now using 64bits address. So I preferred this one, but both versions are OK to me.
Regarding Arnd's last email, the 64 bit is the right way.
Hi Matthias,
Ok, please use this v5' then.
Thanks,
Joe.C
PATCH v5 2/8 ARM: mediatek: add dts for 8127 Moose board
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
Moose is a tablet evalutation board based on MT8127 SoC.
--- arch/arm/boot/dts/mt8127-moose.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt8127-moose.dts
arch/arm/boot/dts/mt8127-moose.dts new file +25 -0
@@ -0,0 +1,25 @@ +/* + * 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 = "MediaTek MT8127 Moose Board"; + compatible = "mediatek,mt8127-moose", "mediatek,mt8127"; + + memory { + reg = <0x80000000 0x40000000>; + }; +};
Signature · 1 line
1.8.1.1.dirty
PATCH v5 3/8 ARM: mediatek: Add basic support for mt8135
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
This adds a basic dtsi for MT8135 based SoC.
--- arch/arm/boot/dts/mt8135.dtsi | 116 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mediatek/mediatek.c | 1 + 2 files changed, 117 insertions(+) create mode 100644 arch/arm/boot/dts/mt8135.dtsi
arch/arm/boot/dts/mt8135.dtsi new file +116 -0
@@ -0,0 +1,116 @@ +/* + * 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 "skeleton.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 = <1>; + #size-cells = <1>; + 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 = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + ranges; + + timer: timer at 10008000 { + compatible = "mediatek,mt8135-timer", + "mediatek,mt6577-timer"; + reg = <0x10008000 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 = <0x10211000 0x1000>, + <0x10212000 0x1000>, + <0x10214000 0x2000>, + <0x10216000 0x2000>; + }; + }; +};
arch/arm/mach-mediatek/mediatek.c +1 -0
@@ -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
PATCH v5 4/8 ARM: mediatek: add dts for MT8135 evaluation board.
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
Evbp1 is a tablet evaluation board based on MT8135 SoC.
--- arch/arm/boot/dts/mt8135-evbp1.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt8135-evbp1.dts
arch/arm/boot/dts/mt8135-evbp1.dts new file +25 -0
@@ -0,0 +1,25 @@ +/* + * 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 = "MediaTek MT8135 evaluation board"; + compatible = "mediatek,mt8135-evbp1", "mediatek,mt8135"; + + memory { + reg = <0x80000000 0x40000000>; + }; +};
Signature · 1 line
1.8.1.1.dirty
PATCH v5 5/8 dt-bindings: add more chips in documentation for Mediatek SoC
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
Add MT8127 & MT8135 from Mediatek.
--- Documentation/devicetree/bindings/arm/mediatek.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/mediatek.txt +12 -3
@@ -1,10 +1,13 @@ -Mediatek MT6589 Platforms Device Tree Bindings +MediaTek mt65xx & mt81xx Platforms Device Tree Bindings -Boards with a SoC of the Mediatek MT6589 shall have the following property: +Boards with a MediaTek mt65xx/mt81xx SoC 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";
Signature · 1 line
1.8.1.1.dirty
PATCH v5 6/8 ARM: dts: Build dtb for mt8127 & mt8135
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
This allows the "make dtbs" to build the moose and mt8135-evbp1 for MediaTek SoC
--- arch/arm/boot/dts/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/Makefile +3 -1
@@ -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)
Signature · 1 line
1.8.1.1.dirty
PATCH v5 7/8 ARM: mediatek: Add earlyprintk support for mt8127 & mt8135
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
Enable low-level debug for Mediatek mt8127 & mt8135 SoC.
--- arch/arm/Kconfig.debug | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/Kconfig.debug +20 -0
@@ -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
Signature · 1 line
1.8.1.1.dirty
PATCH v5 8/8 ARM: mediatek: Fix description for mediatek SoCs
In reply to Yingjoe ChenFrom: "Joe.C" <[email protected]>
We support more MediaTek SoCs now, update the description.
--- arch/arm/mach-mediatek/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mediatek/Kconfig +2 -2
@@ -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
Signature · 1 line
1.8.1.1.dirty