ramips: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_ayx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mediatek,mt7621-soc";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &gmac0;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wps {
23 label = "wps";
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 wifi {
29 label = "wifi";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 label = "green:power";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
47 };
48
49 usb {
50 label = "green:usb";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
53 linux,default-trigger = "usbport";
54 };
55
56 internet {
57 label = "green:wan";
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 };
60
61 wifi {
62 label = "green:wifi";
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
65 };
66
67 wps {
68 label = "green:wps";
69 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
70 };
71 };
72
73 reg_usb_vbus: regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "usb_vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
79 enable-active-high;
80 };
81 };
82
83 &xhci {
84 vbus-supply = <&reg_usb_vbus>;
85 };
86
87 &pcie {
88 status = "okay";
89 };
90
91 &pcie0 {
92 wifi@0,0 {
93 compatible = "mediatek,mt76";
94 reg = <0x0 0 0 0 0>;
95 mediatek,mtd-eeprom = <&factory 0x8000>;
96 ieee80211-freq-limit = <5000000 6000000>;
97 };
98 };
99
100 &pcie1 {
101 wifi@0,0 {
102 compatible = "mediatek,mt76";
103 reg = <0x0 0 0 0 0>;
104 mediatek,mtd-eeprom = <&factory 0x0>;
105 ieee80211-freq-limit = <2400000 2500000>;
106 };
107 };
108
109 &gmac0 {
110 mtd-mac-address = <&factory 0x4>;
111 };
112
113 &switch0 {
114 ports {
115 port@0 {
116 status = "okay";
117 label = "lan4";
118 };
119
120 port@1 {
121 status = "okay";
122 label = "lan3";
123 };
124
125 port@2 {
126 status = "okay";
127 label = "lan2";
128 };
129
130 port@3 {
131 status = "okay";
132 label = "lan1";
133 };
134
135 port@4 {
136 status = "okay";
137 label = "wan";
138 mtd-mac-address = <&factory 0x4>;
139 mtd-mac-address-increment = <1>;
140 };
141 };
142 };
143
144 &state_default {
145 gpio {
146 groups = "uart3", "uart2", "jtag", "wdt";
147 function = "gpio";
148 };
149 };