ac3ce7088707a342c80362ca336d4746cbd006b8
[openwrt/openwrt.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 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
32 linux,default-trigger = "usbport";
33 };
34
35 led_wps: wps {
36 label = "wf-2881:green:wps";
37 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 gpio-keys-polled {
42 compatible = "gpio-keys-polled";
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 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x1000>;
70 read-only;
71 };
72
73 partition@80000 {
74 label = "config";
75 reg = <0x80000 0x80000>;
76 read-only;
77 };
78
79 factory: partition@100000 {
80 label = "factory";
81 reg = <0x100000 0x40000>;
82 read-only;
83 };
84
85 partition@140000 {
86 label = "firmware";
87 reg = <0x140000 0x7E40000>;
88 };
89 };
90 };
91
92 &pcie {
93 status = "okay";
94 };
95
96 &pcie0 {
97 mt76@0,0 {
98 reg = <0x0000 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x8000>;
100 ieee80211-freq-limit = <5000000 6000000>;
101 };
102 };
103
104 &pcie1 {
105 mt76@0,0 {
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x0000>;
108 ieee80211-freq-limit = <2400000 2500000>;
109 };
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0xe006>;
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "uart3", "jtag";
120 ralink,function = "gpio";
121 };
122 };
123 };