ar71xx: unify LED names on D-Link boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29974 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
780aecc9ca
commit
4946900ecc
|
@ -51,17 +51,15 @@ get_status_led() {
|
||||||
db120)
|
db120)
|
||||||
status_led="db120:green:status"
|
status_led="db120:green:status"
|
||||||
;;
|
;;
|
||||||
dir-600-a1)
|
dir-600-a1 |\
|
||||||
status_led="dir-600-a1:green:power"
|
dir-615-e4)
|
||||||
|
status_led="d-link:green:power"
|
||||||
;;
|
;;
|
||||||
dir-615-c1)
|
dir-615-c1)
|
||||||
status_led="dir-615c1:green:status"
|
status_led="d-link:green:status"
|
||||||
;;
|
|
||||||
dir-615-e4)
|
|
||||||
status_led="dir-615-e4:green:power"
|
|
||||||
;;
|
;;
|
||||||
dir-825-b1)
|
dir-825-b1)
|
||||||
status_led="dir825b1:orange:power"
|
status_led="d-link:orange:power"
|
||||||
;;
|
;;
|
||||||
eap7660d)
|
eap7660d)
|
||||||
status_led="eap7660d:green:ds4"
|
status_led="eap7660d:green:ds4"
|
||||||
|
|
|
@ -119,15 +119,15 @@ rb750)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
dir-615-e4)
|
dir-615-e4)
|
||||||
set_led_netdev "wan" "WAN" "dir-615-e4:green:wan" "eth1"
|
set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
|
||||||
set_led_switch "lan1" "LAN1" "dir-615-e4:green:lan1" "switch0" "0x02"
|
set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
|
||||||
set_led_switch "lan2" "LAN2" "dir-615-e4:green:lan2" "switch0" "0x04"
|
set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
|
||||||
set_led_switch "lan3" "LAN3" "dir-615-e4:green:lan3" "switch0" "0x08"
|
set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
|
||||||
set_led_switch "lan4" "LAN4" "dir-615-e4:green:lan4" "switch0" "0x10"
|
set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
dir-825-b1)
|
dir-825-b1)
|
||||||
set_led_usbdev "usb" "USB" "dir825b1:blue:usb" "1-1"
|
set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
hornet-ub)
|
hornet-ub)
|
||||||
|
|
|
@ -80,13 +80,13 @@ static struct flash_platform_data dir_600_a1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_600_a1_leds_gpio[] __initdata = {
|
static struct gpio_led dir_600_a1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-600-a1:green:power",
|
.name = "d-link:green:power",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_POWER_GREEN,
|
.gpio = DIR_600_A1_GPIO_LED_POWER_GREEN,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-600-a1:amber:power",
|
.name = "d-link:amber:power",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_POWER_AMBER,
|
.gpio = DIR_600_A1_GPIO_LED_POWER_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-600-a1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_WPS,
|
.gpio = DIR_600_A1_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,31 +82,31 @@ static struct flash_platform_data dir_615c1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_615c1_leds_gpio[] __initdata = {
|
static struct gpio_led dir_615c1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-615c1:orange:status",
|
.name = "d-link:orange:status",
|
||||||
.gpio = DIR_615C1_GPIO_LED_ORANGE_STATUS,
|
.gpio = DIR_615C1_GPIO_LED_ORANGE_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_615C1_GPIO_LED_BLUE_WPS,
|
.gpio = DIR_615C1_GPIO_LED_BLUE_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wan",
|
.name = "d-link:green:wan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WAN,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wancpu",
|
.name = "d-link:green:wancpu",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WANCPU,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WANCPU,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wlan",
|
.name = "d-link:green:wlan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WLAN,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WLAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:status",
|
.name = "d-link:green:status",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:orange:wan",
|
.name = "d-link:orange:wan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_ORANGE_WAN,
|
.gpio = DIR_615C1_GPIO_LED_ORANGE_WAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,36 +88,36 @@ static struct flash_platform_data dir_615_e4_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_615_e4_leds_gpio[] __initdata = {
|
static struct gpio_led dir_615_e4_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-615-e4:green:power",
|
.name = "d-link:green:power",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_POWER_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_POWER_GREEN,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:amber:power",
|
.name = "d-link:amber:power",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_POWER_AMBER,
|
.gpio = DIR_615_E4_GPIO_LED_POWER_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:wan",
|
.name = "d-link:green:wan",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WAN_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_WAN_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:amber:wan",
|
.name = "d-link:amber:wan",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WAN_AMBER,
|
.gpio = DIR_615_E4_GPIO_LED_WAN_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan1",
|
.name = "d-link:green:lan1",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN1_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN1_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan2",
|
.name = "d-link:green:lan2",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN2_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN2_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan3",
|
.name = "d-link:green:lan3",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN3_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN3_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan4",
|
.name = "d-link:green:lan4",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN4_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN4_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WPS,
|
.gpio = DIR_615_E4_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,27 +87,27 @@ static struct flash_platform_data dir825b1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir825b1_leds_gpio[] __initdata = {
|
static struct gpio_led dir825b1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir825b1:blue:usb",
|
.name = "d-link:blue:usb",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_USB,
|
.gpio = DIR825B1_GPIO_LED_BLUE_USB,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:orange:power",
|
.name = "d-link:orange:power",
|
||||||
.gpio = DIR825B1_GPIO_LED_ORANGE_POWER,
|
.gpio = DIR825B1_GPIO_LED_ORANGE_POWER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:power",
|
.name = "d-link:blue:power",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_POWER,
|
.gpio = DIR825B1_GPIO_LED_BLUE_POWER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_WPS,
|
.gpio = DIR825B1_GPIO_LED_BLUE_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:orange:planet",
|
.name = "d-link:orange:planet",
|
||||||
.gpio = DIR825B1_GPIO_LED_ORANGE_PLANET,
|
.gpio = DIR825B1_GPIO_LED_ORANGE_PLANET,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:planet",
|
.name = "d-link:blue:planet",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_PLANET,
|
.gpio = DIR825B1_GPIO_LED_BLUE_PLANET,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,13 +76,13 @@ static struct flash_platform_data dir_600_a1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_600_a1_leds_gpio[] __initdata = {
|
static struct gpio_led dir_600_a1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-600-a1:green:power",
|
.name = "d-link:green:power",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_POWER_GREEN,
|
.gpio = DIR_600_A1_GPIO_LED_POWER_GREEN,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-600-a1:amber:power",
|
.name = "d-link:amber:power",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_POWER_AMBER,
|
.gpio = DIR_600_A1_GPIO_LED_POWER_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-600-a1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_600_A1_GPIO_LED_WPS,
|
.gpio = DIR_600_A1_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,31 +78,31 @@ static struct flash_platform_data dir_615c1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_615c1_leds_gpio[] __initdata = {
|
static struct gpio_led dir_615c1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-615c1:orange:status",
|
.name = "d-link:orange:status",
|
||||||
.gpio = DIR_615C1_GPIO_LED_ORANGE_STATUS,
|
.gpio = DIR_615C1_GPIO_LED_ORANGE_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_615C1_GPIO_LED_BLUE_WPS,
|
.gpio = DIR_615C1_GPIO_LED_BLUE_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wan",
|
.name = "d-link:green:wan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WAN,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wancpu",
|
.name = "d-link:green:wancpu",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WANCPU,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WANCPU,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:wlan",
|
.name = "d-link:green:wlan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_WLAN,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_WLAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:green:status",
|
.name = "d-link:green:status",
|
||||||
.gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
|
.gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615c1:orange:wan",
|
.name = "d-link:orange:wan",
|
||||||
.gpio = DIR_615C1_GPIO_LED_ORANGE_WAN,
|
.gpio = DIR_615C1_GPIO_LED_ORANGE_WAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,36 +84,36 @@ static struct flash_platform_data dir_615_e4_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir_615_e4_leds_gpio[] __initdata = {
|
static struct gpio_led dir_615_e4_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir-615-e4:green:power",
|
.name = "d-link:green:power",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_POWER_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_POWER_GREEN,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:amber:power",
|
.name = "d-link:amber:power",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_POWER_AMBER,
|
.gpio = DIR_615_E4_GPIO_LED_POWER_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:wan",
|
.name = "d-link:green:wan",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WAN_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_WAN_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:amber:wan",
|
.name = "d-link:amber:wan",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WAN_AMBER,
|
.gpio = DIR_615_E4_GPIO_LED_WAN_AMBER,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan1",
|
.name = "d-link:green:lan1",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN1_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN1_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan2",
|
.name = "d-link:green:lan2",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN2_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN2_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan3",
|
.name = "d-link:green:lan3",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN3_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN3_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:green:lan4",
|
.name = "d-link:green:lan4",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_LAN4_GREEN,
|
.gpio = DIR_615_E4_GPIO_LED_LAN4_GREEN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir-615-e4:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR_615_E4_GPIO_LED_WPS,
|
.gpio = DIR_615_E4_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,27 +83,27 @@ static struct flash_platform_data dir825b1_flash_data = {
|
||||||
|
|
||||||
static struct gpio_led dir825b1_leds_gpio[] __initdata = {
|
static struct gpio_led dir825b1_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "dir825b1:blue:usb",
|
.name = "d-link:blue:usb",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_USB,
|
.gpio = DIR825B1_GPIO_LED_BLUE_USB,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:orange:power",
|
.name = "d-link:orange:power",
|
||||||
.gpio = DIR825B1_GPIO_LED_ORANGE_POWER,
|
.gpio = DIR825B1_GPIO_LED_ORANGE_POWER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:power",
|
.name = "d-link:blue:power",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_POWER,
|
.gpio = DIR825B1_GPIO_LED_BLUE_POWER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:wps",
|
.name = "d-link:blue:wps",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_WPS,
|
.gpio = DIR825B1_GPIO_LED_BLUE_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:orange:planet",
|
.name = "d-link:orange:planet",
|
||||||
.gpio = DIR825B1_GPIO_LED_ORANGE_PLANET,
|
.gpio = DIR825B1_GPIO_LED_ORANGE_PLANET,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "dir825b1:blue:planet",
|
.name = "d-link:blue:planet",
|
||||||
.gpio = DIR825B1_GPIO_LED_BLUE_PLANET,
|
.gpio = DIR825B1_GPIO_LED_BLUE_PLANET,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue