ramips: mt7621: Add new device AsiaRF AP7621-NV1
[oweals/openwrt.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         };
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 usb {
27                         label = "wf-2881:green:usb";
28                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
29                         trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
30                         linux,default-trigger = "usbport";
31                 };
32
33                 led_wps: wps {
34                         label = "wf-2881:green:wps";
35                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
36                 };
37         };
38
39         keys {
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                         compatible = "denx,uimage";
85                         label = "firmware";
86                         reg = <0x140000 0x7E40000>;
87                 };
88         };
89 };
90
91 &pcie {
92         status = "okay";
93 };
94
95 &pcie0 {
96         mt76@0,0 {
97                 reg = <0x0000 0 0 0 0>;
98                 mediatek,mtd-eeprom = <&factory 0x8000>;
99                 ieee80211-freq-limit = <5000000 6000000>;
100         };
101 };
102
103 &pcie1 {
104         mt76@0,0 {
105                 reg = <0x0000 0 0 0 0>;
106                 mediatek,mtd-eeprom = <&factory 0x0000>;
107                 ieee80211-freq-limit = <2400000 2500000>;
108         };
109 };
110
111 &ethernet {
112         mtd-mac-address = <&factory 0xe006>;
113 };
114
115 &pinctrl {
116         state_default: pinctrl0 {
117                 gpio {
118                         ralink,group = "uart3", "jtag";
119                         ralink,function = "gpio";
120                 };
121         };
122 };