lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / EASY50712.dts
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                                 partitions {
32                                         compatible = "fixed-partitions";
33                                         #address-cells = <1>;
34                                         #size-cells = <1>;
35
36                                         partition@0 {
37                                                 label = "uboot";
38                                                 reg = <0x00000 0x10000>; /* 64 KB */
39                                         };
40
41                                         partition@10000 {
42                                                 label = "uboot_env";
43                                                 reg = <0x10000 0x10000>; /* 64 KB */
44                                         };
45
46                                         partition@20000 {
47                                                 label = "firmware";
48                                                 reg = <0x20000 0x3d0000>;
49                                         };
50
51                                         partition@400000 {
52                                                 label = "rootfs";
53                                                 reg = <0x400000 0x400000>;
54                                         };
55                                 };
56                         };
57                 };
58
59                 gpio: pinmux@E100B10 {
60                         compatible = "lantiq,pinctrl-xway";
61                         pinctrl-names = "default";
62                         pinctrl-0 = <&state_default>;
63
64                         #gpio-cells = <2>;
65                         gpio-controller;
66                         reg = <0xE100B10 0xA0>;
67
68                         state_default: pinmux {
69                                 stp {
70                                         lantiq,groups = "stp";
71                                         lantiq,function = "stp";
72                                 };
73                                 exin {
74                                         lantiq,groups = "exin1";
75                                         lantiq,function = "exin";
76                                 };
77                                 pci {
78                                         lantiq,groups = "gnt1";
79                                         lantiq,function = "pci";
80                                 };
81                                 conf_out {
82                                         lantiq,pins = "io4", "io5", "io6"; /* stp */
83                                         lantiq,open-drain;
84                                         lantiq,pull = <0>;
85                                 };
86                         };
87                 };
88
89                 etop@E180000 {
90                         compatible = "lantiq,etop-xway";
91                         reg = <0xE180000 0x40000>;
92                         interrupt-parent = <&icu0>;
93                         interrupts = <73 78>;
94                         phy-mode = "rmii";
95                         mac-address = [ 00 11 22 33 44 55 ];
96                 };
97
98                 stp0: stp@E100BB0 {
99                         #gpio-cells = <2>;
100                         compatible = "lantiq,gpio-stp-xway";
101                         gpio-controller;
102                         reg = <0xE100BB0 0x40>;
103
104                         lantiq,shadow = <0xfff>;
105                         lantiq,groups = <0x3>;
106                 };
107
108                 pci@E105400 {
109                         lantiq,bus-clock = <33333333>;
110                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
111                         interrupt-map = <
112                                 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
113                         >;
114                         gpios-reset = <&gpio 21 0>;
115                         req-mask = <0x1>;               /* GNT1 */
116                 };
117
118         };
119 };