ramips: fix Youku-YK1 support
[openwrt/openwrt.git] / target / linux / ramips / dts / YOUKU-YK1.dts
index dc9622ff7f3b546c1b2455c99740f0cee3dbe7b4..8c87981edfa4fcf3ffef4c50c96e0fabbb8c7a9f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
        model = "YOUKU YK1";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -62,8 +64,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "w25q256";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
@@ -94,7 +95,7 @@
 &pinctrl {
        state_default: pinctrl0 {
                default {
-                       ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
+                       ralink,group = "i2c", "rgmii1", "ephy", "wled";
                        ralink,function = "gpio";
                };
        };
 
 &ethernet {
        pinctrl-names = "default";
-       pinctrl-0 = <&ephy_pins>;
        mtd-mac-address = <&factory 0x4>;
        mediatek,portmap = "llllw";
 };