46b1c9cdfc6446549ef3f66620d3c812f6f45f41
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_linksys_ea7xxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 wps {
17 label = "wps";
18 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_WPS_BUTTON>;
20 };
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28 };
29
30 &nand {
31 status = "okay";
32
33 partitions {
34 compatible = "fixed-partitions";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "boot";
40 reg = <0x0 0x80000>;
41 read-only;
42 };
43
44 partition@80000 {
45 label = "u_env";
46 reg = <0x80000 0x40000>;
47 read-only;
48 };
49
50 factory: partition@c0000 {
51 label = "factory";
52 reg = <0xc0000 0x40000>;
53 read-only;
54 };
55
56 partition@100000 {
57 label = "s_env";
58 reg = <0x100000 0x40000>;
59 };
60
61 partition@140000 {
62 label = "devinfo";
63 reg = <0x140000 0x40000>;
64 read-only;
65 };
66
67 partition@180000 {
68 label = "kernel";
69 reg = <0x180000 0x400000>;
70 };
71
72 partition@580000 {
73 label = "ubi";
74 reg = <0x580000 0x2400000>;
75 };
76
77 partition@2980000 {
78 label = "alt_kernel";
79 reg = <0x2980000 0x400000>;
80 read-only;
81 };
82
83 partition@2d80000 {
84 label = "alt_rootfs";
85 reg = <0x2d80000 0x2400000>;
86 read-only;
87 };
88
89 partition@5180000 {
90 label = "sysdiag";
91 reg = <0x5180000 0x100000>;
92 read-only;
93 };
94
95 partition@5280000 {
96 label = "syscfg";
97 reg = <0x5280000 0x2d00000>;
98 read-only;
99 };
100 };
101 };
102
103 &state_default {
104 gpio {
105 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
106 function = "gpio";
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 mt76@0,0 {
116 compatible = "mediatek,mt76";
117 reg = <0x0000 0 0 0 0>;
118 mediatek,mtd-eeprom = <&factory 0x0000>;
119 };
120 };
121
122 &pcie1 {
123 mt76@0,0 {
124 compatible = "mediatek,mt76";
125 reg = <0x0000 0 0 0 0>;
126 mediatek,mtd-eeprom = <&factory 0x8000>;
127 };
128 };
129
130 &switch0 {
131 ports {
132 port@0 {
133 status = "okay";
134 label = "wan";
135 };
136
137 port@1 {
138 status = "okay";
139 label = "lan1";
140 };
141
142 port@2 {
143 status = "okay";
144 label = "lan2";
145 };
146
147 port@3 {
148 status = "okay";
149 label = "lan3";
150 };
151
152 port@4 {
153 status = "okay";
154 label = "lan4";
155 };
156 };
157 };