mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-31 18:38:10 +00:00
WIFI-14371 WF660A reset button for 5.4 kernel
Signed-off-by: Ken <xshi@actiontec.com>
This commit is contained in:
@@ -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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user