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

qualcommax: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

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

@ -8,6 +8,7 @@
#include "ipq8074-ess.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "Edgecore EAP102";
@ -64,7 +65,8 @@
};
led_system_green: led_system {
label = "green:power";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
};
};

@ -7,6 +7,7 @@
#include "ipq8074-ess.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "ZTE MF269";
@ -48,7 +49,8 @@
compatible = "gpio-leds";
led_power: power {
label = "white:power";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_WHITE>;
gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
};
};

@ -8,6 +8,7 @@
#include "ipq8074-ess.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "Arcadyan AW1000";
@ -109,7 +110,8 @@
compatible = "gpio-leds";
led_power: power {
label = "green:power";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
};

@ -5,6 +5,7 @@
#include "ipq8074-ess.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
/ {
@ -61,12 +62,14 @@
compatible = "gpio-leds";
led_power_amber: led_power {
label = "amber:power";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_AMBER>;
gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
};
led_lan {
label = "blue:lan";
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
};