rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / ramips / dts / WF-2881.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "NETIS WF-2881";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x8000000>;
12         };
13
14         palmbus@1E000000 {
15                 spi@b00 {
16                         status="disabled";
17                 };
18         };
19
20         chosen {
21                 bootargs = "console=ttyS0,57600";
22         };
23
24         nand@1e003000 {
25                 status = "okay";
26
27                 partition@0 {
28                         label = "u-boot";
29                         reg = <0x0 0x30000>;
30                         read-only;
31                 };
32
33                 partition@30000 {
34                         label = "u-boot-env";
35                         reg = <0x30000 0x1000>;
36                         read-only;
37                 };
38
39                 partition@80000 {
40                         label = "config";
41                         reg = <0x80000 0x80000>;
42                         read-only;
43                 };
44
45                 factory: partition@100000 {
46                         label = "factory";
47                         reg = <0x100000 0x40000>;
48                         read-only;
49                 };
50
51                 partition@140000 {
52                         label = "firmware";
53                         reg = <0x140000 0x7E40000>;
54                 };
55         };
56
57         pcie@1e140000 {
58                 status = "okay";
59
60                 pcie0 {
61                         mt76@0,0 {
62                                 reg = <0x0000 0 0 0 0>;
63                                 device_type = "pci";
64                                 mediatek,mtd-eeprom = <&factory 0x8000>;
65                                 mediatek,2ghz = <0>;
66                         };
67                 };
68
69                 pcie1 {
70                         mt76@1,0 {
71                                 reg = <0x0000 0 0 0 0>;
72                                 device_type = "pci";
73                                 mediatek,mtd-eeprom = <&factory 0x0000>;
74                                 mediatek,5ghz = <0>;
75                         };
76                 };
77         };
78
79         ethernet@1e100000 {
80                 mtd-mac-address = <&factory 0xe006>;
81         };
82
83         gpio-leds {
84                 compatible = "gpio-leds";
85
86                 usb {
87                         label = "wf-2881:green:usb";
88                         gpios = <&gpio0 6 1>;
89                 };
90
91                 wps {
92                         label = "wf-2881:green:wps";
93                         gpios = <&gpio0 0 1>;
94                 };
95         };
96
97         gpio-keys-polled {
98                 compatible = "gpio-keys-polled";
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101                 poll-interval = <20>;
102
103                 reset {
104                         label = "reset";
105                         gpios = <&gpio0 12 1>;
106                         linux,code = <0x198>;
107                 };
108         };
109
110         pinctrl {
111                 state_default: pinctrl0 {
112                         gpio {
113                                 ralink,group = "uart3", "jtag";
114                                 ralink,function = "gpio";
115                         };
116                 };
117         };
118 };