46
46
.default_state = LEDS_GPIO_DEFSTATE_OFF \
47
47
}
48
48
49
+ // clang-format off
50
+
49
51
// ASUSTOR Leds.
50
52
// If ledtrig-blkdev ever lands, use that instead of disk-activity:
51
53
// https://lore.kernel.org/linux-leds/20210819025053.222710-1-arequipeno@gmail.com/
54
+ // Also, the "disk-activity" trigger does (currently?) *not* trigger for NVME devices.
52
55
static struct gpio_led asustor_leds [] = {
53
- { .name = "power:front_panel" ,
54
- .default_state = LEDS_GPIO_DEFSTATE_ON }, // 0
56
+ { .name = "power:front_panel" , // 0
57
+ .default_state = LEDS_GPIO_DEFSTATE_ON },
55
58
{ .name = "power:lcd" , .default_state = LEDS_GPIO_DEFSTATE_ON }, // 1
56
59
{ .name = "blue:power" , .default_state = LEDS_GPIO_DEFSTATE_ON }, // 2
57
60
{ .name = "red:power" , .default_state = LEDS_GPIO_DEFSTATE_OFF }, // 3
58
61
{ .name = "green:status" , .default_state = LEDS_GPIO_DEFSTATE_ON }, // 4
59
62
{
60
- .name = "red:status" ,
63
+ .name = "red:status" , // 5
61
64
.default_state = LEDS_GPIO_DEFSTATE_OFF ,
62
65
.panic_indicator = 1 ,
63
66
.default_trigger = "panic" ,
64
- }, // 5
67
+ },
65
68
{ .name = "blue:usb" , .default_state = LEDS_GPIO_DEFSTATE_OFF }, // 6
66
69
{ .name = "green:usb" , .default_state = LEDS_GPIO_DEFSTATE_OFF }, // 7
67
70
{ .name = "blue:lan" , .default_state = LEDS_GPIO_DEFSTATE_ON }, // 8
@@ -86,7 +89,6 @@ static const struct gpio_led_platform_data asustor_leds_pdata = {
86
89
.num_leds = ARRAY_SIZE (asustor_leds ),
87
90
};
88
91
89
- // clang-format off
90
92
static struct gpiod_lookup_table asustor_fs6700_gpio_leds_lookup = {
91
93
.dev_id = "leds-gpio" ,
92
94
.table = {
@@ -103,18 +105,7 @@ static struct gpiod_lookup_table asustor_fs6700_gpio_leds_lookup = {
103
105
// 6
104
106
// 7
105
107
GPIO_LOOKUP_IDX (GPIO_IT87 , 55 , NULL , 8 , GPIO_ACTIVE_HIGH ), // blue:lan
106
- // 9
107
- // 10
108
- // 11
109
- // 12
110
- // 13
111
- // 14
112
- // 15
113
- // 16
114
- // 17
115
- // 18
116
- // 19
117
- // 20
108
+ // LEDs 9 - 20 don't exist in this system
118
109
GPIO_LOOKUP_IDX (GPIO_IT87 , 12 , NULL , 21 , GPIO_ACTIVE_LOW ), // nvme1:green:disk
119
110
GPIO_LOOKUP_IDX (GPIO_IT87 , 13 , NULL , 22 , GPIO_ACTIVE_LOW ), // nvme1:red:disk
120
111
{}
0 commit comments