Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / WSR-1166.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6         compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7         model = "Buffalo WSR-1166DHP";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x8000000>;
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 = "mx25l12805d";
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 0xf90000>;
51                                 };
52
53                                 partition@fe00000 {
54                                         label = "board_data";
55                                         reg = <0xfe0000 0x10000>;
56                                 };
57                         };
58                 };
59         };
60
61         pinctrl {
62                 state_default: pinctrl0 {
63                         gpio {
64                                 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
65                                 ralink,function = "gpio";
66                         };
67                 };
68         };
69
70         gpio-leds {
71                 compatible = "gpio-leds";
72                 internet_g {
73                         label = "buffalo:green:internet";
74                         gpios = <&gpio1 9 1>;
75                 };
76                 router_g {
77                         label = "buffalo:green:router";
78                         gpios = <&gpio1 10 1>;
79                 };
80                 router_o {
81                         label = "buffalo:orange:router";
82                         gpios = <&gpio1 11 1>;
83                 };
84                 internet_o {
85                         label = "buffalo:orange:internet";
86                         gpios = <&gpio1 12 1>;
87                 };
88                 wifi_o {
89                         label = "buffalo:orange:wifi";
90                         gpios = <&gpio1 13 1>;
91                 };
92                 power {
93                         label = "buffalo:green:power";
94                         gpios = <&gpio1 14 1>;
95                 };
96                 diag {
97                         label = "buffalo:orange:diag";
98                         gpios = <&gpio1 15 1>;
99                 };
100                 wifi_g {
101                         label = "buffalo:green:wifi";
102                         gpios = <&gpio1 16 1>;
103                 };
104         };
105
106         gpio-keys-polled {
107                 compatible = "gpio-keys-polled";
108                 #address-cells = <1>;
109                 #size-cells = <0>;
110                 poll-interval = <20>;
111                 power {
112                         label = "power";
113                         gpios = <&gpio0 18 1>;
114                         linux,code = <0x74>;
115                 };
116                 reset {
117                         label = "reset";
118                         gpios = <&gpio0 3 1>;
119                         linux,code = <0x198>;
120                 };
121                 aoss {
122                         label = "aoss";
123                         gpios = <&gpio0 6 1>;
124                         linux,code = <0x211>;
125                 };
126                 auto {
127                         label = "mode";
128                         gpios = <&gpio0 7 0>;
129                         linux,code = <0x100>;
130                         linux,input-type = <5>; /* EV_SW */
131                 };
132                 ap {
133                         label = "ap";
134                         gpios = <&gpio0 10 0>;
135                         linux,code = <0x100>;
136                         linux,input-type = <5>; /* EV_SW */
137                 };
138                 router {
139                         label = "router";
140                         gpios = <&gpio0 12 0>;
141                         linux,code = <0x100>;
142                         linux,input-type = <5>; /* EV_SW */
143                 };
144         };
145
146         gpio_poweroff {
147                 compatible = "gpio-poweroff";
148                 gpios = <&gpio0 0 1>;
149         };
150
151         pcie@1e140000 {
152                 status = "okay";
153
154                 pcie0 {
155                         mt76@0,0 {
156                                 reg = <0x0000 0 0 0 0>;
157                                 device_type = "pci";
158                                 mediatek,mtd-eeprom = <&factory 0x8000>;
159                                 mediatek,2ghz = <0>;
160                         };
161                 };
162
163                 pcie1 {
164                         mt76@1,0 {
165                                 reg = <0x0000 0 0 0 0>;
166                                 device_type = "pci";
167                                 mediatek,mtd-eeprom = <&factory 0x0000>;
168                                 mediatek,5ghz = <0>;
169                         };
170                 };
171         };
172 };