ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4a-common.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_status_yellow;
11 led-failsafe = &led_status_yellow;
12 led-running = &led_status_blue;
13 led-upgrade = &led_status_yellow;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200n8";
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <50000000>;
38 m25p,fast-read;
39
40 partitions: partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 partition@40000 {
58 label = "Bdata";
59 reg = <0x40000 0x10000>;
60 read-only;
61 };
62
63 partition@50000 {
64 label = "factory";
65 reg = <0x50000 0x10000>;
66 read-only;
67
68 nvmem-layout {
69 compatible = "fixed-layout";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 eeprom_factory_0: eeprom@0 {
74 reg = <0x0 0x400>;
75 };
76
77 eeprom_factory_8000: eeprom@8000 {
78 reg = <0x8000 0x200>;
79 };
80
81 macaddr_factory_e000: macaddr@e000 {
82 reg = <0xe000 0x6>;
83 };
84
85 macaddr_factory_e006: macaddr@e006 {
86 reg = <0xe006 0x6>;
87 };
88 };
89 };
90
91 partition@60000 {
92 label = "crash";
93 reg = <0x60000 0x10000>;
94 read-only;
95 };
96
97 partition@70000 {
98 label = "cfg_bak";
99 reg = <0x70000 0x10000>;
100 read-only;
101 };
102
103 partition@80000 {
104 label = "overlay";
105 reg = <0x80000 0x100000>;
106 read-only;
107 };
108
109 partition@180000 {
110 compatible = "denx,uimage";
111 label = "firmware";
112 reg = <0x180000 0xe80000>;
113 };
114 };
115 };
116 };
117
118 &pcie {
119 status = "okay";
120 };
121
122 &pcie0 {
123 wifi0: wifi@0,0 {
124 compatible = "mediatek,mt76";
125 reg = <0x0000 0 0 0 0>;
126 };
127 };
128
129 &pcie1 {
130 wifi1: wifi@0,0 {
131 compatible = "mediatek,mt76";
132 reg = <0x0000 0 0 0 0>;
133 };
134 };
135
136 &gmac0 {
137 nvmem-cells = <&macaddr_factory_e000>;
138 nvmem-cell-names = "mac-address";
139 };
140
141 &state_default {
142 gpio {
143 groups = "jtag", "uart2", "uart3", "wdt";
144 function = "gpio";
145 };
146 };