WIFI-14371 WF660A reset button for 5.4 kernel

Signed-off-by: Ken <xshi@actiontec.com>
This commit is contained in:
Ken
2025-01-22 10:04:06 +08:00
committed by John Crispin
parent 7ced0ea2cc
commit ed7e047514

View File

@@ -160,6 +160,21 @@
bias-pull-up; bias-pull-up;
}; };
button_pins: button_pins {
wps_button {
pins = "gpio9";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
reset_button {
pins = "gpio19";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
};
mdio_pins: mdio_pinmux { mdio_pins: mdio_pinmux {
mux_0 { mux_0 {
pins = "gpio64"; pins = "gpio64";
@@ -373,6 +388,20 @@
mdiobus = <&mdio>; mdiobus = <&mdio>;
}; };
gpio_keys {
compatible = "gpio-keys";
pinctrl-0 = <&button_pins>;
pinctrl-names = "default";
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
debounce-interval = <60>;
};
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-0 = <&led_pins>; pinctrl-0 = <&led_pins>;