mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
mpc85xx: 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
c9499decc4
commit
4589fa38c5
@ -1,6 +1,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later or MIT
|
// SPDX-License-Identifier: GPL-2.0-or-later or MIT
|
||||||
|
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/include/ "fsl/p1010si-pre.dtsi"
|
/include/ "fsl/p1010si-pre.dtsi"
|
||||||
@ -36,7 +37,8 @@
|
|||||||
|
|
||||||
status_red {
|
status_red {
|
||||||
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
|
||||||
label = "red:status";
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_RED>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_mode: mode_green {
|
led_mode: mode_green {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
/include/ "fsl/p1010si-pre.dtsi"
|
/include/ "fsl/p1010si-pre.dtsi"
|
||||||
|
|
||||||
@ -42,12 +43,14 @@
|
|||||||
|
|
||||||
led_power_green: power_green {
|
led_power_green: power_green {
|
||||||
gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
|
||||||
label = "green:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_power_red: power_red {
|
led_power_red: power_red {
|
||||||
gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
|
||||||
label = "red:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_RED>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lan1_red {
|
lan1_red {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Extreme Networks WS-AP3825i";
|
model = "Extreme Networks WS-AP3825i";
|
||||||
@ -47,12 +48,14 @@
|
|||||||
|
|
||||||
led_power_green: power_green {
|
led_power_green: power_green {
|
||||||
gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
|
||||||
label = "green:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_power_red: power_red {
|
led_power_red: power_red {
|
||||||
gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
|
||||||
label = "red:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_RED>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lan1_red {
|
lan1_red {
|
||||||
|
Loading…
Reference in New Issue
Block a user