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