ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_dlink_dap-1325-a1.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 = "dlink,dap-1325-a1", "mediatek,mt7628an-soc";
11 model = "D-Link DAP-1325 A1";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_green;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_status_red: status_red {
24 function = LED_FUNCTION_STATUS;
25 color = <LED_COLOR_ID_RED>;
26 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
27 };
28
29 led_status_green: status_green {
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 };
34
35 wifi-high {
36 label = "green:wifi-high";
37 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
38 };
39
40 wifi-mid {
41 label = "green:wifi-mid";
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
43 };
44
45 wifi-low {
46 label = "green:wifi-low";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 };
49
50 wifi-verylow {
51 label = "red:wifi-verylow";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 };
54 };
55
56 keys {
57 compatible = "gpio-keys";
58
59 wps {
60 label = "wps";
61 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 };
64
65 reset {
66 label = "reset";
67 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
69 };
70 };
71 };
72
73 &state_default {
74 gpio {
75 groups = "refclk", "gpio", "wled_an", "i2s", "uart1", "wdt";
76 function = "gpio";
77 };
78 };
79
80 &ethernet {
81 nvmem-cells = <&macaddr_factory_28>;
82 nvmem-cell-names = "mac-address";
83 };
84
85 &wmac {
86 status = "okay";
87
88 nvmem-cells = <&eeprom_factory_0>;
89 nvmem-cell-names = "eeprom";
90
91 nvmem-cells = <&macaddr_factory_28>;
92 nvmem-cell-names = "mac-address";
93 };
94
95 &spi0 {
96 status = "okay";
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 spi-max-frequency = <50000000>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "u-boot";
110 reg = <0x0 0x30000>;
111 read-only;
112 };
113
114 partition@30000 {
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
117 read-only;
118 };
119
120 partition@40000 {
121 label = "factory";
122 reg = <0x40000 0x10000>;
123 read-only;
124
125 nvmem-layout {
126 compatible = "fixed-layout";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 eeprom_factory_0: eeprom@0 {
131 reg = <0x0 0x400>;
132 };
133
134 macaddr_factory_28: macaddr@28 {
135 reg = <0x28 0x6>;
136 };
137 };
138 };
139
140 partition@50000 {
141 compatible = "denx,uimage";
142 label = "firmware";
143 reg = <0x50000 0x7b0000>;
144 };
145 };
146 };
147 };