7228dc527feb61b95932cace4449d2b55bac2b3b
[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                 compatible = "mtk,mt7621-nand";
26                 bank-width = <2>;
27                 reg = <0x1e003000 0x800
28                                 0x1e003800 0x800>;
29                 #address-cells = <1>;
30                 #size-cells = <1>;
31
32                 partition@0 {
33                         label = "u-boot";
34                         reg = <0x0 0x30000>;
35                         read-only;
36                 };
37
38                 partition@30000 {
39                         label = "u-boot-env";
40                         reg = <0x30000 0x1000>;
41                         read-only;
42                 };
43
44                 partition@80000 {
45                         label = "config";
46                         reg = <0x80000 0x80000>;
47                         read-only;
48                 };
49
50                 factory: partition@100000 {
51                         label = "factory";
52                         reg = <0x100000 0x40000>;
53                         read-only;
54                 };
55
56                 firmware {
57                         label = "firmware";
58                         reg = <0x140000 0x6EC0000>;
59                 };
60
61                 partition@140000 {
62                         label = "kernel";
63                         reg = <0x140000 0x200000>;
64                 };
65
66                 partition@340000 {
67                         label = "ubi";
68                         reg = <0x340000 0x6CC0000>;
69                 };
70         };
71
72         pcie@1e140000 {
73                 status = "okay";
74
75                 pcie0 {
76                         mt76@0,0 {
77                                 reg = <0x0000 0 0 0 0>;
78                                 device_type = "pci";
79                                 mediatek,mtd-eeprom = <&factory 0x8000>;
80                                 mediatek,2ghz = <0>;
81                         };
82                 };
83
84                 pcie1 {
85                         mt76@1,0 {
86                                 reg = <0x0000 0 0 0 0>;
87                                 device_type = "pci";
88                                 mediatek,mtd-eeprom = <&factory 0x0000>;
89                                 mediatek,5ghz = <0>;
90                         };
91                 };
92         };
93
94         ethernet@1e100000 {
95                 mtd-mac-address = <&factory 0xe006>;
96         };
97
98         gpio-leds {
99                 compatible = "gpio-leds";
100
101                 usb {
102                         label = "wf-2881:green:usb";
103                         gpios = <&gpio0 6 1>;
104                 };
105
106                 wps {
107                         label = "wf-2881:green:wps";
108                         gpios = <&gpio0 0 1>;
109                 };
110         };
111
112         gpio-keys-polled {
113                 compatible = "gpio-keys-polled";
114                 #address-cells = <1>;
115                 #size-cells = <0>;
116                 poll-interval = <20>;
117
118                 reset {
119                         label = "reset";
120                         gpios = <&gpio0 12 1>;
121                         linux,code = <0x198>;
122                 };
123         };
124
125         pinctrl {
126                 state_default: pinctrl0 {
127                         gpio {
128                                 ralink,group = "uart3", "jtag";
129                                 ralink,function = "gpio";
130                         };
131                 };
132         };
133 };