ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_cameo_810.dtsi
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
9 / {
10 aliases {
11 label-mac-device = &ethernet;
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power_green: power_green {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
41 };
42
43 wan_orange {
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_ORANGE>;
46 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
47 };
48
49 wan_green {
50 function = LED_FUNCTION_WAN;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
53 };
54
55 power_orange {
56 function = LED_FUNCTION_POWER;
57 color = <LED_COLOR_ID_ORANGE>;
58 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
59 };
60 };
61 };
62
63 &spi0 {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <50000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 eeprom_factory_0: eeprom@0 {
99 reg = <0x0 0x200>;
100 };
101
102 eeprom_factory_8000: eeprom@8000 {
103 reg = <0x8000 0x200>;
104 };
105
106 macaddr_factory_28: macaddr@28 {
107 compatible = "mac-base";
108 reg = <0x28 0x6>;
109 #nvmem-cell-cells = <1>;
110 };
111 };
112 };
113
114 partition@50000 {
115 label = "factory5g";
116 reg = <0x50000 0x10000>;
117 read-only;
118 };
119
120 partition@60000 {
121 label = "Wolf_Config";
122 reg = <0x60000 0x10000>;
123 read-only;
124 };
125
126 partition@70000 {
127 label = "MyDlink";
128 reg = <0x70000 0x80000>;
129 read-only;
130 };
131
132 partition@f0000 {
133 label = "Jffs2";
134 reg = <0xf0000 0x80000>;
135 read-only;
136 };
137
138 partition@170000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x170000 0x690000>;
142 };
143 };
144 };
145 };
146
147 &state_default {
148 gpio {
149 groups = "i2c", "uartf", "ephy";
150 function = "gpio";
151 };
152 };
153
154 &ethernet {
155 nvmem-cells = <&macaddr_factory_28 0>;
156 nvmem-cell-names = "mac-address";
157
158 mediatek,portmap = "llllw";
159 };
160
161 &gpio2 {
162 status = "okay";
163 };
164
165 &wmac {
166 pinctrl-names = "default", "pa_gpio";
167 pinctrl-0 = <&pa_pins>;
168 pinctrl-1 = <&pa_gpio_pins>;
169 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 0>;
170 nvmem-cell-names = "eeprom", "mac-address";
171 };
172
173 &pcie {
174 status = "okay";
175 };
176
177 &pcie0 {
178 wifi@0,0 {
179 reg = <0x0000 0 0 0 0>;
180 ieee80211-freq-limit = <5000000 6000000>;
181 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 2>;
182 nvmem-cell-names = "eeprom", "mac-address";
183 };
184 };