ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / RT5350F-OLINUXINO-EVB.dts
index 6c45d7a56e379ac9cb57d4262d92b0179b02a5f5..7811ee20d7616b7b1bd12e05ad2e84f9c4e75f99 100644 (file)
@@ -2,8 +2,10 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "RT5350F-OLINUXINO-EVB", "ralink,rt5350-soc";
+       compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc";
        model = "Olimex RT5350F-OLinuXino-EVB";
 
        gpio_export {
                relay1 {
                        gpio-export,name = "relay1";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
                relay2 {
                        gpio-export,name = "relay2";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                button {
                        gpio-export,name = "button";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -37,7 +39,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "s25fl064k";
                spi-max-frequency = <10000000>;
 
                partition@0 {
@@ -60,7 +61,7 @@
 
                partition@50000 {
                        label = "firmware";
-                       reg = <0x50000 0x3b0000>;
+                       reg = <0x50000 0x7b0000>;
                };
        };
 };