ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_humax_e2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 compatible = "humax,e2", "ralink,mt7620a-soc";
12 model = "HUMAX E2";
13
14 aliases {
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 label-mac-device = &ethernet;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_power: power {
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
29 };
30
31 pairing {
32 label = "green:pairing";
33 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
34 };
35
36 wlan {
37 function = LED_FUNCTION_WLAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
40 };
41
42 lan {
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
46 };
47
48 wps {
49 function = LED_FUNCTION_WPS;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 reset {
59 label = "reset";
60 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63 };
64 };
65
66 &gpio1 {
67 status = "okay";
68 };
69
70 &spi0 {
71 status = "okay";
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <50000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x0 0x30000>;
86 read-only;
87 };
88
89 partition@30000 {
90 label = "u-boot-env";
91 reg = <0x30000 0x10000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "factory";
97 reg = <0x40000 0x30000>;
98 read-only;
99
100 nvmem-layout {
101 compatible = "fixed-layout";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 eeprom_factory_0: eeprom@0 {
106 reg = <0x0 0x200>;
107 };
108
109 eeprom_factory_8000: eeprom@8000 {
110 reg = <0x8000 0x200>;
111 };
112
113 macaddr_factory_10007: macaddr@10007 {
114 reg = <0x10007 0x6>;
115 };
116 };
117 };
118
119 partition@70000 {
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,offset = <FW_EDIMAX_OFFSET>;
122 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
123 label = "firmware";
124 reg = <0x70000 0x790000>;
125 };
126 };
127 };
128 };
129
130 &ethernet {
131 nvmem-cells = <&macaddr_factory_10007>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &pcie {
136 status = "okay";
137 };
138
139 &pcie0 {
140 wifi@0,0 {
141 compatible = "mediatek,mt76";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_8000>;
144 nvmem-cell-names = "eeprom";
145 ieee80211-freq-limit = <5000000 6000000>;
146 };
147 };
148
149 &wmac {
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";
152 };
153
154 &state_default {
155 gpio {
156 groups = "rgmii1";
157 function = "gpio";
158 };
159 };