17011b1e393ea196fa55b524e709ab3268f75b08
[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 };
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 poll-interval = <20>;
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 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x1000>;
68 read-only;
69 };
70
71 partition@80000 {
72 label = "config";
73 reg = <0x80000 0x80000>;
74 read-only;
75 };
76
77 factory: partition@100000 {
78 label = "factory";
79 reg = <0x100000 0x40000>;
80 read-only;
81 };
82
83 partition@140000 {
84 label = "firmware";
85 reg = <0x140000 0x7E40000>;
86 };
87 };
88 };
89
90 &pcie {
91 status = "okay";
92 };
93
94 &pcie0 {
95 mt76@0,0 {
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 ieee80211-freq-limit = <5000000 6000000>;
99 };
100 };
101
102 &pcie1 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 ieee80211-freq-limit = <2400000 2500000>;
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&factory 0xe006>;
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "uart3", "jtag";
118 ralink,function = "gpio";
119 };
120 };
121 };