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