ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_wevo_w2914ns-v2.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
8
9         chosen {
10                 bootargs = "console=ttyS0,57600";
11         };
12
13         keys {
14                 compatible = "gpio-keys";
15
16                 reset {
17                         label = "reset";
18                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
19                         linux,code = <KEY_RESTART>;
20                 };
21
22                 wps {
23                         label = "wps";
24                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                 };
27         };
28 };
29
30 &xhci {
31         status = "okay";
32 };
33
34 &spi0 {
35         status = "okay";
36
37         flash@0 {
38                 compatible = "jedec,spi-nor";
39                 reg = <0>;
40                 spi-max-frequency = <80000000>;
41                 m25p,fast-read;
42
43                 partitions {
44                         compatible = "fixed-partitions";
45                         #address-cells = <1>;
46                         #size-cells = <1>;
47
48                         partition@0 {
49                                 label = "u-boot";
50                                 reg = <0x0 0x30000>;
51                                 read-only;
52                         };
53
54                         partition@30000 {
55                                 label = "u-boot-env";
56                                 reg = <0x30000 0x10000>;
57                                 read-only;
58                         };
59
60                         factory: partition@40000 {
61                                 label = "factory";
62                                 reg = <0x40000 0x10000>;
63                                 read-only;
64                         };
65
66                         partition@50000 {
67                                 compatible = "denx,uimage";
68                                 label = "firmware";
69                                 reg = <0x50000 0xfb0000>;
70                         };
71                 };
72         };
73 };
74
75 &pcie {
76         status = "okay";
77 };
78
79 &pcie0 {
80         wifi@0,0 {
81                 compatible = "mediatek,mt76";
82                 reg = <0x0000 0 0 0 0>;
83                 mediatek,mtd-eeprom = <&factory 0x0000>;
84
85                 led {
86                         led-sources = <0>;
87                         led-active-low;
88                 };
89         };
90 };
91
92 &pcie1 {
93         wifi@0,0 {
94                 compatible = "mediatek,mt76";
95                 reg = <0x0000 0 0 0 0>;
96                 mediatek,mtd-eeprom = <&factory 0x8000>;
97                 ieee80211-freq-limit = <5000000 6000000>;
98
99                 led {
100                         led-sources = <2>;
101                         led-active-low;
102                 };
103         };
104 };
105
106 &ethernet {
107         mtd-mac-address = <&factory 0xe000>;
108 };
109
110 &pinctrl {
111         state_default: pinctrl0 {
112                 gpio {
113                         ralink,group = "wdt", "rgmii2";
114                         ralink,function = "gpio";
115                 };
116         };
117 };