ramips: Unielec u7621-01: remove invalid led status
[openwrt/staging/mans0n.git] / target / linux / ramips / dts / mt7621_unielec_u7621-01.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "unielec,u7621-01", "mediatek,mt7621-soc";
11
12 gpio-export {
13 compatible = "gpio-export";
14 #size-cells = <0>;
15
16 modem_reset {
17 gpio-export,name = "modem_reset";
18 gpio-export,output = <1>;
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20 };
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32 };
33
34 &pcie {
35 status = "okay";
36 };
37
38 &pcie1 { // MT7603EN
39 wifi@0,0 {
40 compatible = "mediatek,mt76";
41 reg = <0x0000 0 0 0 0>;
42 nvmem-cells = <&eeprom_factory_0>;
43 nvmem-cell-names = "eeprom";
44
45 led {
46 led-active-low;
47 };
48 };
49 };
50
51 &pcie2 { // MT7612E
52 wifi@0,0 {
53 compatible = "mediatek,mt76";
54 reg = <0x0000 0 0 0 0>;
55 nvmem-cells = <&eeprom_factory_8000>;
56 nvmem-cell-names = "eeprom";
57 ieee80211-freq-limit = <5000000 6000000>;
58 };
59 };
60
61 &gmac1 {
62 status = "okay";
63 label = "wan";
64 phy-handle = <&ethphy0>;
65 };
66
67 &mdio {
68 ethphy0: ethernet-phy@0 {
69 reg = <0>;
70 };
71 };
72
73 &switch0 {
74 ports {
75 port@1 {
76 status = "okay";
77 label = "lan1";
78 };
79
80 port@2 {
81 status = "okay";
82 label = "lan2";
83 };
84
85 port@3 {
86 status = "okay";
87 label = "lan3";
88 };
89
90 port@4 {
91 status = "okay";
92 label = "lan4";
93 };
94 };
95 };
96
97 &state_default {
98 gpio {
99 groups = "jtag", "uart2", "wdt";
100 function = "gpio";
101 };
102 };