diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-12 02:27:37 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-07 19:19:10 -0400 |
commit | d99e19c799a6b48a5c6d733f5885862df5c77c70 (patch) | |
tree | 54a1a95ef0e0e18897d51ec8a182406073673de9 /arch/mips | |
parent | da5b4cfa541b5597ea9b6e8273289e4bf89141f4 (diff) |
DT: MIPS: ralink: add RT2880 dts files
Add a dtsi file for RT2880 SoC and a sample dts file.
Signed-off-by: John Crispin <blogic@openwrt.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Patchwork: http://patchwork.linux-mips.org/patch/5188/
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/ralink/Kconfig | 4 | ||||
-rw-r--r-- | arch/mips/ralink/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/ralink/dts/rt2880.dtsi | 58 | ||||
-rw-r--r-- | arch/mips/ralink/dts/rt2880_eval.dts | 46 |
4 files changed, 109 insertions, 0 deletions
diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig index 86f6c7760536..2f6fbb809e51 100644 --- a/arch/mips/ralink/Kconfig +++ b/arch/mips/ralink/Kconfig | |||
@@ -34,6 +34,10 @@ choice | |||
34 | config DTB_RT_NONE | 34 | config DTB_RT_NONE |
35 | bool "None" | 35 | bool "None" |
36 | 36 | ||
37 | config DTB_RT2880_EVAL | ||
38 | bool "RT2880 eval kit" | ||
39 | depends on SOC_RT288X | ||
40 | |||
37 | config DTB_RT305X_EVAL | 41 | config DTB_RT305X_EVAL |
38 | bool "RT305x eval kit" | 42 | bool "RT305x eval kit" |
39 | depends on SOC_RT305X | 43 | depends on SOC_RT305X |
diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile index 1a69fb300955..f635a010193f 100644 --- a/arch/mips/ralink/dts/Makefile +++ b/arch/mips/ralink/dts/Makefile | |||
@@ -1 +1,2 @@ | |||
1 | obj-$(CONFIG_DTB_RT2880_EVAL) := rt2880_eval.dtb.o | ||
1 | obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o | 2 | obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o |
diff --git a/arch/mips/ralink/dts/rt2880.dtsi b/arch/mips/ralink/dts/rt2880.dtsi new file mode 100644 index 000000000000..182afde2f2e1 --- /dev/null +++ b/arch/mips/ralink/dts/rt2880.dtsi | |||
@@ -0,0 +1,58 @@ | |||
1 | / { | ||
2 | #address-cells = <1>; | ||
3 | #size-cells = <1>; | ||
4 | compatible = "ralink,rt2880-soc"; | ||
5 | |||
6 | cpus { | ||
7 | cpu@0 { | ||
8 | compatible = "mips,mips4KEc"; | ||
9 | }; | ||
10 | }; | ||
11 | |||
12 | cpuintc: cpuintc@0 { | ||
13 | #address-cells = <0>; | ||
14 | #interrupt-cells = <1>; | ||
15 | interrupt-controller; | ||
16 | compatible = "mti,cpu-interrupt-controller"; | ||
17 | }; | ||
18 | |||
19 | palmbus@300000 { | ||
20 | compatible = "palmbus"; | ||
21 | reg = <0x300000 0x200000>; | ||
22 | ranges = <0x0 0x300000 0x1FFFFF>; | ||
23 | |||
24 | #address-cells = <1>; | ||
25 | #size-cells = <1>; | ||
26 | |||
27 | sysc@0 { | ||
28 | compatible = "ralink,rt2880-sysc"; | ||
29 | reg = <0x0 0x100>; | ||
30 | }; | ||
31 | |||
32 | intc: intc@200 { | ||
33 | compatible = "ralink,rt2880-intc"; | ||
34 | reg = <0x200 0x100>; | ||
35 | |||
36 | interrupt-controller; | ||
37 | #interrupt-cells = <1>; | ||
38 | |||
39 | interrupt-parent = <&cpuintc>; | ||
40 | interrupts = <2>; | ||
41 | }; | ||
42 | |||
43 | memc@300 { | ||
44 | compatible = "ralink,rt2880-memc"; | ||
45 | reg = <0x300 0x100>; | ||
46 | }; | ||
47 | |||
48 | uartlite@c00 { | ||
49 | compatible = "ralink,rt2880-uart", "ns16550a"; | ||
50 | reg = <0xc00 0x100>; | ||
51 | |||
52 | interrupt-parent = <&intc>; | ||
53 | interrupts = <8>; | ||
54 | |||
55 | reg-shift = <2>; | ||
56 | }; | ||
57 | }; | ||
58 | }; | ||
diff --git a/arch/mips/ralink/dts/rt2880_eval.dts b/arch/mips/ralink/dts/rt2880_eval.dts new file mode 100644 index 000000000000..322d7002595b --- /dev/null +++ b/arch/mips/ralink/dts/rt2880_eval.dts | |||
@@ -0,0 +1,46 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /include/ "rt2880.dtsi" | ||
4 | |||
5 | / { | ||
6 | compatible = "ralink,rt2880-eval-board", "ralink,rt2880-soc"; | ||
7 | model = "Ralink RT2880 evaluation board"; | ||
8 | |||
9 | memory@0 { | ||
10 | reg = <0x8000000 0x2000000>; | ||
11 | }; | ||
12 | |||
13 | chosen { | ||
14 | bootargs = "console=ttyS0,57600"; | ||
15 | }; | ||
16 | |||
17 | cfi@1f000000 { | ||
18 | compatible = "cfi-flash"; | ||
19 | reg = <0x1f000000 0x400000>; | ||
20 | |||
21 | bank-width = <2>; | ||
22 | device-width = <2>; | ||
23 | #address-cells = <1>; | ||
24 | #size-cells = <1>; | ||
25 | |||
26 | partition@0 { | ||
27 | label = "uboot"; | ||
28 | reg = <0x0 0x30000>; | ||
29 | read-only; | ||
30 | }; | ||
31 | partition@30000 { | ||
32 | label = "uboot-env"; | ||
33 | reg = <0x30000 0x10000>; | ||
34 | read-only; | ||
35 | }; | ||
36 | partition@40000 { | ||
37 | label = "calibration"; | ||
38 | reg = <0x40000 0x10000>; | ||
39 | read-only; | ||
40 | }; | ||
41 | partition@50000 { | ||
42 | label = "linux"; | ||
43 | reg = <0x50000 0x3b0000>; | ||
44 | }; | ||
45 | }; | ||
46 | }; | ||