ramips: drop redundant label with new LED color/function format
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-we1026.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
8 / {
9 compatible = "zbtlink,zbt-we1026", "ralink,mt7620a-soc";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 reset {
19 label = "reset";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23 };
24
25 aliases {
26 label-mac-device = &wmac;
27 };
28 };
29
30 &spi0 {
31 status = "okay";
32
33 flash0: flash@0 {
34 compatible = "jedec,spi-nor";
35 reg = <0>;
36 spi-max-frequency = <10000000>;
37
38 partitions {
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 label = "u-boot";
45 reg = <0x0 0x30000>;
46 read-only;
47 };
48
49 partition@30000 {
50 label = "u-boot-env";
51 reg = <0x30000 0x10000>;
52 read-only;
53 };
54
55 factory: partition@40000 {
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 read-only;
59
60 nvmem-layout {
61 compatible = "fixed-layout";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 eeprom_factory_0: eeprom@0 {
66 reg = <0x0 0x200>;
67 };
68
69 eeprom_factory_8000: eeprom@8000 {
70 reg = <0x8000 0x200>;
71 };
72
73 macaddr_factory_28: macaddr@28 {
74 reg = <0x28 0x6>;
75 };
76 };
77 };
78
79 firmware: partition@50000 {
80 compatible = "denx,uimage";
81 label = "firmware";
82 };
83 };
84 };
85 };
86
87 &gpio2 {
88 status = "okay";
89 };
90
91 &gpio3 {
92 status = "okay";
93 };
94
95 &sdhci {
96 status = "okay";
97 };
98
99 &ehci {
100 status = "okay";
101 };
102
103 &ohci {
104 status = "okay";
105 };
106
107 &ethernet {
108 nvmem-cells = <&macaddr_factory_28>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &wmac {
113 nvmem-cells = <&eeprom_factory_0>;
114 nvmem-cell-names = "eeprom";
115 };
116
117 &state_default {
118 default {
119 groups = "i2c", "uartf", "spi refclk", "ephy", "wled";
120 function = "gpio";
121 };
122 };