filogic: fixes huasifei wh3000 led

This commit is contained in:
coolsnowwolf 2025-01-07 23:36:28 +08:00
parent 424c43cafd
commit f4a80a4ce1
2 changed files with 7 additions and 7 deletions

View File

@ -9,15 +9,15 @@
#include "mt7981.dtsi" #include "mt7981.dtsi"
/ { / {
model = "HUASIFEI WH3000 eMMC version"; model = "Huasifei WH3000 eMMC";
compatible = "huasifei,wh3000-emmc", "mediatek,mt7981"; compatible = "huasifei,wh3000-emmc", "mediatek,mt7981";
aliases { aliases {
serial0 = &uart0; serial0 = &uart0;
led-boot = &led_sys_red; led-boot = &led_sys_red;
led-failsafe = &led_sys_red; led-failsafe = &led_sys_red;
led-running = &led_sys_white; led-running = &led_sys_green;
led-upgrade = &led_sys_white; led-upgrade = &led_sys_green;
}; };
chosen { chosen {
@ -47,14 +47,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_sys_red: led-0 { led_sys_red: led-0 {
function = LED_FUNCTION_POWER; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>; color = <LED_COLOR_ID_RED>;
gpios = <&pio 11 GPIO_ACTIVE_LOW>; gpios = <&pio 11 GPIO_ACTIVE_LOW>;
}; };
led_sys_white: led-1 { led_sys_green: led-1 {
function = LED_FUNCTION_STATUS; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_WHITE>; color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>; gpios = <&pio 10 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -461,7 +461,7 @@ endef
TARGET_DEVICES += h3c_magic-nx30-pro TARGET_DEVICES += h3c_magic-nx30-pro
define Device/huasifei_wh3000-emmc define Device/huasifei_wh3000-emmc
DEVICE_VENDOR := HUASIFEI DEVICE_VENDOR := Huasifei
DEVICE_MODEL := WH3000 eMMC DEVICE_MODEL := WH3000 eMMC
DEVICE_DTS := mt7981b-huasifei-wh3000-emmc DEVICE_DTS := mt7981b-huasifei-wh3000-emmc
DEVICE_DTS_DIR := ../dts DEVICE_DTS_DIR := ../dts