lantiq: move partitions into partion table node
[openwrt/staging/yousong.git] / target / linux / lantiq / dts / EASY50810.dts
1 /dts-v1/;
2
3 /include/ "ar9.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-xr9";
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 0xE108000 0x200>;
93 interrupt-parent = <&icu0>;
94 interrupts = <72 73>;
95 phy-mode = "rmii";
96 mac-address = [ 00 11 22 33 44 55 ];
97 };
98
99 stp0: stp@E100BB0 {
100 #gpio-cells = <2>;
101 compatible = "lantiq,gpio-stp-xway";
102 gpio-controller;
103 reg = <0xE100BB0 0x40>;
104
105 lantiq,shadow = <0xfff>;
106 lantiq,groups = <0x3>;
107 };
108
109 pci@E105400 {
110 lantiq,bus-clock = <33333333>;
111 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
112 interrupt-map = <
113 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
114 >;
115 gpios-reset = <&gpio 21 0>;
116 req-mask = <0x1>; /* GNT1 */
117 };
118
119 };
120 };