ramips: remove model name from LED labels
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_dlink_dir-8xx-a1.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &gmac0;
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_net_orange;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31
32 wifi {
33 label = "wifi";
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RFKILL>;
36 };
37 };
38
39 leds: leds {
40 compatible = "gpio-leds";
41
42 led_power_orange: power_orange {
43 label = "orange:power";
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 };
46
47 led_power_green: power_green {
48 label = "green:power";
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
50 };
51
52 led_net_orange: net_orange {
53 label = "orange:net";
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 };
56
57 net_green {
58 label = "green:net";
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &spi0 {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <50000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "u-boot-env";
85 reg = <0x30000 0x10000>;
86 read-only;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x20000>;
92 read-only;
93 };
94
95 partition@60000 {
96 compatible = "sge,uimage";
97 label = "firmware";
98 reg = <0x60000 0xfa0000>;
99 };
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106 };
107
108 &pcie0 {
109 wifi@0,0 {
110 compatible = "mediatek,mt76";
111 reg = <0x0000 0 0 0 0>;
112 mediatek,mtd-eeprom = <&factory 0x0000>;
113 ieee80211-freq-limit = <2400000 2500000>;
114
115 led {
116 led-active-low;
117 };
118 };
119 };
120
121 &pcie1 {
122 wifi@0,0 {
123 compatible = "mediatek,mt76";
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x8000>;
126 ieee80211-freq-limit = <5000000 6000000>;
127
128 led {
129 led-active-low;
130 };
131 };
132 };
133
134 &gmac0 {
135 mtd-mac-address = <&factory 0xe000>;
136 };
137
138 &switch0 {
139 ports {
140 port@0 {
141 status = "okay";
142 label = "lan4";
143 };
144
145 port@1 {
146 status = "okay";
147 label = "lan3";
148 };
149
150 port@2 {
151 status = "okay";
152 label = "lan2";
153 };
154
155 port@3 {
156 status = "okay";
157 label = "lan1";
158 };
159
160 port@4 {
161 status = "okay";
162 label = "wan";
163 mtd-mac-address = <&factory 0xe006>;
164 };
165 };
166 };
167
168 &state_default {
169 gpio {
170 groups = "i2c", "uart3", "jtag", "wdt";
171 function = "gpio";
172 };
173 };