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