01aa70ba506e3dd5cae7985d9cf4b34fc02690a6
[lede.git] / target / linux / ramips / patches-3.8 / 0105-MIPS-extend-RT3050-dtsi-file.patch
1 From 45e797ec7555c50775d9ac7fc7a17a544344aa3f Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 21 Mar 2013 17:47:07 +0100
4 Subject: [PATCH 105/121] MIPS: extend RT3050 dtsi file
5
6 Add some additional properties to the dtsi file for ethernet and wifi.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 ---
10  arch/mips/ralink/dts/rt3050.dtsi |   96 ++++++++++++++++++++++++++++++++------
11  1 file changed, 81 insertions(+), 15 deletions(-)
12
13 --- a/arch/mips/ralink/dts/rt3050.dtsi
14 +++ b/arch/mips/ralink/dts/rt3050.dtsi
15 @@ -1,7 +1,7 @@
16  / {
17         #address-cells = <1>;
18         #size-cells = <1>;
19 -       compatible = "ralink,rt3050-soc", "ralink,rt3052-soc";
20 +       compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc";
21  
22         cpus {
23                 cpu@0 {
24 @@ -23,7 +23,7 @@
25         palmbus@10000000 {
26                 compatible = "palmbus";
27                 reg = <0x10000000 0x200000>;
28 -                ranges = <0x0 0x10000000 0x1FFFFF>;
29 +               ranges = <0x0 0x10000000 0x1FFFFF>;
30  
31                 #address-cells = <1>;
32                 #size-cells = <1>;
33 @@ -34,8 +34,18 @@
34                 };
35  
36                 timer@100 {
37 +                       compatible = "ralink,rt3052-timer", "ralink,rt2880-timer";
38 +                       reg = <0x100 0x20>;
39 +
40 +                       interrupt-parent = <&intc>;
41 +                       interrupts = <1>;
42 +
43 +                       status = "disabled";
44 +               };
45 +
46 +               watchdog@120 {
47                         compatible = "ralink,rt3052-wdt", "ralink,rt2880-wdt";
48 -                       reg = <0x100 0x100>;
49 +                       reg = <0x120 0x10>;
50                 };
51  
52                 intc: intc@200 {
53 @@ -61,10 +71,12 @@
54                         gpio-controller;
55                         #gpio-cells = <2>;
56  
57 -                       ralink,ngpio = <24>;
58 -                       ralink,regs = [ 00 04 08 0c
59 -                                       20 24 28 2c
60 -                                       30 34 ];
61 +                       ralink,num-gpios = <24>;
62 +                       ralink,register-map = [ 00 04 08 0c
63 +                                               20 24 28 2c
64 +                                               30 34 ];
65 +
66 +                       status = "disabled";
67                 };
68  
69                 gpio1: gpio@638 {
70 @@ -74,10 +86,12 @@
71                         gpio-controller;
72                         #gpio-cells = <2>;
73  
74 -                       ralink,ngpio = <16>;
75 -                       ralink,regs = [ 00 04 08 0c
76 -                                       10 14 18 1c
77 -                                       20 24 ];
78 +                       ralink,num-gpios = <16>;
79 +                       ralink,register-map = [ 00 04 08 0c
80 +                                               10 14 18 1c
81 +                                               20 24 ];
82 +
83 +                       status = "disabled";
84                 };
85  
86                 gpio2: gpio@660 {
87 @@ -87,10 +101,21 @@
88                         gpio-controller;
89                         #gpio-cells = <2>;
90  
91 -                       ralink,ngpio = <12>;
92 -                       ralink,regs = [ 00 04 08 0c
93 -                                       10 14 18 1c
94 -                                       20 24 ];
95 +                       ralink,num-gpios = <12>;
96 +                       ralink,register-map = [ 00 04 08 0c
97 +                                               10 14 18 1c
98 +                                               20 24 ];
99 +
100 +                       status = "disabled";
101 +               };
102 +
103 +               spi@b00 {
104 +                       compatible = "ralink,rt3050-spi", "ralink,rt2880-spi";
105 +                       reg = <0xb00 0x100>;
106 +                       #address-cells = <1>;
107 +                       #size-cells = <0>;
108 +
109 +                       status = "disabled";
110                 };
111  
112                 uartlite@c00 {
113 @@ -102,5 +127,46 @@
114  
115                         reg-shift = <2>;
116                 };
117 +
118 +       };
119 +
120 +       ethernet@10100000 {
121 +               compatible = "ralink,rt3050-eth";
122 +               reg = <0x10100000 10000>;
123 +
124 +               interrupt-parent = <&cpuintc>;
125 +               interrupts = <5>;
126 +
127 +               status = "disabled";
128 +       };
129 +
130 +       esw@10110000 {
131 +               compatible = "ralink,rt3050-esw";
132 +               reg = <0x10110000 8000>;
133 +
134 +               interrupt-parent = <&intc>;
135 +               interrupts = <17>;
136 +
137 +               status = "disabled";
138 +       };
139 +
140 +       wmac@10180000 {
141 +               compatible = "ralink,rt3050-wmac", "ralink,rt2880-wmac";
142 +               reg = <0x10180000 40000>;
143 +
144 +               interrupt-parent = <&cpuintc>;
145 +               interrupts = <6>;
146 +
147 +               status = "disabled";
148 +       };
149 +
150 +       otg@101c0000 {
151 +               compatible = "ralink,rt3050-otg";
152 +               reg = <0x101c0000 40000>;
153 +
154 +               interrupt-parent = <&intc>;
155 +               interrupts = <18>;
156 +
157 +               status = "disabled";
158         };
159  };