ramips: replace pinctrl property names
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_dlink_dir-810l.dts
index 0b1ca26ba433a003fd13b4295e5a7c9a8fd0fb8b..9e60b42f71bcb4ff1fb5a366c26aa16236ff9077 100644 (file)
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
        leds {
                compatible = "gpio-leds";
 
-               led_power_green: power {
+               led_power_green: power_green {
                        label = "dir-810l:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
@@ -46,7 +46,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
-               power2 {
+               power_orange {
                        label = "dir-810l:orange:power";
                        gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
 
 &state_default {
        gpio {
-               ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
-               ralink,function = "gpio";
+               groups = "i2c", "uartf";
+               function = "gpio";
        };
 };
 
 };
 
 &gsw {
-       mediatek,port4 = "ephy";
        pinctrl-names = "default";
        pinctrl-0 = <&ephy_pins>;
+
+       mediatek,port4 = "ephy";
 };
 
 &pcie {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
        pinctrl-names = "default";
        pinctrl-0 = <&pa_pins>;
+
+       ralink,mtd-eeprom = <&factory 0x0>;
        mtd-mac-address = <&factory 0x28>;
 };