ramips: add support for D-Link DAP-1522 A1
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ALL5003.dts
index 432dd516ff2f16e7d8f8c269803cb623fb02907a..a740455ae054900847c3219c296bc45a73a957a5 100644 (file)
@@ -2,13 +2,19 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ALL5003", "ralink,rt5350-soc";
+       compatible = "allnet,all5003", "ralink,rt5350-soc";
        model = "Allnet ALL5003";
 
        i2c-gpio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                compatible = "i2c-gpio";
-               gpios = <&gpio0 1 0 &gpio0 2 0>;
+               gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
                i2c-gpio,delay-us = <10>;
 
                pcf0: iexp@38 {
 
                ld1 {
                        label = "all5003:green:ld1";
-                       gpios = <&pcf0 0 1>;
+                       gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
                };
 
                ld2 {
                        label = "all5003:green:ld2";
-                       gpios = <&pcf0 1 1>;
+                       gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -51,7 +57,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l25635e";
                spi-max-frequency = <10000000>;
 
                partition@0 {