ramips: mt7621: update dts/defconfig for DSA
[openwrt/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 aliases {
8 label-mac-device = &wan;
9 };
10
11 chosen {
12 bootargs = "console=ttyS0,57600";
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 reset {
19 label = "reset";
20 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23
24 wps {
25 label = "wps";
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29 };
30 };
31
32 &spi0 {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <80000000>;
39 m25p,fast-read;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x30000>;
49 read-only;
50 };
51
52 partition@30000 {
53 label = "u-boot-env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 factory: partition@40000 {
59 label = "factory";
60 reg = <0x40000 0x10000>;
61 read-only;
62 };
63
64 partition@50000 {
65 compatible = "denx,uimage";
66 label = "firmware";
67 reg = <0x50000 0xfb0000>;
68 };
69 };
70 };
71 };
72
73 &pcie {
74 status = "okay";
75 };
76
77 &pcie0 {
78 wifi@0,0 {
79 compatible = "mediatek,mt76";
80 reg = <0x0000 0 0 0 0>;
81 mediatek,mtd-eeprom = <&factory 0x0>;
82
83 led {
84 led-sources = <0>;
85 led-active-low;
86 };
87 };
88 };
89
90 &pcie1 {
91 wifi@0,0 {
92 compatible = "mediatek,mt76";
93 reg = <0x0000 0 0 0 0>;
94 mediatek,mtd-eeprom = <&factory 0x8000>;
95 ieee80211-freq-limit = <5000000 6000000>;
96
97 led {
98 led-sources = <2>;
99 led-active-low;
100 };
101 };
102 };
103
104 &gmac0 {
105 mtd-mac-address = <&factory 0xe000>;
106 };
107
108 &switch0 {
109 ports {
110 port@0 {
111 status = "okay";
112 label = "lan4";
113 };
114
115 port@1 {
116 status = "okay";
117 label = "lan3";
118 };
119
120 port@2 {
121 status = "okay";
122 label = "lan2";
123 };
124
125 port@3 {
126 status = "okay";
127 label = "lan1";
128 };
129 wan: port@4 {
130 status = "okay";
131 label = "wan";
132 mtd-mac-address = <&factory 0x2e>;
133 };
134 };
135 };
136
137 &state_default {
138 gpio {
139 groups = "wdt", "rgmii2";
140 function = "gpio";
141 };
142 };