ramips: fix Gigabit Ethernet port of the HiWiFi HC5861
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_edimax_ew-7476rpc.dts
index eb326ccbd871904d42fa6d32c1529c38d6378b03..e4fc2d03e45c16f3f2505675433efda8ee754c6d 100644 (file)
@@ -1,47 +1,43 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
-/dts-v1/;
-
 #include "mt7620a_edimax_ew-747x.dtsi"
 
 / {
        compatible = "edimax,ew-7476rpc", "ralink,mt7620a-soc";
        model = "Edimax EW-7476RPC";
 
-       leds {
-               compatible = "gpio-leds";
-
-               led_power: power {
-                       label = "ew-7476rpc:green:power";
-                       gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
+       keys {
+               switch_high {
+                       label = "switch high";
+                       gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
-               lan {
-                       label = "ew-7476rpc:green:lan";
-                       gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
+               switch_off {
+                       label = "switch off";
+                       gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_1>;
+                       linux,input-type = <EV_SW>;
                };
+       };
 
+       leds {
                wlan2g {
-                       label = "ew-7476rpc:blue:wlan2g";
+                       label = "blue:wlan2g";
                        gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1radio";
                };
 
                wlan5g {
-                       label = "ew-7476rpc:blue:wlan5g";
+                       label = "blue:wlan5g";
                        gpios = <&gpio2 31 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0radio";
                };
 
-               wps {
-                       label = "ew-7476rpc:green:wps";
-                       gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
-               };
-
                crossband {
-                       label = "ew-7476rpc:green:crossband";
+                       label = "green:crossband";
                        gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
                };
        };
 };
-