ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_glinet_gl-mt300n.dts
index a30792cacea90d28f59f5e2aed7f7e290ae8df3f..575566c5fa6430b11817de86074b07833427dd13 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7620a.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -9,6 +7,10 @@
        compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc";
        model = "GL-MT300N";
 
+       aliases {
+               label-mac-device = &wmac;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -33,8 +35,8 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
-&gpio1 {
-       status = "okay";
-};
-
 &gpio2 {
        status = "okay";
 };
@@ -74,7 +68,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 
 &ethernet {
        mtd-mac-address = <&factory 0x4000>;
+
        mediatek,portmap = "wllll";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "wled","ephy","i2c";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "wled","ephy","i2c";
+               function = "gpio";
        };
 };