This patch addresses several issues for D-Link DIR-810L:
- add correct button codes
- harmonize button node names
- use generic flash@0
- remove unused pin groups from state_default
- improve sorting of properties
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
leds {
compatible = "gpio-leds";
};
};
leds {
compatible = "gpio-leds";
- led_power_green: power {
+ led_power_green: power_green {
label = "dir-810l:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
label = "dir-810l:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
- ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
+ ralink,group = "i2c", "uartf";
ralink,function = "gpio";
};
};
ralink,function = "gpio";
};
};
- mediatek,port4 = "ephy";
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
+
+ mediatek,port4 = "ephy";
- ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
+
+ ralink,mtd-eeprom = <&factory 0x0>;
mtd-mac-address = <&factory 0x28>;
};
mtd-mac-address = <&factory 0x28>;
};