ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_totolink_a7000r.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 = "totolink,a7000r", "mediatek,mt7621-soc";
10 model = "TOTOLINK A7000R";
11
12 aliases {
13 led-boot = &led_sys;
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_sys: sys {
23 label = "blue:sys";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 reset {
32 label = "reset";
33 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38 };
39
40 &spi0 {
41 status = "okay";
42
43 flash@0 {
44 compatible = "jedec,spi-nor";
45 reg = <0>;
46 spi-max-frequency = <40000000>;
47
48 partitions {
49 compatible = "fixed-partitions";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partition@0 {
54 label = "u-boot";
55 reg = <0x0 0x30000>;
56 read-only;
57 };
58
59 partition@30000 {
60 label = "u-boot-env";
61 reg = <0x30000 0x10000>;
62 read-only;
63 };
64
65 partition@40000 {
66 label = "factory";
67 reg = <0x40000 0x10000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 eeprom_factory_0: eeprom@0 {
76 reg = <0x0 0x4da8>;
77 };
78
79 eeprom_factory_8000: eeprom@8000 {
80 reg = <0x8000 0x4da8>;
81 };
82
83 macaddr_factory_e000: macaddr@e000 {
84 compatible = "mac-base";
85 reg = <0xe000 0x6>;
86 #nvmem-cell-cells = <1>;
87 };
88 };
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0xfb0000>;
95 };
96 };
97 };
98 };
99
100 &pcie {
101 status = "okay";
102 };
103
104 &pcie0 {
105 wifi@0,0 {
106 compatible = "mediatek,mt76";
107 reg = <0x0000 0 0 0 0>;
108 nvmem-cells = <&eeprom_factory_0>;
109 nvmem-cell-names = "eeprom";
110 ieee80211-freq-limit = <2400000 2500000>;
111 };
112 };
113
114 &pcie1 {
115 wifi@0,0 {
116 compatible = "mediatek,mt76";
117 reg = <0x0000 0 0 0 0>;
118 nvmem-cells = <&eeprom_factory_8000>;
119 nvmem-cell-names = "eeprom";
120 ieee80211-freq-limit = <5000000 6000000>;
121 };
122 };
123
124 &gmac0 {
125 nvmem-cells = <&macaddr_factory_e000 0>;
126 nvmem-cell-names = "mac-address";
127 };
128
129 &gmac1 {
130 status = "okay";
131 label = "wan";
132 phy-handle = <&ethphy4>;
133
134 nvmem-cells = <&macaddr_factory_e000 1>;
135 nvmem-cell-names = "mac-address";
136 };
137
138 &mdio {
139 ethphy4: ethernet-phy@4 {
140 reg = <4>;
141 };
142 };
143
144 &switch0 {
145 ports {
146 port@0 {
147 status = "okay";
148 label = "lan1";
149 };
150
151 port@1 {
152 status = "okay";
153 label = "lan2";
154 };
155
156 port@2 {
157 status = "okay";
158 label = "lan3";
159 };
160
161 port@3 {
162 status = "okay";
163 label = "lan4";
164 };
165 };
166 };
167
168 &state_default {
169 gpio {
170 groups = "i2c", "wdt";
171 function = "gpio";
172 };
173 };