ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tplink_eap613-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "tplink,eap613-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EAP613 v1";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_status: status {
29 color = <LED_COLOR_ID_BLUE>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44 };
45
46 &spi0 {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <20000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x80000>;
62 read-only;
63 };
64
65 partition@80000 {
66 label = "partition-table";
67 reg = <0x80000 0x10000>;
68 read-only;
69 };
70
71 partition@90000 {
72 label = "product-info";
73 reg = <0x90000 0x10000>;
74 read-only;
75
76 nvmem-layout {
77 compatible = "fixed-layout";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr: macaddr@8 {
82 reg = <0x8 0x6>;
83 };
84 };
85 };
86
87 partition@a0000 {
88 compatible = "denx,fit";
89 label = "firmware";
90 reg = <0xa0000 0xcf0000>;
91 };
92
93 partition@d90000 {
94 label = "user-config";
95 reg = <0xd90000 0x60000>;
96 read-only;
97 };
98
99 partition@f30000 {
100 label = "mutil-log";
101 reg = <0xf30000 0x80000>;
102 read-only;
103 };
104
105 partition@fb0000 {
106 label = "oops";
107 reg = <0xfb0000 0x40000>;
108 read-only;
109 };
110
111 partition@ff0000 {
112 label = "radio";
113 reg = <0xff0000 0x10000>;
114 read-only;
115
116 nvmem-layout {
117 compatible = "fixed-layout";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 eeprom_radio_0: eeprom@0 {
122 reg = <0x0 0xe00>;
123 };
124 };
125 };
126 };
127 };
128 };
129
130 &state_default {
131 gpio {
132 groups = "uart3";
133 function = "gpio";
134 };
135 };
136
137 &pcie {
138 status = "okay";
139 };
140
141 &pcie1 {
142 wifi@0,0 {
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_radio_0>;
146 nvmem-cell-names = "eeprom";
147 mediatek,disable-radar-background;
148 };
149 };
150
151 &gmac0 {
152 nvmem-cells = <&macaddr>;
153 nvmem-cell-names = "mac-address";
154 };
155
156 &switch0 {
157 ports {
158 port@0 {
159 status = "okay";
160 label = "lan";
161 };
162 };
163 };