aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorTomislav Požega <pozega.tomislav@gmail.com>2019-07-18 14:55:58 +0000
committerPetr Štetiar <ynezz@true.cz>2019-07-28 23:25:11 +0200
commitc59e24ca30fe3ff94c7261de8cd681a47240183b (patch)
treeb61c3af4021e7cba7ec413de85420d4cf38cd4df /target/linux/ar71xx/files
parent3c654331868ac9ee113cc16a903cc31bfbc112ae (diff)
downloadupstream-c59e24ca30fe3ff94c7261de8cd681a47240183b.tar.gz
upstream-c59e24ca30fe3ff94c7261de8cd681a47240183b.tar.bz2
upstream-c59e24ca30fe3ff94c7261de8cd681a47240183b.zip
ar71xx: Archer C7 v1 LED names and RFKILL fixes
All leds on these boards are green. v1 has RFKILL GPIO 23 for production units (it had GPIO 13 only for test phase units, and these are rather very rare to find). As for the previous attempt to fix this and revert due to WDR boards have blue leds, it was wrong: WDR board does not use common setup (false). Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com> (cherry picked from commit c79c001b593bd826d51722f2c83ad8770255f3b3)
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c
index 35e3c271f8..287252780d 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c
@@ -50,7 +50,7 @@
#define ARCHER_C7_GPIO_LED_USB1 18
#define ARCHER_C7_GPIO_LED_USB2 19
-#define ARCHER_C7_GPIO_BTN_RFKILL 13
+#define ARCHER_C7_GPIO_BTN_RFKILL 23
#define ARCHER_C7_V2_GPIO_BTN_RFKILL 23
#define ARCHER_C7_GPIO_BTN_RESET 16
@@ -74,22 +74,22 @@ static struct flash_platform_data archer_c7_flash_data = {
static struct gpio_led archer_c7_leds_gpio[] __initdata = {
{
- .name = "tp-link:blue:qss",
+ .name = "tp-link:green:qss",
.gpio = ARCHER_C7_GPIO_LED_QSS,
.active_low = 1,
},
{
- .name = "tp-link:blue:system",
+ .name = "tp-link:green:system",
.gpio = ARCHER_C7_GPIO_LED_SYSTEM,
.active_low = 1,
},
{
- .name = "tp-link:blue:wlan2g",
+ .name = "tp-link:green:wlan2g",
.gpio = ARCHER_C7_GPIO_LED_WLAN2G,
.active_low = 1,
},
{
- .name = "tp-link:blue:wlan5g",
+ .name = "tp-link:green:wlan5g",
.gpio = ARCHER_C7_GPIO_LED_WLAN5G,
.active_low = 1,
},
@@ -142,11 +142,11 @@ static struct gpio_keys_button archer_c7_v2_gpio_keys[] __initdata = {
};
static const struct ar8327_led_info archer_c7_leds_ar8327[] = {
- AR8327_LED_INFO(PHY0_0, HW, "tp-link:blue:wan"),
- AR8327_LED_INFO(PHY1_0, HW, "tp-link:blue:lan1"),
- AR8327_LED_INFO(PHY2_0, HW, "tp-link:blue:lan2"),
- AR8327_LED_INFO(PHY3_0, HW, "tp-link:blue:lan3"),
- AR8327_LED_INFO(PHY4_0, HW, "tp-link:blue:lan4"),
+ AR8327_LED_INFO(PHY0_0, HW, "tp-link:green:wan"),
+ AR8327_LED_INFO(PHY1_0, HW, "tp-link:green:lan1"),
+ AR8327_LED_INFO(PHY2_0, HW, "tp-link:green:lan2"),
+ AR8327_LED_INFO(PHY3_0, HW, "tp-link:green:lan3"),
+ AR8327_LED_INFO(PHY4_0, HW, "tp-link:green:lan4"),
};
/* GMAC0 of the AR8327 switch is connected to the QCA9558 SoC via SGMII */