ar71xx: update to 3.10.1
[openwrt.git] / target / linux / ramips / patches-3.8 / 0036-DT-MIPS-ralink-add-MT7620A-dts-files.patch
1 From 0757f88781dca6b29de4e1578a4900715371a926 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 12 Apr 2013 06:27:41 +0000
4 Subject: [PATCH 36/79] DT: MIPS: ralink: add MT7620A dts files
5
6 Add a dtsi file for MT7620A SoC and a sample dts file.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 Acked-by: Grant Likely <grant.likely@secretlab.ca>
10 Patchwork: http://patchwork.linux-mips.org/patch/5190/
11 ---
12  arch/mips/ralink/Kconfig              |    4 +++
13  arch/mips/ralink/dts/Makefile         |    1 +
14  arch/mips/ralink/dts/mt7620a.dtsi     |   58 +++++++++++++++++++++++++++++++++
15  arch/mips/ralink/dts/mt7620a_eval.dts |   16 +++++++++
16  4 files changed, 79 insertions(+)
17  create mode 100644 arch/mips/ralink/dts/mt7620a.dtsi
18  create mode 100644 arch/mips/ralink/dts/mt7620a_eval.dts
19
20 diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
21 index 493411f..026e823 100644
22 --- a/arch/mips/ralink/Kconfig
23 +++ b/arch/mips/ralink/Kconfig
24 @@ -46,6 +46,10 @@ choice
25                 bool "RT3883 eval kit"
26                 depends on SOC_RT3883
27  
28 +       config DTB_MT7620A_EVAL
29 +               bool "MT7620A eval kit"
30 +               depends on SOC_MT7620
31 +
32  endchoice
33  
34  endif
35 diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile
36 index 040a986..18194fa 100644
37 --- a/arch/mips/ralink/dts/Makefile
38 +++ b/arch/mips/ralink/dts/Makefile
39 @@ -1,3 +1,4 @@
40  obj-$(CONFIG_DTB_RT2880_EVAL) := rt2880_eval.dtb.o
41  obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o
42  obj-$(CONFIG_DTB_RT3883_EVAL) := rt3883_eval.dtb.o
43 +obj-$(CONFIG_DTB_MT7620A_EVAL) := mt7620a_eval.dtb.o
44 diff --git a/arch/mips/ralink/dts/mt7620a.dtsi b/arch/mips/ralink/dts/mt7620a.dtsi
45 new file mode 100644
46 index 0000000..08bf24f
47 --- /dev/null
48 +++ b/arch/mips/ralink/dts/mt7620a.dtsi
49 @@ -0,0 +1,58 @@
50 +/ {
51 +       #address-cells = <1>;
52 +       #size-cells = <1>;
53 +       compatible = "ralink,mtk7620a-soc";
54 +
55 +       cpus {
56 +               cpu@0 {
57 +                       compatible = "mips,mips24KEc";
58 +               };
59 +       };
60 +
61 +       cpuintc: cpuintc@0 {
62 +               #address-cells = <0>;
63 +               #interrupt-cells = <1>;
64 +               interrupt-controller;
65 +               compatible = "mti,cpu-interrupt-controller";
66 +       };
67 +
68 +       palmbus@10000000 {
69 +               compatible = "palmbus";
70 +               reg = <0x10000000 0x200000>;
71 +                ranges = <0x0 0x10000000 0x1FFFFF>;
72 +
73 +               #address-cells = <1>;
74 +               #size-cells = <1>;
75 +
76 +               sysc@0 {
77 +                       compatible = "ralink,mt7620a-sysc";
78 +                       reg = <0x0 0x100>;
79 +               };
80 +
81 +               intc: intc@200 {
82 +                       compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
83 +                       reg = <0x200 0x100>;
84 +
85 +                       interrupt-controller;
86 +                       #interrupt-cells = <1>;
87 +
88 +                       interrupt-parent = <&cpuintc>;
89 +                       interrupts = <2>;
90 +               };
91 +
92 +               memc@300 {
93 +                       compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
94 +                       reg = <0x300 0x100>;
95 +               };
96 +
97 +               uartlite@c00 {
98 +                       compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
99 +                       reg = <0xc00 0x100>;
100 +
101 +                       interrupt-parent = <&intc>;
102 +                       interrupts = <12>;
103 +
104 +                       reg-shift = <2>;
105 +               };
106 +       };
107 +};
108 diff --git a/arch/mips/ralink/dts/mt7620a_eval.dts b/arch/mips/ralink/dts/mt7620a_eval.dts
109 new file mode 100644
110 index 0000000..35eb874
111 --- /dev/null
112 +++ b/arch/mips/ralink/dts/mt7620a_eval.dts
113 @@ -0,0 +1,16 @@
114 +/dts-v1/;
115 +
116 +/include/ "mt7620a.dtsi"
117 +
118 +/ {
119 +       compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
120 +       model = "Ralink MT7620A evaluation board";
121 +
122 +       memory@0 {
123 +               reg = <0x0 0x2000000>;
124 +       };
125 +
126 +       chosen {
127 +               bootargs = "console=ttyS0,57600";
128 +       };
129 +};
130 -- 
131 1.7.10.4
132