1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00

ramips: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2024-02-07 14:48:43 +01:00
parent b7a7a793b1
commit 7630c052c4
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
26 changed files with 0 additions and 75 deletions

@ -31,14 +31,12 @@
compatible = "gpio-leds";
wifi_led: 2.4g {
label = "green:wlan";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // #72
};
wps_led: wps {
label = "green:wps";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; // #39

@ -37,7 +37,6 @@
compatible = "gpio-leds";
led_power: power {
label = "green:power";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
@ -45,14 +44,12 @@
// RALINK_REG_PIO3924DATA 39-24
led_internet: internet {
label = "green:internet";
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
// RALINK_REG_PIO7140DATA 44-40
led_wlan_2_4ghz: wlan_2_4ghz {
label = "green:wlan2g";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
@ -61,7 +58,6 @@
// RALINK_REG_PIO7140DATA 43-40
led_wlan_5ghz: wlan_5ghz {
label = "green:wlan5g";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
@ -70,7 +66,6 @@
// RALINK_REG_PIO7140DATA 42-40
led_firmware: firmware {
label = "green:firmware";
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
// default-state = "keep";
@ -78,7 +73,6 @@
// RALINK_REG_PIO7140DATA 41-40
led_vpn: vpn {
label = "green:vpn";
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
};

@ -22,7 +22,6 @@
compatible = "gpio-leds";
led_status: led-0 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;

@ -21,7 +21,6 @@
compatible = "gpio-leds";
led_sys: sys {
label = "green:sys";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // GPIO#38
@ -29,14 +28,12 @@
};
led_wps: wps {
label = "green:wps";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; // GPIO#39
};
wlan {
label = "green:wlan";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // GPIO#72

@ -55,14 +55,12 @@
compatible = "gpio-leds";
led_wan: wan {
label = "green:wan";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // #GPIO38
};
wifi {
label = "green:wifi";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; // #GPIO72

@ -42,42 +42,36 @@
compatible = "gpio-leds";
lan1 {
label = "green:lan1";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
};
lan2 {
label = "green:lan2";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "green:lan3";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "green:power";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wan_green {
label = "green:wan";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_wan_red: wan_red {
label = "red:wan";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;

@ -42,7 +42,6 @@
compatible = "gpio-leds";
led_power_green: power_green {
label = "green:power";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
@ -50,48 +49,41 @@
};
led_power_red: power_red {
label = "red:power";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_FAULT;
};
led_wifi_blue: wifi_blue {
label = "blue:wifi";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
};
led_wifi_green: wifi_green {
label = "green:wifi";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
};
led_wps_red: wps_red {
label = "red:wps";
gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_WPS;
};
led_wps_green: wps_green {
label = "green:wps";
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
};
led_followme_r: followme_red {
label = "red:followme";
gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_RED>;
};
led_followme_g: followme_green {
label = "green:followme";
gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
};

@ -27,14 +27,12 @@
compatible = "gpio-leds";
led_power: power {
label = "blue:power";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_POWER;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_usb {
label = "blue:usb";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_USB;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;

@ -27,7 +27,6 @@
compatible = "gpio-leds";
led_power: power {
label = "blue:power";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_POWER;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;

@ -18,21 +18,18 @@
compatible = "gpio-leds";
wps {
label = "red:wps";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_WPS;
};
led_power: power {
label = "white:power";
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_POWER;
};
wlan2g {
label = "white:wlan2g";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_WLAN;
@ -41,7 +38,6 @@
};
wlan5g {
label = "white:wlan5g";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_WLAN;

@ -39,14 +39,12 @@
compatible = "gpio-leds";
led_status_amber: led-0 {
label = "amber:status";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_status_green: led-1 {
label = "green:status";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;

@ -40,21 +40,18 @@
compatible = "gpio-leds";
led_status_blue: led-0 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_green: led-1 {
label = "green:status";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_red: led-2 {
label = "red:status";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;

@ -25,28 +25,24 @@
compatible = "gpio-leds";
led_status_green: led-0 {
label = "green:status";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};
led_status_red: led-1 {
label = "red:status";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};
led-2 {
label = "green:wps_wifi";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
};
led-3 {
label = "green:power";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
@ -54,14 +50,12 @@
};
led-4 {
label = "green:router";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
};
led-5 {
label = "green:internet";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;

@ -21,7 +21,6 @@
compatible = "gpio-leds";
led_cpu: led-0 {
label = "amber:cpu";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_CPU;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;

@ -21,7 +21,6 @@
compatible = "gpio-leds";
led_cpu: led-0 {
label = "amber:cpu";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_CPU;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;

@ -21,7 +21,6 @@
compatible = "gpio-leds";
led_cpu: led-0 {
label = "blue:cpu";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_CPU;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;

@ -13,14 +13,12 @@
compatible = "gpio-leds";
led_sys: led-0 {
label = "green:sys";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
led_vpn: led-1 {
label = "green:vpn";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;

@ -20,21 +20,18 @@
compatible = "gpio-leds";
led_sys: sys {
label = "green:sys";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
vpn {
label = "green:vpn";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
usb {
label = "green:usb";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;

@ -41,7 +41,6 @@
compatible = "gpio-leds";
led_power: led-power {
label = "green:power";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;

@ -22,7 +22,6 @@
compatible = "gpio-leds";
led_status: status {
label = "white:status";
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;

@ -26,7 +26,6 @@
compatible = "gpio-leds";
led_status: status {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;

@ -26,7 +26,6 @@
compatible = "gpio-leds";
led_status: status {
label = "white:status";
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;

@ -29,14 +29,12 @@
compatible = "gpio-leds";
led_usb: usb {
label = "green:usb";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
led_power: power {
label = "green:power";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
@ -44,7 +42,6 @@
};
led_system: system {
label = "green:system";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;

@ -82,7 +82,6 @@
};
led_power: led-power {
label = "green:power"; // to be removed once #13837 is merged
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;

@ -26,28 +26,24 @@
compatible = "gpio-leds";
led_status_red: led-0 {
label = "red:status";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: led-1 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: led-2 {
label = "yellow:status";
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
led-3 {
label = "amber:wan";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
@ -55,7 +51,6 @@
};
led-4 {
label = "amber:lan3";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <3>;
@ -64,7 +59,6 @@
};
led-5 {
label = "amber:lan2";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;
@ -73,7 +67,6 @@
};
led-6 {
label = "amber:lan1";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;

@ -17,28 +17,24 @@
compatible = "gpio-leds";
led_status_red: led-0 {
label = "red:status";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: led-1 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: led-2 {
label = "yellow:status";
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
led-3 {
label = "amber:wan";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
@ -46,7 +42,6 @@
};
led-4 {
label = "amber:lan1";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
@ -55,7 +50,6 @@
};
led-5 {
label = "amber:lan2";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;