ramips: fix devicetree compat strings
[openwrt/openwrt.git] / target / linux / ramips / dts / Y1.dtsi
index 25086b03390229578c03defa43cc96fe9f6f7df7..0db064576fc26c77a93cbd13c0f1e4074f17f88c 100644 (file)
@@ -1,6 +1,11 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
+       compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -13,8 +18,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -38,8 +43,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "w25q128";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 };
        
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pinctrl {
-       state_default {
+       state_default: pinctrl0 {
                gpio {
                        ralink,group = "uartf", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };