ramips: fix device name of netis WF-2881 to WF2881
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_netis_wf2881.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netis,wf2881", "mediatek,mt7621-soc";
10 model = "NETIS WF2881";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = &ethernet;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,57600";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 usb {
28 label = "wf2881:green:usb";
29 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
31 linux,default-trigger = "usbport";
32 };
33
34 led_wps: wps {
35 label = "wf2881:green:wps";
36 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 label = "reset";
45 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49 };
50
51 &nand {
52 status = "okay";
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x80000>;
62 read-only;
63 };
64
65 partition@80000 {
66 label = "config";
67 reg = <0x80000 0x80000>;
68 read-only;
69 };
70
71 factory: partition@100000 {
72 label = "factory";
73 reg = <0x100000 0x40000>;
74 read-only;
75 };
76
77 partition@140000 {
78 label = "firmware";
79 reg = <0x140000 0x7e40000>;
80
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "kernel";
87 reg = <0x0 0x400000>;
88 };
89
90 partition@400000 {
91 label = "ubi";
92 reg = <0x400000 0x7a40000>;
93 };
94 };
95 };
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 wifi@0,0 {
104 compatible = "mediatek,mt76";
105 reg = <0x0000 0 0 0 0>;
106 mediatek,mtd-eeprom = <&factory 0x8000>;
107 ieee80211-freq-limit = <5000000 6000000>;
108
109 led {
110 led-sources = <2>;
111 led-active-low;
112 };
113 };
114 };
115
116 &pcie1 {
117 wifi@0,0 {
118 compatible = "mediatek,mt76";
119 reg = <0x0000 0 0 0 0>;
120 mediatek,mtd-eeprom = <&factory 0x0000>;
121 ieee80211-freq-limit = <2400000 2500000>;
122
123 led {
124 led-sources = <2>;
125 led-active-low;
126 };
127 };
128 };
129
130 &ethernet {
131 mtd-mac-address = <&factory 0xe000>;
132 };
133
134 &state_default {
135 gpio {
136 ralink,group = "uart3", "uart2";
137 ralink,function = "gpio";
138 };
139 };