diff options
Diffstat (limited to 'arch/mips/lantiq/dts')
-rw-r--r-- | arch/mips/lantiq/dts/Makefile | 4 | ||||
-rw-r--r-- | arch/mips/lantiq/dts/danube.dtsi | 105 | ||||
-rw-r--r-- | arch/mips/lantiq/dts/easy50712.dts | 113 |
3 files changed, 222 insertions, 0 deletions
diff --git a/arch/mips/lantiq/dts/Makefile b/arch/mips/lantiq/dts/Makefile new file mode 100644 index 000000000000..674fca45f72d --- /dev/null +++ b/arch/mips/lantiq/dts/Makefile | |||
@@ -0,0 +1,4 @@ | |||
1 | obj-$(CONFIG_DT_EASY50712) := easy50712.dtb.o | ||
2 | |||
3 | $(obj)/%.dtb: $(obj)/%.dts | ||
4 | $(call if_changed,dtc) | ||
diff --git a/arch/mips/lantiq/dts/danube.dtsi b/arch/mips/lantiq/dts/danube.dtsi new file mode 100644 index 000000000000..3a4520f009cf --- /dev/null +++ b/arch/mips/lantiq/dts/danube.dtsi | |||
@@ -0,0 +1,105 @@ | |||
1 | / { | ||
2 | #address-cells = <1>; | ||
3 | #size-cells = <1>; | ||
4 | compatible = "lantiq,xway", "lantiq,danube"; | ||
5 | |||
6 | cpus { | ||
7 | cpu@0 { | ||
8 | compatible = "mips,mips24Kc"; | ||
9 | }; | ||
10 | }; | ||
11 | |||
12 | biu@1F800000 { | ||
13 | #address-cells = <1>; | ||
14 | #size-cells = <1>; | ||
15 | compatible = "lantiq,biu", "simple-bus"; | ||
16 | reg = <0x1F800000 0x800000>; | ||
17 | ranges = <0x0 0x1F800000 0x7FFFFF>; | ||
18 | |||
19 | icu0: icu@80200 { | ||
20 | #interrupt-cells = <1>; | ||
21 | interrupt-controller; | ||
22 | compatible = "lantiq,icu"; | ||
23 | reg = <0x80200 0x120>; | ||
24 | }; | ||
25 | |||
26 | watchdog@803F0 { | ||
27 | compatible = "lantiq,wdt"; | ||
28 | reg = <0x803F0 0x10>; | ||
29 | }; | ||
30 | }; | ||
31 | |||
32 | sram@1F000000 { | ||
33 | #address-cells = <1>; | ||
34 | #size-cells = <1>; | ||
35 | compatible = "lantiq,sram"; | ||
36 | reg = <0x1F000000 0x800000>; | ||
37 | ranges = <0x0 0x1F000000 0x7FFFFF>; | ||
38 | |||
39 | eiu0: eiu@101000 { | ||
40 | #interrupt-cells = <1>; | ||
41 | interrupt-controller; | ||
42 | interrupt-parent; | ||
43 | compatible = "lantiq,eiu-xway"; | ||
44 | reg = <0x101000 0x1000>; | ||
45 | }; | ||
46 | |||
47 | pmu0: pmu@102000 { | ||
48 | compatible = "lantiq,pmu-xway"; | ||
49 | reg = <0x102000 0x1000>; | ||
50 | }; | ||
51 | |||
52 | cgu0: cgu@103000 { | ||
53 | compatible = "lantiq,cgu-xway"; | ||
54 | reg = <0x103000 0x1000>; | ||
55 | #clock-cells = <1>; | ||
56 | }; | ||
57 | |||
58 | rcu0: rcu@203000 { | ||
59 | compatible = "lantiq,rcu-xway"; | ||
60 | reg = <0x203000 0x1000>; | ||
61 | }; | ||
62 | }; | ||
63 | |||
64 | fpi@10000000 { | ||
65 | #address-cells = <1>; | ||
66 | #size-cells = <1>; | ||
67 | compatible = "lantiq,fpi", "simple-bus"; | ||
68 | ranges = <0x0 0x10000000 0xEEFFFFF>; | ||
69 | reg = <0x10000000 0xEF00000>; | ||
70 | |||
71 | gptu@E100A00 { | ||
72 | compatible = "lantiq,gptu-xway"; | ||
73 | reg = <0xE100A00 0x100>; | ||
74 | }; | ||
75 | |||
76 | serial@E100C00 { | ||
77 | compatible = "lantiq,asc"; | ||
78 | reg = <0xE100C00 0x400>; | ||
79 | interrupt-parent = <&icu0>; | ||
80 | interrupts = <112 113 114>; | ||
81 | }; | ||
82 | |||
83 | dma0: dma@E104100 { | ||
84 | compatible = "lantiq,dma-xway"; | ||
85 | reg = <0xE104100 0x800>; | ||
86 | }; | ||
87 | |||
88 | ebu0: ebu@E105300 { | ||
89 | compatible = "lantiq,ebu-xway"; | ||
90 | reg = <0xE105300 0x100>; | ||
91 | }; | ||
92 | |||
93 | pci0: pci@E105400 { | ||
94 | #address-cells = <3>; | ||
95 | #size-cells = <2>; | ||
96 | #interrupt-cells = <1>; | ||
97 | compatible = "lantiq,pci-xway"; | ||
98 | bus-range = <0x0 0x0>; | ||
99 | ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */ | ||
100 | 0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */ | ||
101 | reg = <0x7000000 0x8000 /* config space */ | ||
102 | 0xE105400 0x400>; /* pci bridge */ | ||
103 | }; | ||
104 | }; | ||
105 | }; | ||
diff --git a/arch/mips/lantiq/dts/easy50712.dts b/arch/mips/lantiq/dts/easy50712.dts new file mode 100644 index 000000000000..68c17310bc82 --- /dev/null +++ b/arch/mips/lantiq/dts/easy50712.dts | |||
@@ -0,0 +1,113 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /include/ "danube.dtsi" | ||
4 | |||
5 | / { | ||
6 | chosen { | ||
7 | bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; | ||
8 | }; | ||
9 | |||
10 | memory@0 { | ||
11 | reg = <0x0 0x2000000>; | ||
12 | }; | ||
13 | |||
14 | fpi@10000000 { | ||
15 | #address-cells = <1>; | ||
16 | #size-cells = <1>; | ||
17 | localbus@0 { | ||
18 | #address-cells = <2>; | ||
19 | #size-cells = <1>; | ||
20 | ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ | ||
21 | 1 0 0x4000000 0x4000010>; /* addsel1 */ | ||
22 | compatible = "lantiq,localbus", "simple-bus"; | ||
23 | |||
24 | nor-boot@0 { | ||
25 | compatible = "lantiq,nor"; | ||
26 | bank-width = <2>; | ||
27 | reg = <0 0x0 0x2000000>; | ||
28 | #address-cells = <1>; | ||
29 | #size-cells = <1>; | ||
30 | |||
31 | partition@0 { | ||
32 | label = "uboot"; | ||
33 | reg = <0x00000 0x10000>; /* 64 KB */ | ||
34 | }; | ||
35 | |||
36 | partition@10000 { | ||
37 | label = "uboot_env"; | ||
38 | reg = <0x10000 0x10000>; /* 64 KB */ | ||
39 | }; | ||
40 | |||
41 | partition@20000 { | ||
42 | label = "linux"; | ||
43 | reg = <0x20000 0x3d0000>; | ||
44 | }; | ||
45 | |||
46 | partition@400000 { | ||
47 | label = "rootfs"; | ||
48 | reg = <0x400000 0x400000>; | ||
49 | }; | ||
50 | }; | ||
51 | }; | ||
52 | |||
53 | gpio: pinmux@E100B10 { | ||
54 | compatible = "lantiq,pinctrl-xway"; | ||
55 | pinctrl-names = "default"; | ||
56 | pinctrl-0 = <&state_default>; | ||
57 | |||
58 | #gpio-cells = <2>; | ||
59 | gpio-controller; | ||
60 | reg = <0xE100B10 0xA0>; | ||
61 | |||
62 | state_default: pinmux { | ||
63 | stp { | ||
64 | lantiq,groups = "stp"; | ||
65 | lantiq,function = "stp"; | ||
66 | }; | ||
67 | exin { | ||
68 | lantiq,groups = "exin1"; | ||
69 | lantiq,function = "exin"; | ||
70 | }; | ||
71 | pci { | ||
72 | lantiq,groups = "gnt1"; | ||
73 | lantiq,function = "pci"; | ||
74 | }; | ||
75 | conf_out { | ||
76 | lantiq,pins = "io4", "io5", "io6"; /* stp */ | ||
77 | lantiq,open-drain; | ||
78 | lantiq,pull = <0>; | ||
79 | }; | ||
80 | }; | ||
81 | }; | ||
82 | |||
83 | etop@E180000 { | ||
84 | compatible = "lantiq,etop-xway"; | ||
85 | reg = <0xE180000 0x40000>; | ||
86 | interrupt-parent = <&icu0>; | ||
87 | interrupts = <73 78>; | ||
88 | phy-mode = "rmii"; | ||
89 | mac-address = [ 00 11 22 33 44 55 ]; | ||
90 | }; | ||
91 | |||
92 | stp0: stp@E100BB0 { | ||
93 | #gpio-cells = <2>; | ||
94 | compatible = "lantiq,gpio-stp-xway"; | ||
95 | gpio-controller; | ||
96 | reg = <0xE100BB0 0x40>; | ||
97 | |||
98 | lantiq,shadow = <0xfff>; | ||
99 | lantiq,groups = <0x3>; | ||
100 | }; | ||
101 | |||
102 | pci@E105400 { | ||
103 | lantiq,bus-clock = <33333333>; | ||
104 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | ||
105 | interrupt-map = < | ||
106 | 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29 | ||
107 | >; | ||
108 | gpios-reset = <&gpio 21 0>; | ||
109 | req-mask = <0x1>; /* GNT1 */ | ||
110 | }; | ||
111 | |||
112 | }; | ||
113 | }; | ||