Skip to content

Commit

Permalink
WIFI-14371 WF660A reset button for 5.4 kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Ken <[email protected]>
  • Loading branch information
Kenshi0000 authored and blogic committed Jan 27, 2025
1 parent 7ced0ea commit ed7e047
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,21 @@
drive-strength = <8>;
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 {
mux_0 {
Expand Down Expand Up @@ -373,6 +388,20 @@
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 {
compatible = "gpio-leds";
pinctrl-0 = <&led_pins>;
Expand Down

0 comments on commit ed7e047

Please sign in to comment.