mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00: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:
parent
2e659930d3
commit
b7a7a793b1
@ -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>;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user