ramips: fix flash layout for TP-Link TL-WR841N v14
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rt-acx5p.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 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 wps {
26 label = "wps";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "rt-ac85p:blue:power";
37 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
38 };
39 wlan2g {
40 label = "rt-ac85p:blue:wlan2g";
41 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0radio";
43 };
44
45 wlan5g {
46 label = "rt-ac85p:blue:wlan5g";
47 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1radio";
49 };
50 };
51 };
52
53 &i2c {
54 status = "okay";
55 };
56
57 &sdhci {
58 status = "okay";
59 };
60
61 &nand {
62 status = "okay";
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 = <0x0 0xe0000>;
72 read-only;
73 };
74
75 partition@e0000 {
76 label = "u-boot-env";
77 reg = <0xe0000 0x100000>;
78 read-only;
79 };
80
81 factory: partition@1e0000 {
82 label = "factory";
83 reg = <0x1e0000 0x100000>;
84 read-only;
85 };
86
87 factory2: partition@2e0000 {
88 label = "factory2";
89 reg = <0x2e0000 0x100000>;
90 read-only;
91 };
92
93 partition@3e0000 {
94 label = "kernel";
95 reg = <0x3e0000 0x400000>;
96 };
97
98 partition@7e0000 {
99 label = "ubi";
100 reg = <0x7e0000 0x2e00000>;
101 };
102
103 partition@35e0000 {
104 label = "firmware2";
105 reg = <0x35e0000 0x3200000>;
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 wifi0: wifi@0,0 {
116 compatible = "pci14c3,7615";
117 reg = <0x0000 0 0 0 0>;
118 mediatek,mtd-eeprom = <&factory 0x0000>;
119 ieee80211-freq-limit = <2400000 2500000>;
120 };
121 };
122
123 &pcie1 {
124 wifi1: wifi@0,0 {
125 compatible = "pci14c3,7615";
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x8000>;
128 ieee80211-freq-limit = <5000000 6000000>;
129 };
130 };
131
132 &gmac0 {
133 mtd-mac-address = <&factory 0xe000>;
134 };
135
136 &switch0 {
137 ports {
138 port@0 {
139 status = "okay";
140 label = "wan";
141 };
142
143 port@1 {
144 status = "okay";
145 label = "lan1";
146 };
147
148 port@2 {
149 status = "okay";
150 label = "lan2";
151 };
152
153 port@3 {
154 status = "okay";
155 label = "lan3";
156 };
157
158 port@4 {
159 status = "okay";
160 label = "lan4";
161 };
162 };
163 };
164
165 &state_default {
166 gpio {
167 groups = "uart2", "uart3", "i2c";
168 function = "gpio";
169 };
170 };