Hi,
On page https://openwrt.org/toh/d-link/d-link_dwr-118#buttons we have:
|Reset |reset |12|
|WPS |wps |13|
In dts file it's swaped (reset 13, wps 12): https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/dts/DWR-118-A1.dts
wps {
label = "wps";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
On my DWR-118 the wps button is well detected (although wps does not work), so I guess dts file is right?
Hope it helps.