1f16174cf89122f853b7a3fdfa9c94e481753c1b
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_netis_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-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 = "wf-2881: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 = "wf-2881: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 compatible = "denx,uimage";
79 label = "firmware";
80 reg = <0x140000 0x7e40000>;
81 };
82 };
83 };
84
85 &pcie {
86 status = "okay";
87 };
88
89 &pcie0 {
90 wifi@0,0 {
91 compatible = "mediatek,mt76";
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x8000>;
94 ieee80211-freq-limit = <5000000 6000000>;
95
96 led {
97 led-sources = <2>;
98 led-active-low;
99 };
100 };
101 };
102
103 &pcie1 {
104 wifi@0,0 {
105 compatible = "mediatek,mt76";
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x0000>;
108 ieee80211-freq-limit = <2400000 2500000>;
109
110 led {
111 led-sources = <2>;
112 led-active-low;
113 };
114 };
115 };
116
117 &ethernet {
118 mtd-mac-address = <&factory 0xe000>;
119 };
120
121 &pinctrl {
122 state_default: pinctrl0 {
123 gpio {
124 ralink,group = "uart3", "uart2";
125 ralink,function = "gpio";
126 };
127 };
128 };