ramips: add support for actiontec web7200
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7621_actiontec_web7200.dts
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 compatible = "actiontec,web7200", "mediatek,mt7621-soc";
10 model = "Actiontec WEB7200";
11
12 aliases {
13 /* led-boot = &led_white;
14 led-failsafe = &led_white;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
17 label-mac-device = &gmac0;*/
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 wan_green {
28 label = "wan:green";
29 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
30 };
31
32 lan_green {
33 label = "lan:green";
34 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46
47 wps {
48 label = "wps";
49 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52 };
53
54 };
55
56 &nand {
57 status = "okay";
58
59 mediatek,nmbm;
60 mediatek,bmt-remap-range =
61 <0x0 0x580000>,
62 <0x3180000 0x3580000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x00 0x80000>;
72 read-only;
73 };
74
75 partition@80000 {
76 label = "u-boot-env";
77 reg = <0x80000 0x80000>;
78 };
79
80 factory: partition@100000 {
81 label = "factory";
82 reg = <0x100000 0x80000>;
83 };
84
85 partition@180000 {
86 compatible = "denx,fit";
87 label = "firmware";
88 openwrt,cmdline-match = "bootselect=0";
89 reg = <0x180000 0x3000000>;
90 };
91
92 partition@3180000 {
93 compatible = "denx,fit";
94 label = "firmware2";
95 openwrt,cmdline-match = "bootselect=1";
96 reg = <0x3180000 0x3000000>;
97 };
98
99 partition@6980000 {
100 label = "aei_data";
101 reg = <0x6980000 0x400000>;
102 };
103
104 partition@6180000 {
105 label = "aei_data_ext";
106 reg = <0x6180000 0x800000>;
107 };
108 };
109 };
110
111 &pcie {
112 status = "okay";
113 };
114
115 &pcie1 {
116 wlan_5g: wifi@0,0 {
117 compatible = "mediatek,mt76";
118 reg = <0x0 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x0>;
120 };
121 };
122
123 &i2c {
124 status = "okay";
125 };
126
127 &switch0 {
128 ports {
129 port@0 {
130 status = "okay";
131 label = "lan";
132 };
133 port@1 {
134 status = "okay";
135 label = "wan";
136 };
137 };
138 };