ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_netgear_wac104.dts
1 // SPDX-License-Identifier: GPL-2.0-only 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 compatible = "netgear,wac104", "mediatek,mt7621-soc";
10 model = "Netgear WAC104";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 wps {
24 label = "wps";
25 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28
29 wifi {
30 label = "wifi";
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
33 };
34
35 reset {
36 label = "reset";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 wps {
46 label = "green:wps";
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 };
49
50 led_power: power {
51 label = "green:power";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 };
54
55 wifi {
56 label = "green:wifi";
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
59 };
60 };
61 };
62
63 &gmac0 {
64 mtd-mac-address = <&factory 0x4>;
65 };
66
67 &nand {
68 status = "okay";
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x100000>;
78 read-only;
79 };
80
81 partition@100000 {
82 label = "SC PID";
83 reg = <0x100000 0x100000>;
84 read-only;
85 };
86
87 partition@200000 {
88 label = "kernel";
89 reg = <0x200000 0x400000>;
90 };
91
92 partition@600000 {
93 label = "ubi";
94 reg = <0x600000 0x1c00000>;
95 };
96
97 factory: partition@2e00000 {
98 label = "factory";
99 reg = <0x2e00000 0x100000>;
100 read-only;
101 };
102
103 partition@4200000 {
104 label = "reserved";
105 reg = <0x4200000 0x3c00000>;
106 read-only;
107 };
108 };
109 };
110
111 &pcie {
112 status = "okay";
113 };
114
115 &pcie0 {
116 wifi@0,0 {
117 compatible = "mediatek,mt76";
118 reg = <0x0 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x8000>;
120 ieee80211-freq-limit = <5000000 6000000>;
121 };
122 };
123
124 &pcie1 {
125 wifi@0,0 {
126 compatible = "mediatek,mt76";
127 reg = <0x0 0 0 0 0>;
128 mediatek,mtd-eeprom = <&factory 0x0>;
129 ieee80211-freq-limit = <2400000 2500000>;
130 };
131 };
132
133 &state_default {
134 gpio {
135 groups = "uart3", "jtag", "wdt";
136 function = "gpio";
137 };
138 };
139
140 &switch0 {
141 ports {
142 port@0 {
143 status = "okay";
144 label = "lan4";
145 };
146
147 port@1 {
148 status = "okay";
149 label = "lan3";
150 };
151
152 port@2 {
153 status = "okay";
154 label = "lan2";
155 };
156
157 port@3 {
158 status = "okay";
159 label = "lan1";
160 };
161 };
162 };
163
164 &xhci {
165 status = "disabled";
166 };