ramips: fix WSR-600DHP flash layout
[openwrt.git] / target / linux / ramips / dts / WSR-600.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6         compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7         model = "Buffalo WSR-600DHP";
8
9         memory@0 {
10                 reg = <0x0 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600";
15         };
16
17         palmbus@1E000000 {
18                 spi@b00 {
19                         status = "okay";
20
21                         m25p80@0 {
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24                                 compatible = "mx25l12805d";
25                                 reg = <0 0>;
26                                 linux,modalias = "m25p80";
27                                 spi-max-frequency = <10000000>;
28
29                                 partition@0 {
30                                         label = "u-boot";
31                                         reg = <0x0 0x30000>;
32                                         read-only;
33                                 };
34
35                                 partition@30000 {
36                                         label = "u-boot-env";
37                                         reg = <0x30000 0x10000>;
38                                         read-only;
39                                 };
40
41                                 factory: partition@40000 {
42                                         label = "factory";
43                                         reg = <0x40000 0x10000>;
44                                         read-only;
45                                 };
46
47                                 partition@50000 {
48                                         label = "firmware";
49                                         reg = <0x50000 0x6b0000>;
50                                 };
51
52                                 partition@700000 {
53                                         label = "usercfg";
54                                         reg = <0x700000 0x100000>;
55                                 };
56
57                                 partition@800000 {
58                                         label = "firmware2";
59                                         reg = <0x800000 0x6b0000>;
60                                 };
61                         };
62                 };
63         };
64
65         pinctrl {
66                 state_default: pinctrl0 {
67                         gpio {
68                                 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
69                                 ralink,function = "gpio";
70                         };
71                 };
72         };
73
74         gpio-leds {
75                 compatible = "gpio-leds";
76                 power {
77                         label = "buffalo:green:power";
78                         gpios = <&gpio0 12 1>;
79                 };
80                 wifi_o {
81                         label = "buffalo:orange:wifi";
82                         gpios = <&gpio1 9 1>;
83                 };
84                 diag {
85                         label = "buffalo:orange:diag";
86                         gpios = <&gpio1 10 1>;
87                 };
88                 wifi_g {
89                         label = "buffalo:green:wifi";
90                         gpios = <&gpio1 12 1>;
91                 };
92                 router_o {
93                         label = "buffalo:orange:router";
94                         gpios = <&gpio1 13 1>;
95                 };
96                 router_g {
97                         label = "buffalo:green:router";
98                         gpios = <&gpio1 14 1>;
99                 };
100                 internet_o {
101                         label = "buffalo:orange:internet";
102                         gpios = <&gpio1 15 1>;
103                 };
104                 internet_g {
105                         label = "buffalo:green:internet";
106                         gpios = <&gpio1 16 1>;
107                 };
108         };
109
110         gpio-keys-polled {
111                 compatible = "gpio-keys-polled";
112                 #address-cells = <1>;
113                 #size-cells = <0>;
114                 poll-interval = <20>;
115                 power {
116                         label = "power";
117                         gpios = <&gpio0 8 1>;
118                         linux,code = <0x74>;
119                 };
120                 reset {
121                         label = "reset";
122                         gpios = <&gpio0 11 1>;
123                         linux,code = <0x198>;
124                 };
125                 aoss {
126                         label = "aoss";
127                         gpios = <&gpio0 18 1>;
128                         linux,code = <0x211>;
129                 };
130                 auto {
131                         label = "mode";
132                         gpios = <&gpio0 7 0>;
133                         linux,code = <0x100>;
134                         linux,input-type = <5>; /* EV_SW */
135                 };
136                 ap {
137                         label = "ap";
138                         gpios = <&gpio0 6 0>;
139                         linux,code = <0x100>;
140                         linux,input-type = <5>; /* EV_SW */
141                 };
142                 router {
143                         label = "router";
144                         gpios = <&gpio0 10 0>;
145                         linux,code = <0x100>;
146                         linux,input-type = <5>; /* EV_SW */
147                 };
148         };
149         gpio_poweroff {
150                 compatible = "gpio-poweroff";
151                 gpios = <&gpio1 11 1>;
152         };
153 };