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

View File

@ -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>;
};
};

View File

@ -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>;
};
};

View File

@ -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>;
};

View File

@ -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>;
};