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