ralink: add support for netis WF-2881
[openwrt.git] / target / linux / ramips / dts / RE6500.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "Linksys RE6500";
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 = "mx25l6405d";
26                                 reg = <0 0>;
27                                 linux,modalias = "m25p80", "en25q64";
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";
60                                 ralink,function = "gpio";
61                         };
62                 };
63         };
64
65         pcie@1e140000 {
66                 status = "okay";
67
68                 pcie0 {
69                         mt76@0,0 {
70                                 reg = <0x0000 0 0 0 0>;
71                                 device_type = "pci";
72                                 mediatek,mtd-eeprom = <&factory 0x0000>;
73                                 mediatek,2ghz = <0>;
74                         };
75                 };
76
77                 pcie1 {
78                         mt76@1,0 {
79                                 reg = <0x0000 0 0 0 0>;
80                                 device_type = "pci";
81                                 mediatek,mtd-eeprom = <&factory 0x8000>;
82                                 mediatek,5ghz = <0>;
83                         };
84                 };
85         };
86
87         gpio-leds {
88                 compatible = "gpio-leds";
89
90                 wifi {
91                         label = "re6500:orange:wifi";
92                         gpios = <&gpio0 0 1>;
93                 };
94
95                 power {
96                         label = "re6500:white:power";
97                         gpios = <&gpio0 9 1>;
98                 };
99         };
100
101         gpio-keys-polled {
102                 compatible = "gpio-keys-polled";
103                 #address-cells = <1>;
104                 #size-cells = <0>;
105                 poll-interval = <20>;
106
107                 wps {
108                         label = "wps";
109                         gpios = <&gpio0 10 1>;
110                         linux,code = <0x211>;
111                 };
112
113                 reset {
114                         label = "reset";
115                         gpios = <&gpio0 11 0>;
116                         linux,code = <0x198>;
117                 };
118         };
119 };