From: Aleksander Jan Bajkowski Date: Sat, 23 May 2026 10:18:55 +0000 (+0200) Subject: arm64: dts: mediatek: add LED and key support on Xiaomi AX3000T X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9897c586b09f79ebcf2e67a888743c046b20d254;p=thirdparty%2Fkernel%2Flinux.git arm64: dts: mediatek: add LED and key support on Xiaomi AX3000T This patch adds support for keys and LEDs on the Xiaomi AX3000T. Signed-off-by: Aleksander Jan Bajkowski Signed-off-by: AngeloGioacchino Del Regno --- diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts b/arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts index a314c3e05e50..db399cb3ead7 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts +++ b/arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts @@ -1,6 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-only OR MIT /dts-v1/; +#include +#include +#include #include "mt7981b.dtsi" @@ -12,4 +15,37 @@ reg = <0 0x40000000 0 0x10000000>; device_type = "memory"; }; + + keys { + compatible = "gpio-keys"; + + key-mesh { + label = "MESH"; + gpios = <&pio 0 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + + key-reset { + label = "RESET"; + gpios = <&pio 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&pio 9 GPIO_ACTIVE_LOW>; + }; + + led-1 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&pio 10 GPIO_ACTIVE_LOW>; + }; + }; };