ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WE826.dtsi
index 02d546cfc66a4389572c982c4625f2a447b40ea3..dcfcb8500be95d2b98e025504c473ffe17c12d58 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
                compatible = "gpio-leds";
                power {
                        label = "zbt-we826:green:power";
-                       gpios = <&gpio1 14 0>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
                usb {
                        label = "zbt-we826:green:usb";
-                       gpios = <&gpio1 15 0>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
                air {
                        label = "zbt-we826:green:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +33,7 @@
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        status = "okay";
 };
 
-&spi0 {
-       status = "okay";
-
-       en25q128@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <10000000>;
-
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               firmware: partition@50000 {
-                       label = "firmware";
-               };
-       };
-};
-
 &sdhci {
        status = "okay";
 };