18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci#include "bcm47xx_private.h" 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#include <linux/leds.h> 58c2ecf20Sopenharmony_ci#include <bcm47xx_board.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/************************************************** 88c2ecf20Sopenharmony_ci * Database 98c2ecf20Sopenharmony_ci **************************************************/ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define BCM47XX_GPIO_LED(_gpio, _color, _function, _active_low, \ 128c2ecf20Sopenharmony_ci _default_state) \ 138c2ecf20Sopenharmony_ci { \ 148c2ecf20Sopenharmony_ci .name = "bcm47xx:" _color ":" _function, \ 158c2ecf20Sopenharmony_ci .gpio = _gpio, \ 168c2ecf20Sopenharmony_ci .active_low = _active_low, \ 178c2ecf20Sopenharmony_ci .default_state = _default_state, \ 188c2ecf20Sopenharmony_ci } 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define BCM47XX_GPIO_LED_TRIGGER(_gpio, _color, _function, _active_low, \ 218c2ecf20Sopenharmony_ci _default_trigger) \ 228c2ecf20Sopenharmony_ci { \ 238c2ecf20Sopenharmony_ci .name = "bcm47xx:" _color ":" _function, \ 248c2ecf20Sopenharmony_ci .gpio = _gpio, \ 258c2ecf20Sopenharmony_ci .active_low = _active_low, \ 268c2ecf20Sopenharmony_ci .default_state = LEDS_GPIO_DEFSTATE_OFF, \ 278c2ecf20Sopenharmony_ci .default_trigger = _default_trigger, \ 288c2ecf20Sopenharmony_ci } 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci/* Asus */ 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_cistatic const struct gpio_led 338c2ecf20Sopenharmony_cibcm47xx_leds_asus_rtn12[] __initconst = { 348c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 358c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 368c2ecf20Sopenharmony_ci}; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_cistatic const struct gpio_led 398c2ecf20Sopenharmony_cibcm47xx_leds_asus_rtn15u[] __initconst = { 408c2ecf20Sopenharmony_ci /* TODO: Add "wlan" LED */ 418c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "wan", 1, LEDS_GPIO_DEFSTATE_OFF), 428c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "blue", "lan", 1, LEDS_GPIO_DEFSTATE_OFF), 438c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON), 448c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(9, "blue", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 458c2ecf20Sopenharmony_ci}; 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_cistatic const struct gpio_led 488c2ecf20Sopenharmony_cibcm47xx_leds_asus_rtn16[] __initconst = { 498c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON), 508c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 518c2ecf20Sopenharmony_ci}; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_cistatic const struct gpio_led 548c2ecf20Sopenharmony_cibcm47xx_leds_asus_rtn66u[] __initconst = { 558c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(12, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON), 568c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(15, "blue", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), 578c2ecf20Sopenharmony_ci}; 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_cistatic const struct gpio_led 608c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl300g[] __initconst = { 618c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 628c2ecf20Sopenharmony_ci}; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_cistatic const struct gpio_led 658c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl320ge[] __initconst = { 668c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 678c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 688c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(11, "unk", "link", 1, LEDS_GPIO_DEFSTATE_OFF), 698c2ecf20Sopenharmony_ci}; 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_cistatic const struct gpio_led 728c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl330ge[] __initconst = { 738c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 748c2ecf20Sopenharmony_ci}; 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_cistatic const struct gpio_led 778c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl500g[] __initconst = { 788c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 798c2ecf20Sopenharmony_ci}; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_cistatic const struct gpio_led 828c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl500gd[] __initconst = { 838c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 848c2ecf20Sopenharmony_ci}; 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_cistatic const struct gpio_led 878c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl500gpv1[] __initconst = { 888c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 898c2ecf20Sopenharmony_ci}; 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_cistatic const struct gpio_led 928c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl500gpv2[] __initconst = { 938c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 948c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 958c2ecf20Sopenharmony_ci}; 968c2ecf20Sopenharmony_ci 978c2ecf20Sopenharmony_cistatic const struct gpio_led 988c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl500w[] __initconst = { 998c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1008c2ecf20Sopenharmony_ci}; 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_cistatic const struct gpio_led 1038c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl520gc[] __initconst = { 1048c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1058c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1068c2ecf20Sopenharmony_ci}; 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_cistatic const struct gpio_led 1098c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl520gu[] __initconst = { 1108c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1118c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1128c2ecf20Sopenharmony_ci}; 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_cistatic const struct gpio_led 1158c2ecf20Sopenharmony_cibcm47xx_leds_asus_wl700ge[] __initconst = { 1168c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), /* Labeled "READY" (there is no "power" LED). Originally ON, flashing on USB activity. */ 1178c2ecf20Sopenharmony_ci}; 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_cistatic const struct gpio_led 1208c2ecf20Sopenharmony_cibcm47xx_leds_asus_wlhdd[] __initconst = { 1218c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1228c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), 1238c2ecf20Sopenharmony_ci}; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci/* Belkin */ 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_cistatic const struct gpio_led 1288c2ecf20Sopenharmony_cibcm47xx_leds_belkin_f7d4301[] __initconst = { 1298c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(10, "green", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1308c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(11, "amber", "power", 1, LEDS_GPIO_DEFSTATE_OFF), 1318c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(12, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1328c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(13, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1338c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(14, "unk", "usb0", 1, LEDS_GPIO_DEFSTATE_OFF), 1348c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(15, "unk", "usb1", 1, LEDS_GPIO_DEFSTATE_OFF), 1358c2ecf20Sopenharmony_ci}; 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci/* Buffalo */ 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_cistatic const struct gpio_led 1408c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_whr2_a54g54[] __initconst = { 1418c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1428c2ecf20Sopenharmony_ci}; 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_cistatic const struct gpio_led 1458c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_whr_g125[] __initconst = { 1468c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "bridge", 1, LEDS_GPIO_DEFSTATE_OFF), 1478c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1488c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "unk", "internal", 1, LEDS_GPIO_DEFSTATE_OFF), 1498c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1508c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1518c2ecf20Sopenharmony_ci}; 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_cistatic const struct gpio_led 1548c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_whr_g54s[] __initconst = { 1558c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "bridge", 1, LEDS_GPIO_DEFSTATE_OFF), 1568c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1578c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "green", "internal", 1, LEDS_GPIO_DEFSTATE_OFF), 1588c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1598c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "red", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1608c2ecf20Sopenharmony_ci}; 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_cistatic const struct gpio_led 1638c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_whr_hp_g54[] __initconst = { 1648c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "bridge", 1, LEDS_GPIO_DEFSTATE_OFF), 1658c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1668c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "unk", "internal", 1, LEDS_GPIO_DEFSTATE_OFF), 1678c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1688c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1698c2ecf20Sopenharmony_ci}; 1708c2ecf20Sopenharmony_ci 1718c2ecf20Sopenharmony_cistatic const struct gpio_led 1728c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_wzr_g300n[] __initconst = { 1738c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "bridge", 1, LEDS_GPIO_DEFSTATE_OFF), 1748c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1758c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1768c2ecf20Sopenharmony_ci}; 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_cistatic const struct gpio_led 1798c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_wzr_rs_g54[] __initconst = { 1808c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1818c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "vpn", 1, LEDS_GPIO_DEFSTATE_OFF), 1828c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1838c2ecf20Sopenharmony_ci}; 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_cistatic const struct gpio_led 1868c2ecf20Sopenharmony_cibcm47xx_leds_buffalo_wzr_rs_g54hp[] __initconst = { 1878c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 1888c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "vpn", 1, LEDS_GPIO_DEFSTATE_OFF), 1898c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 1908c2ecf20Sopenharmony_ci}; 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci/* Dell */ 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_cistatic const struct gpio_led 1958c2ecf20Sopenharmony_cibcm47xx_leds_dell_tm2300[] __initconst = { 1968c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 1978c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 1988c2ecf20Sopenharmony_ci}; 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci/* D-Link */ 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_cistatic const struct gpio_led 2038c2ecf20Sopenharmony_cibcm47xx_leds_dlink_dir130[] __initconst = { 2048c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(0, "green", "status", 1, "timer"), /* Originally blinking when device is ready, separated from "power" LED */ 2058c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "blue", "unk", 1, LEDS_GPIO_DEFSTATE_OFF), 2068c2ecf20Sopenharmony_ci}; 2078c2ecf20Sopenharmony_ci 2088c2ecf20Sopenharmony_cistatic const struct gpio_led 2098c2ecf20Sopenharmony_cibcm47xx_leds_dlink_dir330[] __initconst = { 2108c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(0, "green", "status", 1, "timer"), /* Originally blinking when device is ready, separated from "power" LED */ 2118c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "unk", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), 2128c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "blue", "unk", 1, LEDS_GPIO_DEFSTATE_OFF), 2138c2ecf20Sopenharmony_ci}; 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci/* Huawei */ 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_cistatic const struct gpio_led 2188c2ecf20Sopenharmony_cibcm47xx_leds_huawei_e970[] __initconst = { 2198c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 2208c2ecf20Sopenharmony_ci}; 2218c2ecf20Sopenharmony_ci 2228c2ecf20Sopenharmony_ci/* Linksys */ 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_cistatic const struct gpio_led 2258c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e1000v1[] __initconst = { 2268c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 2278c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "blue", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2288c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2298c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2308c2ecf20Sopenharmony_ci}; 2318c2ecf20Sopenharmony_ci 2328c2ecf20Sopenharmony_cistatic const struct gpio_led 2338c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e1000v21[] __initconst = { 2348c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 2358c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON), 2368c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "amber", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 2378c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(8, "blue", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 2388c2ecf20Sopenharmony_ci}; 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_cistatic const struct gpio_led 2418c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e2000v1[] __initconst = { 2428c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 2438c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "blue", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2448c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2458c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2468c2ecf20Sopenharmony_ci}; 2478c2ecf20Sopenharmony_ci 2488c2ecf20Sopenharmony_cistatic const struct gpio_led 2498c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e3000v1[] __initconst = { 2508c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2518c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 2528c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2538c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2548c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 2558c2ecf20Sopenharmony_ci}; 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_cistatic const struct gpio_led 2588c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e3200v1[] __initconst = { 2598c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "green", "power", 1, LEDS_GPIO_DEFSTATE_ON), 2608c2ecf20Sopenharmony_ci}; 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_cistatic const struct gpio_led 2638c2ecf20Sopenharmony_cibcm47xx_leds_linksys_e4200v1[] __initconst = { 2648c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "white", "power", 1, LEDS_GPIO_DEFSTATE_ON), 2658c2ecf20Sopenharmony_ci}; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_cistatic const struct gpio_led 2688c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt150nv1[] __initconst = { 2698c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2708c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2718c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2728c2ecf20Sopenharmony_ci}; 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_cistatic const struct gpio_led 2758c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt150nv11[] __initconst = { 2768c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2778c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2788c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2798c2ecf20Sopenharmony_ci}; 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_cistatic const struct gpio_led 2828c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt160nv1[] __initconst = { 2838c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2848c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2858c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2868c2ecf20Sopenharmony_ci}; 2878c2ecf20Sopenharmony_ci 2888c2ecf20Sopenharmony_cistatic const struct gpio_led 2898c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt160nv3[] __initconst = { 2908c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2918c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2928c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2938c2ecf20Sopenharmony_ci}; 2948c2ecf20Sopenharmony_ci 2958c2ecf20Sopenharmony_cistatic const struct gpio_led 2968c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt300n_v1[] __initconst = { 2978c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 2988c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 2998c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3008c2ecf20Sopenharmony_ci}; 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_cistatic const struct gpio_led 3038c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt300nv11[] __initconst = { 3048c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3058c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3068c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3078c2ecf20Sopenharmony_ci}; 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_cistatic const struct gpio_led 3108c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt310nv1[] __initconst = { 3118c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "blue", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3128c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3138c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(9, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3148c2ecf20Sopenharmony_ci}; 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_cistatic const struct gpio_led 3178c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt54g_generic[] __initconst = { 3188c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 3198c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3208c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3218c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3228c2ecf20Sopenharmony_ci}; 3238c2ecf20Sopenharmony_ci 3248c2ecf20Sopenharmony_cistatic const struct gpio_led 3258c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt54g3gv2[] __initconst = { 3268c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3278c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "3g", 0, LEDS_GPIO_DEFSTATE_OFF), 3288c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "3g", 0, LEDS_GPIO_DEFSTATE_OFF), 3298c2ecf20Sopenharmony_ci}; 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_ci/* Verified on: WRT54GS V1.0 */ 3328c2ecf20Sopenharmony_cistatic const struct gpio_led 3338c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = { 3348c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "green", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 3358c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3368c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 3378c2ecf20Sopenharmony_ci}; 3388c2ecf20Sopenharmony_ci 3398c2ecf20Sopenharmony_ci/* Verified on: WRT54GL V1.1 */ 3408c2ecf20Sopenharmony_cistatic const struct gpio_led 3418c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt54g_type_0467[] __initconst = { 3428c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "green", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 3438c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3448c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3458c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3468c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 3478c2ecf20Sopenharmony_ci}; 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_cistatic const struct gpio_led 3508c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt610nv1[] __initconst = { 3518c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), 3528c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_OFF), 3538c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3548c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(9, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3558c2ecf20Sopenharmony_ci}; 3568c2ecf20Sopenharmony_ci 3578c2ecf20Sopenharmony_cistatic const struct gpio_led 3588c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrt610nv2[] __initconst = { 3598c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "amber", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3608c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 3618c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3628c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3638c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 3648c2ecf20Sopenharmony_ci}; 3658c2ecf20Sopenharmony_ci 3668c2ecf20Sopenharmony_cistatic const struct gpio_led 3678c2ecf20Sopenharmony_cibcm47xx_leds_linksys_wrtsl54gs[] __initconst = { 3688c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 3698c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 3708c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3718c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 3728c2ecf20Sopenharmony_ci}; 3738c2ecf20Sopenharmony_ci 3748c2ecf20Sopenharmony_ci/* Luxul */ 3758c2ecf20Sopenharmony_ci 3768c2ecf20Sopenharmony_cistatic const struct gpio_led 3778c2ecf20Sopenharmony_cibcm47xx_leds_luxul_abr_4400_v1[] __initconst = { 3788c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(12, "green", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 3798c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(15, "green", "status", 0, "timer"), 3808c2ecf20Sopenharmony_ci}; 3818c2ecf20Sopenharmony_ci 3828c2ecf20Sopenharmony_cistatic const struct gpio_led 3838c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap_310_v1[] __initconst = { 3848c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(6, "green", "status", 1, "timer"), 3858c2ecf20Sopenharmony_ci}; 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_cistatic const struct gpio_led 3888c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap_1210_v1[] __initconst = { 3898c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(6, "green", "status", 1, "timer"), 3908c2ecf20Sopenharmony_ci}; 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_cistatic const struct gpio_led 3938c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap_1230_v1[] __initconst = { 3948c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "2ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 3958c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "green", "bridge", 0, LEDS_GPIO_DEFSTATE_OFF), 3968c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(6, "green", "status", 1, "timer"), 3978c2ecf20Sopenharmony_ci}; 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_cistatic const struct gpio_led 4008c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap_1240_v1[] __initconst = { 4018c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "blue", "2ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 4028c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "green", "bridge", 0, LEDS_GPIO_DEFSTATE_OFF), 4038c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(6, "green", "status", 1, "timer"), 4048c2ecf20Sopenharmony_ci}; 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_cistatic const struct gpio_led 4078c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap_1500_v1[] __initconst = { 4088c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(13, "green", "status", 1, "timer"), 4098c2ecf20Sopenharmony_ci}; 4108c2ecf20Sopenharmony_ci 4118c2ecf20Sopenharmony_cistatic const struct gpio_led 4128c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xap1500_v1_extra[] __initconst = { 4138c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(44, "green", "5ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 4148c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(76, "green", "2ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 4158c2ecf20Sopenharmony_ci}; 4168c2ecf20Sopenharmony_ci 4178c2ecf20Sopenharmony_cistatic const struct gpio_led 4188c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xbr_4400_v1[] __initconst = { 4198c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(12, "green", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 4208c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(15, "green", "status", 0, "timer"), 4218c2ecf20Sopenharmony_ci}; 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_cistatic const struct gpio_led 4248c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xvw_p30_v1[] __initconst = { 4258c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(0, "blue", "status", 1, "timer"), 4268c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "link", 1, LEDS_GPIO_DEFSTATE_OFF), 4278c2ecf20Sopenharmony_ci}; 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_cistatic const struct gpio_led 4308c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xwr_600_v1[] __initconst = { 4318c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "green", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 4328c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(6, "green", "status", 1, "timer"), 4338c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(9, "green", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 4348c2ecf20Sopenharmony_ci}; 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_cistatic const struct gpio_led 4378c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xwr_1750_v1[] __initconst = { 4388c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "green", "5ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 4398c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(12, "green", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), 4408c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED_TRIGGER(13, "green", "status", 0, "timer"), 4418c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(15, "green", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 4428c2ecf20Sopenharmony_ci}; 4438c2ecf20Sopenharmony_ci 4448c2ecf20Sopenharmony_cistatic const struct gpio_led 4458c2ecf20Sopenharmony_cibcm47xx_leds_luxul_xwr1750_v1_extra[] __initconst = { 4468c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(76, "green", "2ghz", 0, LEDS_GPIO_DEFSTATE_OFF), 4478c2ecf20Sopenharmony_ci}; 4488c2ecf20Sopenharmony_ci 4498c2ecf20Sopenharmony_ci/* Microsoft */ 4508c2ecf20Sopenharmony_ci 4518c2ecf20Sopenharmony_cistatic const struct gpio_led 4528c2ecf20Sopenharmony_cibcm47xx_leds_microsoft_nm700[] __initconst = { 4538c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 4548c2ecf20Sopenharmony_ci}; 4558c2ecf20Sopenharmony_ci 4568c2ecf20Sopenharmony_ci/* Motorola */ 4578c2ecf20Sopenharmony_ci 4588c2ecf20Sopenharmony_cistatic const struct gpio_led 4598c2ecf20Sopenharmony_cibcm47xx_leds_motorola_we800g[] __initconst = { 4608c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "amber", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 4618c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "unk", "unk", 1, LEDS_GPIO_DEFSTATE_OFF), /* There are only 3 LEDs: Power, Wireless and Device (ethernet) */ 4628c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(4, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 4638c2ecf20Sopenharmony_ci}; 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_cistatic const struct gpio_led 4668c2ecf20Sopenharmony_cibcm47xx_leds_motorola_wr850gp[] __initconst = { 4678c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 4688c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 4698c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(6, "unk", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 4708c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 4718c2ecf20Sopenharmony_ci}; 4728c2ecf20Sopenharmony_ci 4738c2ecf20Sopenharmony_cistatic const struct gpio_led 4748c2ecf20Sopenharmony_cibcm47xx_leds_motorola_wr850gv2v3[] __initconst = { 4758c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 4768c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 4778c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "diag", 1, LEDS_GPIO_DEFSTATE_OFF), 4788c2ecf20Sopenharmony_ci}; 4798c2ecf20Sopenharmony_ci 4808c2ecf20Sopenharmony_ci/* Netgear */ 4818c2ecf20Sopenharmony_ci 4828c2ecf20Sopenharmony_cistatic const struct gpio_led 4838c2ecf20Sopenharmony_cibcm47xx_leds_netgear_wndr3400v1[] __initconst = { 4848c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), 4858c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 4868c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "amber", "power", 0, LEDS_GPIO_DEFSTATE_OFF), 4878c2ecf20Sopenharmony_ci}; 4888c2ecf20Sopenharmony_ci 4898c2ecf20Sopenharmony_cistatic const struct gpio_led 4908c2ecf20Sopenharmony_cibcm47xx_leds_netgear_wndr4500v1[] __initconst = { 4918c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 4928c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "power", 1, LEDS_GPIO_DEFSTATE_ON), 4938c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "power", 1, LEDS_GPIO_DEFSTATE_OFF), 4948c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(8, "green", "usb1", 1, LEDS_GPIO_DEFSTATE_OFF), 4958c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(9, "green", "2ghz", 1, LEDS_GPIO_DEFSTATE_OFF), 4968c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(11, "blue", "5ghz", 1, LEDS_GPIO_DEFSTATE_OFF), 4978c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(14, "green", "usb2", 1, LEDS_GPIO_DEFSTATE_OFF), 4988c2ecf20Sopenharmony_ci}; 4998c2ecf20Sopenharmony_ci 5008c2ecf20Sopenharmony_cistatic const struct gpio_led 5018c2ecf20Sopenharmony_cibcm47xx_leds_netgear_wnr1000_v3[] __initconst = { 5028c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), 5038c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 5048c2ecf20Sopenharmony_ci}; 5058c2ecf20Sopenharmony_ci 5068c2ecf20Sopenharmony_cistatic const struct gpio_led 5078c2ecf20Sopenharmony_cibcm47xx_leds_netgear_wnr3500lv1[] __initconst = { 5088c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "blue", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 5098c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 5108c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "wan", 1, LEDS_GPIO_DEFSTATE_OFF), 5118c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 5128c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "amber", "power", 0, LEDS_GPIO_DEFSTATE_OFF), 5138c2ecf20Sopenharmony_ci}; 5148c2ecf20Sopenharmony_ci 5158c2ecf20Sopenharmony_cistatic const struct gpio_led 5168c2ecf20Sopenharmony_cibcm47xx_leds_netgear_wnr834bv2[] __initconst = { 5178c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(2, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 5188c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "amber", "power", 0, LEDS_GPIO_DEFSTATE_OFF), 5198c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(7, "unk", "connected", 0, LEDS_GPIO_DEFSTATE_OFF), 5208c2ecf20Sopenharmony_ci}; 5218c2ecf20Sopenharmony_ci 5228c2ecf20Sopenharmony_ci/* Siemens */ 5238c2ecf20Sopenharmony_cistatic const struct gpio_led 5248c2ecf20Sopenharmony_cibcm47xx_leds_siemens_se505v2[] __initconst = { 5258c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(0, "unk", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 5268c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(3, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF), 5278c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(5, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 5288c2ecf20Sopenharmony_ci}; 5298c2ecf20Sopenharmony_ci 5308c2ecf20Sopenharmony_ci/* SimpleTech */ 5318c2ecf20Sopenharmony_ci 5328c2ecf20Sopenharmony_cistatic const struct gpio_led 5338c2ecf20Sopenharmony_cibcm47xx_leds_simpletech_simpleshare[] __initconst = { 5348c2ecf20Sopenharmony_ci BCM47XX_GPIO_LED(1, "unk", "status", 1, LEDS_GPIO_DEFSTATE_OFF), /* "Ready" LED */ 5358c2ecf20Sopenharmony_ci}; 5368c2ecf20Sopenharmony_ci 5378c2ecf20Sopenharmony_ci/************************************************** 5388c2ecf20Sopenharmony_ci * Init 5398c2ecf20Sopenharmony_ci **************************************************/ 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_cistatic struct gpio_led_platform_data bcm47xx_leds_pdata __initdata; 5428c2ecf20Sopenharmony_ci 5438c2ecf20Sopenharmony_ci#define bcm47xx_set_pdata(dev_leds) do { \ 5448c2ecf20Sopenharmony_ci bcm47xx_leds_pdata.leds = dev_leds; \ 5458c2ecf20Sopenharmony_ci bcm47xx_leds_pdata.num_leds = ARRAY_SIZE(dev_leds); \ 5468c2ecf20Sopenharmony_ci} while (0) 5478c2ecf20Sopenharmony_ci 5488c2ecf20Sopenharmony_cistatic struct gpio_led_platform_data bcm47xx_leds_pdata_extra __initdata = {}; 5498c2ecf20Sopenharmony_ci#define bcm47xx_set_pdata_extra(dev_leds) do { \ 5508c2ecf20Sopenharmony_ci bcm47xx_leds_pdata_extra.leds = dev_leds; \ 5518c2ecf20Sopenharmony_ci bcm47xx_leds_pdata_extra.num_leds = ARRAY_SIZE(dev_leds); \ 5528c2ecf20Sopenharmony_ci} while (0) 5538c2ecf20Sopenharmony_ci 5548c2ecf20Sopenharmony_civoid __init bcm47xx_leds_register(void) 5558c2ecf20Sopenharmony_ci{ 5568c2ecf20Sopenharmony_ci enum bcm47xx_board board = bcm47xx_board_get(); 5578c2ecf20Sopenharmony_ci 5588c2ecf20Sopenharmony_ci switch (board) { 5598c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_RTN12: 5608c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_rtn12); 5618c2ecf20Sopenharmony_ci break; 5628c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_RTN15U: 5638c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_rtn15u); 5648c2ecf20Sopenharmony_ci break; 5658c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_RTN16: 5668c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_rtn16); 5678c2ecf20Sopenharmony_ci break; 5688c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_RTN66U: 5698c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_rtn66u); 5708c2ecf20Sopenharmony_ci break; 5718c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL300G: 5728c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl300g); 5738c2ecf20Sopenharmony_ci break; 5748c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL320GE: 5758c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl320ge); 5768c2ecf20Sopenharmony_ci break; 5778c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL330GE: 5788c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl330ge); 5798c2ecf20Sopenharmony_ci break; 5808c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL500G: 5818c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl500g); 5828c2ecf20Sopenharmony_ci break; 5838c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL500GD: 5848c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl500gd); 5858c2ecf20Sopenharmony_ci break; 5868c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL500GPV1: 5878c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl500gpv1); 5888c2ecf20Sopenharmony_ci break; 5898c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL500GPV2: 5908c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl500gpv2); 5918c2ecf20Sopenharmony_ci break; 5928c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL500W: 5938c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl500w); 5948c2ecf20Sopenharmony_ci break; 5958c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL520GC: 5968c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl520gc); 5978c2ecf20Sopenharmony_ci break; 5988c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL520GU: 5998c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl520gu); 6008c2ecf20Sopenharmony_ci break; 6018c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WL700GE: 6028c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wl700ge); 6038c2ecf20Sopenharmony_ci break; 6048c2ecf20Sopenharmony_ci case BCM47XX_BOARD_ASUS_WLHDD: 6058c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_asus_wlhdd); 6068c2ecf20Sopenharmony_ci break; 6078c2ecf20Sopenharmony_ci 6088c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BELKIN_F7D3301: 6098c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BELKIN_F7D3302: 6108c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BELKIN_F7D4301: 6118c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BELKIN_F7D4302: 6128c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BELKIN_F7D4401: 6138c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_belkin_f7d4301); 6148c2ecf20Sopenharmony_ci break; 6158c2ecf20Sopenharmony_ci 6168c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WHR2_A54G54: 6178c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_whr2_a54g54); 6188c2ecf20Sopenharmony_ci break; 6198c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WHR_G125: 6208c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_whr_g125); 6218c2ecf20Sopenharmony_ci break; 6228c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WHR_G54S: 6238c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_whr_g54s); 6248c2ecf20Sopenharmony_ci break; 6258c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WHR_HP_G54: 6268c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_whr_hp_g54); 6278c2ecf20Sopenharmony_ci break; 6288c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WZR_G300N: 6298c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_wzr_g300n); 6308c2ecf20Sopenharmony_ci break; 6318c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WZR_RS_G54: 6328c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_wzr_rs_g54); 6338c2ecf20Sopenharmony_ci break; 6348c2ecf20Sopenharmony_ci case BCM47XX_BOARD_BUFFALO_WZR_RS_G54HP: 6358c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_buffalo_wzr_rs_g54hp); 6368c2ecf20Sopenharmony_ci break; 6378c2ecf20Sopenharmony_ci 6388c2ecf20Sopenharmony_ci case BCM47XX_BOARD_DELL_TM2300: 6398c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_dell_tm2300); 6408c2ecf20Sopenharmony_ci break; 6418c2ecf20Sopenharmony_ci 6428c2ecf20Sopenharmony_ci case BCM47XX_BOARD_DLINK_DIR130: 6438c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_dlink_dir130); 6448c2ecf20Sopenharmony_ci break; 6458c2ecf20Sopenharmony_ci case BCM47XX_BOARD_DLINK_DIR330: 6468c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_dlink_dir330); 6478c2ecf20Sopenharmony_ci break; 6488c2ecf20Sopenharmony_ci 6498c2ecf20Sopenharmony_ci case BCM47XX_BOARD_HUAWEI_E970: 6508c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_huawei_e970); 6518c2ecf20Sopenharmony_ci break; 6528c2ecf20Sopenharmony_ci 6538c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E1000V1: 6548c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e1000v1); 6558c2ecf20Sopenharmony_ci break; 6568c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E1000V21: 6578c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e1000v21); 6588c2ecf20Sopenharmony_ci break; 6598c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E2000V1: 6608c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e2000v1); 6618c2ecf20Sopenharmony_ci break; 6628c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E3000V1: 6638c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e3000v1); 6648c2ecf20Sopenharmony_ci break; 6658c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E3200V1: 6668c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e3200v1); 6678c2ecf20Sopenharmony_ci break; 6688c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_E4200V1: 6698c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_e4200v1); 6708c2ecf20Sopenharmony_ci break; 6718c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT150NV1: 6728c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt150nv1); 6738c2ecf20Sopenharmony_ci break; 6748c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT150NV11: 6758c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt150nv11); 6768c2ecf20Sopenharmony_ci break; 6778c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT160NV1: 6788c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt160nv1); 6798c2ecf20Sopenharmony_ci break; 6808c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT160NV3: 6818c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt160nv3); 6828c2ecf20Sopenharmony_ci break; 6838c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT300N_V1: 6848c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt300n_v1); 6858c2ecf20Sopenharmony_ci break; 6868c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT300NV11: 6878c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt300nv11); 6888c2ecf20Sopenharmony_ci break; 6898c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT310NV1: 6908c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt310nv1); 6918c2ecf20Sopenharmony_ci break; 6928c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT54G3GV2: 6938c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g3gv2); 6948c2ecf20Sopenharmony_ci break; 6958c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101: 6968c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0101); 6978c2ecf20Sopenharmony_ci break; 6988c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467: 6998c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0467); 7008c2ecf20Sopenharmony_ci break; 7018c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708: 7028c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_generic); 7038c2ecf20Sopenharmony_ci break; 7048c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT610NV1: 7058c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt610nv1); 7068c2ecf20Sopenharmony_ci break; 7078c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRT610NV2: 7088c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt610nv2); 7098c2ecf20Sopenharmony_ci break; 7108c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LINKSYS_WRTSL54GS: 7118c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_linksys_wrtsl54gs); 7128c2ecf20Sopenharmony_ci break; 7138c2ecf20Sopenharmony_ci 7148c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_ABR_4400_V1: 7158c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_abr_4400_v1); 7168c2ecf20Sopenharmony_ci break; 7178c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XAP_310_V1: 7188c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xap_310_v1); 7198c2ecf20Sopenharmony_ci break; 7208c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XAP_1210_V1: 7218c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xap_1210_v1); 7228c2ecf20Sopenharmony_ci break; 7238c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XAP_1230_V1: 7248c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xap_1230_v1); 7258c2ecf20Sopenharmony_ci break; 7268c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XAP_1240_V1: 7278c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xap_1240_v1); 7288c2ecf20Sopenharmony_ci break; 7298c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XAP_1500_V1: 7308c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xap_1500_v1); 7318c2ecf20Sopenharmony_ci bcm47xx_set_pdata_extra(bcm47xx_leds_luxul_xap1500_v1_extra); 7328c2ecf20Sopenharmony_ci break; 7338c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XBR_4400_V1: 7348c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xbr_4400_v1); 7358c2ecf20Sopenharmony_ci break; 7368c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XVW_P30_V1: 7378c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xvw_p30_v1); 7388c2ecf20Sopenharmony_ci break; 7398c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XWR_600_V1: 7408c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xwr_600_v1); 7418c2ecf20Sopenharmony_ci break; 7428c2ecf20Sopenharmony_ci case BCM47XX_BOARD_LUXUL_XWR_1750_V1: 7438c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_luxul_xwr_1750_v1); 7448c2ecf20Sopenharmony_ci bcm47xx_set_pdata_extra(bcm47xx_leds_luxul_xwr1750_v1_extra); 7458c2ecf20Sopenharmony_ci break; 7468c2ecf20Sopenharmony_ci 7478c2ecf20Sopenharmony_ci case BCM47XX_BOARD_MICROSOFT_MN700: 7488c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_microsoft_nm700); 7498c2ecf20Sopenharmony_ci break; 7508c2ecf20Sopenharmony_ci 7518c2ecf20Sopenharmony_ci case BCM47XX_BOARD_MOTOROLA_WE800G: 7528c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_motorola_we800g); 7538c2ecf20Sopenharmony_ci break; 7548c2ecf20Sopenharmony_ci case BCM47XX_BOARD_MOTOROLA_WR850GP: 7558c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_motorola_wr850gp); 7568c2ecf20Sopenharmony_ci break; 7578c2ecf20Sopenharmony_ci case BCM47XX_BOARD_MOTOROLA_WR850GV2V3: 7588c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_motorola_wr850gv2v3); 7598c2ecf20Sopenharmony_ci break; 7608c2ecf20Sopenharmony_ci 7618c2ecf20Sopenharmony_ci case BCM47XX_BOARD_NETGEAR_WNDR3400V1: 7628c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr3400v1); 7638c2ecf20Sopenharmony_ci break; 7648c2ecf20Sopenharmony_ci case BCM47XX_BOARD_NETGEAR_WNDR4500V1: 7658c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr4500v1); 7668c2ecf20Sopenharmony_ci break; 7678c2ecf20Sopenharmony_ci case BCM47XX_BOARD_NETGEAR_WNR1000_V3: 7688c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr1000_v3); 7698c2ecf20Sopenharmony_ci break; 7708c2ecf20Sopenharmony_ci case BCM47XX_BOARD_NETGEAR_WNR3500L: 7718c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr3500lv1); 7728c2ecf20Sopenharmony_ci break; 7738c2ecf20Sopenharmony_ci case BCM47XX_BOARD_NETGEAR_WNR834BV2: 7748c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr834bv2); 7758c2ecf20Sopenharmony_ci break; 7768c2ecf20Sopenharmony_ci 7778c2ecf20Sopenharmony_ci case BCM47XX_BOARD_SIEMENS_SE505V2: 7788c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_siemens_se505v2); 7798c2ecf20Sopenharmony_ci break; 7808c2ecf20Sopenharmony_ci 7818c2ecf20Sopenharmony_ci case BCM47XX_BOARD_SIMPLETECH_SIMPLESHARE: 7828c2ecf20Sopenharmony_ci bcm47xx_set_pdata(bcm47xx_leds_simpletech_simpleshare); 7838c2ecf20Sopenharmony_ci break; 7848c2ecf20Sopenharmony_ci 7858c2ecf20Sopenharmony_ci default: 7868c2ecf20Sopenharmony_ci pr_debug("No LEDs configuration found for this device\n"); 7878c2ecf20Sopenharmony_ci return; 7888c2ecf20Sopenharmony_ci } 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_ci gpio_led_register_device(-1, &bcm47xx_leds_pdata); 7918c2ecf20Sopenharmony_ci if (bcm47xx_leds_pdata_extra.num_leds) 7928c2ecf20Sopenharmony_ci gpio_led_register_device(0, &bcm47xx_leds_pdata_extra); 7938c2ecf20Sopenharmony_ci} 794