ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_linksys_e5400.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.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 = "linksys,e5400", "mediatek,mt7628an-soc";
11 model = "Linksys E5400";
12
13 aliases {
14 led-boot = &led_wps;
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = &ethernet;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 led_wps: wps {
50 function = LED_FUNCTION_WPS;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <40000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86
87 nvmem-layout {
88 compatible = "fixed-layout";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 eeprom_factory_0: eeprom@0 {
93 reg = <0x0 0x400>;
94 };
95
96 eeprom_factory_8000: eeprom@8000 {
97 reg = <0x8000 0x200>;
98 };
99
100 macaddr_factory_28: macaddr@28 {
101 compatible = "mac-base";
102 reg = <0x28 0x6>;
103 #nvmem-cell-cells = <1>;
104 };
105 };
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x50000 0xfa0000>;
112 };
113
114 partition@ff0000 {
115 label = "cbtinfo";
116 reg = <0xff0000 0x10000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &ehci {
124 status = "disabled";
125 };
126
127 &esw {
128 mediatek,portmap = <0x2f>;
129 mediatek,portdisable = <0x20>;
130 };
131
132 &ethernet {
133 nvmem-cells = <&macaddr_factory_28 0>;
134 nvmem-cell-names = "mac-address";
135 };
136
137 &ohci {
138 status = "disabled";
139 };
140
141 &pcie {
142 status = "okay";
143 };
144
145 &pcie0 {
146 wifi5: wifi@0,0 {
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 ieee80211-freq-limit = <5000000 6000000>;
150
151 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 3>;
152 nvmem-cell-names = "eeprom", "mac-address";
153 };
154 };
155
156 &state_default {
157 gpio {
158 group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an";
159 function = "gpio";
160 };
161 };
162
163 &usbphy {
164 status = "disabled";
165 };
166
167 &wmac {
168 status = "okay";
169
170 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 2>;
171 nvmem-cell-names = "eeprom", "mac-address";
172 };
173