ramips: add support for ZyXEL LTE5398-M904
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-922-e2.dts
index ab38ad057713ca9c3237f0b2422950c1099d1737..22bff2c948a94d7d918b793f4e7129a65c007c53 100644 (file)
@@ -1,10 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7620n.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc";
                led-boot = &sstrengthg;
 
                sms {
-                       label = "dwr-922-e2:green:sms";
+                       label = "green:sms";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "dwr-922-e2:green:lan";
+                       label = "green:lan";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
 
                sstrengthg: sstrengthg {
-                       label = "dwr-922-e2:green:sigstrength";
+                       label = "green:sigstrength";
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                sstrengthr {
-                       label = "dwr-922-e2:red:sigstrength";
+                       label = "red:sigstrength";
                        gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                4g {
-                       label = "dwr-922-e2:green:4g";
+                       label = "green:4g";
                        gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
                3g {
-                       label = "dwr-922-e2:green:3g";
+                       label = "green:3g";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
-                       label = "dwr-922-e2:green:wifi";
+                       label = "green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
                        };
 
                        partition@10000 {
-                               compatible = "amit,jimage";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
+                               openwrt,offset = <0x10000>;
                                label = "firmware";
                                reg = <0x10000 0xfe0000>;
                        };
        status = "okay";
 };
 
-&ethernet {
-       port@4 {
-               status = "okay";
-       };
-};
-
-&pinctrl {
-       state_default: pinctrl0 {
-               default {
-                       ralink,group = "spi refclk", "i2c", "ephy", "wled";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       default {
+               groups = "spi refclk", "i2c", "ephy", "wled";
+               function = "gpio";
        };
 };