aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ralink
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-01-22 14:19:33 -0500
committerJohn Crispin <blogic@openwrt.org>2013-02-16 19:25:32 -0500
commit5644da4f635a30fc03b4f12d81b2197d716d9cef (patch)
tree0d30b5f9c0bdbae906e71d288119d6498b49a6f3 /arch/mips/ralink
parent2809b31770d7fd934a748692e1922a5e613f06e5 (diff)
MIPS: ralink: adds rt305x devicetree
This adds the devicetree file that describes the rt305x evaluation kit. Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4898/
Diffstat (limited to 'arch/mips/ralink')
-rw-r--r--arch/mips/ralink/dts/rt3050.dtsi96
-rw-r--r--arch/mips/ralink/dts/rt3052_eval.dts52
2 files changed, 148 insertions, 0 deletions
diff --git a/arch/mips/ralink/dts/rt3050.dtsi b/arch/mips/ralink/dts/rt3050.dtsi
new file mode 100644
index 000000000000..fd49daacbf08
--- /dev/null
+++ b/arch/mips/ralink/dts/rt3050.dtsi
@@ -0,0 +1,96 @@
1/ {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "ralink,rt3050-soc", "ralink,rt3052-soc";
5
6 cpus {
7 cpu@0 {
8 compatible = "mips,mips24KEc";
9 };
10 };
11
12 chosen {
13 bootargs = "console=ttyS0,57600 init=/init";
14 };
15
16 palmbus@10000000 {
17 compatible = "palmbus";
18 reg = <0x10000000 0x200000>;
19 ranges = <0x0 0x10000000 0x1FFFFF>;
20
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 sysc@0 {
25 compatible = "ralink,rt3052-sysc", "ralink,rt3050-sysc";
26 reg = <0x0 0x100>;
27 };
28
29 timer@100 {
30 compatible = "ralink,rt3052-wdt", "ralink,rt2880-wdt";
31 reg = <0x100 0x100>;
32 };
33
34 intc: intc@200 {
35 compatible = "ralink,rt3052-intc", "ralink,rt2880-intc";
36 reg = <0x200 0x100>;
37
38 interrupt-controller;
39 #interrupt-cells = <1>;
40 };
41
42 memc@300 {
43 compatible = "ralink,rt3052-memc", "ralink,rt3050-memc";
44 reg = <0x300 0x100>;
45 };
46
47 gpio0: gpio@600 {
48 compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
49 reg = <0x600 0x34>;
50
51 gpio-controller;
52 #gpio-cells = <2>;
53
54 ralink,ngpio = <24>;
55 ralink,regs = [ 00 04 08 0c
56 20 24 28 2c
57 30 34 ];
58 };
59
60 gpio1: gpio@638 {
61 compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
62 reg = <0x638 0x24>;
63
64 gpio-controller;
65 #gpio-cells = <2>;
66
67 ralink,ngpio = <16>;
68 ralink,regs = [ 00 04 08 0c
69 10 14 18 1c
70 20 24 ];
71 };
72
73 gpio2: gpio@660 {
74 compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
75 reg = <0x660 0x24>;
76
77 gpio-controller;
78 #gpio-cells = <2>;
79
80 ralink,ngpio = <12>;
81 ralink,regs = [ 00 04 08 0c
82 10 14 18 1c
83 20 24 ];
84 };
85
86 uartlite@c00 {
87 compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a";
88 reg = <0xc00 0x100>;
89
90 interrupt-parent = <&intc>;
91 interrupts = <12>;
92
93 reg-shift = <2>;
94 };
95 };
96};
diff --git a/arch/mips/ralink/dts/rt3052_eval.dts b/arch/mips/ralink/dts/rt3052_eval.dts
new file mode 100644
index 000000000000..148a590bc419
--- /dev/null
+++ b/arch/mips/ralink/dts/rt3052_eval.dts
@@ -0,0 +1,52 @@
1/dts-v1/;
2
3/include/ "rt3050.dtsi"
4
5/ {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "ralink,rt3052-eval-board", "ralink,rt3052-soc";
9 model = "Ralink RT3052 evaluation board";
10
11 memory@0 {
12 reg = <0x0 0x2000000>;
13 };
14
15 palmbus@10000000 {
16 sysc@0 {
17 ralink,pinmmux = "uartlite", "spi";
18 ralink,uartmux = "gpio";
19 ralink,wdtmux = <0>;
20 };
21 };
22
23 cfi@1f000000 {
24 compatible = "cfi-flash";
25 reg = <0x1f000000 0x800000>;
26
27 bank-width = <2>;
28 device-width = <2>;
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37 partition@30000 {
38 label = "uboot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42 partition@40000 {
43 label = "calibration";
44 reg = <0x40000 0x10000>;
45 read-only;
46 };
47 partition@50000 {
48 label = "linux";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52};