uboot-mediatek: fix factory/reset button
[openwrt/staging/dedeckeh.git] / package / boot / uboot-mediatek / patches / 431-add-xiaomi_redmi-ax6000.patch
index 56c60ff438802f3f96dd99fea43605e414f2f5c0..2d3f1aabea0e4eb61e50dcb8bed16946f495fb68 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7986a-xiaomi_redmi-ax6000.dts
-@@ -0,0 +1,153 @@
+@@ -0,0 +1,156 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2021 MediaTek Inc.
 + */
 +
 +/dts-v1/;
++#include <dt-bindings/input/linux-event-codes.h>
 +#include "mt7986.dtsi"
 +#include <dt-bindings/gpio/gpio.h>
 +
 +              factory {
 +                      label = "reset";
 +                      gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
++                      linux,code = <KEY_RESTART>;
 +              };
 +              mesh {
 +                      label = "mesh";
 +                      gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
++                      linux,code = <KEY_WPS_BUTTON>;
 +              };
 +      };
 +};