mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 03:14:50 +00:00
mvebu: 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
9d93b6d091
commit
0b8746ec10
@ -12,6 +12,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 "armada-385.dtsi"
|
#include "armada-385.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
@ -86,7 +87,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
usb {
|
usb {
|
||||||
label = "blue:usb";
|
function = LED_FUNCTION_USB;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
|
||||||
trigger-sources = <&usb3_0_port1 &usb3_0_port2>;
|
trigger-sources = <&usb3_0_port1 &usb3_0_port2>;
|
||||||
linux,default-trigger = "usbport";
|
linux,default-trigger = "usbport";
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#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 "armada-372x.dtsi"
|
#include "armada-372x.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
@ -63,12 +64,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
wan {
|
wan {
|
||||||
label = "green:wan";
|
function = LED_FUNCTION_WAN;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
|
gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_power: power {
|
led_power: power {
|
||||||
label = "green:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
|
gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
|
||||||
default-state = "on";
|
default-state = "on";
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,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 = "iEi Puzzle-M901";
|
model = "iEi Puzzle-M901";
|
||||||
@ -96,7 +97,8 @@
|
|||||||
|
|
||||||
led_power: led@3 {
|
led_power: led@3 {
|
||||||
reg = <3>;
|
reg = <3>;
|
||||||
label = "yellow:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_YELLOW>;
|
||||||
active-low;
|
active-low;
|
||||||
default-state = "on";
|
default-state = "on";
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,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 = "iEi Puzzle-M902";
|
model = "iEi Puzzle-M902";
|
||||||
@ -141,7 +142,8 @@
|
|||||||
|
|
||||||
led_power: led@3 {
|
led_power: led@3 {
|
||||||
reg = <3>;
|
reg = <3>;
|
||||||
label = "yellow:power";
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_YELLOW>;
|
||||||
active-low;
|
active-low;
|
||||||
default-state = "on";
|
default-state = "on";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user