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