ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_zyxel_nwa-ax.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 aliases {
8 label-mac-device = &gmac0;
9 };
10 };
11
12 &nand {
13 status = "okay";
14
15 mediatek,nmbm;
16 mediatek,bmt-max-ratio = <15>;
17 mediatek,bmt-max-reserved-blocks = <64>;
18 mediatek,bmt-remap-range =
19 <0x0 0x980000>,
20 <0x2980000 0x7800000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x80000>;
30 read-only;
31 };
32
33 partition@80000 {
34 label = "u-boot-env";
35 reg = <0x80000 0x80000>;
36 read-only;
37 };
38
39 partition@100000 {
40 label = "factory";
41 reg = <0x100000 0x80000>;
42 read-only;
43
44 nvmem-layout {
45 compatible = "fixed-layout";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 eeprom_factory_0: eeprom@0 {
50 reg = <0x0 0xe00>;
51 };
52
53 precal_factory_e10: precal@e10 {
54 reg = <0xe10 0x19c10>;
55 };
56 };
57 };
58
59 partition@180000 {
60 label = "firmware";
61 reg = <0x180000 0x2800000>;
62
63 /* This concatenates kernel1 & kernel2 & rootfs */
64
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "kernel";
71 reg = <0x0 0x800000>;
72 };
73
74 partition@400000 {
75 label = "ubi";
76 reg = <0x800000 0x2000000>;
77 };
78 };
79
80 partition@2980000 {
81 label = "zy_firmware_1";
82 reg = <0x2980000 0x2800000>;
83 read-only;
84 };
85
86 partition@5180000 {
87 label = "zy_rootfs_data";
88 reg = <0x5180000 0x1400000>;
89 read-only;
90 };
91
92 partition@6580000 {
93 label = "zy_logs";
94 reg = <0x6580000 0xd00000>;
95 read-only;
96 };
97
98 partition@7280000 {
99 label = "myzyxel";
100 reg = <0x7280000 0x480000>;
101 read-only;
102 };
103
104 partition@7700000 {
105 label = "bootconfig";
106 reg = <0x7700000 0x80000>;
107 };
108
109 partition@7780000 {
110 label = "mrd";
111 reg = <0x7780000 0x80000>;
112 read-only;
113
114 nvmem-layout {
115 compatible = "fixed-layout";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 macaddr_mrd_1fff8: macaddr@1fff8 {
120 reg = <0x1fff8 0x6>;
121 };
122 };
123 };
124 };
125 };
126
127 &pcie {
128 status = "okay";
129 };
130
131 &pcie1 {
132 wlan_5g: wifi@0,0 {
133 reg = <0x0 0 0 0 0>;
134 compatible = "mediatek,mt76";
135 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
136 nvmem-cell-names = "eeprom", "precal";
137 /* MAC-Address set in userspace */
138 };
139 };
140
141 &gmac0 {
142 nvmem-cells = <&macaddr_mrd_1fff8>;
143 nvmem-cell-names = "mac-address";
144 };
145
146 &switch0 {
147 ports {
148 port@4 {
149 status = "okay";
150 label = "lan";
151 };
152 };
153 };
154
155 &state_default {
156 gpio {
157 groups = "uart3";
158 function = "gpio";
159 };
160 };