diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 16:25:34 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 16:25:34 -0500 |
commit | 1df1e5bf872825fe4db8ea37b2d1acf45eaed234 (patch) | |
tree | 63070df2c2b2701c43e9ab4c2e004badaae22ff1 | |
parent | 2bc51d76d20d7f6be064fe59755d1081de947221 (diff) | |
parent | 8ba671efdbe5be3e5d691a8b7f77b0d68459b874 (diff) |
Merge tag 'v4.5-next-dts' of https://github.com/mbgg/linux-mediatek into next/dt
Merge "ARM: mediatek: dts updates for v4.6" from Matthias Brugger:
Add support for mt7623 SoC.
Enable SMP support for mt7623.
Enable SMP support for mt2701
Add pinctrl for mt2701
* tag 'v4.5-next-dts' of https://github.com/mbgg/linux-mediatek:
arm: dts: Add pinctrl/GPIO/EINT node for mt2701
ARM: dts: mt2701: enable basic SMP bringup for mt2701
ARM: dts: mt7623: enable SMP bringup
ARM: dts: mediatek: add MT7623 basic support
Document: DT: Add bindings for mediatek MT7623 SoC Platform
-rw-r--r-- | Documentation/devicetree/bindings/arm/mediatek.txt | 4 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/mt2701.dtsi | 31 | ||||
-rw-r--r-- | arch/arm/boot/dts/mt7623-evb.dts | 33 | ||||
-rw-r--r-- | arch/arm/boot/dts/mt7623.dtsi | 147 | ||||
-rw-r--r-- | arch/arm/mach-mediatek/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-mediatek/mediatek.c | 1 |
9 files changed, 223 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediatek.txt index 54f43bc2df44..d9c2a37a4090 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.txt +++ b/Documentation/devicetree/bindings/arm/mediatek.txt | |||
@@ -11,6 +11,7 @@ compatible: Must contain one of | |||
11 | "mediatek,mt6589" | 11 | "mediatek,mt6589" |
12 | "mediatek,mt6592" | 12 | "mediatek,mt6592" |
13 | "mediatek,mt6795" | 13 | "mediatek,mt6795" |
14 | "mediatek,mt7623" | ||
14 | "mediatek,mt8127" | 15 | "mediatek,mt8127" |
15 | "mediatek,mt8135" | 16 | "mediatek,mt8135" |
16 | "mediatek,mt8173" | 17 | "mediatek,mt8173" |
@@ -33,6 +34,9 @@ Supported boards: | |||
33 | - Evaluation board for MT6795(Helio X10): | 34 | - Evaluation board for MT6795(Helio X10): |
34 | Required root node properties: | 35 | Required root node properties: |
35 | - compatible = "mediatek,mt6795-evb", "mediatek,mt6795"; | 36 | - compatible = "mediatek,mt6795-evb", "mediatek,mt6795"; |
37 | - Evaluation board for MT7623: | ||
38 | Required root node properties: | ||
39 | - compatible = "mediatek,mt7623-evb", "mediatek,mt7623"; | ||
36 | - MTK mt8127 tablet moose EVB: | 40 | - MTK mt8127 tablet moose EVB: |
37 | Required root node properties: | 41 | Required root node properties: |
38 | - compatible = "mediatek,mt8127-moose", "mediatek,mt8127"; | 42 | - compatible = "mediatek,mt8127-moose", "mediatek,mt8127"; |
diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk-uart.txt index a833a016f656..e99e10ab9ecb 100644 --- a/Documentation/devicetree/bindings/serial/mtk-uart.txt +++ b/Documentation/devicetree/bindings/serial/mtk-uart.txt | |||
@@ -7,6 +7,7 @@ Required properties: | |||
7 | * "mediatek,mt6582-uart" for MT6582 compatible UARTS | 7 | * "mediatek,mt6582-uart" for MT6582 compatible UARTS |
8 | * "mediatek,mt6589-uart" for MT6589 compatible UARTS | 8 | * "mediatek,mt6589-uart" for MT6589 compatible UARTS |
9 | * "mediatek,mt6795-uart" for MT6795 compatible UARTS | 9 | * "mediatek,mt6795-uart" for MT6795 compatible UARTS |
10 | * "mediatek,mt7623-uart" for MT7623 compatible UARTS | ||
10 | * "mediatek,mt8127-uart" for MT8127 compatible UARTS | 11 | * "mediatek,mt8127-uart" for MT8127 compatible UARTS |
11 | * "mediatek,mt8135-uart" for MT8135 compatible UARTS | 12 | * "mediatek,mt8135-uart" for MT8135 compatible UARTS |
12 | * "mediatek,mt8173-uart" for MT8173 compatible UARTS | 13 | * "mediatek,mt8173-uart" for MT8173 compatible UARTS |
diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt index 8ff54eb464dc..b1fe7e9de1b4 100644 --- a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt +++ b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | |||
@@ -6,6 +6,7 @@ Required properties: | |||
6 | * "mediatek,mt2701-timer" for MT2701 compatible timers | 6 | * "mediatek,mt2701-timer" for MT2701 compatible timers |
7 | * "mediatek,mt6580-timer" for MT6580 compatible timers | 7 | * "mediatek,mt6580-timer" for MT6580 compatible timers |
8 | * "mediatek,mt6589-timer" for MT6589 compatible timers | 8 | * "mediatek,mt6589-timer" for MT6589 compatible timers |
9 | * "mediatek,mt7623-timer" for MT7623 compatible timers | ||
9 | * "mediatek,mt8127-timer" for MT8127 compatible timers | 10 | * "mediatek,mt8127-timer" for MT8127 compatible timers |
10 | * "mediatek,mt8135-timer" for MT8135 compatible timers | 11 | * "mediatek,mt8135-timer" for MT8135 compatible timers |
11 | * "mediatek,mt8173-timer" for MT8173 compatible timers | 12 | * "mediatek,mt8173-timer" for MT8173 compatible timers |
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 21d9ed6be17d..bac6e170209d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -814,6 +814,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ | |||
814 | mt6580-evbp1.dtb \ | 814 | mt6580-evbp1.dtb \ |
815 | mt6589-aquaris5.dtb \ | 815 | mt6589-aquaris5.dtb \ |
816 | mt6592-evb.dtb \ | 816 | mt6592-evb.dtb \ |
817 | mt7623-evb.dtb \ | ||
817 | mt8127-moose.dtb \ | 818 | mt8127-moose.dtb \ |
818 | mt8135-evbp1.dtb | 819 | mt8135-evbp1.dtb |
819 | dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb | 820 | dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb |
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 3766904b60f3..18596a2c58a1 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <dt-bindings/interrupt-controller/irq.h> | 15 | #include <dt-bindings/interrupt-controller/irq.h> |
16 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 16 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
17 | #include "skeleton64.dtsi" | 17 | #include "skeleton64.dtsi" |
18 | #include "mt2701-pinfunc.h" | ||
18 | 19 | ||
19 | / { | 20 | / { |
20 | compatible = "mediatek,mt2701"; | 21 | compatible = "mediatek,mt2701"; |
@@ -23,6 +24,7 @@ | |||
23 | cpus { | 24 | cpus { |
24 | #address-cells = <1>; | 25 | #address-cells = <1>; |
25 | #size-cells = <0>; | 26 | #size-cells = <0>; |
27 | enable-method = "mediatek,mt81xx-tz-smp"; | ||
26 | 28 | ||
27 | cpu@0 { | 29 | cpu@0 { |
28 | device_type = "cpu"; | 30 | device_type = "cpu"; |
@@ -46,6 +48,17 @@ | |||
46 | }; | 48 | }; |
47 | }; | 49 | }; |
48 | 50 | ||
51 | reserved-memory { | ||
52 | #address-cells = <2>; | ||
53 | #size-cells = <2>; | ||
54 | ranges; | ||
55 | |||
56 | trustzone-bootinfo@80002000 { | ||
57 | compatible = "mediatek,trustzone-bootinfo"; | ||
58 | reg = <0 0x80002000 0 0x1000>; | ||
59 | }; | ||
60 | }; | ||
61 | |||
49 | system_clk: dummy13m { | 62 | system_clk: dummy13m { |
50 | compatible = "fixed-clock"; | 63 | compatible = "fixed-clock"; |
51 | clock-frequency = <13000000>; | 64 | clock-frequency = <13000000>; |
@@ -73,6 +86,24 @@ | |||
73 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | 86 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
74 | }; | 87 | }; |
75 | 88 | ||
89 | pio: pinctrl@10005000 { | ||
90 | compatible = "mediatek,mt2701-pinctrl"; | ||
91 | reg = <0 0x1000b000 0 0x1000>; | ||
92 | mediatek,pctl-regmap = <&syscfg_pctl_a>; | ||
93 | pins-are-numbered; | ||
94 | gpio-controller; | ||
95 | #gpio-cells = <2>; | ||
96 | interrupt-controller; | ||
97 | #interrupt-cells = <2>; | ||
98 | interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, | ||
99 | <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; | ||
100 | }; | ||
101 | |||
102 | syscfg_pctl_a: syscfg@10005000 { | ||
103 | compatible = "mediatek,mt2701-pctl-a-syscfg", "syscon"; | ||
104 | reg = <0 0x10005000 0 0x1000>; | ||
105 | }; | ||
106 | |||
76 | watchdog: watchdog@10007000 { | 107 | watchdog: watchdog@10007000 { |
77 | compatible = "mediatek,mt2701-wdt", | 108 | compatible = "mediatek,mt2701-wdt", |
78 | "mediatek,mt6589-wdt"; | 109 | "mediatek,mt6589-wdt"; |
diff --git a/arch/arm/boot/dts/mt7623-evb.dts b/arch/arm/boot/dts/mt7623-evb.dts new file mode 100644 index 000000000000..a9ee2d64c6f7 --- /dev/null +++ b/arch/arm/boot/dts/mt7623-evb.dts | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016 MediaTek Inc. | ||
3 | * Author: John Crispin <blogic@openwrt.org> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | |||
15 | /dts-v1/; | ||
16 | #include "mt7623.dtsi" | ||
17 | |||
18 | / { | ||
19 | model = "MediaTek MT7623 evaluation board"; | ||
20 | compatible = "mediatek,mt7623-evb", "mediatek,mt7623"; | ||
21 | |||
22 | chosen { | ||
23 | stdout-path = &uart2; | ||
24 | }; | ||
25 | |||
26 | memory { | ||
27 | reg = <0 0x80000000 0 0x40000000>; | ||
28 | }; | ||
29 | }; | ||
30 | |||
31 | &uart2 { | ||
32 | status = "okay"; | ||
33 | }; | ||
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi new file mode 100644 index 000000000000..fd2b614ae6f3 --- /dev/null +++ b/arch/arm/boot/dts/mt7623.dtsi | |||
@@ -0,0 +1,147 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016 MediaTek Inc. | ||
3 | * Author: John Crispin <blogic@openwrt.org> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | |||
15 | #include <dt-bindings/interrupt-controller/irq.h> | ||
16 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
17 | #include "skeleton64.dtsi" | ||
18 | |||
19 | / { | ||
20 | compatible = "mediatek,mt7623"; | ||
21 | interrupt-parent = <&sysirq>; | ||
22 | |||
23 | cpus { | ||
24 | #address-cells = <1>; | ||
25 | #size-cells = <0>; | ||
26 | enable-method = "mediatek,mt6589-smp"; | ||
27 | |||
28 | cpu@0 { | ||
29 | device_type = "cpu"; | ||
30 | compatible = "arm,cortex-a7"; | ||
31 | reg = <0x0>; | ||
32 | }; | ||
33 | cpu@1 { | ||
34 | device_type = "cpu"; | ||
35 | compatible = "arm,cortex-a7"; | ||
36 | reg = <0x1>; | ||
37 | }; | ||
38 | cpu@2 { | ||
39 | device_type = "cpu"; | ||
40 | compatible = "arm,cortex-a7"; | ||
41 | reg = <0x2>; | ||
42 | }; | ||
43 | cpu@3 { | ||
44 | device_type = "cpu"; | ||
45 | compatible = "arm,cortex-a7"; | ||
46 | reg = <0x3>; | ||
47 | }; | ||
48 | }; | ||
49 | |||
50 | system_clk: dummy13m { | ||
51 | compatible = "fixed-clock"; | ||
52 | clock-frequency = <13000000>; | ||
53 | #clock-cells = <0>; | ||
54 | }; | ||
55 | |||
56 | rtc_clk: dummy32k { | ||
57 | compatible = "fixed-clock"; | ||
58 | clock-frequency = <32000>; | ||
59 | #clock-cells = <0>; | ||
60 | }; | ||
61 | |||
62 | uart_clk: dummy26m { | ||
63 | compatible = "fixed-clock"; | ||
64 | clock-frequency = <26000000>; | ||
65 | #clock-cells = <0>; | ||
66 | }; | ||
67 | |||
68 | timer { | ||
69 | compatible = "arm,armv7-timer"; | ||
70 | interrupt-parent = <&gic>; | ||
71 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | ||
72 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | ||
73 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | ||
74 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | ||
75 | }; | ||
76 | |||
77 | watchdog: watchdog@10007000 { | ||
78 | compatible = "mediatek,mt7623-wdt", | ||
79 | "mediatek,mt6589-wdt"; | ||
80 | reg = <0 0x10007000 0 0x100>; | ||
81 | }; | ||
82 | |||
83 | timer: timer@10008000 { | ||
84 | compatible = "mediatek,mt7623-timer", | ||
85 | "mediatek,mt6577-timer"; | ||
86 | reg = <0 0x10008000 0 0x80>; | ||
87 | interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>; | ||
88 | clocks = <&system_clk>, <&rtc_clk>; | ||
89 | clock-names = "system-clk", "rtc-clk"; | ||
90 | }; | ||
91 | |||
92 | sysirq: interrupt-controller@10200100 { | ||
93 | compatible = "mediatek,mt7623-sysirq", | ||
94 | "mediatek,mt6577-sysirq"; | ||
95 | interrupt-controller; | ||
96 | #interrupt-cells = <3>; | ||
97 | interrupt-parent = <&gic>; | ||
98 | reg = <0 0x10200100 0 0x1c>; | ||
99 | }; | ||
100 | |||
101 | gic: interrupt-controller@10211000 { | ||
102 | compatible = "arm,cortex-a7-gic"; | ||
103 | interrupt-controller; | ||
104 | #interrupt-cells = <3>; | ||
105 | interrupt-parent = <&gic>; | ||
106 | reg = <0 0x10211000 0 0x1000>, | ||
107 | <0 0x10212000 0 0x1000>, | ||
108 | <0 0x10214000 0 0x2000>, | ||
109 | <0 0x10216000 0 0x2000>; | ||
110 | }; | ||
111 | |||
112 | uart0: serial@11002000 { | ||
113 | compatible = "mediatek,mt7623-uart", | ||
114 | "mediatek,mt6577-uart"; | ||
115 | reg = <0 0x11002000 0 0x400>; | ||
116 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>; | ||
117 | clocks = <&uart_clk>; | ||
118 | status = "disabled"; | ||
119 | }; | ||
120 | |||
121 | uart1: serial@11003000 { | ||
122 | compatible = "mediatek,mt7623-uart", | ||
123 | "mediatek,mt6577-uart"; | ||
124 | reg = <0 0x11003000 0 0x400>; | ||
125 | interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>; | ||
126 | clocks = <&uart_clk>; | ||
127 | status = "disabled"; | ||
128 | }; | ||
129 | |||
130 | uart2: serial@11004000 { | ||
131 | compatible = "mediatek,mt7623-uart", | ||
132 | "mediatek,mt6577-uart"; | ||
133 | reg = <0 0x11004000 0 0x400>; | ||
134 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>; | ||
135 | clocks = <&uart_clk>; | ||
136 | status = "disabled"; | ||
137 | }; | ||
138 | |||
139 | uart3: serial@11005000 { | ||
140 | compatible = "mediatek,mt7623-uart", | ||
141 | "mediatek,mt6577-uart"; | ||
142 | reg = <0 0x11005000 0 0x400>; | ||
143 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>; | ||
144 | clocks = <&uart_clk>; | ||
145 | status = "disabled"; | ||
146 | }; | ||
147 | }; | ||
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig index 0abcc51afff5..8ced4ad94af0 100644 --- a/arch/arm/mach-mediatek/Kconfig +++ b/arch/arm/mach-mediatek/Kconfig | |||
@@ -18,6 +18,10 @@ config MACH_MT6592 | |||
18 | bool "MediaTek MT6592 SoCs support" | 18 | bool "MediaTek MT6592 SoCs support" |
19 | default ARCH_MEDIATEK | 19 | default ARCH_MEDIATEK |
20 | 20 | ||
21 | config MACH_MT7623 | ||
22 | bool "MediaTek MT7623 SoCs support" | ||
23 | default ARCH_MEDIATEK | ||
24 | |||
21 | config MACH_MT8127 | 25 | config MACH_MT8127 |
22 | bool "MediaTek MT8127 SoCs support" | 26 | bool "MediaTek MT8127 SoCs support" |
23 | default ARCH_MEDIATEK | 27 | default ARCH_MEDIATEK |
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 2f9f09ac51bd..9c2e38d30f47 100644 --- a/arch/arm/mach-mediatek/mediatek.c +++ b/arch/arm/mach-mediatek/mediatek.c | |||
@@ -47,6 +47,7 @@ static const char * const mediatek_board_dt_compat[] = { | |||
47 | "mediatek,mt2701", | 47 | "mediatek,mt2701", |
48 | "mediatek,mt6589", | 48 | "mediatek,mt6589", |
49 | "mediatek,mt6592", | 49 | "mediatek,mt6592", |
50 | "mediatek,mt7623", | ||
50 | "mediatek,mt8127", | 51 | "mediatek,mt8127", |
51 | "mediatek,mt8135", | 52 | "mediatek,mt8135", |
52 | NULL, | 53 | NULL, |