lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / ARV7525PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV7525PW - Speedport W303V Typ A";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_green;
13                         failsafe = &power_red;
14                         running = &power_green;
15
16                         dsl = &power_green;
17                         internet = &online;
18                         wifi = &wifi;
19                 };
20         };
21
22         memory@0 {
23                 reg = <0x0 0x2000000>;
24         };
25
26         sram@1F000000 {
27                 vmmc@107000 {
28                         status = "okay";
29                         gpios = <&gpio 31 0>;
30                 };
31         };
32
33         fpi@10000000 {
34                 localbus@0 {
35                         nor-boot@0 {
36                                 compatible = "lantiq,nor";
37                                 bank-width = <2>;
38                                 reg = <0 0x0 0x2000000>;
39                                 #address-cells = <1>;
40                                 #size-cells = <1>;
41
42                                 partitions {
43                                         compatible = "fixed-partitions";
44                                         #address-cells = <1>;
45                                         #size-cells = <1>;
46
47                                         partition@0 {
48                                                 label = "uboot";
49                                                 reg = <0x00000 0x10000>;
50                                                 read-only;
51                                         };
52
53                                         partition@10000 {
54                                                 label = "uboot_env";
55                                                 reg = <0x10000 0x10000>;
56                                                 read-only;
57                                         };
58
59                                         partition@20000 {
60                                                 label = "firmware";
61                                                 reg = <0x20000 0x3d0000>;
62                                         };
63
64                                         partition@400000 {
65                                                 label = "board_config";
66                                                 reg = <0x3f0000 0x10000>;
67                                                 read-only;
68                                         };
69                                 };
70                         };
71
72                         mac_addr {
73                                 compatible = "lantiq,eth-mac";
74                                 reg = <0 0x3f0016 0x6>;
75                                 mac-increment = <2>;
76                         };
77
78                         ralink_eep {
79                                 compatible = "ralink,eeprom";
80                                 ralink,eeprom = "RT2860.eeprom";
81                                 reg = <0 0x3f0410 0x110>;
82                         };
83                 };
84
85                 gpio: pinmux@E100B10 {
86                         pinctrl-names = "default";
87                         pinctrl-0 = <&state_default>;
88
89                         state_default: pinmux {
90                                 exin {
91                                         lantiq,groups = "exin1";
92                                         lantiq,function = "exin";
93                                 };
94                                 pci {
95                                         lantiq,groups = "gnt1", "req1";
96                                         lantiq,function = "pci";
97                                 };
98                         };
99                 };
100
101                 etop@E180000 {
102                         phy-mode = "mii";
103                 };
104
105                 pci@E105400 {
106                         status = "okay";
107                         interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
108                         req-mask = <0x1>;
109                 };
110
111         };
112
113         gpio-keys-polled {
114                 compatible = "gpio-keys-polled";
115                 #address-cells = <1>;
116                 #size-cells = <0>;
117                 poll-interval = <100>;
118
119                 wps {
120                         label = "wps";
121                         gpios = <&gpio 29 1>;
122                         linux,code = <0x211>;
123                 };
124                 reset {
125                         label = "reset";
126                         gpios = <&gpio 30 1>;
127                         linux,code = <0x198>;
128                 };
129         };
130
131         gpio-leds {
132                 compatible = "gpio-leds";
133                 power_green: power {
134                         label = "arv7525pw:green:power";
135                         gpios = <&gpio 3 1>;
136                         default-state = "keep";
137                 };
138                 power_red: power1 {
139                         label = "arv7525pw:red:power";
140                         gpios = <&gpio 4 1>;
141                 };
142                 online: online {
143                         label = "arv7525pw:green:online";
144                         gpios = <&gpio 5 1>;
145                 };
146                 voice {
147                         label = "arv7525pw:green:telefonie";
148                         gpios = <&gpio 6 1>;
149                 };
150                 voice2 {
151                         label = "arv7525pw:red:telefonie";
152                         gpios = <&gpio 8 1>;
153                 };
154                 wifi: wifi {
155                         label = "arv7525pw:green:wlan";
156                         gpios = <&gpio 9 1>;
157                 };
158         };
159 };